* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f7f9;
  color: #20272b;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
aside {
  position: fixed;
  width: 224px;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid #e6e8eb;
  padding: 35px 23px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #283631;
  text-decoration: none;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.brand > span {
  font-size: 23px;
}
.dot,
.mint {
  color: #309f7a;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #9a9fa5;
  margin: 57px 12px 17px;
}
.nav {
  padding: 14px;
  border-radius: 8px;
  background: #eaf5ef;
  color: #26795e;
  font-weight: 600;
}
.aside-bottom {
  position: absolute;
  bottom: 32px;
  font-size: 12px;
  line-height: 2;
}
.aside-bottom small {
  color: #939a9e;
  font-size: 10px;
}
.status {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #38a77e;
  border-radius: 50%;
  margin-right: 7px;
}
main {
  margin-left: 224px;
  padding: 0 48px;
  max-width: 1600px;
}
header {
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
}
button,
select,
textarea,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dde2e3;
  background: #fff;
  border-radius: 7px;
  padding: 10px 14px;
  color: #37433e;
}
button:hover {
  border-color: #45a583;
  background: #f1faf6;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
header button {
  margin-left: 8px;
  font-size: 12px;
}
.muted {
  color: #7e888d;
}
.intro {
  padding: 44px 0 38px;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #568777;
}
h1 {
  font-size: 43px;
  letter-spacing: -1.8px;
  font-weight: 650;
  line-height: 1.12;
  margin: 18px 0;
}
p {
  line-height: 1.6;
}
.intro p {
  color: #7c878c;
  font-size: 14px;
}
.orbit {
  position: absolute;
  right: 8%;
  top: 38px;
  font-size: 190px;
  line-height: 1;
  color: #d9ebe1;
  transform: rotate(15deg);
  user-select: none;
}
.workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid #e2e6e8;
  border-radius: 12px;
  padding: 25px;
  min-width: 0;
  box-shadow: 0 3px 6px #253b2c03;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.step {
  border: 1px solid #e2e8e4;
  border-radius: 6px;
  font-size: 10px;
  padding: 5px;
  color: #718679;
}
.tag {
  font-size: 10px;
  margin-left: auto;
  color: #7a858b;
  background: #f2f4f5;
  padding: 5px 8px;
  border-radius: 4px;
}
.upload {
  display: flex !important;
  border: 1px dashed #bdcec5;
  background: #fafcfb;
  border-radius: 9px;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 25px;
  cursor: pointer;
}
.upload span:last-of-type {
  font-size: 11px;
  color: #8b9599;
}
.upload-icon {
  font-size: 25px;
  color: #368865;
  background: #e9f3ed;
  border-radius: 10px;
  padding: 4px 13px;
}
.upload strong {
  font-size: 13px;
}
.divider {
  text-align: center;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #a1a8ac;
  margin: 22px 0 15px;
}
.samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.samples button {
  text-align: left;
  font-size: 20px;
  color: #419778;
  padding: 14px 12px;
}
.samples b {
  color: #47534d;
  font-size: 11px;
  margin-left: 4px;
}
.samples small {
  display: block;
  color: #8c9599;
  font-size: 10px;
  margin-top: 7px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 18px;
}
select,
textarea {
  display: block;
  border: 1px solid #dfe4e5;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  padding: 11px;
  margin-top: 9px;
  color: #4c575c;
}
textarea {
  resize: vertical;
}
select:focus,
textarea:focus,
input:focus {
  outline: 2px solid #92d8bc;
  outline-offset: 2px;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  margin-top: 23px;
}
.slider-label label {
  margin: 0;
}
.slider-label b {
  font-size: 11px;
  color: #368969;
}
input[type="range"] {
  width: 100%;
  accent-color: #348b68;
  margin: 15px 0 0;
}
.hint {
  font-size: 11px;
  color: #8a9498;
  line-height: 1.6;
}
.model-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f6f8f7;
  border-radius: 7px;
  margin: 24px 0 19px;
  color: #749584;
}
.model-note strong {
  font-size: 11px;
  color: #54675d;
}
.model-note p {
  font-size: 11px;
  color: #8b9590;
  margin: 6px 0 0;
}
.primary {
  background: #287a58;
  border-color: #287a58;
  color: white;
  width: 100%;
  font-weight: 600;
  padding: 13px;
}
.primary:hover {
  background: #1e6346;
  color: white;
}
.primary span {
  float: right;
}
details {
  margin: 20px 0 0;
  font-size: 11px;
  color: #66776b;
}
summary {
  cursor: pointer;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #a1aaad;
  font-size: 10px;
  padding: 30px 0;
}
footer span {
  letter-spacing: 1px;
  font-size: 9px;
}
#message:not(:empty) {
  padding: 14px;
  margin-bottom: 15px;
  background: #fff3dc;
  border-radius: 7px;
  color: #715527;
}
.dataset-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  margin: 24px 0 12px;
}
.table-wrap {
  overflow: auto;
  max-height: 230px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
  white-space: nowrap;
}
th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #edf0ef;
}
th {
  background: #f4f7f5;
}
.results {
  margin-top: 24px;
}
.scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.score {
  padding: 20px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
}
.score:first-child {
  background: #edf8f1;
  border-color: #a8d6b9;
}
.score strong {
  font-size: 30px;
  display: block;
  margin: 12px 0;
}
.score small {
  color: #86938b;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  margin: 28px 0;
}
h3 {
  font-size: 14px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 13px 0 5px;
}
.bar {
  height: 7px;
  background: #edf1ef;
  border-radius: 3px;
}
.bar div {
  background: #62ad8c;
  height: 100%;
  border-radius: 3px;
}
.chart {
  overflow: auto;
}
.chart svg {
  width: 100%;
  height: 220px;
}
.prediction {
  border-top: 1px solid #e5ebe7;
  padding-top: 12px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.fields input {
  width: 100%;
  padding: 10px;
  border: 1px solid #dae2dd;
  border-radius: 5px;
  margin-top: 8px;
}
output {
  display: block;
  font-size: 24px;
  color: #287a58;
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  aside {
    width: 185px;
    padding: 30px 15px;
  }
  main {
    margin-left: 185px;
    padding: 0 25px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .orbit {
    font-size: 140px;
    right: 0;
    top: 75px;
    opacity: 0.6;
  }
}
@media (max-width: 650px) {
  aside {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 18px;
  }
  h1 {
    font-size: 36px;
  }
  .orbit {
    display: none;
  }
  header {
    height: 75px;
  }
  header > span {
    display: none;
  }
  .scores,
  .results-grid,
  .fields {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .samples {
    gap: 7px;
  }
  footer span {
    display: none;
  }
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
a.nav {
  display: block;
  text-decoration: none;
  margin-bottom: 7px;
}
.nav:not(.active) {
  background: transparent;
  color: #78827d;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label > input:not([type="checkbox"]):not([type="range"]) {
  display: block;
  width: 100%;
  border: 1px solid #dfe4e5;
  border-radius: 6px;
  padding: 11px;
  margin-top: 9px;
  background: #fff;
  color: #4c575c;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}
.check input {
  accent-color: #287a58;
}
.profile-wrap {
  margin-top: 12px;
  max-height: 360px;
}
.profile-wrap td:last-child {
  white-space: normal;
  min-width: 150px;
}
.profile-wrap input {
  accent-color: #287a58;
}
.warnings:not(:empty) {
  background: #fff9eb;
  border: 1px solid #f0e6c9;
  border-radius: 8px;
  padding: 10px 15px;
  margin: 18px 0;
  color: #746240;
  font-size: 12px;
}
.warnings p {
  margin: 7px 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.metric-card {
  border: 1px solid #dfe8e1;
  border-radius: 8px;
  padding: 16px;
}
.metric-card span,
.metric-card small {
  display: block;
  color: #738378;
  font-size: 11px;
}
.metric-card strong {
  display: block;
  font-size: 25px;
  margin: 9px 0;
}
.prediction {
  margin-top: 24px;
}
.prediction button {
  margin: 10px 0;
}
.prediction .primary {
  max-width: 360px;
}
#historyPanel,
#guide {
  margin-top: 24px;
}
#guide p {
  color: #758078;
  font-size: 12px;
}
#guide h3 {
  margin-top: 23px;
}
pre {
  max-height: 350px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.6;
  background: #f6f8f6;
  padding: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}
.busy-panel {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #b9dac9;
  background: #eef9f2;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px #17352315;
}
.busy-panel button {
  margin-left: auto;
}
.spinner {
  border: 2px solid #bddbc9;
  border-top-color: #287a58;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.dragging {
  background: #e3f4e8 !important;
  border-color: #287a58 !important;
}
#perClass {
  margin-top: 18px;
}
#probabilities {
  max-width: 420px;
  margin: 15px 0;
}
#runSummary h3 {
  font-size: 20px;
}
#runSummary p {
  font-size: 12px;
  color: #77867b;
}
.score strong {
  font-size: 27px;
}
.score small {
  line-height: 1.6;
}
.score {
  padding: 16px;
}
header .actions {
  justify-content: flex-end;
}
header button {
  margin: 0;
}
#batchSummary {
  font-size: 12px;
  color: #738378;
}
#batchPreview {
  margin-top: 15px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #4aa27a;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  header {
    height: auto;
    min-height: 75px;
    padding: 15px 0;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .busy-panel {
    font-size: 11px;
  }
  .busy-panel button {
    font-size: 10px;
    padding: 8px;
  }
  .two-columns {
    grid-template-columns: 1fr 1fr;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  aside,
  header,
  .intro,
  #editor,
  #historyPanel,
  #guide,
  footer,
  #message,
  #busyPanel,
  .actions,
  .prediction,
  button {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .results {
    display: block !important;
  }
  .results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .score,
  .metric-card,
  .warnings {
    break-inside: avoid;
  }
  .table-wrap {
    overflow: visible;
    max-height: none;
  }
  details {
    display: block;
  }
  details pre {
    max-height: none;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  p {
    line-height: 1.4;
  }
}
.scores {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.score {
  min-width: 0;
  overflow-wrap: anywhere;
}
.score strong {
  font-size: clamp(20px, 2.5vw, 27px);
}
.results-grid > div {
  min-width: 0;
}
@media (max-width: 850px) {
  aside {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 0 20px;
  }
  header > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .scores {
    grid-template-columns: 1fr;
  }
}
