/* Eager route shell prevents Home flashes on direct entry; all colors follow the app theme. */
body.scheduled-page-open :is(#chatbox,.avatarSection,#networkCont,#compareCont,#actionsHubPage,#libraryPage,#usagePage,#flashcardsPage,#providerKeysPage,#account_settingsCont,#profilePage,#zbPagesHost,#zbSitesHost,#zbProjectsHost,#menubar,#inputMessageCont,#modelOptions,#models,#activityButtonsCont,#switcherDesktop,#switcherMobile){display:none!important}
#zbScheduledHost{position:fixed;inset:0 0 0 52px;overflow:auto;z-index:30;background:var(--bg-100,#fff);color:var(--text-100,#292927);font-size:14px;line-height:1.5}
/* Native picker glyphs follow the selected app theme, even when the OS theme differs. */
#zbScheduledHost{color-scheme:light}
[data-theme="dark"] #zbScheduledHost{color-scheme:dark}
#zbScheduledHost [hidden],#zbScheduledHost[hidden]{display:none!important}
#zbScheduledHost *{box-sizing:border-box}
.zb-scheduled{max-width:850px;margin:auto;padding:74px 30px 60px}
.zb-scheduled-mobile-nav{display:none}
.zb-scheduled-hero{text-align:center;margin:0 auto 38px;max-width:550px}
.zb-scheduled-hero svg{width:34px;height:34px;margin-bottom:18px}
#zbScheduledHost h1{font-size:28px;font-weight:600;margin:0 0 12px}
#zbScheduledHost h2{font-size:18px;font-weight:600;margin:0 0 14px}
#zbScheduledHost p{margin:8px 0;color:var(--text-200,#686865)}
.zb-scheduled-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:30px 0}
#zbScheduledHost button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--border-200,#d6d6d3);background:transparent;border-radius:10px;padding:8px 13px;line-height:1.4}
#zbScheduledHost button:hover{background:var(--bg-200,#f4f4f2)}
#zbScheduledHost button:disabled{opacity:.5;cursor:not-allowed}
#zbScheduledHost :is(button,input,textarea,select):focus-visible{outline:2px solid var(--text-200,#666);outline-offset:3px}
#zbScheduledHost .zb-scheduled-suggestion{text-align:left;border-style:dashed;border-radius:16px;padding:20px;min-height:106px}
.zb-scheduled-suggestion strong,.zb-scheduled-suggestion span{display:block}
.zb-scheduled-suggestion span{font-size:13px;color:var(--text-200,#686865);margin-top:5px}
.zb-scheduled-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:24px 0}
.zb-scheduled-toolbar h2{margin:0!important;flex:1}
.zb-scheduled-notice{padding:13px 16px;border-radius:12px;background:var(--bg-200,#f4f4f2);margin:18px 0;color:var(--text-200,#686865)}
.zb-scheduled-item{padding:18px 0;border-bottom:1px solid var(--border-200,#ddd);overflow-wrap:anywhere}
.zb-scheduled-item h3{font-size:16px;margin:0 0 7px}
.zb-scheduled-item pre{font:inherit;white-space:pre-wrap;margin:8px 0}
.zb-scheduled-meta{font-size:12px;color:var(--text-200,#686865)}
.zb-scheduled-badge{display:inline-block;padding:2px 9px;border:1px solid var(--border-200,#d6d6d3);border-radius:99px;background:var(--bg-200,#f4f4f2);font-size:12px;font-weight:600}
#zbScheduledHost [data-agent-fields]{padding:0 12px 8px;border:1px solid var(--border-200,#d6d6d3);border-radius:10px;min-width:0}
#zbScheduledHost [data-agent-fields] select{max-width:100%;text-overflow:ellipsis}
#zbScheduledHost dialog p{overflow-wrap:anywhere}
#zbScheduledHost [data-task-details]{margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid var(--border-200,#ddd)}
#zbScheduledHost [data-task-details] h3{font-size:14px;font-weight:600;margin:0 0 10px}
#zbScheduledHost [data-task-details] dl{display:grid;grid-template-columns:minmax(95px,auto) minmax(0,1fr);gap:6px 14px;margin:0;font-size:13px;line-height:1.5}
#zbScheduledHost [data-task-details] dt{font-weight:400;color:var(--text-200,#686865)}
#zbScheduledHost [data-task-details] dd{margin:0;overflow-wrap:anywhere}
#zbScheduledHost [data-details-zone]{font-size:12px}
.zb-scheduled-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#zbScheduledHost dialog{color:inherit;background:var(--bg-100,#fff);border:1px solid var(--border-200,#ddd);border-radius:18px;max-width:540px;width:calc(100% - 32px);max-height:90dvh;padding:24px;overflow:auto;box-shadow:0 20px 70px #0004}
#zbScheduledHost label{display:block;font-weight:500;margin:12px 0}
#zbScheduledHost :is(input,textarea,select){display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--border-200,#ccc);border-radius:8px;background:var(--bg-100,#fff);color:inherit;font:inherit}
#zbScheduledHost textarea{resize:vertical;min-height:110px}
#zbScheduledHost [role=alert]{color:var(--text-100,#292927);border-left:3px solid #bc604b;padding-left:12px;white-space:pre-wrap}
#zbScheduledSidebar .zb-scheduled-sidebar-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-bottom:8px}
#zbScheduledSidebar .zb-scheduled-sidebar-list-heading .zb-sidebar-section-title{margin:0!important;min-width:0}
#zbScheduledSidebar .zb-scheduled-filter-toggle{position:relative;flex:none}
#zbScheduledSidebar .zb-scheduled-filter-toggle svg{display:block;width:20px;height:20px;fill:currentColor;stroke:none}
#zbScheduledSidebar .zb-scheduled-filter-toggle.has-active-filter::after{content:"";position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:currentColor}
#zbScheduledFilterMenu{position:fixed;inset:auto;margin:0;padding:6px;box-sizing:border-box;width:200px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;border:1px solid var(--border-200);border-radius:12px;background:var(--bg-100);color:var(--text-100);box-shadow:0 10px 30px #0003;font:inherit}
#zbScheduledFilterMenu:not(:popover-open){display:none}
#zbScheduledFilterMenu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;margin:0;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:14px;cursor:pointer}
#zbScheduledFilterMenu button:hover,#zbScheduledFilterMenu button:focus-visible{background:var(--zb-sidebar-hover,color-mix(in srgb,currentColor 8%,transparent))}
#zbScheduledFilterMenu [aria-checked="true"]::after{content:"✓";flex:none}
#sidebarSmallScheduledLink svg{width:22px;height:22px}
/* Legacy agent-list span styles must not render hidden module placeholders. */
html.zb-staging-nav #agentList #zbScheduledSidebar [data-zb-sidebar-pin-slot][hidden]{display:none!important}
#zbScheduledSidebar label{display:block;margin:12px 5.5px}
/* Header action geometry is owned by staging-navigation.css. */
/* Legacy fallback only; the registered web shell owns shared chat-list gutters. */
html:not(.zb-staging-nav) #zbScheduledSidebar [data-sidebar-tasks]{margin-left:-2px}

html.zb-staging-nav #agentList #zbScheduledSidebar .zb-scheduled-sidebar-task{display:flex;flex-direction:row;align-items:center;gap:8px;height:36px;min-height:36px;padding:var(--zb-sidebar-text-row-padding,9px);margin:0;white-space:nowrap}
/* Reset legacy agent spans, including their hover pill, inside this module only. */
html.zb-staging-nav #agentList #zbScheduledSidebar .zb-scheduled-sidebar-task > .zb-scheduled-sidebar-task-title{display:block!important;flex:1;min-width:0;min-height:0!important;height:auto!important;width:auto!important;line-height:20px!important;position:static!important;transform:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:inherit;font:inherit}
html.zb-staging-nav #agentList #zbScheduledSidebar .zb-scheduled-sidebar-state{display:block;flex:0 0 14px;width:14px;height:14px;color:inherit;opacity:.65;animation:none;pointer-events:none}
#zbScheduledSidebar button:disabled{opacity:.5;cursor:default}
/* Loading is announced without inserting a line above retained task rows. */
#zbScheduledSidebar .zb-scheduled-sidebar-live{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}
html.zb-staging-nav #agentList #zbScheduledSidebar .zb-scheduled-sidebar-task:focus-visible{background:var(--zb-sidebar-hover)!important}
html.zb-staging-nav #agentList #zbScheduledSidebar .zb-scheduled-sidebar-skeleton{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;height:36px;padding:var(--zb-sidebar-text-row-padding,9px);margin:0;pointer-events:none}
html.zb-staging-nav #agentList #zbScheduledSidebar .zb-scheduled-sidebar-skeleton span{display:block!important;position:static;width:76%;height:10px;min-height:0;margin:0;padding:0;border:0;border-radius:3px;box-shadow:none;background:var(--text-200,#888);opacity:.14}
html.zb-staging-nav #agentList #zbScheduledSidebar .zb-scheduled-sidebar-skeleton span+span{flex:0 0 14px;width:14px;height:14px}
#zbScheduledSidebar .zb-scheduled-sidebar-skeleton,#zbScheduledSidebar .zb-scheduled-sidebar-skeleton *{animation:none!important;transition:none!important}
@media(min-width:992px){html.zb-staging-nav #zbScheduledHost{left:var(--zb-nav-content-left,52px)}}
body.scheduled-page-open :is(#zbSidebarHome,#sidebarSmallChatLink):not(:hover){background:transparent!important}
@media(max-width:991px){.zb-scheduled-mobile-nav{display:block;position:fixed;top:10px;left:12px;z-index:1;background:var(--bg-100)!important}}
@media(max-width:991px){html.zb-staging-nav body:has(#open_settings2) #zbScheduledHost{top:var(--scheduled-mobile-top,calc(env(safe-area-inset-top,0px) + 58px))}html.zb-staging-nav body:has(#open_settings2) #zbScheduledHost .zb-scheduled{padding-top:16px}}
@media(max-width:769px){#zbScheduledHost{left:0}.zb-scheduled{padding:74px 20px 36px}.zb-scheduled-hero{margin-bottom:24px}}
@media(max-width:520px){.zb-scheduled-suggestions{grid-template-columns:1fr;gap:10px}#zbScheduledHost .zb-scheduled-suggestion{min-height:88px;padding:16px}}
