inf-agent-binding { display: block; }

.agent-binding { box-sizing: border-box; }
.agent-binding *, .agent-binding *::before, .agent-binding *::after { box-sizing: inherit; }
.agent-binding button { cursor: pointer; }
.agent-binding button:disabled { cursor: default; opacity: .65; }
.agent-binding :focus-visible { outline: 3px solid #6cbdd6; outline-offset: 2px; }
.agent-binding h3, .agent-binding p, .agent-binding pre { margin: 0; }

.agent-binding .icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(0, 0, 0, .15); color: inherit; font-size: 19px; }

.agent-binding .tabs { display: flex; gap: 6px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.agent-binding .tabs button { padding: 11px 9px 9px; color: inherit; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.agent-binding .tabs button[aria-selected="true"] { border-color: #4db1a7; font-weight: 700; }
.agent-binding .body { width: min(100%, 840px); padding: 20px; }
.agent-binding .body.with-agent-picker { width: 100%; }
.agent-binding .block + .block { margin-top: 20px; }
.agent-binding .field-label { display: block; color: inherit; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.agent-binding .muted { color: inherit; font-size: 13px; opacity: .85; }
.agent-binding .agent-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: 800px;
  min-height: 44px;
  gap: 10px;
}
.agent-binding .agent-name { overflow-wrap: anywhere; }
.agent-binding .agent-name.agent-selected { font-size: 18px; font-weight: 700; }
.agent-binding .agent-choice svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.agent-binding .agent-results-count { margin-top: 8px; }
.agent-binding .agent-grid .e-toolbar,
.agent-binding .agent-grid .e-toolbar .e-toolbar-items {
  background: transparent;
}
.agent-binding .agent-grid .inf-grid.e-grid .e-toolbar .e-search {
  width: 300px;
  max-width: calc(100cqw - 16px);
  background: rgba(0, 0, 0, .15);
}
.agent-binding .agent-grid .e-toolbar .e-search :is(.e-input, .e-search-icon, .e-clear-icon) { color: inherit; }
.agent-binding .agent-grid .e-toolbar .e-search input::placeholder { color: inherit; opacity: .8; }
.agent-binding .agent-grid { max-height: 42vh; overflow: auto; container-type: inline-size; }
.agent-binding .agent-grid .inf-grid.e-grid { min-width: 520px; }
.agent-binding .agent-grid .inf-grid.e-grid,
.agent-binding .agent-grid .inf-grid.e-grid :is(.e-rowcell, .e-headercelldiv, .e-emptyrow td) {
  color: inherit;
}
.agent-binding .agent-grid .e-grid :is(.e-rowcell, .e-headertext) { overflow-wrap: anywhere; }
.agent-binding .agent-grid .inf-grid.e-grid tr.e-row[aria-selected="true"]
  > .e-rowcell {
  background-color: rgba(0, 0, 0, .22);
}
.agent-binding .agent-grid .inf-grid.e-grid.e-gridhover tbody tr.e-row[role="row"]:hover
  > .e-rowcell:not(.e-indentcell):not(.e-updatedtd) {
  background-color: var(--agent-row-hover, rgba(0, 0, 0, .28));
  color: inherit;
}
.agent-binding .agent-grid tr.e-row[aria-selected="true"]:hover {
  --agent-row-hover: var(--inf-grouped-select-background);
}
.agent-binding .agent-grid .e-gridheader { position: sticky; top: 0; z-index: 1; backdrop-filter: blur(8px); }
.agent-binding .feedback .btn { margin-top: 8px; color: inherit; border-color: currentColor; }
.agent-binding .prompt-label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.agent-binding .prompt-label .field-label { margin: 0; }
.agent-binding .prompt-help-button { padding: 0; border: 0; background: transparent; color: inherit; }
.agent-binding .prompt { min-height: 88px; height: auto; resize: vertical; }
.agent-binding .prompt-help { margin-top: 6px; }

.agent-binding .test-context { padding: 10px 12px; border-radius: 6px; background: #e7f2f7; color: #365761; margin-bottom: 16px; font-size: 13px; }
.agent-binding .input-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; margin-bottom: 7px; }
.agent-binding .input-header .field-label { margin: 0; }
.agent-binding .json { font: 13px/1.55 Consolas, monospace; }
.agent-binding textarea.json { min-height: 117px; height: auto; resize: vertical; }
.agent-binding pre.json { min-height: 78px; padding: 10px 12px; border: 0; background: rgba(0, 0, 0, .15); color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-binding .test-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.agent-binding .result-label { margin-top: 17px; }
.agent-binding .feedback { border-radius: 6px; padding: 10px 12px; margin-top: 9px; font-size: 13px; }
.agent-binding .feedback.error { background: #fcebea; color: #842721; }
.agent-binding .feedback.success { background: #e5f3ed; color: #1c5b45; }
.agent-binding .feedback.pending { background: #e7f2f7; color: #365761; }
@media (max-width: 425px) {
  .agent-binding .body { padding-left: 14px; padding-right: 14px; }
  .agent-binding .tabs { padding: 0 14px; }
}
