/* Rex Ultra desktop workspace refresh, October 2026. Scope only the workspace. */
@media (min-width:1000px){
 #workspace:not([hidden]){grid-template-columns:224px minmax(0,1fr);column-gap:20px;padding:24px!important;background:radial-gradient(ellipse at 88% 0%,rgba(16,123,188,.17),transparent 48%),linear-gradient(145deg,#071324 0%,#080e1d 65%,#060b15 100%)!important;border:1px solid rgba(86,201,247,.35)!important;box-shadow:0 24px 90px rgba(0,0,0,.55),inset 0 1px rgba(196,240,255,.12)!important;border-radius:24px!important;min-height:70vh}
 #workspace>.workspace-head{padding:8px 8px 22px!important;margin-bottom:8px!important;gap:12px}
 #workspace .workspace-kicker{letter-spacing:.22em!important;color:#70d8fa!important}
 #workspace #workspaceTitle{font-size:clamp(24px,2.5vw,38px)!important;letter-spacing:.07em!important;text-shadow:0 0 28px rgba(36,178,242,.24)}
 #workspace>.workspace-modes{max-height:calc(100vh - 175px)!important;padding:16px 10px!important;border-radius:19px!important;background:linear-gradient(180deg,rgba(13,35,62,.97),rgba(6,15,30,.97))!important;border:1px solid rgba(84,173,227,.29)!important;box-shadow:inset 0 1px rgba(171,225,255,.09),0 10px 36px rgba(0,0,0,.18)!important;gap:7px!important}
 #workspace>.workspace-modes>button,#workspace>.workspace-modes>a{min-height:42px!important;padding:11px 14px!important;font-weight:700!important;letter-spacing:.08em!important;font-size:11px!important;color:#b9d5e9!important;border:1px solid transparent!important;transition:background .16s,border-color .16s,transform .16s!important}
 #workspace>.workspace-modes>button:hover,#workspace>.workspace-modes>a:hover{transform:translateX(3px);background:rgba(28,117,168,.22)!important;border-color:rgba(88,199,247,.34)!important;color:white!important}
 #workspace>.workspace-modes>button[aria-pressed="true"]{color:#e8fcff!important;background:linear-gradient(105deg,rgba(17,126,194,.42),rgba(15,56,112,.48))!important;border-color:rgba(96,218,255,.7)!important;box-shadow:inset 3px 0 #56e3ff,0 0 18px rgba(31,170,233,.12)!important}
 #workspace>.workspace-mode-view:not([hidden]),#workspace>#report:not([hidden]){min-width:0}
 #workspace .action-panel,#workspace .media-shell{border-radius:20px!important;background:linear-gradient(155deg,rgba(13,36,62,.9),rgba(7,17,32,.94))!important;border:1px solid rgba(96,183,227,.25)!important;box-shadow:0 16px 45px rgba(0,0,0,.19)!important}
}
@media (max-width:999px){#workspace>.workspace-modes>button,#workspace>.workspace-modes>a{min-height:42px!important}#workspace{border-radius:16px!important}}
/* Exact device authorization drives this color, never the screen-share toggle. */
#workspace #desktopConnectWorkspace:not(.rex-control-confirmed){
 background:#14253a!important;border-color:#526c83!important;
 color:#c8deef!important;box-shadow:none!important;
}
#workspace #desktopConnectWorkspace.rex-control-confirmed{
 background:linear-gradient(120deg,#0054c9,#078efc)!important;
 border:2px solid #91eaff!important;color:#fff!important;
 box-shadow:0 0 25px #0096ffaf,0 0 8px #b0eeff!important;
}
@media(prefers-reduced-motion:reduce){#workspace>.workspace-modes>button,#workspace>.workspace-modes>a{transition:none!important}}