.agent-editor-fields {
  display: grid;
  gap: 15px;
}

.agent-editor-fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-editor-fields .full {
  grid-column: 1 / -1;
}

.agent-editor-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #365368;
  font-size: 0.75rem;
  font-weight: 800;
}

.agent-editor-fields input,
.agent-editor-fields select,
.agent-editor-fields textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  color: #17384f;
  font: inherit;
  font-weight: 400;
  background: white;
  border: 1px solid #bdcbd2;
}

.agent-editor-fields textarea {
  resize: vertical;
}

.agent-editor-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  min-height: 42px;
  padding: 10px;
  background: white;
  border: 1px solid #d7e0e3;
}

.agent-editor-check input {
  width: auto;
}

.agent-editor-check.locked {
  color: #22614f;
  background: #eaf4f0;
}

.agent-editor-note,
.agent-editor-error {
  margin: 0;
  padding: 11px 13px;
  color: #5d7180;
  font-size: 0.78rem;
  line-height: 1.45;
  background: #eef2f4;
  border-left: 3px solid #8197a5;
}

.agent-editor-error {
  margin: 0 24px 14px;
  color: #8c271f;
  background: #fff0ee;
  border-left-color: #b74439;
}

.agent-runtime-fields {
  padding-bottom: 22px;
  border-bottom: 1px solid #dbe2e5;
}

.agent-permissions {
  margin-top: 22px;
}

.agent-permissions header h3 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
}

.agent-permissions header p {
  margin: 4px 0 14px;
  color: #687b88;
  font-size: 0.78rem;
}

.agent-permissions > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-connection {
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: white;
  border: 1px solid #d6dfe3;
}

.agent-connection legend {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.agent-connection small {
  display: block;
  margin-bottom: 8px;
  color: #7a8b96;
}

.agent-connection > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.agent-connection label {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #385368;
  font-size: 0.72rem;
  text-transform: capitalize;
}

.agent-editor-review {
  padding: 24px;
  background: white;
  border: 1px solid #d8e1e5;
  border-top: 4px solid var(--gold);
}

.agent-editor-review > span {
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-editor-review h3 {
  margin: 5px 0 18px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.agent-editor-review dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #dce4e7;
}

.agent-editor-review dl div {
  padding: 12px;
  background: #f6f7f5;
}

.agent-editor-review dt {
  color: #72848f;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.agent-editor-review dd {
  margin: 4px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.agent-editor-review p {
  margin: 18px 0 0;
  color: #536a79;
}

@media (max-width: 760px) {
  .agent-editor-fields.two,
  .agent-permissions > div,
  .agent-editor-review dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-editor-fields .full {
    grid-column: auto;
  }
}
