:root {
  --ink: #203e3a;
  --green: #163c39;
  --lime: #ddf1ba;
  --muted: #77817b;
  --line: #e3e7df;
  --paper: #f6f7f3;
  --orange: #a9601d;
  --red: #ac453d;
  --shadow: 0 12px 40px #163c3910;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #253b35;
  background: var(--paper);
  font-size: 14px
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

a {
  color: inherit;
  text-decoration: none
}

button:disabled {
  opacity: .45;
  cursor: wait
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a9c878;
  outline-offset: 3px
}

button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px
}

button:hover {
  background: #eef3e8
}

button.primary,
.primary-link {
  background: var(--green);
  color: white;
  border-color: var(--green)
}

button.primary:hover {
  background: #25584f
}

.secondary {
  background: transparent
}

.danger {
  color: var(--red)
}

button.small {
  padding: 7px 10px;
  font-size: 12px
}

.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green)
}

.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex: none
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  background: var(--green);
  color: #f1f5e9;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 2
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 12px 31px;
  font-size: 25px;
  letter-spacing: -1.3px;
  font-weight: 750
}

.brand img {
  width: 37px;
  height: 37px;
  border: 1px solid #ffffff35;
  border-radius: 10px
}

.brand small {
  font-size: 10px;
  display: block;
  letter-spacing: 1.2px;
  font-weight: 450;
  color: #b9c8bb;
  margin-top: 3px
}

.nav-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #9eb2a6;
  padding: 15px 14px 12px
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #bfcec3;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 13px
}

.nav a:hover {
  background: #ffffff0d;
  color: white
}

.nav a.active {
  background: var(--lime);
  color: var(--green);
  font-weight: 650
}

.side-bottom {
  margin-top: auto;
  padding-top: 24px
}

.side-note {
  border: 1px solid #ffffff20;
  border-radius: 10px;
  padding: 15px;
  color: #bed0bd;
  line-height: 1.7;
  font-size: 11px
}

.side-note strong {
  display: block;
  color: #eaf2dc;
  font-size: 12px;
  margin-bottom: 3px
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 4px 0
}

.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #ffffff15;
  display: grid;
  place-items: center;
  font-weight: 650;
  color: var(--lime)
}

.profile-info {
  min-width: 0;
  flex: 1
}

.profile-info strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis
}

.profile-info span {
  font-size: 10px;
  color: #b7caba
}

.profile button {
  border: 0;
  padding: 5px;
  background: none;
  color: #d6e4d2
}

.workspace {
  margin-left: 222px
}

.topbar {
  height: 77px;
  padding: 0 35px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffffb5;
  gap: 15px
}

.topbar .crumb {
  font-size: 12px;
  color: #7b857d
}

.topbar .crumb b {
  color: var(--green);
  font-weight: 500
}

.topbar .right {
  display: flex;
  gap: 20px;
  align-items: center
}

.today {
  font-size: 11px;
  color: #81877e
}

.sync {
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 5px;
  font-weight: 500
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #559977;
  display: inline-block
}

.dot.warn {
  background: #dc973c
}

.dot.red {
  background: var(--red)
}

main {
  max-width: 1600px;
  margin: auto;
  padding: 32px 35px 50px
}

.eyebrow {
  color: #849078;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 650;
  margin-bottom: 10px
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px
}

.page-head h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 9px;
  font-weight: 650
}

.sub {
  color: #7b857c;
  font-size: 12px;
  line-height: 1.6;
  margin: 0
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px
}

.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7c897b
}

.stat-icon {
  color: #799177;
  background: #f3f6ec;
  border-radius: 8px;
  padding: 7px
}

.stat-value {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1.3px;
  margin: 9px 0
}

.stat-value small {
  font-size: 13px;
  letter-spacing: 0;
  color: #819176;
  font-weight: 400
}

.stat-foot {
  font-size: 10px;
  color: #85917e
}

.grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  align-items: start
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px
}

.panel-head {
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.panel-head h2 {
  font-size: 14px;
  font-weight: 650;
  margin: 0
}

.panel-head small {
  font-size: 10px;
  color: #8b9485
}

.panel-body {
  padding: 21px
}

h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.25px
}

h3 {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 9px
}

.table-wrap {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap
}

th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #899482;
  padding: 13px 20px;
  background: #fcfdf9;
  font-weight: 500;
  border-bottom: 1px solid var(--line)
}

td {
  font-size: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0e9
}

tr:last-child td {
  border: 0
}

td strong {
  font-weight: 600
}

td small {
  display: block;
  color: #8a9387;
  font-size: 10px;
  margin-top: 5px
}

.clickable {
  cursor: pointer
}

.clickable:hover {
  background: #f7f9f1
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.4px
}

.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 5px;
  padding: 5px 7px;
  background: #f0f3eb;
  color: #73806c;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .2px
}

.badge.green {
  background: #eaf2df;
  color: #507637
}

.badge.orange {
  background: #fcf0dc;
  color: #aa722b
}

.badge.red {
  background: #f8e9e5;
  color: #a64c40
}

.badge.blue {
  background: #e9f0f4;
  color: #54768c
}

.empty {
  padding: 40px 24px;
  text-align: center;
  color: #8b9488;
  line-height: 1.8;
  font-size: 12px
}

.empty .icon {
  width: 31px;
  height: 31px;
  color: #92a28b;
  margin-bottom: 10px
}

.empty strong {
  display: block;
  color: #536b50;
  font-size: 14px;
  font-weight: 550
}

.empty button {
  margin-top: 16px
}

.intro {
  background: var(--green);
  color: white;
  border-radius: 12px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px
}

.intro:after {
  content: "";
  position: absolute;
  border: 1px solid #d1e8b91c;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  right: -35px;
  top: -40px;
  box-shadow: 0 0 0 35px #d1e8b909, 0 0 0 75px #d1e8b905;
  pointer-events: none
}

.intro .eyebrow {
  color: #bfd3aa
}

.intro h2 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -.4px
}

.intro p {
  color: #b8cbb9;
  font-size: 12px;
  max-width: 510px;
  line-height: 1.8
}

.intro button {
  background: var(--lime);
  border: 0;
  margin-top: 5px
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0e9
}

.list-row:last-child {
  border-bottom: 0
}

.list-row .grow {
  flex: 1
}

.list-row strong {
  font-size: 12px;
  font-weight: 600
}

.list-row small {
  display: block;
  font-size: 10px;
  color: #8b9785;
  margin-top: 5px
}

.list-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #e7eadd;
  background: #f8faf4;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #849574
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.kit-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: block
}

.kit-card:hover {
  border-color: #a8bd8a;
  box-shadow: var(--shadow)
}

.kit-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px
}

.kit-card h2 {
  margin: 0 0 5px
}

.kit-card .card-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 22px;
  font-size: 11px;
  color: #87947f
}

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.tabs {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: #eef1e8;
  border-radius: 8px;
  gap: 3px
}

.tabs button {
  border: 0;
  background: none;
  padding: 8px 14px;
  font-size: 11px;
  color: #7e8c75
}

.tabs button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 6px #00000008
}

.search {
  flex: 1;
  min-width: 180px;
  max-width: 340px
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce2d5;
  border-radius: 7px;
  background: white;
  padding: 11px 12px;
  color: #294038;
  min-height: 40px;
  font-size: 13px
}

input::placeholder,
textarea::placeholder {
  color: #a0a79b
}

textarea {
  min-height: 90px;
  resize: vertical
}

input[type=checkbox] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--green)
}

label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #627358;
  margin-bottom: 15px
}

label input,
label select,
label textarea {
  margin-top: 7px
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6
}

.check input {
  margin-top: 2px;
  flex: none
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px
}

.form-grid .full {
  grid-column: 1/-1
}

.help {
  font-size: 11px;
  color: #89977c;
  line-height: 1.7;
  margin: 2px 0 17px
}

.notice {
  background: #f4f7ec;
  border: 1px solid #e2e9d4;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 11px;
  line-height: 1.7;
  color: #6f825a;
  margin-bottom: 18px
}

.notice.warn {
  background: #fff6e5;
  border-color: #f4e3be;
  color: #a07835
}

.notice.error {
  background: #fff0ec;
  color: #a94f3e;
  border-color: #efd3c9
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 14px;
  gap: 12px
}

.section-title h2 {
  margin: 0
}

.timeline {
  padding: 8px 22px 20px
}

.event {
  border-left: 1px solid #dee7d1;
  padding: 5px 0 20px 19px;
  position: relative
}

.event:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8c286;
  position: absolute;
  left: -4px;
  top: 12px;
  border: 2px solid white;
  box-sizing: content-box
}

.event time {
  font-size: 10px;
  color: #93a087
}

.event h3 {
  font-size: 12px;
  margin: 6px 0
}

.event p {
  font-size: 11px;
  color: #6c7c60;
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 4px 0
}

.event small {
  font-size: 10px;
  color: #92a285
}

.bha {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px;
  background: #f6f8f0;
  border-radius: 8px;
  font-size: 10px;
  color: #798a67
}

.bha span {
  background: white;
  border: 1px solid #e1e7d6;
  border-radius: 5px;
  padding: 7px
}

.metrics-inline {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px 0
}

.metrics-inline strong {
  font-size: 25px;
  display: block;
  letter-spacing: -1px;
  font-weight: 550
}

.metrics-inline small {
  font-size: 10px;
  color: #8a957f
}

.stepper {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px
}

.stepper span {
  font-size: 10px;
  padding: 7px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: #919c85
}

.stepper span.active {
  background: var(--green);
  color: white;
  border-color: var(--green)
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px
}

.file-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #547b43
}

.file-list a:hover {
  text-decoration: underline
}

dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 25px 100px #163c3940;
  color: #2b4237
}

dialog::backdrop {
  background: #142e2b6e;
  backdrop-filter: blur(2px)
}

.modal-head {
  position: sticky;
  top: 0;
  background: white;
  padding: 23px 26px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1
}

.modal-head h2 {
  margin: 0
}

.modal-head button {
  border: 0;
  background: none;
  padding: 4px
}

.modal-body {
  padding: 24px 26px
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 12px
}

.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px
}

.select-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px
}

.select-tools label {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px
}

.select-tools label:has(input:checked) {
  background: #f0f5e5;
  border-color: #bed199
}

.select-tools input {
  margin: 0
}

.select-tools small {
  display: block;
  color: #8b9780;
  font-size: 10px;
  margin-top: 3px
}

details {
  margin: 12px 0
}

summary {
  font-size: 12px;
  cursor: pointer;
  color: #638050;
  margin-bottom: 14px
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  z-index: 20;
  display: none;
  max-width: 90%;
  font-size: 12px;
  line-height: 1.5
}

#toast.show {
  display: block
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr
}

.auth-art {
  background: var(--green);
  padding: 65px 12%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden
}

.auth-art .brand {
  padding: 0;
  margin-bottom: 65px
}

.auth-art h1 {
  font-size: 48px;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -2px;
  max-width: 460px;
  margin: 0 0 22px
}

.auth-art h1 em {
  font-style: normal;
  color: var(--lime)
}

.auth-art p {
  font-size: 14px;
  color: #b9cbbb;
  line-height: 1.9;
  max-width: 390px
}

.auth-art .line-art {
  margin-top: 50px;
  display: flex;
  gap: 8px;
  align-items: end
}

.line-art i {
  display: block;
  width: 37px;
  border: 1px solid #b0c98f50;
  background: #b0c98f09;
  border-radius: 5px;
  height: 90px
}

.line-art i:nth-child(2) {
  height: 130px
}

.line-art i:nth-child(3) {
  height: 180px;
  background: #d4ebad
}

.line-art i:nth-child(4) {
  height: 130px
}

.line-art i:nth-child(5) {
  height: 60px
}

.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px
}

.auth-form form {
  width: 100%;
  max-width: 340px
}

.auth-form h2 {
  font-size: 27px;
  margin: 10px 0
}

.auth-form .sub {
  margin-bottom: 30px
}

.auth-form button.primary {
  width: 100%;
  justify-content: center;
  padding: 13px;
  margin-top: 12px
}

.auth-footer {
  font-size: 10px;
  color: #a1ab94;
  text-align: center;
  margin-top: 25px
}

.boot {
  padding: 100px;
  font-size: 30px;
  font-weight: 650;
  color: var(--green)
}

.boot span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 15px;
  color: #8b987f
}

.pending-label {
  font-size: 10px;
  color: #af7e38;
  margin: 8px 0
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #7c8a70;
  line-height: 1.9
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px
}

.nowrap {
  white-space: nowrap
}

.space {
  height: 12px
}

.text-right {
  text-align: right
}

.muted {
  color: #8c9781
}

.legend {
  font-size: 10px;
  line-height: 1.8;
  color: #8c9781
}

.link {
  color: #648642;
  text-decoration: underline
}

.attachment-button {
  border: 1px dashed #c7d6b6;
  background: #f9fbf5
}

.user-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line)
}

.data-summary {
  font-size: 12px;
  line-height: 1.9;
  color: #77886a;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

@media(max-width:1150px) {
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px
  }

  .workspace {
    margin-left: 190px
  }

  main {
    padding: 26px 24px
  }

  .topbar {
    padding: 0 24px
  }

  .grid {
    grid-template-columns: 1.4fr 1fr
  }

  .kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .stats {
    gap: 10px
  }

  .stat {
    padding: 15px
  }

  .stat-value {
    font-size: 28px
  }

  .today {
    display: none
  }
}

@media(max-width:850px) {
  .sidebar {
    width: 72px;
    padding: 22px 9px
  }

  .sidebar .brand {
    padding: 0 8px 25px
  }

  .brand-text,
  .nav-label,
  .nav a span,
  .side-note,
  .profile-info,
  .profile button {
    display: none
  }

  .nav a {
    justify-content: center;
    padding: 13px 8px
  }

  .profile {
    justify-content: center
  }

  .workspace {
    margin-left: 72px
  }

  .grid {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .topbar {
    height: 65px;
    padding: 0 20px
  }

  main {
    padding: 24px 20px
  }

  .page-head h1 {
    font-size: 25px
  }

  .auth-art h1 {
    font-size: 38px
  }

  .auth-art {
    padding: 50px 12%
  }
}

@media(max-width:580px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 56px;
    flex-direction: row;
    padding: 5px 12px;
    align-items: center
  }

  .sidebar .brand {
    padding: 0;
    margin-right: 13px
  }

  .brand img {
    width: 29px;
    height: 29px
  }

  .nav {
    display: flex;
    overflow: auto
  }

  .nav a {
    margin: 0;
    padding: 11px
  }

  .side-bottom {
    display: none
  }

  .workspace {
    margin: 0
  }

  .topbar {
    height: 50px;
    padding: 0 16px
  }

  main {
    padding: 23px 16px
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px
  }

  .stats {
    gap: 8px
  }

  .stat {
    padding: 13px
  }

  .stat-value {
    font-size: 26px
  }

  .kit-grid {
    grid-template-columns: 1fr
  }

  .auth {
    grid-template-columns: 1fr
  }

  .auth-art {
    padding: 28px
  }

  .auth-art .brand {
    margin-bottom: 25px
  }

  .auth-art h1 {
    font-size: 32px
  }

  .auth-art p,
  .auth-art .line-art {
    display: none
  }

  .auth-form {
    padding: 30px 25px
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .select-tools {
    grid-template-columns: 1fr
  }

  .form-grid .full {
    grid-column: auto
  }

  .modal-body {
    padding: 20px
  }

  .today {
    display: none
  }

  .topbar .right {
    gap: 8px
  }
}
