/* Rex Ultra v6: verified current activity and chat archive */
#rexCurrentActivityV6{display:grid;gap:13px;padding:22px;margin:4px 0 18px!important;border:1px solid #3881aa;border-radius:19px;background:linear-gradient(145deg,#123552,#071a30);box-shadow:inset 0 1px #aafaff20}
#rexCurrentActivityV6 *{box-sizing:border-box}
#rexCurrentActivityV6 .activity-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
#rexCurrentActivityV6 .activity-head h3{font-size:24px;line-height:1.2;margin:3px 0;color:#f0fbff}
#rexCurrentActivityV6 .activity-kicker{display:block;text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:850;color:#83ddf6}
#rexCurrentActivityV6 .activity-status{font-weight:850;letter-spacing:.04em;font-size:12px;color:#b6dff4}
#rexCurrentActivityV6 .activity-status[data-state=running]{color:#75e9b8}
#rexCurrentActivityV6 .activity-status[data-state=waiting]{color:#ffdc93}
#rexCurrentActivityV6 .activity-status[data-state=stale],#rexCurrentActivityV6 .activity-status[data-state=error]{color:#ffb8a4}
#rexCurrentActivityV6 .activity-actions{display:flex;gap:7px;flex-wrap:wrap}
#rexCurrentActivityV6 button,#rexChatLogToolsV6 button{border:1px solid #599dbd;background:#164666;color:#e8f9ff;border-radius:10px;font-size:11px;font-weight:850;min-height:39px;padding:10px 13px;cursor:pointer}
#rexCurrentActivityV6 button:hover,#rexChatLogToolsV6 button:hover{background:#1d5d7b}
#rexCurrentActivityV6 button:disabled,#rexChatLogToolsV6 button:disabled{opacity:.5;cursor:wait}
#rexCurrentActivityV6 .activity-job{border:1px solid #2c5873;background:#0a2034;border-radius:14px;padding:16px 17px;display:grid;gap:8px}
#rexCurrentActivityV6 .activity-job strong{font-size:15px;color:#ebfaff;line-height:1.4}
#rexCurrentActivityV6 .activity-job .activity-meta{font-size:11px;color:#96bdd2;display:flex;gap:8px 16px;flex-wrap:wrap}
#rexCurrentActivityV6 .activity-job .activity-detail{margin:0;color:#c0dcea;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#rexCurrentActivityV6 .activity-job .activity-steps{display:flex;gap:7px;flex-wrap:wrap}
#rexCurrentActivityV6 .activity-step{padding:5px 8px;border:1px solid #2e6879;border-radius:7px;font-size:10px;color:#a7d5e1}
#rexCurrentActivityV6 .activity-footer{display:grid;gap:4px;border-top:1px solid #416a7f50;padding:12px 2px 0;color:#8bb4ce;font-size:11px;line-height:1.65}
#rexCurrentActivityV6 .activity-footer b{color:#d8f4ff}
#rexCurrentActivityV6 .activity-empty{padding:19px;border:1px dashed #3e7591;border-radius:14px;color:#bad9e9;line-height:1.7;font-size:13px}
#rexCurrentActivityV6 .activity-job code{font-size:11px;color:#83cce5;overflow-wrap:anywhere}
#rexCurrentActivityV6 .activity-age-warning{color:#ffd39c}
#rexChatLogToolsV6{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px 0 8px;order:2!important}
#rexChatLogToolsV6 .chat-log-state{flex:1 1 160px;min-width:0;color:#a8cfde;font-size:11px;line-height:1.5}
#rexChatLogToolsV6 .chat-log-state[data-state=saved]{color:#81eac0}
#rexChatLogToolsV6 .chat-log-state[data-state=error]{color:#ffbbab}
#chatWorkspace .chat-panel #rexChatLogToolsV6{margin:0!important}
#workspace>#progressWorkspace{scroll-margin-top:48px!important}
@media(max-width:700px){
#rexCurrentActivityV6{padding:15px;margin:5px 0 14px!important;gap:9px}
#rexCurrentActivityV6 .activity-head h3{font-size:21px}
#rexCurrentActivityV6 .activity-actions button{flex:1 1 140px}
#rexChatLogToolsV6 button{flex:1 1 115px}
#rexChatLogToolsV6 .chat-log-state{flex:1 1 100%}
}

#workspace #rexCompanion #rexDockProgressV6{display:block;width:100%;min-height:38px;padding:10px;border-radius:10px;margin:8px 0 0;border:1px solid #52b6d2;background:#105276;color:#d9faff;font-size:11px;letter-spacing:.02em;font-weight:850;cursor:pointer}
#workspace #rexCompanion #rexDockProgressV6:hover{background:#156d95}
@media(max-width:900px){#workspace #rexCompanion #rexDockProgressV6{grid-column:1/-1!important;grid-row:auto!important;margin:0!important}}

#workspace>#progressWorkspace:not([hidden]){padding-top:22px!important}

/* Keep the current work readable; technical records stay in optional disclosures. */
#rexCurrentActivityV6 .activity-title{display:grid;gap:7px;min-width:0;flex:1 1 220px}
#rexCurrentActivityV6 .activity-title strong{overflow-wrap:anywhere}
#rexCurrentActivityV6 .activity-type{justify-self:start;padding:3px 8px;border:1px solid #487b98;border-radius:6px;color:#9fe4f6;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
#rexCurrentActivityV6 .activity-current-stage{margin:0;color:#e6f8ff;font-size:13px;font-weight:700}
#rexCurrentActivityV6 summary{cursor:pointer;color:#b8dbea;font-size:12px;font-weight:700;padding:9px 0;min-height:36px}
#rexCurrentActivityV6 summary:focus-visible{outline:2px solid #8be6f7;outline-offset:3px;border-radius:4px}
#rexCurrentActivityV6 .activity-job-details{border-top:1px solid #416a7f50}
#rexCurrentActivityV6 .activity-job-details[open]{display:grid;gap:8px}
#rexCurrentActivityV6 .activity-job-details pre{white-space:pre-wrap;max-height:320px;overflow:auto}
#rexCurrentActivityV6 .activity-tools{position:relative}
#rexCurrentActivityV6 .activity-tools>summary{padding:10px 8px}
#rexCurrentActivityV6 .activity-tools>.activity-actions{padding:8px 0;max-width:300px}
#rexCurrentActivityV6 .activity-history{border-top:1px solid #416a7f50;padding-top:8px}
#rexCurrentActivityV6 .activity-history>.activity-job{margin-top:10px}
#rexActivityJobs{display:grid;gap:12px}

