/* Search is a working command surface, shared by light and dark themes. */
dialog:has(.workspace-search){width:min(820px,calc(100vw - 32px));padding:22px;max-height:calc(100dvh - 48px);overflow:hidden}
dialog:has(.workspace-search)>.row{margin-bottom:17px}
.workspace-search{display:flex;flex-direction:column;min-height:230px;max-height:calc(100dvh - 148px);gap:13px}
.workspace-search-bar{display:flex;align-items:center;gap:12px;padding:5px 13px;border:1px solid var(--line);border-radius:14px;background:var(--bg);flex-shrink:0}
.workspace-search-symbol{font-size:25px;line-height:1;color:var(--accent)}
.workspace-search-input{width:100%;min-width:0;font-size:15px;border:0!important;background:transparent!important;box-shadow:none!important;padding:12px 0!important;color:var(--text)}
.workspace-search-input:focus{outline:none}
.workspace-search-bar:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--green-dark)}
.workspace-search-bar kbd{font:10px inherit;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:3px 5px}
.workspace-search-filters{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0}
.workspace-search-filter{border:1px solid transparent;background:transparent;color:var(--muted);padding:7px 10px;font-size:12px;border-radius:9px}
.workspace-search-filter:hover{background:var(--raised)}
.workspace-search-filter.active{background:var(--green-dark);border-color:var(--line);color:var(--accent)}
.workspace-search-status{font-size:11px;color:var(--muted);margin:0!important;min-height:17px}
.workspace-search-results{overflow:auto;overscroll-behavior:contain;min-height:0;padding:1px 3px 1px 0;scrollbar-width:thin;display:grid;align-content:start;gap:5px}
.search-result{display:flex;align-items:flex-start;width:100%;text-align:left;gap:12px;padding:13px 12px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text)}
.search-result:hover,.search-result.selected{background:var(--raised);border-color:var(--line)}
.search-result:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.search-result-icon{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;color:var(--accent);background:var(--green-dark);border-radius:10px;font-size:19px}
.search-result-copy{min-width:0;display:flex;flex-direction:column;gap:5px;flex:1}
.search-result-copy strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.search-result-meta{color:var(--muted);font-size:10px;line-height:1.4}
.search-result-snippet{font-size:12px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.search-result mark{background:var(--green-dark);color:var(--accent);border-radius:3px;padding:0 1px}
.search-result-arrow{font-size:17px;color:var(--muted);margin-top:5px}
.workspace-search-footer{font-size:10px;line-height:1.6;color:var(--muted);margin:0!important;border-top:1px solid var(--line);padding-top:12px;flex-shrink:0}
.search-empty{padding:36px 16px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}
.search-record-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px;padding:20px 0;max-height:55dvh;overflow:auto}
@media(max-width:650px){dialog:has(.workspace-search){width:calc(100vw - 18px);padding:16px;max-height:calc(100dvh - 22px)}.workspace-search{max-height:calc(100dvh - 115px)}.workspace-search-input{font-size:16px}.workspace-search-bar kbd{display:none}.workspace-search-filter{font-size:11px;padding:7px 9px}.search-result{padding:11px 8px;gap:9px}.search-result-icon{width:29px;height:29px}.workspace-search-footer{font-size:9px}}
