.agent-access-panel { padding: 0; }
.agent-access-panel > summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 24px; cursor: pointer; list-style: none; }
.agent-access-panel > summary::-webkit-details-marker { display: none; }
.agent-access-panel > summary > span:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent-access-panel > summary > .mono { font-size: 10px; white-space: nowrap; }
.agent-access-panel > summary strong { font-size: 14px; font-weight: 500; }
.agent-access-panel > summary svg { width: 15px; height: 15px; color: var(--muted); }
.agent-access-content { padding: 0 24px 22px; }
.agent-panel-actions, .agent-record-actions, .agent-credential-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.agent-record-list { margin-top: 18px; }
.agent-record { border-top: 1px solid var(--line); padding: 18px 0; }
.agent-record:last-child { padding-bottom: 0; }
.agent-record-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.agent-record h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.agent-record dl { margin: 12px 0; display: grid; gap: 7px; }
.agent-record dl > div { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 12px; font-size: 11px; line-height: 1.6; }
.agent-record dt { color: var(--muted); }
.agent-record dd { margin: 0; overflow-wrap: anywhere; }
.agent-record dd strong { color: #8b6855; font-weight: 500; }
.agent-error { background: #fae9e0; color: #a44424; border: 1px solid #e7c5b2; border-radius: 3px; padding: 12px; margin-bottom: 15px; font-size: 12px; line-height: 1.6; }
.agent-integration { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.agent-integration > summary { color: #59664c; cursor: pointer; font-size: 12px; line-height: 1.6; }
.agent-integration > .help-text { margin-top: 14px; }
.agent-endpoint { display: block; overflow-wrap: anywhere; margin-top: 7px; font: 11px/1.6 var(--mono); }
.agent-config { max-width: 100%; overflow-x: auto; margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: #f1f2e9; font: 10px/1.7 var(--mono); tab-size: 2; }
.agent-fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.agent-fieldset legend { margin-bottom: 5px; }
.agent-fieldset > .help-text { margin: 0 0 11px; font-size: 11px; }
.agent-project-choices, .agent-action-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.agent-project-choices { max-height: 240px; overflow-y: auto; }
.agent-action-choices .admin-choice { min-height: 67px; }
.agent-action-choices small { font-size: 10px; line-height: 1.6; }
.agent-credential-warning { margin: 13px 0 20px; padding: 13px; background: #f8eddf; border: 1px solid #dfc5a8; color: #80674a; border-radius: 3px; font-size: 12px; line-height: 1.7; }
.agent-credential-modal .help-text { font-size: 11px; }
.agent-credential-modal .form-field { margin-top: 20px; }
#agent-created-credential { font-family: var(--mono); font-size: 12px; background: #f8f7f0; }
#agent-credential-status { font-size: 11px; line-height: 1.6; color: #536642; min-height: 18px; margin: 12px 0; }
@media (max-width: 650px) {
  .agent-access-panel > summary { padding: 18px 15px; }
  .agent-access-content { padding: 0 15px 18px; }
  .agent-access-panel > summary > span:first-child { gap: 7px; }
  .agent-access-panel > summary .admin-badge { display: none; }
  .agent-project-choices, .agent-action-choices { grid-template-columns: 1fr; }
  .agent-action-choices .admin-choice { min-height: 58px; }
  .agent-record dl > div { grid-template-columns: 52px minmax(0,1fr); gap: 9px; }
  .agent-panel-actions .button, .agent-record-actions .button, .agent-credential-actions .button, [data-kind^="agent-"] .modal-footer .button { min-height: 44px; font-size: 12px; }
  .agent-credential-actions .button.primary { flex: 1; }
  [data-kind^="agent-"] .form-field input { min-height: 44px; font-size: 16px; }
  #agent-created-credential { min-height: 44px; font-size: 16px; }
  .agent-config { padding: 12px 10px; font-size: 10px; }
  .agent-credential-modal .modal-footer .button { min-height: 44px; }
}
