.sx {
  --sx-green: #165646;
  --sx-ink: #143c36;
  color: var(--sx-ink);
  background: #f6f8f6;
  border: 1px solid #d5e0d9;
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
  font:
    14px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  text-align: left;
}
.sx * {
  box-sizing: border-box;
}
.sx h2 {
  font:
    600 25px/1.25 "Segoe UI",
    Arial,
    sans-serif;
  margin: 5px 0 12px;
}
.sx h3 {
  font:
    600 17px/1.4 "Segoe UI",
    Arial,
    sans-serif;
  margin: 0 0 12px;
}
.sx p {
  margin: 8px 0 16px;
  max-width: 1050px;
}
.sx small {
  font-size: 11px;
  line-height: 1.5;
  color: #596f69;
}
.sx .sx-kicker {
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 700;
  color: #4c7465;
}
.sx button,
.sx .sx-button {
  font:
    600 12px/1.4 "Segoe UI",
    Arial,
    sans-serif;
  border: 1px solid #c8d6ce;
  border-radius: 6px;
  padding: 9px 13px;
  background: white;
  color: #174f41;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.sx button:hover {
  background: #e4eee8;
}
.sx button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.sx button.sx-primary {
  background: #185947;
  color: white;
}
.sx button:focus-visible,
.sx input:focus-visible,
.sx select:focus-visible {
  outline: 3px solid #c7a466;
  outline-offset: 2px;
}
.sx-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.sx-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.sx-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.sx-metrics > div,
.sx-card {
  background: #fff;
  border: 1px solid #d8e1dc;
  border-radius: 9px;
  padding: 17px;
  min-width: 0;
}
.sx-metrics strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
}
.sx-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.sx-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.sx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
.sx-field input,
.sx-field select,
.sx textarea {
  width: 100%;
  min-height: 39px;
  border: 1px solid #bccfc3;
  border-radius: 6px;
  background: white;
  padding: 9px;
  color: #193e34;
  font:
    14px "Segoe UI",
    Arial,
    sans-serif;
}
.sx textarea {
  min-height: 90px;
  resize: vertical;
}
.sx-scroll {
  overflow: auto;
  width: 100%;
}
.sx table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
.sx th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #eaf0ed;
  padding: 11px;
}
.sx td {
  border-bottom: 1px solid #e0e7e2;
  padding: 12px 10px;
}
.sx td small {
  display: block;
  white-space: normal;
  min-width: 100px;
}
.sx-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 4px;
  background: #e4eee9;
  color: #175444;
  white-space: normal;
}
.sx-badge.warn {
  background: #fbefd7;
  color: #7d5621;
}
.sx-badge.bad {
  background: #fae3df;
  color: #93382c;
}
.sx-status {
  font-size: 12px;
  color: #576f64;
  min-height: 22px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.sx-note {
  padding: 12px 15px;
  background: #edf2ee;
  border-left: 3px solid #b6a26b;
  font-size: 12px;
  margin: 12px 0;
}
.sx-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.sx-block {
  display: block !important;
  width: 100%;
  text-align: left !important;
  padding: 16px !important;
}
.sx-block.selected {
  border: 2px solid #1c6651;
  background: #e8f2ec;
}
.sx-block progress {
  width: 100%;
  accent-color: #28765b;
  height: 6px;
}
.sx pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 340px;
  overflow: auto;
  background: #102e28;
  color: #dbede4;
  padding: 15px;
  border-radius: 7px;
  font:
    12px/1.5 Consolas,
    monospace;
}
.sx details {
  padding: 10px 0;
}
.sx summary {
  cursor: pointer;
  font-weight: 600;
}
.sx-steps {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.sx-steps span {
  padding: 6px 10px;
  border-radius: 5px;
  background: #e5ece7;
  font-size: 12px;
}
.sx-steps span.active {
  background: #1c5e49;
  color: white;
}
.sx input[type="checkbox"] {
  accent-color: #1b664b;
  width: 16px;
  height: 16px;
}
.sx-link {
  color: #1c6750;
}
.sx-empty {
  padding: 25px;
  text-align: center;
  color: #65766e;
}
.sx-sticky {
  position: sticky;
  top: 42px;
  z-index: 4;
  background: #f6f8f6;
  padding: 12px 0;
}
.sx-split-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.sx button[aria-pressed="true"] {
  background: #185947;
  color: white;
}
.sx-full {
  grid-column: 1/-1;
}
.sx .sx-negative {
  color: #a4462d;
}
.sx .sx-positive {
  color: #17624b;
}
@media (max-width: 950px) {
  .sx-grid {
    grid-template-columns: 1fr;
  }
  .sx-fields {
    grid-template-columns: repeat(2, 1fr);
  }
  .sx-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .sx-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .sx {
    padding: 15px;
  }
  .sx-fields {
    grid-template-columns: 1fr;
  }
  .sx-metrics strong {
    font-size: 20px;
  }
}
