.personal-agents-modal { width: min(730px,100%); }
.pa-body { padding-bottom: 24px; }
.pa-intro { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 18px; max-width: 570px; }
.pa-toolbar, .pa-row-actions, .pa-agent-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pa-toolbar { justify-content: space-between; margin-bottom: 22px; }
.pa-inbox { padding: 16px; background: #f1f2e9; border: 1px solid var(--line); border-radius: 3px; margin: 0 0 18px; }
.pa-inbox h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; margin: 0 0 12px; }
.pa-inbox > .help-text { margin-bottom: 0; }
.pa-request { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 14px 0; }
.pa-request + .pa-request { border-top: 1px solid var(--line); }
.pa-request:last-child { padding-bottom: 0; }
.pa-request > div:first-child { flex: 1; min-width: 0; }
.pa-request strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.pa-request .admin-badge { margin-bottom: 5px; }
.pa-request p, .pa-request small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 4px; overflow-wrap: anywhere; }
.pa-request small { font-size: 10px; }
.pa-row-actions { flex: 0 0 auto; }
.pa-agent { padding: 19px 0; border-top: 1px solid var(--line); }
.pa-agent:last-child { padding-bottom: 0; }
.pa-agent-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pa-agent-heading h3 { font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.pa-owner { font-size: 10px; color: var(--muted); margin-top: 5px; }
.pa-agent-facts { display: grid; gap: 7px; margin: 14px 0 10px; }
.pa-agent-facts > div, .pa-runtime > div { display: grid; grid-template-columns: 83px minmax(0,1fr); gap: 12px; font-size: 11px; line-height: 1.7; }
.pa-agent-facts dt, .pa-runtime dt { color: var(--muted); }
.pa-agent-facts dd, .pa-runtime dd { margin: 0; overflow-wrap: anywhere; }
.pa-access-note { display: block; color: #8b6855; font-size: 10px; margin-top: 5px; }
.pa-permission-details { margin: 11px 0 14px; }
.pa-permission-details summary, .pa-advanced > summary { font-size: 11px; line-height: 1.7; cursor: pointer; color: #59664c; }
.pa-permission-details .help-text { margin-top: 8px; }
.pa-status-verified, .pa-status-connected { color: #536642; background: #edf0e6; border-color: #d4ddc9; }
.pa-status-paused, .pa-status-expired, .pa-status-revoked { color: #8b6855; background: #f5ece5; border-color: #e2d4c9; }
.pa-more > summary { padding: 7px 10px; cursor: pointer; font-size: 11px; color: var(--muted); }
.pa-more > div { display: flex; flex-wrap: wrap; gap: 5px; }
.pa-more[open] { flex-basis: 100%; margin-top: 4px; padding-top: 5px; border-top: 1px dashed var(--line); }
.pa-empty { padding: 25px 0 15px; }
.pa-empty h3 { font-size: 17px; font-weight: 500; margin-bottom: 9px; }
.pa-empty p { font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 400px; }
.pa-error, .pa-notice { padding: 12px 14px; border: 1px solid #e2c5ac; border-radius: 3px; background: #f8eddf; color: #836348; font-size: 12px; line-height: 1.7; margin: 15px 0; overflow-wrap: anywhere; }
.pa-error { color: #a44424; background: #fae9e0; border-color: #e7c5b2; }
.pa-fieldset { padding: 0; margin: 0 0 21px; border: 0; min-width: 0; }
.pa-fieldset legend { margin-bottom: 6px; }
.pa-fieldset > .help-text { margin: 0 0 11px; font-size: 11px; }
.pa-project-choices, .pa-action-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.pa-project-choices { max-height: 240px; overflow-y: auto; }
.pa-advanced { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 12px; }
.pa-advanced[open] > summary { margin-bottom: 18px; }
.pa-advanced .admin-choice small { font-size: 10px; line-height: 1.65; }
.pa-form-title { font-size: 15px; font-weight: 500; line-height: 1.6; margin-bottom: 9px; overflow-wrap: anywhere; }
.pa-pairing-code { text-align: center; font: 28px/1.6 var(--mono); letter-spacing: 4px; background: #f1f2e9; border: 1px solid var(--line); border-radius: 3px; padding: 17px 12px; margin: 19px 0; overflow-wrap: anywhere; }
.pa-runtime { display: grid; gap: 8px; margin: 18px 0; }
.pa-replace-choice { margin-top: 11px; background: #f8eddf; border-color: #dfc5a8; }
.pa-work-preview { margin: 17px 0; padding: 13px; background: #f1f2e9; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.pa-work-preview ul { margin: 7px 0 0; padding-left: 19px; }
[data-kind^="personal-agent-"] .help-text { font-size: 11px; }
[data-kind^="personal-agent-"] .admin-choice { margin-bottom: 0; }
[data-kind^="personal-agent-"] .pa-runtime + .admin-choice { margin-bottom: 18px; }
#pa-setup-brief { font-family: var(--mono); font-size: 11px; line-height: 1.7; min-height: 210px; resize: vertical; }
@media(max-width:650px) {
  .pa-body { padding: 20px 17px; }
  .pa-inbox { padding: 13px; }
  .pa-request { flex-direction: column; gap: 10px; }
  .pa-request .pa-row-actions { width: 100%; }
  .pa-agent-heading { gap: 9px; }
  .pa-agent-heading h3 { font-size: 15px; }
  .pa-agent-facts > div, .pa-runtime > div { grid-template-columns: 70px minmax(0,1fr); gap: 9px; }
  .pa-project-choices, .pa-action-choices { grid-template-columns: 1fr; }
  .pa-toolbar .button, .pa-row-actions .button, .pa-agent-actions .button, .personal-agents-modal .modal-footer .button, [data-kind^="personal-agent-"] .button { min-height: 44px; font-size: 12px; }
  .pa-more > summary { min-height: 44px; padding: 13px 10px; font-size: 12px; }
  .pa-permission-details summary, .pa-advanced > summary { padding: 9px 0; min-height: 40px; font-size: 12px; }
  [data-kind^="personal-agent-"] .form-field input:not([type="checkbox"]), [data-kind^="personal-agent-"] .form-field select, [data-kind^="personal-agent-"] .form-field textarea { min-height: 44px; font-size: 16px; }
  #pa-setup-brief { font-size: 16px; }
  .pa-pairing-code { font-size: 25px; letter-spacing: 3px; }
}
