:root {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #edf1f4;
  color: #192e3b;
  --navy: #102735;
  --ink: #122a38;
  --cyan: #77e6e3;
  --blue: #115d76;
  --muted: #566c7b;
  --rule: #c9d5dd;
  --mono: "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #aabfc9;
  background: #fff;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 4px;
}
button:hover {
  border-color: #277789;
  color: #0b566a;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus {
  outline: 3px solid #47acbb;
  outline-offset: 2px;
}
.mast {
  height: 73px;
  background: #0d2432;
  color: #d6e8ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5%, calc((100% - 1280px) / 2));
  border-bottom: 3px solid #53bdc8;
}
.company {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brandmark {
  display: grid;
  place-items: center;
  background: #a2e7e6;
  color: #102d3c;
  font: italic 900 30px/1 Arial;
  width: 40px;
  height: 39px;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 76% 100%, 0 100%);
}
.company b {
  font: 750 23px/1 Arial;
  letter-spacing: 0.11em;
}
.company b span {
  display: block;
  font: 600 11px/1.5 sans-serif;
  letter-spacing: 0.16em;
}
.mast-right {
  display: flex;
  align-items: center;
  gap: 23px;
  font: 13px var(--mono);
  font-variant-numeric: tabular-nums;
}
.safe {
  font: 13px sans-serif;
  border-left: 1px solid #537482;
  padding-left: 18px;
}
.safe:before,
.dot {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56c7bf;
  margin-right: 7px;
}
main {
  width: min(1280px, 90%);
  margin: 0 auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(33px, 3.3vw, 51px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 20px;
  line-height: 1.45;
}
.eyebrow,
.tiny {
  font: 650 12px/1.5 var(--mono);
  letter-spacing: 0.14em;
  color: var(--blue);
}
.gate {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 480px;
  margin: clamp(32px, 6vh, 80px) auto 36px;
  border: 1px solid #bacbd5;
  background: white;
  box-shadow: 0 12px 34px #1736480c;
}
.blueprint {
  min-width: 0;
  background: radial-gradient(
    ellipse at 64% 30%,
    #173c50 0%,
    #102b3c 51%,
    #0b202e 100%
  );
  color: #d7f2f4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 27px 25px;
}
.blue-head,
.figurefoot,
.panehead,
.panelhead,
.workspace-head,
.scanhead,
.account,
footer,
.dialogbtns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tiny {
  color: #a4d6e2;
  font-size: 11px;
}
.reg {
  font: 24px var(--mono);
  color: #7eced6;
}
.illustration {
  margin: 15px -10px;
}
.illustration img {
  width: 100%;
  display: block;
}
.figurefoot {
  border-top: 1px solid #446472;
  padding-top: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.figurefoot b {
  font-size: 16px;
}
.figurefoot span {
  font-size: 13px;
  color: #b7cfd8;
}
.loginbox {
  align-self: center;
  padding: clamp(27px, 4vw, 61px);
}
.loginbox h1 {
  margin: 10px 0 13px;
}
.lead,
.meta,
.empty,
.note {
  color: var(--muted);
  line-height: 1.65;
}
.lead {
  font-size: 16px;
  margin-bottom: 25px;
}
.meta {
  font-size: 13px;
}
.alert {
  color: #913e20;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #385261;
  margin: 0 0 13px;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 9px 12px;
  border: 1px solid #afc1cb;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.primary {
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  font-weight: 650;
  min-height: 43px;
}
.primary:hover {
  background: #184b60;
  color: white;
}
.loginbox .primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-top: 20px;
}
.primary span {
  font-size: 20px;
  color: var(--cyan);
}
.workspace-head {
  padding: 33px 0 23px;
}
.workspace-head .eyebrow,
.panehead .eyebrow {
  margin: 0 0 7px;
  display: block;
}
.account {
  background: #e5ecf0;
  border: 1px solid #c9d5de;
  padding: 8px 13px;
  border-radius: 4px;
  font-size: 14px;
}
.account .dot {
  margin: 0;
}
.textbtn {
  padding: 1px 4px;
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}
#tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #aabfc9;
}
#tabs button {
  border: 0;
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: #46606f;
  font-weight: 650;
  padding: 12px 23px;
}
#tabs button[aria-current] {
  color: white;
  background: var(--navy);
  box-shadow: inset 0 -3px #66d0d4;
}
#notice:not(:empty) {
  padding: 10px 14px;
  background: #e2eff3;
  border-left: 3px solid #297d92;
  margin: 16px 0;
  font-size: 14px;
}
.panehead {
  padding: 23px 0 17px;
}
.panel,
.stats {
  background: white;
  border: 1px solid var(--rule);
}
.panel {
  padding: 21px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  border-top: 3px solid #527c8b;
}
.stats > div {
  padding: 18px 25px;
  border-right: 1px solid var(--rule);
}
.stats > div:last-child {
  border: 0;
}
.stats small {
  color: #546b7a;
  display: block;
  font-size: 14px;
}
.stats strong {
  font: 600 42px/1.4 var(--mono);
  letter-spacing: -0.07em;
}
.stats span {
  font-size: 13px;
  margin-left: 8px;
  color: var(--muted);
}
.stats > div:last-child strong {
  color: #a9522c;
}
.panelhead {
  margin-bottom: 13px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #dce4e9;
}
th {
  font-size: 13px;
  color: #546b7a;
  background: #eff3f6;
}
td {
  font-size: 14px;
}
.inline {
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 650;
  border: none;
  background: none;
  padding: 2px;
}
.empty {
  text-align: center;
  padding: 34px 12px;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 12px;
}
.pager button,
.dialogbtns button {
  font-size: 13px;
}
.workgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 19px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.scanhead label {
  margin: 0;
}
.scanbar {
  display: flex;
  gap: 9px;
  margin: 6px 0 16px;
}
.scanbar input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.scanbar button {
  flex-shrink: 0;
}
.cargo {
  align-self: start;
  border-top: 3px solid #488197;
}
.cargo h3 {
  margin: 6px 0 16px;
}
.cargo dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  font-size: 14px;
  margin: 12px 0 18px;
}
.cargo dt {
  color: var(--muted);
}
.cargo dd {
  margin: 0;
  word-break: break-word;
}
.cargo button {
  margin: 5px 4px 0 0;
}
#pendingNote {
  margin-top: 16px;
}
#fields p {
  margin: 8px 0 14px;
}
#result {
  margin-top: 18px;
}
details {
  border-top: 1px solid var(--rule);
  padding: 11px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.lineage {
  border-left: 2px solid #70a5b9;
  padding-left: 18px;
  margin: 13px 0;
}
.lineage li {
  margin-bottom: 8px;
}
.person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding: 10px 0;
  gap: 8px;
}
.person small {
  color: var(--muted);
}
#staffForm h3 {
  margin-bottom: 15px;
}
footer {
  padding: 15px 0 24px;
  border-top: 1px solid var(--rule);
  margin-top: 30px;
  color: #58707e;
  font-size: 12px;
}
dialog {
  border: 1px solid #8da3ad;
  padding: 22px;
  max-width: 90%;
  border-radius: 8px;
  color: var(--ink);
}
dialog::backdrop {
  background: #0a2234a6;
}
#video {
  width: min(62vw, 360px);
  display: block;
  margin: 12px auto;
}
#labelPaper {
  text-align: center;
  padding: 12px;
}
#qrImage img {
  max-width: 100%;
  width: 150px;
  height: 150px;
  image-rendering: pixelated;
}
.dialogbtns {
  justify-content: center;
  margin-top: 13px;
}
@media (max-width: 790px) {
  main {
    width: 94%;
  }
  .mast {
    padding: 0 4%;
    height: 60px;
  }
  .mast-right {
    gap: 8px;
    font-size: 11px;
  }
  .safe {
    padding-left: 9px;
  }
  .gate {
    grid-template-columns: 1fr;
    margin: 20px auto;
    min-height: 0;
  }
  .loginbox {
    grid-row: 1;
    padding: 24px;
  }
  .blueprint {
    padding: 15px 20px;
  }
  .blue-head {
    display: none;
  }
  .illustration {
    margin: 0 auto;
    width: min(100%, 450px);
  }
  .figurefoot {
    padding-top: 8px;
  }
  .workspace-head {
    align-items: start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .workspace-head h1 {
    font-size: 32px;
  }
  .workgrid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 15px;
  }
  .stats > div {
    padding: 12px 9px;
  }
  .stats strong {
    font-size: 32px;
  }
  #tabs {
    overflow-x: auto;
  }
  #tabs button {
    flex: 1;
    min-width: max-content;
    padding: 10px;
  }
  .panehead {
    align-items: end;
  }
  .panehead h2 {
    font-size: 27px;
  }
  .safe {
    font-size: 11px;
  }
  .tablewrap {
    max-width: 100%;
  }
  .pager {
    justify-content: space-between;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > #qrDialog[open] {
    display: block !important;
    position: static;
    border: 0;
    max-width: 100%;
    margin: 0;
  }
  #qrDialog .dialogbtns {
    display: none;
  }
  #qrDialog::backdrop {
    background: none;
  }
  #qrImage img {
    width: 40mm;
    height: 40mm;
  }
}

.distribution {
  margin-bottom: 16px;
}
.distrow {
  display: grid;
  grid-template-columns: minmax(88px, 135px) 1fr 62px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  padding: 7px 0;
}
.distrow small {
  color: var(--muted);
}
.bars {
  height: 8px;
  display: flex;
  background: #f1f5f7;
}
.bars i:first-child,
.legend i:first-child {
  background: #137786;
}
.bars i:nth-child(2),
.legend i:nth-child(2) {
  background: #c5dce2;
}
.legend {
  font-size: 12px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 4px 0 10px;
}
.distrow b {
  text-align: right;
  font-family: var(--mono);
}
.lineQR {
  margin: 0 0 12px;
}
.person-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.person {
  flex-wrap: wrap;
}
#manageForm .note {
  margin: 8px 0 16px;
}
.person-actions .textbtn {
  font-size: 13px;
  padding: 6px;
}
