/* A single compact surface for recorded background work, shared by existing views. */
.autonomous-work{margin:0 0 24px;padding:20px 22px;border:1px solid #29404b;border-radius:15px;background:linear-gradient(115deg,rgba(15,32,40,.96),rgba(12,22,35,.98));color:#e7f1f7}
.aw-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}
.aw-header h3{font-size:18px;letter-spacing:-.35px;margin:5px 0 3px}
.aw-scope{font-size:12px;margin:0;color:#91a8b6}
.aw-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.aw-controls button{font-size:11px;padding:7px 10px;white-space:nowrap}
.aw-state{display:inline-flex;align-items:center;gap:7px;border:1px solid #38505e;background:#152936;padding:6px 10px;border-radius:20px;font-size:11px;line-height:1.2;white-space:nowrap;color:#bcd1df}
.aw-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#7794a5}
.autonomous-work[data-state="working"] .aw-state{color:#9be9d4;border-color:#2b665c;background:#133932}
.autonomous-work[data-state="working"] .aw-state:before{background:#6ee2be}
.autonomous-work[data-state="waiting"] .aw-state,.autonomous-work[data-state="paused"] .aw-state{color:#e6cea1;border-color:#63523d;background:#322b22}
.autonomous-work[data-state="stale"] .aw-state,.autonomous-work[data-state="unavailable"] .aw-state{color:#efbdad;border-color:#73504a;background:#362724}
.aw-current{padding:13px 16px;border-left:2px solid #3f8b82;background:rgba(30,67,67,.22);border-radius:0 9px 9px 0}
.aw-label{display:block;font-size:9px;font-weight:700;letter-spacing:1.5px;color:#94aebb;text-transform:uppercase}
.aw-current h4{font-size:15px;line-height:1.5;margin:5px 0 4px;color:#edf8fb;font-weight:600;overflow-wrap:anywhere}
.aw-current p{font-size:12px;line-height:1.6;margin:3px 0;color:#adbfcd;overflow-wrap:anywhere}
.aw-current .aw-wait{color:#d9c9ab}
.aw-meta{display:block;font-size:10px;line-height:1.6;color:#8da5b4;overflow-wrap:anywhere}
.aw-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:17px 0 12px}
.aw-summary-cell{min-width:0}
.aw-summary-cell>strong{display:block;font-size:12px;line-height:1.5;font-weight:600;color:#d8e8ef;margin:6px 0 3px;overflow-wrap:anywhere}
.aw-summary-cell>p{font-size:12px;line-height:1.6;margin:3px 0 6px;color:#a1b5c4;overflow-wrap:anywhere}
.aw-summary-cell>p:empty,.aw-current p:empty,.aw-result-action:empty{display:none}
.aw-result-action button{font-size:11px;padding:6px 0;margin:3px 0 0}
.aw-history{border-top:1px solid rgba(112,147,160,.2);padding-top:10px}
.aw-history>summary{cursor:pointer;font-size:11px;color:#9ab6c5;padding:4px 0}
.aw-history ol{list-style:none;padding:0;margin:9px 0 0}
.aw-history li{padding:10px 0;border-top:1px solid rgba(112,147,160,.13)}
.aw-history-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.aw-history strong{font-size:12px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.aw-history-state{font-size:10px;color:#8fa9b8;white-space:nowrap}
.aw-history p{font-size:11px;line-height:1.6;margin:4px 0;overflow-wrap:anywhere}
.aw-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-top:9px}
.aw-footer p{font-size:10px;line-height:1.6;margin:0;color:#8ba4b3}
.aw-freshness{text-align:right;max-width:58%}
.aw-scoped-status #apStatus:not([data-state="error"]){display:none}
@media(max-width:700px){.autonomous-work{padding:16px;margin-bottom:18px}.aw-header{gap:12px}.aw-controls{gap:6px;max-width:145px}.aw-controls button{font-size:10px}.aw-summary{grid-template-columns:1fr;gap:14px;margin:15px 0 11px}.aw-footer{flex-direction:column;gap:5px}.aw-freshness{text-align:left;max-width:100%}.aw-history-heading{gap:10px}.aw-current{padding:11px 12px}}

.aw-detail{width:min(760px,calc(100vw - 32px));max-height:85vh;overflow:auto;padding:24px;border:1px solid #36515e;border-radius:15px;background:#101d2a;color:#e7f1f7}
.aw-detail::backdrop{background:rgba(2,7,13,.75)}
.aw-detail h3{font-size:18px;line-height:1.4;margin:0}
.aw-detail .aw-header{align-items:flex-start}
.aw-detail .aw-header button{flex-shrink:0}
.aw-detail-status{padding:10px 12px;border-radius:7px;background:#18332f;color:#b9ddce;font-size:12px}
.aw-detail-body{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.8;margin:15px 0 20px;color:#d7e6ef}
.aw-detail-sources{margin:8px 0 0;padding-left:18px;font-size:11px;line-height:1.7;color:#91afc0;overflow-wrap:anywhere}
