:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20332c;
  background: #f5f7f5;
  font-synthesis: none;
  --ink: #20332c;
  --muted: #7a8981;
  --green: #087a52;
  --line: #e3e9e4;
  --soft: #eef4ef;
  --red: #ba4744;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--green);
}
svg {
  display: block;
  flex-shrink: 0;
}
button svg {
  width: 17px;
  height: 17px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f2f6f2;
  border-color: #c9d7cd;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #086845;
}
button.danger {
  color: var(--red);
  border-color: #ebd3cf;
}
button.ghost {
  background: transparent;
  border-color: transparent;
}
button.small {
  padding: 7px 11px;
  font-size: 12px;
}
button.icon {
  padding: 8px;
}
button.link {
  border: 0;
  padding: 3px 0;
  background: none;
  color: var(--green);
}
.boot {
  display: grid;
  place-content: center;
  min-height: 100vh;
  text-align: center;
}
.brand-mark {
  display: grid;
  place-content: center;
  background: #97e7bd;
  color: #153a2a;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -3px;
  padding-right: 3px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 226px;
  background: #13251f;
  color: #98afa2;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 27px 16px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  color: #f1fbf3;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand-note {
  font-size: 10px;
  letter-spacing: 1.7px;
  margin: 7px 0 0 54px;
  color: #86a18e;
  text-transform: uppercase;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 42px 13px 13px;
  color: #6c8978;
  font-weight: 700;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  justify-content: flex-start;
  background: none;
  border: none;
  color: #9bb1a3;
  padding: 13px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  gap: 12px;
}
.nav button svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}
.nav button:hover {
  background: #20372b;
  color: #edf8ef;
}
.nav button.active {
  background: #294335;
  color: #baf3cc;
  font-weight: 650;
}
.nav-count {
  margin-left: auto;
  background: #3b5745;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #294034;
  padding: 19px 9px 0;
  font-size: 11px;
}
.server-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #87dbac;
  display: inline-block;
  margin-right: 7px;
}
.sidebar-bottom p {
  color: #6f8b78;
  line-height: 1.6;
  margin: 10px 0 14px;
}
.sidebar-bottom button {
  color: #a4b9aa;
  padding-left: 0;
  font-size: 11px;
}
.workspace {
  margin-left: 226px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.crumb {
  font-size: 12px;
  color: #8c9991;
  display: flex;
  align-items: center;
  gap: 11px;
}
.crumb strong {
  font-weight: 550;
  color: #364e40;
}
.top-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  background: #f0f3ef;
  color: #7c8b80;
  letter-spacing: 0.1px;
}
.badge.green {
  background: #edf6ee;
  color: #3b7952;
}
.badge.amber {
  background: #fcf4df;
  color: #987620;
}
.badge.red {
  background: #fff0ee;
  color: #b35146;
}
.badge.dark {
  background: #273c30;
  color: #bae8c6;
}
.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.main {
  padding: 30px 36px 45px;
  max-width: 1570px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: #91a094;
  margin-bottom: 9px;
}
.page-head h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 9px;
}
.sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.controlbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 20px;
  gap: 20px;
  margin-bottom: 24px;
}
.control-left {
  display: flex;
  align-items: center;
  gap: 13px;
}
.control-icon {
  height: 35px;
  width: 35px;
  display: grid;
  place-content: center;
  background: #eef4ee;
  color: #678a71;
  border-radius: 9px;
}
.control-title {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 4px;
}
.control-description {
  font-size: 10px;
  color: #87948a;
}
.control-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.control-actions select {
  font-size: 12px;
  width: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #3e5547;
  border-radius: 8px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0ec;
}
.card-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.1px;
}
.card-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 23px;
}
.metric {
  padding: 21px 23px;
  position: relative;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7e8d81;
}
.metric-top svg {
  width: 17px;
  height: 17px;
  color: #90a595;
}
.metric-value {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 15px 0 10px;
}
.metric-bottom {
  font-size: 10px;
  color: #91a094;
  display: flex;
  align-items: center;
  gap: 6px;
}
.metric-bottom .tiny-line {
  display: inline-block;
  width: 13px;
  height: 1px;
  background: #b7c8ba;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 21px;
  margin-bottom: 22px;
}
.welcome {
  padding: 25px;
  display: flex;
  gap: 18px;
  background: linear-gradient(120deg, #f1f7ee, #fff);
}
.welcome-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #deeddf;
  display: grid;
  place-content: center;
  color: #5b8964;
  flex-shrink: 0;
}
.welcome h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 1px 0 9px;
}
.welcome p {
  font-size: 12px;
  line-height: 1.8;
  color: #7d8e7e;
  max-width: 460px;
  margin: 0 0 18px;
}
.setup-list {
  padding: 0 23px;
}
.setup-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0ec;
  font-size: 12px;
}
.setup-row:last-child {
  border-bottom: 0;
}
.step-dot {
  width: 23px;
  height: 23px;
  border: 1px solid #dce6dc;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: #9cad9f;
  font-size: 11px;
  flex-shrink: 0;
}
.step-dot.done {
  background: #e9f5e9;
  border-color: #cfe4d1;
  color: #3c8251;
}
.setup-row .step-text {
  flex: 1;
}
.step-meta {
  color: #96a296;
  font-size: 10px;
  margin-top: 4px;
}
.source-box {
  padding: 24px;
}
.source-status {
  display: flex;
  gap: 13px;
  align-items: center;
}
.source-wave {
  width: 41px;
  height: 41px;
  display: grid;
  place-content: center;
  border: 1px solid #e7ece5;
  border-radius: 10px;
  color: #99b19d;
}
.source-box h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.source-box p {
  font-size: 11px;
  line-height: 1.8;
  color: #91a094;
  margin: 0;
}
.source-details {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.source-stat .label {
  font-size: 10px;
  color: #9aaa9b;
}
.source-stat .number {
  font-size: 18px;
  margin-top: 7px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.notice {
  display: flex;
  gap: 10px;
  border: 1px solid #e2eadc;
  background: #f2f7ec;
  color: #668351;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.notice.amber {
  background: #fffaf0;
  border-color: #f0e5cc;
  color: #96772e;
}
.notice.red {
  background: #fff4f1;
  border-color: #efd9d1;
  color: #a54e42;
}
.notice svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.notice strong {
  font-weight: 650;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #9ba69d;
  font-weight: 600;
  padding: 13px 22px;
  background: #fafbf9;
  border-bottom: 1px solid #eaf0e8;
}
td {
  padding: 18px 22px;
  border-bottom: 1px solid #edf0ec;
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfa;
}
.identity {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-content: center;
  background: #eaf1e5;
  color: #5e805a;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.identity .name {
  font-weight: 650;
  margin-bottom: 5px;
}
.address {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  color: #95a094;
}
.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  letter-spacing: -0.1px;
}
.td-sub {
  font-size: 10px;
  color: #9aa79b;
  margin-top: 5px;
}
.td-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 58px 25px 60px;
  min-height: 250px;
}
.empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-content: center;
  border-radius: 15px;
  background: #f0f5ec;
  color: #8aa47f;
  margin-bottom: 18px;
}
.empty-icon svg {
  width: 27px;
  height: 27px;
}
.empty h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin: 0 0 9px;
}
.empty p {
  font-size: 12px;
  color: #94a091;
  line-height: 1.8;
  max-width: 400px;
  margin: 0 0 20px;
}
.table-foot {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
  font-size: 10px;
  color: #9aaa9c;
  gap: 12px;
}
.worker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.worker-card {
  padding: 23px;
}
.worker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.worker-card h3 {
  font-size: 15px;
  margin: 0 0 7px;
  letter-spacing: -0.3px;
}
.worker-amount {
  font-size: 27px;
  margin: 24px 0 5px;
  letter-spacing: -0.8px;
}
.unit {
  font-size: 12px;
  font-weight: 450;
  color: #94a094;
  margin-left: 5px;
}
.worker-caption {
  font-size: 10px;
  color: #8e9e8f;
}
.worker-lines {
  border-top: 1px solid #edf1eb;
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 14px;
  color: #91a094;
}
.line strong {
  font-weight: 550;
  color: #4f6755;
}
.worker-buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 22px;
}
.worker-buttons button {
  font-size: 11px;
}
.split-note {
  margin-top: 23px;
  padding: 18px 22px;
  background: #f0f5ed;
  border: 1px solid #e0e9db;
  border-radius: 10px;
  display: flex;
  gap: 13px;
  font-size: 12px;
  line-height: 1.8;
  color: #70856b;
}
.split-note svg {
  color: #77986c;
  width: 19px;
  height: 19px;
  margin-top: 2px;
}
.split-note strong {
  color: #496f46;
}
.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filters button {
  font-size: 11px;
  padding: 7px 11px;
  background: transparent;
  border-color: transparent;
  color: #91a094;
}
.filters button.selected {
  background: #edf4e9;
  color: #5f8055;
}
.search {
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 7px;
  min-width: 180px;
  font-size: 11px;
}
.event-kind {
  display: flex;
  align-items: center;
  gap: 9px;
}
.event-icon {
  width: 25px;
  height: 25px;
  background: #eff4eb;
  border-radius: 7px;
  display: grid;
  place-content: center;
  color: #75946a;
}
.event-icon svg {
  width: 13px;
  height: 13px;
}
.event-icon.error {
  background: #fff0ec;
  color: #b77764;
}
.event-time {
  font-size: 10px;
  color: #9ba99c;
}
.help-card {
  padding: 24px;
  font-size: 12px;
  line-height: 1.9;
  color: #7f927d;
}
.help-card h3 {
  color: #3f6041;
  font-size: 13px;
  margin: 0 0 10px;
}
.formula {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: #f3f7ef;
  border: 1px solid #e6ecdf;
  border-radius: 8px;
  padding: 15px;
  font-size: 12px;
  color: #5c8252;
  margin: 15px 0;
}
.example-grid {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.example-cell {
  padding: 13px 17px;
  background: #f6f9f2;
  border: 1px solid #e4ebdf;
  border-radius: 9px;
  flex: 1;
}
.example-cell strong {
  display: block;
  font-size: 21px;
  color: #547d47;
  margin-bottom: 4px;
}
.example-cell span {
  font-size: 10px;
}
.settings-form {
  display: grid;
  gap: 20px;
}
.settings-section {
  padding: 25px;
}
.settings-section h2 {
  font-size: 15px;
  margin: 0 0 6px;
}
.settings-section > .sub {
  margin-bottom: 23px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field.wide {
  grid-column: 1/-1;
}
.field label {
  font-size: 11px;
  font-weight: 600;
  color: #637b65;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dde7d9;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 12px;
  color: #3b5a3c;
  min-height: 39px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #a6c89a;
  outline-offset: 1px;
  border-color: #a6c89a;
}
.field small {
  color: #a0ac9c;
  font-size: 10px;
  line-height: 1.65;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field input[readonly] {
  background: #f6f8f3;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #62785e;
  cursor: pointer;
}
.checkbox input {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
}
.settings-actions {
  position: sticky;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 5px 25px #213a1d08;
  gap: 16px;
}
.muted {
  color: var(--muted);
}
.settings-actions span {
  font-size: 11px;
  color: #91a08c;
}
dialog {
  border: 1px solid #dfe8d9;
  border-radius: 14px;
  width: min(650px, calc(100vw - 28px));
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 25px 100px #12221030;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #0b1b1766;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 24px 27px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.modal-head p {
  color: #8d9f88;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.modal-body {
  padding: 23px 27px;
  display: grid;
  gap: 21px;
  overflow: auto;
  max-height: calc(90vh - 180px);
}
.modal-actions {
  padding: 18px 27px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-actions .right {
  display: flex;
  gap: 8px;
}
.modal-actions .hint {
  font-size: 10px;
  color: #94a38e;
}
.assign-card {
  border: 1px solid #e0e8db;
  border-radius: 9px;
  padding: 14px;
}
.assign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.assign-head small {
  font-size: 10px;
  color: #9bab94;
}
.assign-fields {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #edf1e8;
}
.assign-fields[hidden] {
  display: none;
}
.assign-list {
  display: grid;
  gap: 11px;
}
.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8fa083;
  font-weight: 650;
  margin-bottom: 12px;
}
.details > summary {
  cursor: pointer;
  font-size: 11px;
  color: #829674;
  padding: 13px 0;
}
.details .form-grid {
  padding-top: 9px;
}
.modal-note {
  font-size: 11px;
  color: #819876;
  background: #f1f7eb;
  border: 1px solid #e0e9d7;
  padding: 13px 15px;
  line-height: 1.8;
  border-radius: 8px;
}
.error-box {
  background: #fff2ed;
  border: 1px solid #efd8ce;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 11px;
  color: #ae6954;
  line-height: 1.75;
}
.error-box[hidden] {
  display: none;
}
.modal-tabs {
  display: flex;
  background: #f4f7ef;
  border-radius: 8px;
  padding: 4px;
  gap: 3px;
}
.modal-tabs button {
  flex: 1;
  background: none;
  border: 0;
  padding: 9px;
  font-size: 11px;
  color: #91a088;
}
.modal-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 4px #34452c10;
  color: #507148;
}
.private-note {
  font-size: 10px;
  color: #9ba98f;
  line-height: 1.8;
}
.address-full {
  font:
    12px/1.9 "SFMono-Regular",
    Consolas,
    monospace;
  word-break: break-all;
  background: #f4f7f0;
  border: 1px solid #e3ebdc;
  padding: 15px;
  border-radius: 8px;
}
.raw-event {
  font:
    10px/1.7 "SFMono-Regular",
    Consolas,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 45vh;
  overflow: auto;
  color: #78906c;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  padding: 60px;
  background: #13251f;
  display: flex;
  flex-direction: column;
  color: #f3faf0;
}
.login-story .brand {
  padding: 0;
}
.login-story h1 {
  font-size: 43px;
  letter-spacing: -1.8px;
  line-height: 1.17;
  font-weight: 550;
  margin: auto 0 23px;
  max-width: 430px;
}
.login-story h1 span {
  color: #9cdaa7;
}
.login-story p {
  font-size: 13px;
  line-height: 1.9;
  color: #91ae95;
  max-width: 370px;
}
.login-flow {
  display: flex;
  gap: 9px;
  margin: 38px 0 auto;
  padding-top: 7px;
}
.login-flow span {
  padding: 10px 13px;
  font-size: 10px;
  border: 1px solid #3b5741;
  color: #b0c7ad;
  border-radius: 7px;
}
.login-footer {
  font-size: 10px;
  color: #69896c;
  margin-top: 65px;
  letter-spacing: 0.4px;
}
.login-form-pane {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-form {
  max-width: 350px;
  width: 100%;
}
.login-form .eyebrow {
  margin-bottom: 14px;
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin: 0 0 12px;
}
.login-form .sub {
  margin-bottom: 29px;
}
.login-form form {
  display: grid;
  gap: 19px;
}
.login-form button {
  min-height: 43px;
}
.login-help {
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9ba68d;
  line-height: 1.9;
}
.login-help code {
  color: #6e865d;
  background: #eef4e7;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 10px;
}
.mobile-menu {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 100;
  background: #213e2c;
  color: white;
  padding: 12px 19px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 30px #17301825;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100vw - 30px);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #8b4c3d;
}
.busy-overlay {
  opacity: 0.7;
  pointer-events: none;
}
.mobile-shade {
  display: none;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 38px;
  }
  .metrics {
    gap: 20px;
  }
  .page-head {
    margin-bottom: 29px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
  }
  .workspace {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 25px;
  }
  .main {
    padding: 27px 25px;
  }
  .worker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-two {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  }
  td,
  th {
    padding-left: 17px;
    padding-right: 17px;
  }
  .metric {
    padding: 18px;
  }
  .metric-value {
    font-size: 28px;
  }
}
@media (max-width: 950px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-head {
    gap: 15px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .top-status .badge:first-child {
    display: none;
  }
  .controlbar {
    align-items: flex-start;
    gap: 13px;
    flex-wrap: wrap;
  }
  .control-actions {
    margin-left: auto;
  }
  .card-head {
    padding: 17px;
  }
  .worker-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main {
    padding: 24px 20px;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 35px;
  }
  .login-flow {
    flex-wrap: wrap;
  }
}
@media (max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s;
    width: 225px;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar.open + .mobile-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #162c1855;
    z-index: 19;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 61px;
    padding: 0 16px;
  }
  .mobile-menu {
    display: inline-flex;
    padding: 7px;
  }
  .crumb {
    gap: 7px;
    font-size: 10px;
  }
  .crumb > span {
    display: none;
  }
  .top-status .badge {
    font-size: 9px;
  }
  .main {
    padding: 22px 15px;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head .actions {
    width: 100%;
  }
  .page-head .actions button {
    flex: 1;
  }
  .controlbar {
    padding: 14px;
  }
  .control-actions {
    width: 100%;
    margin: 0;
  }
  .control-actions button.primary {
    flex: 1;
  }
  .control-description {
    font-size: 9px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 17px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 27px;
    margin: 12px 0 9px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-bottom {
    font-size: 9px;
  }
  .worker-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .welcome {
    padding: 20px;
    gap: 13px;
  }
  .welcome h2 {
    font-size: 16px;
  }
  .welcome-mark {
    width: 34px;
    height: 34px;
  }
  .filters {
    padding: 12px;
    gap: 4px;
  }
  .search {
    width: 100%;
    margin: 5px 0 0;
  }
  .card-head {
    padding: 17px;
  }
  .empty {
    padding: 40px 19px;
  }
  .table-foot {
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .modal-head,
  .modal-body,
  .modal-actions {
    padding-left: 20px;
    padding-right: 20px;
  }
  .modal-body {
    max-height: calc(90vh - 190px);
  }
  .modal-actions .hint {
    max-width: 140px;
    font-size: 9px;
  }
  .settings-section {
    padding: 20px;
  }
  .settings-actions {
    padding: 13px;
    bottom: 8px;
  }
  .settings-actions span {
    font-size: 10px;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 25px 28px;
  }
  .login-story h1 {
    font-size: 27px;
    line-height: 1.22;
    margin: 35px 0 15px;
    max-width: 310px;
  }
  .login-story p {
    display: none;
  }
  .login-flow {
    margin: 13px 0 7px;
  }
  .login-footer {
    display: none;
  }
  .login-form-pane {
    padding: 35px 26px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .example-grid {
    gap: 7px;
  }
  .example-cell {
    padding: 10px;
  }
  .example-cell strong {
    font-size: 18px;
  }
  .split-note {
    padding: 15px;
    font-size: 11px;
  }
}
