#agentCenter{--agent-accent:#2563eb;--agent-soft:#eff6ff;max-width:1200px;margin:auto;color:var(--ink,#172033)}
#agentCenter [hidden]{display:none!important}#agentCenter p{overflow-wrap:anywhere}#agentCenter button{white-space:normal}#agentStatus:empty{display:none}#agentStatus{padding:12px 16px;border:1px solid var(--line,#dbe3ef);border-radius:10px;background:var(--surface,#fff)}
#agentNav{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line,#dbe3ef);padding:8px 0 12px;background:var(--surface,#fff)}#agentNav button{border:0;background:transparent;color:var(--muted,#65758b);font-weight:600}#agentNav [aria-current=page]{background:var(--agent-soft);color:var(--agent-accent)}
.bizrun-subnav-open #agentNav{display:none}
.agent-hero{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 0 12px;border-bottom:1px solid var(--line,#dbe3ef)}.agent-hero h1{margin:6px 0;font-size:28px}.agent-hero p{margin:6px 0}.agent-eyebrow{font-size:11px;font-weight:750;letter-spacing:.1em;color:var(--agent-accent)}.agent-lead{font-size:17px;font-weight:550}.agent-caption{font-size:12px!important;color:var(--muted,#65758b)}
.agent-metrics{flex:0 0 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.agent-metrics button{display:flex;flex-direction:column;text-align:left;gap:4px;padding:12px 14px;background:var(--surface,#fff);border:1px solid var(--line,#dbe3ef);border-radius:10px;color:inherit;font-size:12px}.agent-metrics strong{font-size:24px;color:var(--agent-accent)}
.agent-section{margin:24px 0;scroll-margin-top:80px}.agent-section h2{font-size:19px;margin:0 0 6px}.agent-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.agent-section-head p,.agent-section>p{color:var(--muted,#65758b);font-size:13px;margin:4px 0}.agent-queue,.agent-task-list{border:1px solid var(--line,#dbe3ef);border-radius:12px;background:var(--surface,#fff)}
.agent-row{display:flex;align-items:center;gap:18px;padding:16px 18px;border-bottom:1px solid var(--line,#e7edf5)}.agent-row:last-child{border-bottom:0}.agent-row-main{flex:1;min-width:0}.agent-row h3,.agent-task h3{font-size:15px;line-height:1.4;margin:7px 0;overflow-wrap:anywhere}.agent-row p,.agent-task p{font-size:13px;line-height:1.5;margin:5px 0}.agent-row-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted,#65758b)}.agent-priority,.agent-tag{font-size:11px;border-radius:5px;padding:4px 7px;background:var(--agent-soft);color:var(--agent-accent);font-weight:650}.agent-priority.urgent{background:#fff1f2;color:#be123c}.agent-priority.high{background:#fffbeb;color:#92400e}.agent-tag.reminder{background:#fffbeb;color:#92400e}.agent-tag.draft{background:#f5f3ff;color:#6d28d9}.agent-tag.follow_up{background:#ecfdf5;color:#047857}
.agent-quick-facts{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:12px;color:var(--muted,#65758b);margin-top:7px}.agent-quick-facts span{overflow-wrap:anywhere;max-width:100%}.agent-quick-facts b{color:var(--ink,#172033);font-weight:600}.agent-row-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.agent-row-actions>button{font-size:12px;padding:8px 12px;max-width:155px}
.agent-overflow{position:relative}.agent-overflow>summary{list-style:none;cursor:pointer;border:1px solid var(--line,#dbe3ef);border-radius:7px;font-size:18px;line-height:30px;text-align:center;width:34px}.agent-overflow>summary::-webkit-details-marker{display:none}.agent-overflow>div{position:absolute;right:0;top:38px;z-index:20;width:190px;padding:6px;display:grid;gap:4px;border:1px solid var(--line,#dbe3ef);border-radius:10px;background:var(--surface,#fff);box-shadow:0 8px 24px #0f172a18}.agent-overflow button{text-align:left;border:0;background:transparent;font-size:12px}.agent-overflow button:hover{background:var(--agent-soft)}
.agent-group-heading{margin-top:24px}.agent-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.agent-groups button{display:flex;align-items:center;gap:10px;text-align:left;padding:11px 12px;background:var(--surface,#fff);font-size:13px}.agent-groups button span:first-child{flex:1}.agent-groups strong{color:var(--agent-accent)}.agent-groups [aria-pressed=true],.agent-history-filters [aria-pressed=true]{background:var(--agent-soft);border-color:var(--agent-accent)}
.agent-task-section{margin:20px 0}.agent-task-section>h3{font-size:14px}.agent-task-section>h3 small{font-weight:400;color:var(--muted,#65758b);margin-left:6px}.agent-task{padding:16px 18px;border-bottom:1px solid var(--line,#e7edf5)}.agent-task:last-child{border-bottom:0}.agent-task>.buttons{margin-top:12px}.agent-due{color:#be123c;font-weight:650}.agent-empty{padding:14px;margin:0;font-size:13px;color:var(--muted,#65758b)}
.agent-facts{margin:10px 0}.agent-facts>div{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-bottom:1px solid var(--line,#e7edf5);font-size:13px}.agent-facts dt{color:var(--muted,#65758b);overflow-wrap:anywhere}.agent-facts dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere;min-width:25%}
.agent-history{border:1px solid var(--line,#dbe3ef);border-radius:12px;padding:0 16px;background:var(--surface,#fff)}.agent-history article{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid var(--line,#e7edf5)}.agent-history article:last-child{border-bottom:0}.agent-history b{font-size:13px}.agent-history p{margin:4px 0;font-size:13px}.agent-history small{font-size:11px;color:var(--muted,#65758b)}.agent-history button{flex-shrink:0}.agent-history-filters{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.agent-history-filters button{font-size:12px}
.agent-tools{border:1px solid var(--line,#dbe3ef);border-radius:10px;margin:16px 0;padding:14px;background:var(--surface,#fff)}.agent-tools>summary{cursor:pointer;font-weight:600;font-size:13px}.agent-tools[open]>summary{margin-bottom:16px}#agentCenter .buttons{display:flex;flex-wrap:wrap;gap:8px}#agentCenter .card{padding:18px;background:var(--surface,#fff);border:1px solid var(--line,#dbe3ef);border-radius:12px}
#agentDialog{width:min(680px,calc(100vw - 32px));box-sizing:border-box;max-height:90vh;overflow:auto;padding:24px;border:1px solid var(--line,#dbe3ef);border-radius:16px;background:var(--surface,#fff);color:var(--ink,#172033)}#agentDialog::backdrop{background:#0f172a80}.agent-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.agent-dialog-head h2{margin:0;font-size:20px}#agentDialog label{display:block;margin:16px 0;font-size:14px}#agentDialog input:not([type=checkbox]),#agentDialog select,#agentDialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px}#agentDialog input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}#agentDialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font-size:11px}#agentDialogStatus{color:var(--agent-accent);font-size:13px}.agent-confirm{padding:14px;border:1px solid var(--agent-accent);border-radius:10px}#agentCenter button:focus-visible,#agentCenter a:focus-visible,#agentCenter summary:focus-visible{outline:3px solid var(--agent-accent);outline-offset:3px}
@media(max-width:900px){.agent-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-section-head{align-items:flex-start;flex-wrap:wrap}.bizrun-subnav-open #agentNav,#agentNav{display:flex;position:sticky;top:0;z-index:25}#agentNav button{flex:1 1 auto;padding:8px;font-size:12px}.agent-row{align-items:flex-start;flex-direction:column;gap:10px;padding:14px}.agent-row-actions{align-self:flex-end}.agent-row-actions>button{max-width:none}.agent-hero h1{font-size:25px}.agent-metrics button{font-size:11px}.agent-history article{gap:10px}.agent-facts>div{gap:10px}#agentDialog{padding:16px}}
:root[data-ui-mode=dark] #agentCenter{--agent-soft:#142238;--agent-accent:#93b8ff}
