.workhubStartupBot{display:none}
html[data-mobile-bot-boot="true"] .workhubStartupDefault{display:none}
html[data-mobile-bot-boot="true"] .workhubStartupBot{display:block;text-align:center}
.workhubStartupBot strong{color:var(--text);font-size:1.35rem}
.workhubStartupBot p{margin:.5rem 0 0;font-size:.875rem}
.workhubStartupComposer{position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));height:46px;border:1px solid var(--line);border-radius:24px;background:var(--panel)}
#superbotNav{display:flex;align-items:center;min-width:0;gap:6px}
#superbotNav[hidden],#superbotNav [hidden]{display:none!important}
#dashboard #openSuperbot{display:flex;align-items:center;gap:10px;border:0;background:transparent;box-shadow:none;padding:11px 9px;font-size:14px;font-weight:550;min-height:44px;text-align:left;min-width:0}
#dashboard #openSuperbot:is(:hover,:focus-visible){background:var(--home-hover)}
#openSuperbot>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#dashboard :is(#newTask,#openSuperbot)>span{font-size:14px;line-height:1.6;white-space:nowrap}
#dashboard #sidebar:has(>#superbotNav:not([hidden])) :is(#newTask,#openSuperbot){padding-block:6px;min-height:36px}
@media(max-width:760px){#dashboard #sidebar:has(>#superbotNav:not([hidden])) :is(#newTask,#openSuperbot){min-height:40px}}
#superbotRunning{width:13px;height:13px;margin-left:auto;flex:none;border:2px solid var(--line,currentColor);border-top-color:var(--muted,currentColor);border-radius:50%;animation:superbot-spin .9s linear infinite}
#superbotUnread{margin-left:auto;border:0;border-radius:6px;background:var(--side);padding:4px 6px;color:var(--text);font-size:11px;white-space:nowrap}
#superbotRunning:not([hidden])+#superbotUnread{margin-left:0}
@keyframes superbot-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#superbotRunning{animation:none}}
.main.superbotChat:not(.workspaceModuleOpen) .topbar,
.main.superbotChat .composerOptions,
.main.superbotChat :is(#composerBoundAgent,#queueStatus,#composeHint),
.main.superbotLanding :is(#welcome,.suggestions){
  display:none!important;
}
.main.superbotHomePending :is(#conversation,#conversationNav,#jumpLatest,#runBanner,#mobileActiveHint){display:none!important}
#superbotHomeRetry:not([hidden]){margin-top:12px}
.main.superbotChat:not(.workspaceModuleOpen) .composerActions{margin-inline-start:auto}
.main.superbotChat #conversation .generatedMediaName{display:none}
body:not(.maintenanceConversation) #dashboard .main.superbotLanding:not(.workspaceModuleOpen):has(#superbotWelcome) .maintenanceChatColumn{
  padding:0;min-height:0;justify-content:flex-start;
}
body:not(.maintenanceConversation) #dashboard .main.superbotLanding:not(.workspaceModuleOpen):has(#superbotWelcome) .chatArea{
  display:flex;flex:1 1 auto;min-height:0;
}
body:not(.maintenanceConversation) #dashboard .main.superbotLanding:not(.workspaceModuleOpen):has(#superbotWelcome) #chatScroll{
  display:flex;flex:1;align-items:center;justify-content:center;min-height:0;overflow:auto;
}
body:not(.maintenanceConversation) #dashboard .main.superbotLanding:not(.workspaceModuleOpen):has(#superbotWelcome) .composerWrap{
  flex:none;width:min(1120px,calc(100% - 108px));max-width:none;padding:0 28px 18px;
}
body:not(.maintenanceConversation) #dashboard .main.superbotLanding:not(.workspaceModuleOpen):has(#superbotWelcome) #prompt{
  min-height:72px;
}
body:has(.superbotLanding) #composerAddMenu .composerMenuMain [data-menu-kind]:not([data-menu-kind="files"]),
body:has(.superbotLanding) #taskInputDialog [data-input-tab]:not([data-input-tab="assets"]):not([data-input-tab="knowledge"]){
  display:none!important;
}
#superbotWelcome:not([hidden]){display:block;margin:0 auto;padding:0 16px 24px;text-align:center}
#superbotWelcome h1{margin:0 0 10px}
#superbotWelcome p{margin:0;color:var(--muted)}
#dashboard #openSuperbot[aria-current="page"]{background:var(--home-hover,var(--side))}
#superbotRobot{
  position:fixed;inset:auto max(20px,env(safe-area-inset-right)) max(26px,env(safe-area-inset-bottom)) auto;
  z-index:16;display:grid;place-items:center;width:52px;height:52px;padding:5px;
  border:1px solid var(--line);border-radius:18px;background:var(--panel);color:#5148ac;
  box-shadow:0 5px 20px #26213d1c;
}
#superbotRobot[hidden],#dashboard[hidden]~#superbotRobot,.main.workspaceModuleOpen ~ #superbotRobot,
body:has(.main.workspaceModuleOpen) #superbotRobot{display:none!important}
#superbotRobot:is(:hover,:focus-visible){border-color:#6c61c6;background:var(--side)}
#superbotRobot svg{width:100%;height:100%;overflow:visible;animation:superbot-bob 4s ease-in-out infinite}
.superbotMobileControl{display:none}
.robotShell{fill:#eeebff;stroke:currentColor;stroke-width:1.7}
.robotAntenna,.robotArm,.robotSmile{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.robotLight{fill:#18a5bf}
.robotEyes{fill:currentColor;transform-origin:center;transform-box:fill-box;animation:superbot-blink 5s infinite}
#superbotRobot:is(:hover,:focus-visible) .robotArm{transform-origin:36px 26px;animation:superbot-wave .45s ease-in-out 2 alternate}
@keyframes superbot-bob{0%,55%,100%{transform:translateY(0)}70%,85%{transform:translateY(-3px)}}
@keyframes superbot-blink{0%,44%,49%,100%{transform:scaleY(1)}46%,47%{transform:scaleY(.18)}}
@keyframes superbot-wave{to{transform:rotate(-20deg)}}
#superbotDialog{
  position:fixed;inset:auto max(20px,env(safe-area-inset-right)) max(86px,calc(env(safe-area-inset-bottom) + 60px)) auto;
  z-index:25;margin:0;width:min(396px,calc(100vw - 24px));max-height:min(76dvh,670px);overflow:auto;
  padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);
  box-shadow:0 12px 42px #2020302b;box-sizing:border-box;
}
#superbotDialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#superbotDialog h2{margin:0;font-size:1rem}
#superbotDialog .superbotProfile{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
#superbotProfileAvatar{
  display:grid;place-items:center;width:48px;height:48px;border-radius:16px;
  background:var(--side);color:#635ac4;
}
#superbotProfileAvatar svg{width:36px;height:36px}
#superbotLastActive{margin:3px 0 0;font-size:.78rem;color:var(--muted)}
#superbotDialog .superbotShortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 4px}
#superbotDialog .superbotShortcuts button{
  display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;
  padding:4px;border:1px solid var(--line);border-radius:9px;background:var(--side);color:var(--text);
}
#superbotDialog .superbotShortcuts button:hover{background:var(--panel)}
#superbotDialog .superbotShortcuts svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
#superbotDialog .superbotProfileSection{padding-block:9px;border-bottom:1px solid var(--line)}
#superbotDialog .superbotProfileSection h3{margin:0 0 4px;color:var(--muted);font-size:.78rem;font-weight:600}
#superbotDialog .superbotProfileSection ul{display:grid;gap:3px;margin:0}
#superbotDialog .superbotProfileSection li{
  display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px;font-size:.82rem;
}
#superbotDialog .superbotProfileSection li span,#superbotOutputs button{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#superbotDialog .superbotProfileSection li small{flex:none;color:var(--muted)}
#superbotDialog .superbotProfileSection li:only-child:not(:has(span,button)){color:var(--muted)}
.superbotDeviceState::before{content:'';display:inline-block;width:6px;height:6px;margin-inline-end:5px;border-radius:50%;background:currentColor}
.superbotDeviceState[data-online="true"]::before{background:#4a9f76}
#superbotOutputs button{padding:3px 0;border:0;background:transparent;color:inherit;text-align:start;font:inherit}
#superbotOutputs :is(button,a):hover{text-decoration:underline}
#superbotOutputs a{flex:none;color:inherit}
#superbotCurrentDelivery p{margin:5px 0;color:var(--muted);font-size:.82rem}
#superbotCurrentDelivery .superbotDeliveryTitle{color:var(--text);font-weight:550}
#superbotDialog #superbotGoalRecord{border-bottom:0;padding-bottom:0}
#superbotGoalRecord > summary{color:var(--muted);font-size:.82rem}
#superbotDialog form{display:grid;gap:6px}
#superbotDialog label{display:block;margin-block:8px}
#superbotDialog textarea{width:100%;resize:vertical}
#superbotDialog ul{list-style:none;padding:0}
#superbotDialog details{padding-block:8px;border-bottom:1px solid var(--line)}
#superbotDialog summary{cursor:pointer;font-weight:550}
#superbotDialog p{overflow-wrap:anywhere}
#superbotDialog select{max-width:100%;color:inherit;background:var(--panel);font:inherit;padding:5px}
#superbotMemoryExecution{overflow-wrap:anywhere}
#superbotMemoryExecution>details{padding-block:6px;border-top:1px solid var(--line)}
#superbotMemoryExecution summary{cursor:pointer}
#superbotResult{overflow-wrap:anywhere}
#superbotResult a,#superbotResult button{margin:4px 8px 4px 0}
#superbotMemory p{font-size:.875rem}
#superbotMemoryItems li{padding:8px 0;border-top:1px solid var(--line)}
#superbotMemoryItems li p{margin:0 0 4px;white-space:pre-wrap}
#superbotMemoryItems button{margin-inline-end:8px}
#superbotProjectLabel[hidden],#superbotNotice[hidden]{display:none!important}
@media(max-width:760px){
  body:not(.maintenanceConversation) #dashboard .main.superbotLanding:not(.workspaceModuleOpen):has(#superbotWelcome) .composerWrap{
    width:100%;padding:0 12px max(12px,env(safe-area-inset-bottom));
  }
  .main.superbotChat:not(.workspaceModuleOpen) .topbar{display:flex!important;min-height:44px;padding:0 8px;border-bottom:0!important}
  .main.superbotChat:not(.workspaceModuleOpen) .topbar>:not(#openSidebar){display:none!important}
  #dashboard .main.superbotChat #chatScroll{overflow-x:hidden}
  #dashboard .main.superbotChat #composeForm{
    position:relative;display:grid;align-items:center;grid-template-columns:44px minmax(0,1fr) auto 44px;
    column-gap:3px;overflow:visible;padding:0 3px;border-radius:24px;box-shadow:none;
  }
  .superbotChat #composeForm .superbotMobileControl{
    display:grid;place-items:center;min-width:0;width:44px;height:44px;margin:0;padding:0;
    border:0;border-radius:18px;background:transparent;color:var(--text);font:inherit;
  }
  .superbotChat #composeForm .superbotMobileControl svg{
    width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  }
  #composeForm #superbotMobileCamera{grid-column:1;grid-row:2}
  #composeForm #superbotHoldVoice{
    grid-column:2;grid-row:2;width:100%;font-weight:600;font-size:16px;touch-action:none;
    user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  }
  #superbotHoldVoice:active,#superbotHoldVoice[aria-pressed="true"]{background:var(--side)}
  #composeForm #superbotInputMode{grid-column:3;grid-row:2}
  #composeForm .superbotMicIcon,#composeForm[data-mobile-input="text"] .superbotKeyboardIcon{display:none}
  #composeForm[data-mobile-input="text"] .superbotMicIcon{display:block}
  #composeForm[data-mobile-input="text"] #superbotHoldVoice,
  #composeForm #superbotHoldVoice[hidden],#composeForm #superbotInputMode[hidden]{display:none}
  #dashboard .superbotChat #composeForm #prompt{
    grid-column:2;grid-row:2;min-height:0;height:44px;max-height:44px;
    padding:11px 3px;font-size:16px;line-height:22px;overflow:auto;scrollbar-width:none;
  }
  #dashboard .main.superbotChat #composeForm #prompt[data-empty="true"]{font-weight:550}
  #dashboard .main.superbotChat #composeForm #prompt::placeholder,
  #dashboard .main.superbotChat #composeForm #prompt.composerInlineEditor[data-empty="true"]::before{
    color:var(--muted);color:color-mix(in srgb,var(--text) 65%,var(--muted));opacity:1;
  }
  #composeForm[data-mobile-input="voice"] #prompt{display:none!important}
  #dashboard .superbotChat #composeForm .composerTools,
  #dashboard .superbotChat #composeForm .composerActions{display:contents}
  #dashboard .superbotChat #composerAdd{grid-column:4;grid-row:2;width:44px;height:44px;margin:0}
  #dashboard .superbotChat #composeForm #send{grid-column:3;grid-row:2}
  #dashboard .superbotChat #composeForm #voiceInput,
  #dashboard .superbotChat #composeForm[data-mobile-input="voice"] #send,
  #composeForm[data-mobile-input="text"]:has(#prompt[data-empty="false"]) #superbotInputMode{display:none}
  #dashboard .superbotChat #composeForm[data-mobile-input="text"]:has(#prompt[data-empty="true"]):not(:has(#imagePreview:not([hidden]),#taskInputChips:not([hidden]))) #send{display:none}
  #dashboard .superbotChat #composeForm .composerRunActions:not(:has(>button:not([hidden]))){display:none}
  #dashboard .superbotChat #composeForm :is(.taskInputChips,#imagePreview,#imageStatus,.composerRunActions,#voiceStatus,.voiceReview){
    grid-column:1/-1;min-width:0;
  }
  #dashboard .superbotChat #composeForm #imageStatus:empty{display:none}
  #dashboard .superbotChat #composeForm .composerRunActions{justify-content:flex-end;padding:3px}
  #superbotRobot{position:absolute;inset:auto 0 calc(100% + 4px) auto;width:44px;height:44px;border-radius:14px;box-shadow:none}
  #superbotDialog{
    inset-inline-end:12px;bottom:var(--superbot-dialog-bottom,108px);
    max-height:min(76dvh,calc(100dvh - var(--superbot-dialog-bottom,108px) - 12px));
  }
}
@media(prefers-reduced-motion:reduce){
  #superbotRobot svg,#superbotRobot .robotEyes,#superbotRobot .robotArm{animation:none}
}

#superbotPendingTurn[hidden]{display:none!important}
#taskSendPending[hidden]{display:none!important}
#taskSendPending{padding-block:0}
#taskSendPending .taskSendStatus{margin:0 0 8px;text-align:end;color:var(--muted);font-size:.82rem}
body:not(.maintenanceConversation) #dashboard .main.superbotLanding:not(.workspaceModuleOpen):has(#superbotPendingTurn:not([hidden])) #chatScroll{
  align-items:flex-end;
}
.superbotThinking{
  display:inline-flex;align-items:center;gap:9px;padding:6px 12px 6px 8px;
  border-radius:14px;background:var(--side);color:var(--muted);font-size:13px;
}
.superbotThinking svg{
  width:30px;height:30px;flex:none;color:#5148ac;overflow:visible;
  transform-origin:50% 70%;animation:superbot-thinking 1.8s ease-in-out infinite;
}
@keyframes superbot-thinking{
  0%,50%,100%{transform:rotate(0)}
  19%{transform:rotate(-11deg)}
  36%{transform:rotate(10deg)}
  69%{transform:rotate(-7deg)}
  84%{transform:rotate(7deg)}
}
@media(prefers-reduced-motion:reduce){.superbotThinking svg{animation:none}}

#superbotDialog .superbotDesktopNotifications{display:flex;align-items:center;justify-content:space-between;gap:8px}
#superbotDesktopStatus,#superbotClock{color:var(--muted);font-size:.82rem}
#superbotCalendar{font-size:.86rem}
#superbotCalendar input:not([type=checkbox]){max-width:100%;min-width:0}
#superbotCalendarForm label{margin-block:0}
#superbotCalendarTitle{width:100%;box-sizing:border-box}
#superbotCalendarItems{max-height:180px;overflow:auto}
#superbotCalendarItems li{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:5px 0;overflow-wrap:anywhere}
#superbotCalendarItems li button{flex:none}
