.agent-build-footer { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:4px 14px; }
#agent-build-versions { font:inherit; color:inherit; background:transparent; border:0; padding:2px 4px; white-space:normal; max-width:100%; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
#agent-build-versions:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
#agent-build-dialog { width:min(520px, calc(100vw - 32px)); box-sizing:border-box; }
#agent-build-content p { overflow-wrap:anywhere; margin:0 0 12px; }

/* Compact version inventory; scoped to this dialog only. */
#agent-build-dialog { width:min(480px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; }
#agent-build-dialog .portal-dialog__header { align-items:center; gap:12px; padding:12px 16px; }
#agent-build-title { margin:0; font-size:17px; line-height:1.3; letter-spacing:normal; }
#agent-build-close { min-height:28px; padding:4px 10px; font-size:12px; line-height:1.4; }
#agent-build-content { padding:12px 16px !important; max-height:min(60vh, 440px) !important; font-size:13px; line-height:1.45; }
#agent-build-content p { margin:0; padding:5px 0; overflow-wrap:anywhere; }
#agent-build-content p + p { border-top:1px solid var(--skin-border, #e8ebef); }
#agent-build-content p:first-child { padding-top:0; font-weight:600; }
#agent-build-content p:last-child { padding-bottom:0; }

/* Aligned, numerically ordered environment inventory. */
#agent-build-dialog { width:min(560px, calc(100vw - 24px)); }
#agent-build-content .agent-build-table { width:100%; min-width:410px; margin:10px 0 0; border-collapse:collapse; table-layout:fixed; font:inherit; }
#agent-build-content .agent-build-table th, #agent-build-content .agent-build-table td { padding:7px 8px; border:0; border-bottom:1px solid var(--skin-border,#e8ebef); text-align:left; vertical-align:top; overflow-wrap:anywhere; line-height:1.4; }
#agent-build-content .agent-build-table th { background:var(--skin-surface-muted,#f5f7fa); font-size:11px; font-weight:600; color:var(--skin-muted,#647180); }
#agent-build-content .agent-build-table th:nth-child(1) { width:48px; }
#agent-build-content .agent-build-table th:nth-child(3) { width:64px; }
#agent-build-content .agent-build-table th:nth-child(4) { width:118px; }
#agent-build-content .agent-build-table td:first-child, #agent-build-content .build-available { font-variant-numeric:tabular-nums; }
#agent-build-content .agent-build-table td:first-child { color:var(--skin-muted,#647180); }
#agent-build-content .build-status { color:var(--skin-muted,#647180); font-size:12px; }
#agent-build-content .agent-build-table tr:last-child td { border-bottom:0; }
