/* A pending company change is a real review: the diff and review controls stay
 * visible, with supporting provenance in one shared disclosure. */
.agent-body-draft{box-sizing:border-box;min-width:0;width:100%;max-width:100%;margin:0;padding:16px;border:1px solid #e6e6e9;border-radius:12px;background:#fff;box-shadow:none;color:#303035;font-size:14px;line-height:24px;overflow-wrap:anywhere}
.body-draft-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 16px;min-width:0;margin:0 0 12px}
.agent-body-draft .agent-card-title,.agent-body-draft h3{flex:1;min-width:0;margin:0;color:#303035;font-size:14px;line-height:24px;font-weight:600;letter-spacing:0}
.body-draft-state,.body-draft-version{margin:2px 0 0;color:#818187;font-size:12px;line-height:20px;font-weight:400}
.body-draft-state{flex:none;max-width:40%;text-align:right}
.body-draft-replace{margin:0 0 14px;color:#62626a;font-size:13px;line-height:22px}
.body-draft-changes{display:grid;gap:10px;min-width:0;padding:0;margin:0;list-style:none}
.body-draft-change{display:grid;grid-template-columns:84px minmax(0,1fr) 16px minmax(0,1fr);align-items:start;gap:10px;min-width:0;font-size:13px;line-height:22px;overflow-wrap:anywhere}
.body-draft-change strong{font-size:12px;line-height:20px;font-weight:500;color:#818187}
.body-draft-before{color:#93939a;white-space:pre-wrap}
.body-draft-arrow{color:#a0a0a7}
.body-draft-after{color:#45454c;white-space:pre-wrap}
.body-draft-no-change{font-size:13px;line-height:22px;color:#62626a}
.body-draft-details{min-width:0;max-width:100%;margin:12px 0 0;color:#818187;font-size:12px;line-height:20px}
.body-draft-details>summary{display:flex;align-items:center;gap:7px;width:fit-content;min-height:32px;margin:0;padding:5px 4px;border-radius:5px;color:#818187;font-size:12px;line-height:22px;font-weight:400;cursor:pointer;list-style:none}
.body-draft-details>summary::-webkit-details-marker{display:none}
.body-draft-details>summary::after{content:'';display:block;width:5px;height:5px;margin:0 2px 3px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);transition:transform 180ms ease}
.body-draft-details[open]>summary::after{transform:translateY(2px) rotate(225deg)}
.body-draft-details>summary:hover{background:#f7f7f8;color:#515158}
.body-draft-more{margin:8px 0;color:#93939a;font-size:12px;line-height:20px}
.body-draft-fields{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px 14px;min-width:0;margin:12px 0;font-size:13px;line-height:22px}
.body-draft-fields dt{font-size:12px;line-height:20px;color:#818187;font-weight:400}
.body-draft-fields dd{min-width:0;margin:0;color:#62626a;white-space:pre-wrap;overflow-wrap:anywhere}
.body-draft-source h4{margin:10px 0 5px;font-size:12px;line-height:20px;color:#818187;font-weight:500}
.body-draft-source p{max-height:360px;overflow:auto;margin:0;white-space:pre-wrap;font-size:12px;line-height:20px;color:#818187}
.body-draft-detail-change{padding:10px 0;border-bottom:1px solid #efeff1;font-size:13px;line-height:22px}
.body-draft-detail-change strong{font-size:12px;line-height:20px;font-weight:500}
.body-draft-detail-change p{margin:5px 0}
.body-draft-error{margin:12px 0 0;color:var(--text-danger,#a94d40);font-size:13px;line-height:22px}
.body-draft-permission,.body-draft-complete{margin:12px 0 0;color:#62626a;font-size:13px;line-height:22px}
.body-draft-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:12px 0 0}
.body-draft-actions .agent-card-action{display:inline-flex;align-items:center;justify-content:center;min-height:32px;margin:0;padding:5px 9px;border:0;border-radius:7px;background:transparent;color:#74747c;font-family:inherit;font-size:12px;line-height:22px;font-weight:400;cursor:pointer;transition:background-color 180ms ease,color 180ms ease,transform 150ms ease}
.body-draft-actions .agent-card-action.is-primary{background:#f1f1f3;color:#45454c;font-weight:500}
.body-draft-actions .agent-card-action:not(:disabled):hover{background:#e9e9ed;color:#303035}
.body-draft-actions .agent-card-action:disabled{cursor:default;opacity:.45}
.body-draft-actions .agent-card-action:focus-visible,.body-draft-details>summary:focus-visible{outline:2px solid #92929a;outline-offset:3px}
@media(max-width:600px){.agent-body-draft{padding:14px}.body-draft-change{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:5px 9px}.body-draft-change strong{grid-column:1/-1}.body-draft-fields{grid-template-columns:72px minmax(0,1fr);gap:10px}.body-draft-heading{gap:8px 12px}}
@media(pointer:coarse){.body-draft-actions .agent-card-action,.body-draft-details>summary{min-height:40px}}
@media(prefers-reduced-motion:reduce){.body-draft-actions .agent-card-action,.body-draft-details>summary::after{transition:none}}
