/* A narrow persistent module rail and an independent task list. */
html[data-wh-page="index"]{--home-rail:56px;--home-side:254px;--home-hover:color-mix(in srgb,var(--text) 7%,transparent);--home-divider:color-mix(in srgb,var(--text) 9%,transparent)}
#dashboard .homeRail{position:relative;z-index:48;display:flex;flex:0 0 var(--home-rail);width:var(--home-rail);min-height:0;flex-direction:column;align-items:center;gap:5px;padding:24px 0 18px;background:var(--side);border-right:1px solid var(--home-divider);overflow:visible}
#dashboard .homeRail>.brandMark{width:38px;height:38px;margin-bottom:18px}
#dashboard .homeRail .primaryModules{display:flex;flex-direction:column;align-items:center;gap:5px;margin:0;padding:0}
#dashboard .homeRail :is(.homeRailButton,.primaryModules button){position:relative;display:grid;grid-template-columns:1fr;gap:0;place-items:center;flex:none;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);text-align:center}
#dashboard .homeRail :is(.homeRailButton,.primaryModules button)[hidden]{display:none!important}
#dashboard .homeRail :is(.homeRailButton,.primaryModules button):is(:hover,:focus-visible,[aria-current="page"]){background:var(--home-hover);color:var(--text)}
#dashboard .homeRail svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#dashboard .homeRail :is(.homeRailTooltip,.primaryModules button>b){position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);width:max-content;max-width:200px;overflow:visible;text-overflow:clip;white-space:nowrap;padding:7px 11px;border-radius:8px;background:#252b30;color:#fff;box-shadow:0 6px 20px #0002;font-size:12px;font-weight:450;line-height:1.6;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s;z-index:70}
@media(hover:hover){#dashboard .homeRail :is(.homeRailButton,.primaryModules button):hover>b{opacity:1;visibility:visible}}
#dashboard .homeRail :is(.homeRailButton,.primaryModules button):focus-visible>b{opacity:1;visibility:visible}
#dashboard .homeRailSpacer{flex:1;min-height:16px}
#dashboard .homeRail .accountMenuWrap{position:relative;margin:4px 0 0}
#dashboard .homeRail #accountMenuButton{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent}
#dashboard .homeRail #accountMenuButton>div,#dashboard .homeRail .accountChevron{display:none}
#dashboard .homeRail #accountMenuButton .avatar{width:34px;height:34px;font-size:12px}
#dashboard .homeRail #accountMenuButton:is(:hover,:focus-visible,[aria-expanded="true"]){background:var(--home-hover)}
#dashboard .homeRail #accountMenu{position:absolute;left:calc(var(--home-rail)/2 + 24px);right:auto;bottom:0;width:min(340px,calc(100vw - var(--home-rail) - 16px));max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;z-index:72}
#dashboard #sidebar{width:var(--home-side);min-width:var(--home-side);padding:27px 16px 16px 20px;background:color-mix(in srgb,var(--side) 48%,var(--bg));border-right:1px solid var(--home-divider)}
#dashboard .sidebarHead{padding:3px 5px 18px;gap:6px}
#dashboard .sidebarHead .wordmark{font-size:17px;letter-spacing:-.6px;min-width:0}
#dashboard .sidebarHead .wordmark em{font-style:normal;font-weight:450;color:var(--muted)}
#dashboard #agentNavCollapse{display:grid;place-items:center;width:24px;height:28px;flex:none;padding:3px;background:transparent;color:var(--muted)}
#dashboard #agentNavCollapse svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
#dashboard #newTask{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}
#dashboard #newTask:hover{background:var(--home-hover)}
#dashboard #newTask>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
#dashboard #newTask>span{font-size:14px;line-height:1.6}
#dashboard .taskListHead{margin:17px 0 5px;padding:5px 10px;font-size:11px;letter-spacing:0;color:var(--muted);opacity:.7}
#dashboard .taskListHead #count{display:none}
#dashboard #tasks{min-height:0}
#dashboard #tasks .task strong{font-size:13px;font-weight:450}
#dashboard #tasks .task{padding-top:6px;padding-bottom:6px;min-height:34px}
#dashboard .sidebarFoot{border-top:0;padding-top:12px}
#dashboard .serverState{font-size:10px;min-width:0;gap:6px}
#dashboard #connection{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.maintenanceConversation) #dashboard.agentNavCollapsed #sidebar{left:var(--home-rail)}
body:not(.maintenanceConversation) #dashboard.agentNavCollapsed .agentNavReveal{left:var(--home-rail)}
body:not(.maintenanceConversation) #dashboard.agentNavCollapsed .agentNavToggle{left:var(--home-rail);top:28px;height:30px;width:26px;border:0;background:var(--side);color:var(--muted);box-shadow:none}
body:not(.maintenanceConversation) #dashboard.agentNavCollapsed.agentNavPeeking #sidebar{transform:translateX(0)}
/* Center only the fresh-task homepage; ordinary conversations keep their existing layout. */
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden]))>.topbar{border-bottom:0}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden]))>.maintenanceWorkspace{display:flex;flex:1;min-height:0;overflow:auto}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .maintenanceChatColumn{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0;min-height:min-content;padding:32px 0 max(48px,10vh)}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .chatArea{display:block;flex:none;overflow:visible}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) #chatScroll{height:auto;overflow:visible}
body:not(.maintenanceConversation) #dashboard #welcome{max-width:848px;padding:0 28px 34px;text-align:center}
body:not(.maintenanceConversation) #dashboard #welcome>.eyebrow{display:none}
body:not(.maintenanceConversation) #dashboard #welcome h1{font-size:34px;line-height:1.3;font-weight:550;letter-spacing:-1px;margin-bottom:14px}
body:not(.maintenanceConversation) #dashboard #welcome p{font-size:13px;color:var(--muted);opacity:.72;line-height:1.8}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .composerWrap{max-width:848px;padding:0 28px}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .composer{background:var(--bg);border:1px solid var(--home-divider);border-radius:23px;box-shadow:0 6px 28px #00000006}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) #prompt{min-height:124px;padding:22px 24px 10px;font-size:15px;background:transparent}
body:not(.maintenanceConversation) #dashboard .maintenanceChatColumn>.suggestions{display:none}
body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .maintenanceChatColumn>.suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:22px auto 0;padding:0 20px;max-width:848px}
body:not(.maintenanceConversation) #dashboard .maintenanceChatColumn>.suggestions button{display:flex;align-items:center;gap:6px;padding:7px 12px;min-height:34px;border:1px solid var(--home-divider);border-radius:24px;background:transparent;color:var(--muted)}
body:not(.maintenanceConversation) #dashboard .maintenanceChatColumn>.suggestions button:is(:hover,:focus-visible){background:var(--home-hover);color:var(--text)}
body:not(.maintenanceConversation) #dashboard .maintenanceChatColumn>.suggestions :is(span,strong){display:block;font-size:12px;font-weight:400;margin:0;color:inherit}
body:not(.maintenanceConversation) #dashboard .maintenanceChatColumn>.suggestions small{display:none}
.maintenanceConversation #homeRail{display:none!important}
.maintenanceConversation #dashboard .maintenanceChatColumn>.suggestions{display:none}
@media(max-width:1100px) and (min-width:761px){html[data-wh-page="index"]{--home-rail:52px;--home-side:224px}#dashboard .sidebarHead .wordmark{font-size:15px}#dashboard #sidebar{padding-left:13px;padding-right:12px}}
@media(max-width:760px){
 html[data-wh-page="index"]{--home-rail:48px;--home-side:272px}
 #dashboard .homeRail{position:fixed;inset:0 auto 0 0;padding:16px 0 max(12px,env(safe-area-inset-bottom));gap:2px}
 #dashboard:not(:has(#sidebar.open)) .homeRail{transform:translateX(-100%);visibility:hidden}
 #dashboard .homeRail>.brandMark{width:32px;height:32px;margin-bottom:12px}
 #dashboard .homeRail .primaryModules{gap:2px}
 #dashboard .homeRail :is(.homeRailButton,.primaryModules button){width:42px;height:44px;min-height:44px;border-radius:10px}
 #dashboard .homeRail svg{width:18px;height:18px}
 #dashboard #sidebar{position:fixed;left:var(--home-rail);top:0;bottom:0;z-index:46;max-width:calc(100vw - var(--home-rail));width:var(--home-side);min-width:0;transform:translateX(calc(-100% - var(--home-rail)));padding:20px 14px 14px}
 #dashboard #sidebar.open{transform:translateX(0)}
 #dashboard #agentNavCollapse{display:none}
 #dashboard .homeRail #accountMenu{left:calc(var(--home-rail)/2 + 20px);max-height:calc(100dvh - 28px)}
 body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .maintenanceChatColumn{padding:28px 0 40px}
 body:not(.maintenanceConversation) #dashboard #welcome{padding:0 16px 24px}
 body:not(.maintenanceConversation) #dashboard #welcome h1{font-size:26px;letter-spacing:-.8px}
 body:not(.maintenanceConversation) #dashboard #welcome p{font-size:12px}
 body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .composerWrap{padding:0 12px}
 body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) #prompt{min-height:108px;padding:18px 16px 8px;font-size:14px}
 body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .composer{border-radius:18px}
 body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .maintenanceChatColumn>.suggestions{padding:0 14px;gap:7px;margin-top:18px}
}
@media(max-height:640px){#dashboard .homeRail{padding-top:10px;padding-bottom:8px;gap:3px}#dashboard .homeRail>.brandMark{margin-bottom:6px;width:30px;height:30px}#dashboard .homeRail .primaryModules{gap:3px}#dashboard .homeRail :is(.homeRailButton,.primaryModules button){height:38px;min-height:38px}#dashboard .homeRailSpacer{min-height:4px}body:not(.maintenanceConversation) #dashboard .main:not(.workspaceModuleOpen):has(#welcome:not([hidden])) .maintenanceChatColumn{justify-content:flex-start}}
/* The shared entry opens the existing skill/plugin pages with a category sidebar. */
#dashboard .homeCapabilityPanel{display:none}
#dashboard #sidebar.homeCapabilityMode{padding-top:27px}
#dashboard #sidebar.homeCapabilityMode>:not(.homeCapabilityPanel){display:none!important}
#dashboard #sidebar.homeCapabilityMode>.homeCapabilityPanel{display:block}
#dashboard .homeCapabilityPanel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 5px 26px}
#dashboard .homeCapabilityPanel>header strong{font-size:17px;font-weight:600;color:var(--text)}
#dashboard #closeCapabilitySidebar{display:grid;place-items:center;width:26px;height:30px;padding:4px;border:0;border-radius:7px;background:transparent;color:var(--muted)}
#dashboard #closeCapabilitySidebar svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
#dashboard #homeCapabilityNav{display:grid;gap:5px}
#dashboard #homeCapabilityNav>button{display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--muted);text-align:left}
#dashboard #homeCapabilityNav>button:is(:hover,:focus-visible,[aria-current="page"]){background:var(--home-hover);color:var(--text)}
#dashboard #homeCapabilityNav>button>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#dashboard #homeCapabilityNav>button>b{font-size:14px;font-weight:450;line-height:1.6}
@media(max-width:760px){#dashboard #sidebar.homeCapabilityMode{padding-top:20px}}

/* Own-account credit balance, independent of task/account viewing filters. */
#dashboard #homeRailSettings{--rail-credit:#7542b4;--credit-depth:.22;color:var(--rail-credit)}
#dashboard #homeRailSettings[data-credit-level="unknown"]{color:var(--muted);--credit-depth:.12}
#dashboard #homeRailSettings[data-credit-level="empty"]{color:var(--muted);--credit-depth:.18}
#dashboard #homeRailSettings[data-credit-level="low"]{--credit-depth:.28}
#dashboard #homeRailSettings[data-credit-level="medium"]{--credit-depth:.48}
#dashboard #homeRailSettings[data-credit-level="high"]{--credit-depth:.72}
#dashboard #homeRailSettings[data-credit-level="full"]{--credit-depth:1}
#dashboard #homeRailSettings .railCreditDisc{fill:currentColor;fill-opacity:var(--credit-depth);stroke:none}
#dashboard #homeRailSettings .railCreditMark{fill:none;stroke:var(--bg);stroke-width:1.5}
html:is([data-wh-theme="dark"],[data-wh-theme="navy"]) #dashboard #homeRailSettings{--rail-credit:#b493eb}

#dashboard #tasks .taskLine{margin-bottom:1px}
#dashboard #tasks .sectionLabel{padding-top:4px;padding-bottom:4px}
@media(max-width:760px){#dashboard #tasks .task{min-height:44px}}

#dashboard #tasks{padding-top:12px}

/* Dragging changes order immediately; only an own installed Bot is an attach target. */
#dashboard #tasks .taskLine[draggable=true]{-webkit-touch-callout:none}
#dashboard #tasks .taskLine.isDragging{opacity:.42}
#dashboard #tasks .taskLine.dropBefore{box-shadow:inset 0 2px var(--accent,#7b62ce)}
#dashboard #tasks .taskLine.dropAfter{box-shadow:inset 0 -2px var(--accent,#7b62ce)}
#dashboard #tasks .sidebarDropAgent{background:color-mix(in srgb,var(--accent,#7b62ce) 12%,transparent);box-shadow:inset 0 0 0 1.5px var(--accent,#7b62ce);border-radius:7px}
#dashboard #tasks .sidebarEmptyAgentTarget{border:1px dashed color-mix(in srgb,var(--text,#222) 18%,transparent);border-radius:7px;margin:4px 0}
#dashboard #tasks .sidebarEmptyAgentTarget .taskSectionToggle{pointer-events:none;min-height:34px}
.sidebarTouchDragging{user-select:none;-webkit-user-select:none}
.sidebarDragGhost{position:fixed;z-index:1800;pointer-events:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 11px;background:var(--panel,var(--bg,#fff));color:var(--text,#222);border:1px solid var(--line,#bbb);border-radius:8px;box-shadow:0 6px 18px #0002;font-size:12px}
