.agent-setup {
  max-width: 42rem;
  color: #242925;
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.agent-setup h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.agent-intro, .agent-section > p, .agent-details > p, .agent-help > p { color: #505a51; }
.agent-examples + .agent-intro { margin-top: 0.75rem; }
.agent-examples { display: grid; gap: 0.375rem; margin-top: 0.75rem; padding-left: 0.875rem; border-left: 2px solid #c9d3c6; color: #242925; }
.agent-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; max-width: 32rem; }
.agent-form label, .agent-picker label { display: block; margin-bottom: 0.375rem; font-weight: 600; }
.agent-form :is(input:not([type=submit], [type=hidden]), select), .agent-picker select {
  width: 100%;
  min-height: 2.75rem;
  border-color: #bac4b8;
  border-radius: 5px;
  font-size: 1rem;
}
.agent-hint, .agent-status { color: #535e54; font-size: 0.8125rem; }
.agent-hint { margin-top: 0.375rem; }
.agent-error { padding: 0.75rem 1rem; background: #fff3ee; color: #8b2b1d; border-radius: 5px; }
.agent-actions, .agent-row, .agent-copy-row { display: flex; gap: 0.75rem 1rem; align-items: center; flex-wrap: wrap; }
.agent-row, .agent-copy-row { justify-content: space-between; }
.agent-button {
  display: inline-flex;
  min-height: 2.625rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid #c0cabc;
  border-radius: 5px;
  background: #fff;
  color: #293b2d;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.agent-button:hover { background: #f2f4f0; }
.agent-button:disabled { cursor: wait; opacity: 0.7; }
.agent-primary { border-color: #2b4132; background: #2b4132; color: #fff; }
.agent-primary:hover { background: #1d3023; }
.agent-setup :is(a, button, input, select, summary):focus-visible, .agent-button:focus-visible, .agent-link:focus-visible {
  outline: 2px solid #416849;
  outline-offset: 3px;
}
.agent-link, .agent-revoke { font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.agent-link, .agent-name { color: #344e3b; }
.agent-link:hover, .agent-name:hover { color: #172f1e; }
.agent-list, .agent-contacts { margin-top: 1.25rem; }
.agent-list > li { padding: 1rem 0; border-top: 1px solid #dbe1d7; }
.agent-name { font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.agent-section > * + *, .agent-details > * + *, .agent-help > * + * { margin-top: 0.875rem; }
.agent-section > h2:not(:first-child) { margin-top: 1.75rem; }
.agent-copy {
  min-width: 0;
  padding: 0.75rem 1rem 1rem;
  border-radius: 5px;
  background: #f2f5f0;
}
.agent-copy-row { margin-bottom: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: #425045; }
.agent-copy-row button { min-height: 2rem; padding: 0 0.25rem; }
.agent-copy code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8125rem; }
.agent-feedback { display: block; color: #3a4e3e; font-size: 0.8125rem; }
.agent-feedback:not(:empty) { margin-top: 0.5rem; }
.agent-help, .agent-details { border-top: 1px solid #dbe1d7; }
.agent-setup summary { width: fit-content; padding: 0.625rem 0; font-weight: 600; cursor: pointer; }
.agent-details[open] { padding-bottom: 0.5rem; }
.agent-details > p { font-size: 0.875rem; }
.agent-steps { list-style: decimal; padding-left: 1.25rem; font-size: 0.875rem; color: #505a51; }
.agent-steps > li { padding-left: 0.25rem; }
.agent-steps > li + li { margin-top: 0.625rem; }
.agent-steps strong { color: #242925; font-weight: 600; }
.agent-steps .agent-copy { margin-top: 0.5rem; }
.agent-details > .agent-caveat { padding: 0.75rem 1rem; border-radius: 5px; background: #f7f3e8; color: #4d4128; }
.agent-caveat strong { color: #3a3020; }
.agent-receipt { display: flex; align-items: flex-start; gap: 0.75rem; background: #eaf1e8; color: #2b4932; border-radius: 5px; padding: 1.125rem; }
.agent-receipt svg { flex: none; }
.agent-receipt p { margin-top: 0.25rem; }
.agent-picker select { width: auto; flex: 1 1 12rem; min-width: 0; }
.agent-record { border-top: 1px solid #dbe1d7; padding-top: 1.25rem; margin-top: 2.5rem; }
.agent-record h2 { font-size: 1rem; }
.agent-record dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.375rem 1.25rem; margin-top: 0.75rem; font-size: 0.875rem; }
.agent-record dt { color: #535e54; }
.agent-revoke { min-height: 2.625rem; margin-top: 0.5rem; color: #932f28; }
