/* Read-only search uses the workbench palette, not legacy blue cards. */
html:root body #workspaceCommandBar #globalAiSearchPanel {
  width: 100% !important; min-width: 0 !important; max-width: min(620px, calc(100vw - 24px)) !important;
  top: calc(100% + 8px) !important; left: 0 !important; right: auto !important;
  max-height: min(560px, calc(100dvh - 100px)) !important; overflow: auto !important;
  padding: 8px !important; border-radius: 12px !important; transform: none !important;
  color: var(--hw-ui-text) !important; background: var(--hw-ui-surface) !important;
  background-image: none !important; border: 1px solid var(--hw-ui-line) !important;
  box-shadow: 0 12px 36px #0003 !important; scrollbar-width: thin;
  scrollbar-color: var(--hw-ui-muted) var(--hw-ui-surface);
}
html:root body #workspaceCommandBar #globalAiSearchPanel[hidden] { display: none !important; }
html:root body #workspaceCommandBar #globalAiSearchPanel .global-ai-search-head { padding: 0 8px 6px !important; min-height: 36px !important; border: 0 !important; }
html:root body #workspaceCommandBar #globalAiSearchPanel .global-ai-search-head strong { color: var(--hw-ui-muted) !important; font-size: 14px !important; font-weight: 500 !important; }
html:root body #workspaceCommandBar #globalAiSearchPanel #globalAiSearchClose { min-width: 36px !important; width: 36px !important; height: 36px !important; background: transparent !important; color: var(--hw-ui-muted) !important; }
html:root body #workspaceCommandBar #globalAiSearchResults { display: block !important; }
html:root body #workspaceCommandBar #globalAiSearchResults :is(button, article, section, p, span, strong, h3, h4) { box-sizing: border-box; text-shadow: none !important; font-style: normal; letter-spacing: normal; }
html:root body #workspaceCommandBar #globalAiSearchResults button { font: inherit; font-size: 15px !important; color: var(--hw-ui-text) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; cursor: pointer; }
html:root body #workspaceCommandBar #globalAiSearchResults button:focus-visible { outline: 2px solid var(--hw-ui-focus) !important; outline-offset: -2px !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-list { display: grid; gap: 2px; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-row { width: 100%; min-height: 64px; padding: 10px 12px !important; text-align: left; display: grid; gap: 4px; border-radius: 8px !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-row:hover,
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-row[aria-selected="true"] { background: var(--hw-ui-hover) !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-row-meta { display: flex; justify-content: space-between; gap: 12px; }
html:root body #workspaceCommandBar #globalAiSearchResults :is(.hw-search-type,.hw-search-match) { font-size: 12px !important; line-height: 1.5; color: var(--hw-ui-muted) !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-row strong { font-size: 16px !important; line-height: 1.5; font-weight: 600 !important; color: var(--hw-ui-text) !important; overflow-wrap: anywhere; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-snippet { font-size: 14px !important; line-height: 1.5; color: var(--hw-ui-muted) !important; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-status { padding: 16px 12px; margin: 0; font-size: 15px !important; line-height: 1.6; color: var(--hw-ui-muted) !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-pager { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--hw-ui-line); margin-top: 6px; padding: 4px 4px 0; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-pager > span { margin-right: auto; color: var(--hw-ui-muted) !important; font-size: 13px !important; }
html:root body #workspaceCommandBar #globalAiSearchResults :is(.hw-search-pager button,.hw-search-back,.hw-search-retry) { min-height: 42px; padding: 8px 12px !important; color: var(--hw-ui-accent) !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-detail { padding: 10px 12px 16px; background: transparent; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-detail h3 { margin: 8px 0 20px; font-size: 18px !important; line-height: 1.6; color: var(--hw-ui-text) !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-detail h4 { margin: 18px 0 8px; font-size: 15px !important; font-weight: 600; color: var(--hw-ui-muted) !important; }
html:root body #workspaceCommandBar #globalAiSearchResults .hw-search-detail p { margin: 0; font-size: 16px !important; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--hw-ui-text) !important; }
@media (max-width: 600px) {
  html:root body #workspaceCommandBar #globalAiSearchPanel { position: fixed !important; top: var(--hw-search-top, 110px) !important; left: 12px !important; width: calc(100vw - 24px) !important; max-height: calc(100dvh - var(--hw-search-top, 110px) - 12px) !important; }
}
