.agent-tabs{display:flex;gap:8px;overflow:auto;margin:18px 0;padding:4px}
.agent-tabs .btn{white-space:nowrap;min-height:48px;flex:none}
.agent-tabs [aria-selected=true]{box-shadow:inset 0 -3px 0 #7b5000}
.agent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.agent-card{margin:0;min-width:0}
.agent-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.agent-card-head h3,.agent-add h3{margin:0 0 6px;overflow-wrap:anywhere}
.agent-card-head p{margin:0}
.agent-status{display:inline-block;flex:none;border:1px solid #c6cbd0;border-radius:6px;padding:5px 9px;background:#f0f2f3;color:#353a3c;font-size:13px;font-weight:650}
.agent-status[data-state=approved]{background:#e5f3e9;border-color:#94bda0;color:#17512b}
.agent-status[data-state=revoked]{background:#fff0ec;border-color:#d49e92;color:#862c21}
.agent-permissions{border:1px solid var(--line);border-radius:10px;padding:10px 14px 14px;margin:16px 0;min-width:0}
.agent-permissions legend{font-weight:650;padding:0 5px;font-size:14px;max-width:100%;overflow-wrap:anywhere}
.agent-permissions label{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 0;line-height:1.4;cursor:pointer}
.agent-permissions input{width:22px;height:22px;flex:none;accent-color:#805300}
.agent-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0}
.agent-actions .btn{min-height:48px;white-space:normal;line-height:1.35;max-width:100%;margin:0}
.agent-revoke{color:#8c2e24;border-color:#b8a29d}
.agent-last-request{font-size:14px;line-height:1.5;margin:16px 0;color:#525b5f}
.agent-mode-note{padding:16px 18px;border-left:4px solid #b27b17;background:#fff6df;margin:16px 0 20px;border-radius:6px;line-height:1.5}
.agent-mode-note p{margin:6px 0 0}
.agent-intro h3{margin:0 0 8px}
.agent-intro p{max-width:65ch}
.agent-details{border-top:1px solid var(--line);padding-top:12px;margin-top:18px}
.agent-details summary,#b-agents details>summary{min-height:48px;padding:12px 4px;cursor:pointer;font-weight:600}
.agent-details ol,.agent-check ul{padding-left:24px;margin:10px 0}
.agent-details li,.agent-check li{margin:8px 0}
.agent-details p{margin:12px 0}
.agent-check:empty{display:none}
.agent-check:not(:empty){margin-top:16px;padding:14px;border-radius:8px;background:#f2f4f5;border:1px solid var(--line);font-size:14px}
.agent-error{color:#9b2922;min-height:1.5em;overflow-wrap:anywhere;font-weight:600}
#agentPageStatus{overflow-wrap:anywhere;font-weight:600;margin:12px 0}
#agentPageStatus[data-kind=error]{color:#9b2922}
#agentPageStatus[data-kind=success]{color:#205c33}
#b-agents .t{margin-bottom:12px;min-height:48px}
#b-agents .t[aria-invalid=true]{border:2px solid #a53128}
#b-agents .btn:focus-visible,#b-agents input:focus-visible,#b-agents textarea:focus-visible,#b-agents summary:focus-visible,#b-agents [tabindex]:focus-visible{outline:3px solid #805300;outline-offset:3px}
#b-agents h3[tabindex="-1"]:focus{outline:2px solid #805300;outline-offset:4px}
#officeNav [data-office-nav=agents][hidden]{display:none!important}
#agentOneTimeCredential{border:2px solid #a47415}
#agentOneTimeCredential input{font-family:monospace}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.agent-grid{grid-template-columns:1fr}}
@media(max-width:480px){.agent-tabs{gap:6px}.agent-tabs .btn{padding:10px 12px;font-size:14px}.agent-actions .btn{flex:1 1 140px}.agent-card-head{gap:10px}.agent-permissions{padding:8px 10px 12px}}
