.triage-gateway-wrap {
  margin: 1rem 0;
}

.triage-gateway-head {
  margin-bottom: 1rem;
}

.triage-gateway-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
}

.triage-gateway-side,
.triage-gateway-main {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 1rem;
}

.triage-gateway-list,
.triage-gateway-sets {
  margin: 0;
  padding-left: 1rem;
}

.triage-gateway-list li {
  margin: 0.25rem 0;
}

.triage-gateway-list li.is-active a {
  font-weight: 700;
}

.triage-gateway-msg {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: 6px;
}

.triage-gateway-ok {
  background: #eaf8ee;
  border: 1px solid #7bc28f;
}

.triage-gateway-error {
  background: #fdeceb;
  border: 1px solid #d97070;
}

#triage-gateway-editor .tg-card {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

#triage-gateway-editor .tg-sub {
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: #fafafa;
}

#triage-gateway-editor .tg-question {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.6rem 0;
  background: #fff;
}

#triage-gateway-editor .tg-grid {
  display: grid;
  gap: 0.6rem;
}

#triage-gateway-editor .tg-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#triage-gateway-editor .tg-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#triage-gateway-editor label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 12px;
  font-weight: 600;
}

#triage-gateway-editor input,
#triage-gateway-editor textarea,
#triage-gateway-editor select {
  width: 100%;
  font-size: 13px;
}

#triage-gateway-editor .tg-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#triage-gateway-editor .tg-col-span-3 {
  grid-column: 1 / -1;
}

#triage-gateway-editor .tg-hidden {
  display: none;
}

.triage-gateway-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.triage-gateway-versions {
  margin-top: 1.25rem;
}

@media (max-width: 980px) {
  .triage-gateway-layout {
    grid-template-columns: 1fr;
  }

  #triage-gateway-editor .tg-grid-2,
  #triage-gateway-editor .tg-grid-3 {
    grid-template-columns: 1fr;
  }
}
