:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #183735;
  background: #f2f5f3;
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  min-height: 44px;
  border: 1px solid #ccdad5;
  border-radius: 8px;
  padding: 10px 16px;
  background: white;
  color: #194b47;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #e7f0eb;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary {
  background: #0b615e;
  color: white;
  border-color: #0b615e;
}
button.primary:hover {
  background: #084e4b;
}
button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #d0a650;
  outline-offset: 2px;
}
a {
  color: inherit;
}
.app {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 242px;
  flex-shrink: 0;
  background: #103c39;
  color: #e8f4ee;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 1.4px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
  color: #94c4b5;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid #86b7a8;
  border-radius: 50% 50% 50% 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 28px;
  background: #194f49;
  color: #e5f2df;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #83aca0;
  margin: 48px 12px 18px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav button {
  text-align: left;
  background: none;
  border: 0;
  color: #c0d5ce;
  font-weight: 500;
  padding: 13px 14px;
}
nav button span {
  display: inline-block;
  width: 27px;
  font-size: 18px;
}
nav button.selected {
  background: #295550;
  color: #fff;
}
nav button:hover {
  background: #204943;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 4px 0;
}
.sidebar-bottom p {
  font-size: 11px;
  line-height: 1.8;
  color: #9dbaae;
}
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 5px;
  background: #e6eee8;
  color: #496457;
  padding: 7px 9px;
}
.sidebar-bottom .pill {
  background: #244d46;
  color: #b9d4bb;
}
main {
  flex: 1;
  min-width: 0;
  padding: 34px 42px;
  max-width: 1600px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #dce5df;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #718c7e;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin: 10px 0 0;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
h3 {
  font-size: 17px;
  margin: 14px 0 8px;
}
p {
  color: #65796e;
  line-height: 1.65;
}
small {
  color: #748879;
}
.user {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}
.connection {
  color: #29755a;
  font-size: 11px;
}
.connection.offline {
  color: #a2600d;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  min-height: 30px;
  font-size: 12px;
}
.lead {
  margin: 22px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid #dde6df;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.stat > span {
  font-size: 12px;
  color: #61786d;
}
.stat strong {
  font-size: 38px;
  line-height: 1.5;
  font-weight: 550;
}
.stat small {
  font-size: 11px;
}
.panel {
  background: white;
  border: 1px solid #dde6df;
  border-radius: 12px;
  padding: 26px;
  margin: 24px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.section-head p {
  font-size: 12px;
  margin: 4px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.load {
  border: 1px solid #dce5df;
  border-radius: 9px;
  padding: 20px;
}
.load p {
  font-size: 12px;
}
.flow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  margin: 18px 0;
  color: #87938d;
}
.flow span {
  padding-bottom: 6px;
  border-bottom: 2px solid #e8ede9;
}
.flow .done {
  color: #25765c;
  border-color: #68a78a;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  background: #edf1ee;
  color: #5c6d63;
  font-size: 11px;
}
.badge.blue {
  color: #135ab7;
  background: #eaf1fe;
}
.badge.red {
  color: #b02738;
  background: #fbeef0;
}
.badge.black {
  color: #151c18;
  background: #eef1ef;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: #789181;
}
.empty > div {
  font-size: 35px;
}
.empty h3 {
  color: #395d4f;
}
.empty p {
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 650;
  color: #536b5e;
}
input,
select,
textarea {
  min-height: 46px;
  width: 100%;
  padding: 11px;
  border: 1px solid #cddbd1;
  border-radius: 7px;
  background: #fcfdfc;
  color: #244638;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: #0b615e;
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-height: 44px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.assistants {
  padding: 16px 0;
}
summary {
  cursor: pointer;
  min-height: 40px;
  line-height: 40px;
  font-weight: 600;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.count-line {
  display: grid;
  grid-template-columns: 2fr 90px 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e4ebe5;
  padding: 10px 0;
}
.total {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.total strong {
  font-size: 28px;
  font-weight: 550;
}
.stock-line {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}
.subpanel {
  border: 1px solid #dce5df;
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
}
.location {
  border-top: 1px solid #dce5df;
  margin-top: 18px;
  padding-top: 10px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  color: #7f8f84;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 10px;
  border-bottom: 1px solid #dde6df;
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid #edf1ee;
}
td small {
  display: block;
  margin-top: 5px;
}
td button {
  font-size: 11px;
  min-height: 36px;
}
.alert,
.notice,
.queue {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 18px 0;
}
.alert {
  background: #fff0ed;
  color: #973e2e;
}
.notice {
  background: #e4f1e7;
  color: #235c3e;
}
.queue {
  background: #fff7e7;
  border: 1px solid #e8d4a7;
  color: #705b32;
}
.queue > span {
  margin: 0 20px;
}
.queue pre,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  max-height: 450px;
  overflow: auto;
}
footer {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #8b9b90;
  margin: 30px 0;
}
.modal {
  position: fixed;
  inset: 0;
  background: #12372ad0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 24px;
}
.modal > div {
  background: white;
  border-radius: 12px;
  max-width: 950px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
}
.modal button {
  float: right;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #103c39;
  padding: 15vh 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story .brand-mark {
  width: 64px;
  height: 64px;
  font-size: 40px;
  margin-bottom: 38px;
}
.login-story h1 {
  font-size: 58px;
  line-height: 1.1;
  max-width: 380px;
  font-family: Georgia, serif;
  font-weight: 400;
  color: #eaf2df;
}
.login-story p {
  color: #a5c6b5;
}
.login-story .eyebrow {
  color: #a9c2a1;
  font-size: 10px;
}
.login-flow {
  color: #bdd7b6;
  border-top: 1px solid #386157;
  margin-top: 50px;
  padding-top: 28px;
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.login-form {
  align-self: center;
  margin: 40px auto;
  max-width: 420px;
  width: 80%;
}
.login-form h2 {
  font-size: 30px;
  margin-top: 28px;
}
.login-form > p {
  font-size: 13px;
}
.login-form .primary {
  width: 100%;
  margin: 15px 0;
}
.demo-help {
  margin-top: 15px;
  color: #738677;
  font-size: 12px;
}
@media (max-width: 1050px) {
  aside {
    width: 195px;
    padding: 26px 12px;
  }
  main {
    padding: 26px 24px;
  }
  .brand {
    font-size: 11px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stock-line {
    grid-template-columns: 1fr 1fr;
  }
  .count-line {
    grid-template-columns: 1.4fr 65px 1fr;
  }
  h1 {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  aside {
    position: relative;
    width: 100%;
    height: auto;
    padding: 14px 18px;
  }
  .brand {
    font-size: 13px;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 12px;
  }
  nav button {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav button span {
    width: 20px;
  }
  main {
    padding: 18px 16px;
  }
  header {
    align-items: flex-start;
  }
  .user strong {
    max-width: 130px;
  }
  h1 {
    font-size: 22px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .count-line {
    grid-template-columns: 1fr 70px;
  }
  .count-line > .field:last-child {
    grid-column: 1/-1;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 35px 10%;
  }
  .login-story h1 {
    font-size: 38px;
  }
  .login-story .brand-mark,
  .login-flow {
    display: none;
  }
  .login-form {
    margin: 35px auto;
  }
  .stock-line {
    grid-template-columns: 1fr 1fr;
  }
  .section-head {
    align-items: flex-start;
  }
  header .user {
    font-size: 10px;
  }
}

.modal > form {
  background: white;
  border-radius: 12px;
  max-width: 950px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
}
@media (min-width: 761px) and (max-width: 900px) {
  aside {
    width: 170px;
  }
  main {
    padding: 20px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .count-line {
    grid-template-columns: 1fr 65px;
  }
  .count-line > .field:last-child {
    grid-column: 1/-1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .user {
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .brand {
    letter-spacing: 0.5px;
    font-size: 10px;
  }
  nav button {
    padding: 12px 8px;
    font-size: 13px;
  }
}

.security-panel {
  max-width: 680px;
  margin: 40px auto;
  padding: 28px;
}
.secret-value {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #edf7f4;
  border-radius: 8px;
  margin: 16px 0;
  font-family: monospace;
}
