:root {
  font:
    15px/1.55 system-ui,
    sans-serif;
  color: #1c2928;
  background: #f3f5f2;
  --green: #234d40;
  --line: #d9dfda;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 80px);
  background: white;
  border-bottom: 1px solid var(--line);
}
header {
  height: 78px;
}
.brand {
  font-size: 31px;
  letter-spacing: -2px;
  line-height: 0.9;
  display: inline-flex;
  flex-direction: column;
}
.brand span {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 3.4px;
}
.tag,
.eyebrow,
th,
footer,
.num {
  font:
    600 10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 1.5px;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 13px;
}
main {
  max-width: 1370px;
  margin: auto;
  padding: 40px clamp(16px, 5vw, 72px);
  min-height: calc(100svh - 134px);
}
footer {
  border-top: 1px solid var(--line);
  background: transparent;
  color: #63716b;
}
.gate {
  min-height: 550px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid #cbd5cc;
  border-radius: 18px;
  overflow: hidden;
  margin: 1vh 0;
  background: #fff;
}
.cover {
  background: #192a26;
  color: white;
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cover:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent, #35554550);
  pointer-events: none;
}
.cover img {
  width: 112%;
  margin-left: -6%;
}
.cover .eyebrow {
  color: #b6cbbf;
}
.cover h1 {
  font-size: clamp(38px, 4.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  margin: 24px 0 15px;
}
.cover p {
  color: #cad6cf;
  max-width: 380px;
}
.cover small {
  font: 10px monospace;
  letter-spacing: 1.6px;
  color: #a5c2b0;
}
.login {
  align-self: center;
  padding: clamp(22px, 4.5vw, 68px);
}
h2,
h1,
h3 {
  line-height: 1.15;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 32px;
  margin: 12px 0;
}
.login p,
.muted {
  color: #64716a;
}
.eyebrow {
  color: #49705d;
}
.field {
  font-weight: 600;
  font-size: 13px;
  display: grid;
  gap: 6px;
  margin: 11px 0;
}
input,
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #c9d2cd;
  border-radius: 7px;
  color: inherit;
  background: #fff;
  min-width: 0;
  width: 100%;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cbd4ce;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: 600 13px system-ui;
  cursor: pointer;
  padding: 10px 14px;
  text-decoration: none;
}
button:hover,
.btn:hover {
  border-color: #466353;
  background: #edf2ed;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #193a2e;
  color: white;
}
.login .primary {
  width: 100%;
  margin: 14px 0;
}
.link {
  background: none;
  border: 0;
  color: var(--green);
  padding: 8px 0;
}
.err {
  color: #972e23;
  font-size: 14px;
}
.workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: start;
  background: #1d302a;
  color: white;
  padding: 18px;
  border-radius: 12px;
}
nav button {
  justify-content: flex-start;
  color: inherit;
  border: 0;
  background: transparent;
}
nav button:hover,
nav button.on {
  background: #384d43;
}
nav small {
  padding: 12px 6px;
  color: #c0d1c5;
}
.card,
dialog {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stats,
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr));
  gap: 12px;
}
.stats .card strong {
  display: block;
  font-size: 26px;
  margin-top: 12px;
}
.row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 22px;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
th {
  color: #566c5f;
}
td {
  font-size: 14px;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  background: #e7eee8;
  border-radius: 30px;
  font-size: 12px;
  white-space: nowrap;
}
dialog {
  max-width: min(700px, 94vw);
  width: 100%;
  max-height: 88svh;
}
dialog::backdrop {
  background: #0f201bbb;
}
.part {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}
.empty {
  padding: 28px 8px;
  color: #53665c;
}
.search {
  max-width: 330px;
}
.sheet {
  margin: 16px 0;
}
.hidden,
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.5;
}
.total {
  background: #edf3ee;
  padding: 12px;
  border-radius: 8px;
  font-weight: 650;
}
@media (max-width: 780px) {
  .gate {
    grid-template-columns: 1fr;
  }
  .cover img,
  .cover small {
    display: none;
  }
  .cover h1 {
    font-size: 36px;
    margin: 10px 0;
  }
  .cover p {
    margin: 0;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 9px;
  }
  .workspace nav small {
    display: none;
  }
  main {
    padding-top: 18px;
  }
  .tag,
  footer {
    font-size: 9px;
  }
  footer {
    gap: 12px;
  }
  .gate {
    min-height: 0;
  }
  .login {
    padding: 25px;
  }
}
