@echothink-ui/search 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +5 -0
  2. package/dist/components/AgentSearchSuggestion.d.ts +2 -0
  3. package/dist/components/AppCommandSearch.d.ts +2 -0
  4. package/dist/components/AppDomainSearch.d.ts +2 -0
  5. package/dist/components/EntitySearchInput.d.ts +4 -0
  6. package/dist/components/GlobalCommandPalette.d.ts +4 -0
  7. package/dist/components/ProjectCommandPalette.d.ts +2 -0
  8. package/dist/components/RecentItems.d.ts +2 -0
  9. package/dist/components/ResourceSearch.d.ts +2 -0
  10. package/dist/components/SavedSearches.d.ts +2 -0
  11. package/dist/components/SearchFacetPanel.d.ts +2 -0
  12. package/dist/components/SearchResultsPanel.d.ts +2 -0
  13. package/dist/components/SemanticSearchResult.d.ts +2 -0
  14. package/dist/components/searchUtils.d.ts +3 -0
  15. package/dist/components/types.d.ts +175 -0
  16. package/dist/index.cjs +1224 -0
  17. package/dist/index.cjs.map +1 -0
  18. package/dist/index.css +1460 -0
  19. package/dist/index.css.map +1 -0
  20. package/dist/index.d.ts +16 -0
  21. package/dist/index.js +1185 -0
  22. package/dist/index.js.map +1 -0
  23. package/package.json +43 -0
  24. package/src/components/AgentSearchSuggestion.tsx +44 -0
  25. package/src/components/AppCommandSearch.tsx +163 -0
  26. package/src/components/AppDomainSearch.tsx +90 -0
  27. package/src/components/EntitySearchInput.tsx +165 -0
  28. package/src/components/GlobalCommandPalette.tsx +182 -0
  29. package/src/components/ProjectCommandPalette.tsx +24 -0
  30. package/src/components/RecentItems.tsx +136 -0
  31. package/src/components/ResourceSearch.tsx +27 -0
  32. package/src/components/SavedSearches.tsx +27 -0
  33. package/src/components/SearchFacetPanel.tsx +100 -0
  34. package/src/components/SearchResultsPanel.tsx +327 -0
  35. package/src/components/SemanticSearchResult.tsx +52 -0
  36. package/src/components/searchUtils.ts +20 -0
  37. package/src/components/types.ts +208 -0
  38. package/src/index.test.tsx +254 -0
  39. package/src/index.tsx +55 -0
  40. package/src/styles.css +1716 -0
package/src/styles.css ADDED
@@ -0,0 +1,1716 @@
1
+ @import "@echothink-ui/core/styles.css";
2
+
3
+ .eth-search-command-palette,
4
+ .eth-search-global-command-palette,
5
+ .eth-search-app-command,
6
+ .eth-search-app-domain,
7
+ .eth-search-entity-input,
8
+ .eth-search-resource,
9
+ .eth-search-suggestions,
10
+ .eth-search-results-panel,
11
+ .eth-search-result-row,
12
+ .eth-search-facet-panel,
13
+ .eth-search-saved-searches,
14
+ .eth-search-saved,
15
+ .eth-search-recent-items,
16
+ .eth-search-recent,
17
+ .eth-search-semantic-result,
18
+ .eth-search-agent-suggestion {
19
+ color: var(--eth-color-text-primary);
20
+ }
21
+
22
+ .eth-search-command-palette button:focus-visible,
23
+ .eth-search-global-command-palette button:focus-visible,
24
+ .eth-search-app-command button:focus-visible,
25
+ .eth-search-entity-input button:focus-visible,
26
+ .eth-search-suggestions__item:focus-visible,
27
+ .eth-search-results-panel a:focus-visible,
28
+ .eth-search-results-panel button:focus-visible,
29
+ .eth-search-facet-panel input:focus-visible,
30
+ .eth-search-saved-searches button:focus-visible,
31
+ .eth-search-recent-items a:focus-visible,
32
+ .eth-search-recent-items button:focus-visible,
33
+ .eth-search-semantic-result a:focus-visible,
34
+ .eth-search-agent-suggestion:focus-visible {
35
+ outline: 2px solid var(--eth-color-focus);
36
+ outline-offset: -2px;
37
+ }
38
+
39
+ .eth-search-command-palette,
40
+ .eth-search-global-command-palette {
41
+ background: var(--eth-color-overlay);
42
+ display: grid;
43
+ inset: 0;
44
+ padding: var(--eth-space-3xl) var(--eth-space-lg);
45
+ place-items: start center;
46
+ position: fixed;
47
+ z-index: 9000;
48
+ }
49
+
50
+ .eth-search-command-palette__scrim {
51
+ background: transparent;
52
+ border: 0;
53
+ cursor: default;
54
+ inset: 0;
55
+ padding: 0;
56
+ position: absolute;
57
+ }
58
+
59
+ .eth-search-command-palette__panel,
60
+ .eth-search-global-command-palette__card {
61
+ background: var(--eth-color-layer-01);
62
+ border: 1px solid var(--eth-color-border-subtle);
63
+ border-radius: 0;
64
+ box-shadow: var(--eth-shadow-overlay);
65
+ display: grid;
66
+ margin-top: var(--eth-space-3xl);
67
+ max-height: calc(100vh - 4rem);
68
+ max-width: 42rem;
69
+ overflow: hidden;
70
+ position: relative;
71
+ width: min(100%, 42rem);
72
+ z-index: 1;
73
+ }
74
+
75
+ .eth-search-command-palette__header {
76
+ align-items: center;
77
+ background: var(--eth-color-layer-02);
78
+ border-bottom: 1px solid var(--eth-color-border-subtle);
79
+ display: flex;
80
+ justify-content: space-between;
81
+ min-block-size: var(--eth-space-3xl);
82
+ min-inline-size: 0;
83
+ padding-inline-start: var(--eth-space-lg);
84
+ }
85
+
86
+ .eth-search-command-palette__heading {
87
+ display: grid;
88
+ gap: var(--eth-space-2xs);
89
+ min-inline-size: 0;
90
+ }
91
+
92
+ .eth-search-command-palette__meta {
93
+ align-items: center;
94
+ display: flex;
95
+ flex-wrap: wrap;
96
+ gap: var(--eth-space-xs);
97
+ min-inline-size: 0;
98
+ }
99
+
100
+ .eth-search-command-palette__heading h2 {
101
+ color: var(--eth-color-text-primary);
102
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
103
+ font-weight: 600;
104
+ line-height: 1.2857;
105
+ margin: 0;
106
+ overflow: hidden;
107
+ text-overflow: ellipsis;
108
+ white-space: nowrap;
109
+ }
110
+
111
+ .eth-search-command-palette__heading span {
112
+ color: var(--eth-color-text-helper);
113
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
114
+ line-height: 1.333;
115
+ min-inline-size: 0;
116
+ }
117
+
118
+ .eth-search-command-palette__meta span + span::before {
119
+ color: var(--eth-color-border-strong);
120
+ content: "/";
121
+ margin-inline-end: var(--eth-space-xs);
122
+ }
123
+
124
+ .eth-search-command-palette__close {
125
+ align-items: center;
126
+ align-self: stretch;
127
+ background: transparent;
128
+ border: 0;
129
+ border-inline-start: 1px solid var(--eth-color-border-subtle);
130
+ color: var(--eth-color-text-secondary);
131
+ cursor: pointer;
132
+ display: inline-flex;
133
+ inline-size: var(--eth-space-3xl);
134
+ justify-content: center;
135
+ padding: 0;
136
+ transition:
137
+ background-color var(--eth-motion-fast) var(--eth-motion-easing),
138
+ color var(--eth-motion-fast) var(--eth-motion-easing);
139
+ }
140
+
141
+ .eth-search-command-palette__close:hover {
142
+ background: var(--eth-color-layer-hover);
143
+ color: var(--eth-color-text-primary);
144
+ }
145
+
146
+ .eth-search-command-palette__search,
147
+ .eth-search-global-command-palette__input {
148
+ border-bottom: 1px solid var(--eth-color-border-subtle);
149
+ width: 100%;
150
+ }
151
+
152
+ .eth-search-command-palette__search .cds--search,
153
+ .eth-search-command-palette__search .cds--search-input,
154
+ .eth-search-global-command-palette__input .cds--search {
155
+ min-inline-size: 0;
156
+ width: 100%;
157
+ }
158
+
159
+ .eth-search-command-palette__search .cds--search-input {
160
+ background: var(--eth-color-layer-01);
161
+ color: var(--eth-color-text-primary);
162
+ }
163
+
164
+ .eth-search-command-palette__search:focus-within {
165
+ outline: 2px solid var(--eth-color-focus);
166
+ outline-offset: -2px;
167
+ }
168
+
169
+ .eth-search-command-palette__search input:focus-visible {
170
+ outline: 0;
171
+ }
172
+
173
+ .eth-search-command-palette__results,
174
+ .eth-search-global-command-palette__list {
175
+ display: grid;
176
+ max-height: 28rem;
177
+ overflow: auto;
178
+ }
179
+
180
+ .eth-search-command-palette__group h3 {
181
+ color: var(--eth-color-text-helper);
182
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
183
+ font-weight: 600;
184
+ letter-spacing: 0;
185
+ line-height: 1.333;
186
+ margin: 0;
187
+ padding: var(--eth-space-md) var(--eth-space-lg)
188
+ var(--eth-space-xs);
189
+ text-transform: uppercase;
190
+ }
191
+
192
+ .eth-search-command-palette__item,
193
+ .eth-search-global-command-palette__list > * {
194
+ align-items: center;
195
+ background: transparent;
196
+ border: 0;
197
+ border-top: 1px solid var(--eth-color-border-subtle);
198
+ color: var(--eth-color-text-primary);
199
+ cursor: pointer;
200
+ display: grid;
201
+ font: inherit;
202
+ gap: var(--eth-space-md);
203
+ grid-template-columns: minmax(0, 1fr) auto;
204
+ min-height: 4rem;
205
+ padding: var(--eth-space-md) var(--eth-space-lg);
206
+ text-align: start;
207
+ transition: background-color var(--eth-motion-fast) var(--eth-motion-easing);
208
+ width: 100%;
209
+ }
210
+
211
+ .eth-search-command-palette__item:hover,
212
+ .eth-search-global-command-palette__list > *:hover {
213
+ background: var(--eth-color-layer-hover);
214
+ }
215
+
216
+ .eth-search-command-palette__item--active,
217
+ .eth-search-command-palette__item[aria-selected="true"],
218
+ .eth-search-global-command-palette__list > [aria-selected="true"] {
219
+ background: var(--eth-color-layer-selected);
220
+ box-shadow: inset 3px 0 0 var(--eth-color-interactive-primary);
221
+ }
222
+
223
+ .eth-search-command-palette__item-copy {
224
+ display: grid;
225
+ gap: var(--eth-space-2xs);
226
+ min-inline-size: 0;
227
+ }
228
+
229
+ .eth-search-command-palette__item strong {
230
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
231
+ font-weight: 600;
232
+ line-height: 1.2857;
233
+ overflow-wrap: anywhere;
234
+ }
235
+
236
+ .eth-search-command-palette__item small,
237
+ .eth-search-command-palette__item kbd,
238
+ .eth-search-command-palette__empty {
239
+ color: var(--eth-color-text-helper);
240
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
241
+ line-height: 1.333;
242
+ }
243
+
244
+ .eth-search-command-palette__item kbd {
245
+ background: var(--eth-color-layer-02);
246
+ border: 1px solid var(--eth-color-border-subtle);
247
+ border-radius: 0;
248
+ font-family: var(--eth-font-mono);
249
+ line-height: 1;
250
+ padding: var(--eth-space-2xs) var(--eth-space-xs);
251
+ white-space: nowrap;
252
+ }
253
+
254
+ .eth-search-command-palette__empty {
255
+ display: grid;
256
+ gap: var(--eth-space-xs);
257
+ margin: 0;
258
+ min-block-size: 7rem;
259
+ padding: var(--eth-space-lg);
260
+ place-content: center;
261
+ text-align: center;
262
+ }
263
+
264
+ .eth-search-command-palette__empty strong {
265
+ color: var(--eth-color-text-primary);
266
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
267
+ font-weight: 600;
268
+ }
269
+
270
+ .eth-search-app-command {
271
+ background: var(--eth-color-layer-01);
272
+ border: 1px solid var(--eth-color-border-subtle);
273
+ border-radius: 0;
274
+ display: grid;
275
+ margin-inline: auto;
276
+ max-width: 760px;
277
+ overflow: hidden;
278
+ width: min(100%, 760px);
279
+ }
280
+
281
+ .eth-search-app-command__bar {
282
+ align-items: stretch;
283
+ border-bottom: 1px solid var(--eth-color-border-subtle);
284
+ display: grid;
285
+ grid-template-columns: minmax(0, 1fr) auto;
286
+ min-width: 0;
287
+ }
288
+
289
+ .eth-search-app-command__input,
290
+ .eth-search-app-command__input .cds--search,
291
+ .eth-search-app-command__input .cds--search-input {
292
+ block-size: 100%;
293
+ min-inline-size: 0;
294
+ }
295
+
296
+ .eth-search-app-command__input .cds--search-input {
297
+ background: transparent;
298
+ border-block-end: 0;
299
+ color: var(--eth-color-text-primary);
300
+ }
301
+
302
+ .eth-search-app-command__input input:focus-visible {
303
+ outline: 0;
304
+ }
305
+
306
+ .eth-search-app-command__controls {
307
+ align-items: center;
308
+ border-inline-start: 1px solid var(--eth-color-border-subtle);
309
+ display: flex;
310
+ gap: var(--eth-space-sm);
311
+ min-block-size: 3rem;
312
+ padding-inline: var(--eth-space-sm);
313
+ }
314
+
315
+ .eth-search-app-command__kbd,
316
+ .eth-search-app-command__meta kbd {
317
+ background: var(--eth-color-layer-02);
318
+ border: 1px solid var(--eth-color-border-subtle);
319
+ color: var(--eth-color-text-helper);
320
+ font-family: var(--eth-font-mono);
321
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
322
+ line-height: 1;
323
+ padding: var(--eth-space-2xs) var(--eth-space-xs);
324
+ white-space: nowrap;
325
+ }
326
+
327
+ .eth-search-app-command__summary {
328
+ align-items: center;
329
+ background: var(--eth-color-layer-02);
330
+ border-bottom: 1px solid var(--eth-color-border-subtle);
331
+ color: var(--eth-color-text-helper);
332
+ display: flex;
333
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
334
+ gap: var(--eth-space-sm);
335
+ justify-content: space-between;
336
+ line-height: 1.333;
337
+ padding: var(--eth-space-sm) var(--eth-space-lg);
338
+ }
339
+
340
+ .eth-search-app-command__summary > span {
341
+ letter-spacing: 0;
342
+ text-transform: uppercase;
343
+ }
344
+
345
+ .eth-search-app-command__summary strong {
346
+ color: var(--eth-color-text-primary);
347
+ font-weight: 600;
348
+ }
349
+
350
+ .eth-search-app-command__list {
351
+ display: grid;
352
+ }
353
+
354
+ .eth-search-app-command__item {
355
+ align-items: center;
356
+ background: transparent;
357
+ border: 0;
358
+ border-bottom: 1px solid var(--eth-color-border-subtle);
359
+ color: var(--eth-color-text-primary);
360
+ cursor: pointer;
361
+ display: grid;
362
+ font: inherit;
363
+ gap: var(--eth-space-md);
364
+ grid-template-columns: 5.75rem minmax(0, 1fr) auto;
365
+ min-block-size: 4rem;
366
+ padding: var(--eth-space-md) var(--eth-space-lg);
367
+ text-align: start;
368
+ transition: background-color var(--eth-motion-fast) var(--eth-motion-easing);
369
+ width: 100%;
370
+ }
371
+
372
+ .eth-search-app-command__item:last-child {
373
+ border-bottom: 0;
374
+ }
375
+
376
+ .eth-search-app-command__item:hover,
377
+ .eth-search-app-command__item--active,
378
+ .eth-search-app-command__item[aria-selected="true"] {
379
+ background: var(--eth-color-layer-selected);
380
+ }
381
+
382
+ .eth-search-app-command__item--active {
383
+ box-shadow: inset 3px 0 0 var(--eth-color-interactive-primary);
384
+ }
385
+
386
+ .eth-search-app-command__kind {
387
+ background: var(--eth-color-layer-02);
388
+ color: var(--eth-color-text-secondary);
389
+ display: inline-flex;
390
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
391
+ justify-content: center;
392
+ line-height: 1;
393
+ padding: var(--eth-space-xs);
394
+ white-space: nowrap;
395
+ }
396
+
397
+ .eth-search-app-command__copy {
398
+ display: grid;
399
+ gap: var(--eth-space-2xs);
400
+ min-width: 0;
401
+ }
402
+
403
+ .eth-search-app-command__copy strong {
404
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
405
+ font-weight: 600;
406
+ line-height: 1.2857;
407
+ overflow-wrap: anywhere;
408
+ }
409
+
410
+ .eth-search-app-command__copy small,
411
+ .eth-search-app-command__meta,
412
+ .eth-search-app-command__empty {
413
+ color: var(--eth-color-text-helper);
414
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
415
+ line-height: 1.333;
416
+ }
417
+
418
+ .eth-search-app-command__meta {
419
+ align-items: end;
420
+ display: grid;
421
+ gap: var(--eth-space-xs);
422
+ justify-items: end;
423
+ min-width: 7rem;
424
+ text-align: end;
425
+ }
426
+
427
+ .eth-search-app-command__empty {
428
+ margin: 0;
429
+ padding: var(--eth-space-lg);
430
+ }
431
+
432
+ .eth-search-entity-input {
433
+ display: grid;
434
+ inline-size: var(--eth-search-entity-input-inline-size, min(100%, 36rem));
435
+ max-inline-size: 100%;
436
+ position: relative;
437
+ }
438
+
439
+ .eth-search-entity-input__field,
440
+ .eth-search-entity-input__field .cds--search,
441
+ .eth-search-entity-input__field .cds--search-input {
442
+ inline-size: 100%;
443
+ min-inline-size: 0;
444
+ }
445
+
446
+ .eth-search-entity-input__field .cds--search-input {
447
+ background: var(--eth-color-layer-01);
448
+ color: var(--eth-color-text-primary);
449
+ }
450
+
451
+ .eth-search-entity-input__field:focus-within {
452
+ outline: 2px solid var(--eth-color-focus);
453
+ outline-offset: -2px;
454
+ }
455
+
456
+ .eth-search-entity-input__field input:focus-visible {
457
+ outline: 0;
458
+ }
459
+
460
+ .eth-search-entity-input__popover,
461
+ .eth-search-suggestions {
462
+ background: var(--eth-color-layer-01);
463
+ border: 1px solid var(--eth-color-border-subtle);
464
+ border-radius: 0;
465
+ box-shadow: var(--eth-shadow-overlay);
466
+ inset-block-start: calc(100% + var(--eth-space-2xs));
467
+ inset-inline: 0;
468
+ max-height: 320px;
469
+ overflow: auto;
470
+ position: absolute;
471
+ z-index: 50;
472
+ }
473
+
474
+ .eth-search-entity-input__summary {
475
+ align-items: center;
476
+ background: var(--eth-color-layer-02);
477
+ border-bottom: 1px solid var(--eth-color-border-subtle);
478
+ color: var(--eth-color-text-helper);
479
+ display: flex;
480
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
481
+ gap: var(--eth-space-sm);
482
+ justify-content: space-between;
483
+ line-height: 1.333;
484
+ min-block-size: var(--eth-space-2xl);
485
+ padding: var(--eth-space-sm) var(--eth-space-lg);
486
+ }
487
+
488
+ .eth-search-entity-input__summary span {
489
+ font-weight: 600;
490
+ letter-spacing: 0;
491
+ text-transform: uppercase;
492
+ }
493
+
494
+ .eth-search-entity-input__summary strong {
495
+ color: var(--eth-color-text-secondary);
496
+ font-weight: 600;
497
+ }
498
+
499
+ .eth-search-entity-input__list {
500
+ list-style: none;
501
+ margin: 0;
502
+ padding: 0;
503
+ }
504
+
505
+ .eth-search-entity-input__list li + li {
506
+ border-top: 1px solid var(--eth-color-border-subtle);
507
+ }
508
+
509
+ .eth-search-entity-input__popover button,
510
+ .eth-search-suggestions__item {
511
+ align-items: center;
512
+ background: transparent;
513
+ border: 0;
514
+ color: var(--eth-color-text-primary);
515
+ cursor: pointer;
516
+ display: grid;
517
+ font: inherit;
518
+ gap: var(--eth-space-md);
519
+ grid-template-columns: minmax(0, 1fr) auto;
520
+ min-block-size: 3rem;
521
+ padding: var(--eth-space-md) var(--eth-space-lg);
522
+ text-align: start;
523
+ transition: background-color var(--eth-motion-fast) var(--eth-motion-easing);
524
+ width: 100%;
525
+ }
526
+
527
+ .eth-search-entity-input__popover button:hover,
528
+ .eth-search-suggestions__item:hover {
529
+ background: var(--eth-color-layer-hover);
530
+ }
531
+
532
+ .eth-search-entity-input__popover button[aria-selected="true"] {
533
+ background: var(--eth-color-layer-selected);
534
+ box-shadow: inset 3px 0 0 var(--eth-color-interactive-primary);
535
+ }
536
+
537
+ .eth-search-entity-input__copy {
538
+ display: grid;
539
+ gap: var(--eth-space-2xs);
540
+ min-inline-size: 0;
541
+ }
542
+
543
+ .eth-search-entity-input__copy strong {
544
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
545
+ font-weight: 600;
546
+ line-height: 1.2857;
547
+ overflow-wrap: anywhere;
548
+ }
549
+
550
+ .eth-search-entity-input__popover small,
551
+ .eth-search-entity-input__meta,
552
+ .eth-search-entity-input__empty {
553
+ color: var(--eth-color-text-helper);
554
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
555
+ line-height: 1.333;
556
+ }
557
+
558
+ .eth-search-entity-input__meta {
559
+ justify-self: end;
560
+ text-align: end;
561
+ white-space: nowrap;
562
+ }
563
+
564
+ .eth-search-entity-input__meta:empty {
565
+ display: none;
566
+ }
567
+
568
+ .eth-search-entity-input__popover button[aria-selected="true"] .eth-search-entity-input__meta {
569
+ color: var(--eth-color-interactive-primary);
570
+ font-weight: 600;
571
+ }
572
+
573
+ .eth-search-entity-input__empty {
574
+ margin: 0;
575
+ padding: var(--eth-space-lg);
576
+ }
577
+
578
+ .eth-search-app-domain {
579
+ background: var(--eth-color-layer-01);
580
+ border: 1px solid var(--eth-color-border-subtle);
581
+ border-radius: 0;
582
+ display: grid;
583
+ margin-inline: auto;
584
+ max-width: 48rem;
585
+ overflow: hidden;
586
+ width: min(100%, 48rem);
587
+ }
588
+
589
+ .eth-search-app-domain__header {
590
+ align-items: center;
591
+ background: var(--eth-color-layer-02);
592
+ border-bottom: 1px solid var(--eth-color-border-subtle);
593
+ display: flex;
594
+ gap: var(--eth-space-md);
595
+ justify-content: space-between;
596
+ min-block-size: var(--eth-space-3xl);
597
+ padding: var(--eth-space-sm) var(--eth-space-lg);
598
+ }
599
+
600
+ .eth-search-app-domain__header span,
601
+ .eth-search-app-domain__summary,
602
+ .eth-search-app-domain__result-copy small,
603
+ .eth-search-app-domain__result-meta {
604
+ color: var(--eth-color-text-helper);
605
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
606
+ line-height: 1.333;
607
+ }
608
+
609
+ .eth-search-app-domain__header span {
610
+ font-weight: 600;
611
+ letter-spacing: 0;
612
+ text-transform: uppercase;
613
+ }
614
+
615
+ .eth-search-app-domain__header strong {
616
+ color: var(--eth-color-text-primary);
617
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
618
+ font-weight: 600;
619
+ line-height: 1.2857;
620
+ min-width: 0;
621
+ overflow-wrap: anywhere;
622
+ }
623
+
624
+ .eth-search-app-domain__input,
625
+ .eth-search-app-domain__input .cds--search,
626
+ .eth-search-app-domain__input .cds--search-input {
627
+ inline-size: 100%;
628
+ min-inline-size: 0;
629
+ }
630
+
631
+ .eth-search-app-domain__input .cds--search-input {
632
+ background: var(--eth-color-layer-01);
633
+ color: var(--eth-color-text-primary);
634
+ }
635
+
636
+ .eth-search-app-domain__input:focus-within {
637
+ outline: 2px solid var(--eth-color-focus);
638
+ outline-offset: -2px;
639
+ }
640
+
641
+ .eth-search-app-domain__input input:focus-visible {
642
+ outline: 0;
643
+ }
644
+
645
+ .eth-search-app-domain__summary {
646
+ align-items: center;
647
+ background: var(--eth-color-layer-02);
648
+ border-top: 1px solid var(--eth-color-border-subtle);
649
+ display: flex;
650
+ gap: var(--eth-space-sm);
651
+ justify-content: space-between;
652
+ padding: var(--eth-space-sm) var(--eth-space-lg);
653
+ }
654
+
655
+ .eth-search-app-domain__summary span:last-child {
656
+ color: var(--eth-color-text-secondary);
657
+ font-weight: 600;
658
+ }
659
+
660
+ .eth-search-app-domain__results {
661
+ list-style: none;
662
+ margin: 0;
663
+ padding: 0;
664
+ }
665
+
666
+ .eth-search-app-domain__results li + li {
667
+ border-top: 1px solid var(--eth-color-border-subtle);
668
+ }
669
+
670
+ .eth-search-app-domain__results button {
671
+ align-items: center;
672
+ background: transparent;
673
+ border: 0;
674
+ color: var(--eth-color-text-primary);
675
+ cursor: pointer;
676
+ display: grid;
677
+ font: inherit;
678
+ gap: var(--eth-space-md);
679
+ grid-template-columns: minmax(0, 1fr) auto;
680
+ min-block-size: 3rem;
681
+ padding: var(--eth-space-md) var(--eth-space-lg);
682
+ text-align: start;
683
+ transition: background-color var(--eth-motion-fast) var(--eth-motion-easing);
684
+ width: 100%;
685
+ }
686
+
687
+ .eth-search-app-domain__results button:hover {
688
+ background: var(--eth-color-layer-hover);
689
+ }
690
+
691
+ .eth-search-app-domain__results button:focus-visible {
692
+ outline: 2px solid var(--eth-color-focus);
693
+ outline-offset: -2px;
694
+ }
695
+
696
+ .eth-search-app-domain__result-copy {
697
+ display: grid;
698
+ gap: var(--eth-space-2xs);
699
+ min-width: 0;
700
+ }
701
+
702
+ .eth-search-app-domain__result-copy strong {
703
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
704
+ font-weight: 600;
705
+ line-height: 1.2857;
706
+ overflow-wrap: anywhere;
707
+ }
708
+
709
+ .eth-search-app-domain__result-meta {
710
+ justify-self: end;
711
+ text-align: end;
712
+ white-space: nowrap;
713
+ }
714
+
715
+ .eth-search-results-panel {
716
+ background: var(--eth-color-layer-01);
717
+ border: 1px solid var(--eth-color-border-subtle);
718
+ border-radius: 0;
719
+ }
720
+
721
+ .eth-search-results-panel__group + .eth-search-results-panel__group {
722
+ border-top: 1px solid var(--eth-color-border-subtle);
723
+ }
724
+
725
+ .eth-search-results-panel__group h3,
726
+ .eth-search-facet-panel legend {
727
+ color: var(--eth-color-text-primary);
728
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
729
+ font-weight: 600;
730
+ line-height: 1.2857;
731
+ margin: 0;
732
+ }
733
+
734
+ .eth-search-results-panel__group h3 {
735
+ background: var(--eth-color-layer-02);
736
+ border-bottom: 1px solid var(--eth-color-border-subtle);
737
+ padding: var(--eth-space-md) var(--eth-space-lg);
738
+ }
739
+
740
+ .eth-search-results-panel__group ul,
741
+ .eth-search-saved-searches ul,
742
+ .eth-search-recent-items ul,
743
+ .eth-search-recent {
744
+ list-style: none;
745
+ margin: 0;
746
+ padding: 0;
747
+ }
748
+
749
+ .eth-search-results-panel__group li,
750
+ .eth-search-result-row,
751
+ .eth-search-recent-items li,
752
+ .eth-search-recent > *,
753
+ .eth-search-saved-searches li {
754
+ align-items: center;
755
+ border-bottom: 1px solid var(--eth-color-border-subtle);
756
+ display: grid;
757
+ gap: var(--eth-space-md);
758
+ grid-template-columns: minmax(0, 1fr) auto auto;
759
+ padding: var(--eth-space-lg);
760
+ transition: background-color var(--eth-motion-fast) var(--eth-motion-easing);
761
+ }
762
+
763
+ .eth-search-results-panel__group li:hover,
764
+ .eth-search-result-row:hover,
765
+ .eth-search-recent-items li:hover,
766
+ .eth-search-recent > *:hover,
767
+ .eth-search-saved-searches li:hover {
768
+ background: var(--eth-color-layer-hover);
769
+ }
770
+
771
+ .eth-search-results-panel__group li > span,
772
+ .eth-search-recent-items span,
773
+ .eth-search-recent-items time {
774
+ color: var(--eth-color-text-helper);
775
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
776
+ }
777
+
778
+ .eth-search-results-panel__group a,
779
+ .eth-search-results-panel__group button,
780
+ .eth-search-recent-items a,
781
+ .eth-search-recent-items button {
782
+ background: transparent;
783
+ border: 0;
784
+ color: var(--eth-color-link);
785
+ cursor: pointer;
786
+ font: inherit;
787
+ padding: 0;
788
+ text-align: start;
789
+ }
790
+
791
+ .eth-search-facet-panel {
792
+ background: var(--eth-color-layer-01);
793
+ border: 1px solid var(--eth-color-border-subtle);
794
+ border-radius: 0;
795
+ display: grid;
796
+ gap: 0;
797
+ inline-size: min(100%, 20rem);
798
+ overflow: hidden;
799
+ padding: 0;
800
+ }
801
+
802
+ .eth-search-facet-panel__header {
803
+ align-items: flex-start;
804
+ background: var(--eth-color-layer-02);
805
+ border-bottom: 1px solid var(--eth-color-border-subtle);
806
+ display: flex;
807
+ gap: var(--eth-space-md);
808
+ justify-content: space-between;
809
+ padding: var(--eth-space-lg);
810
+ }
811
+
812
+ .eth-search-facet-panel__title {
813
+ color: var(--eth-color-text-primary);
814
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
815
+ font-weight: 600;
816
+ line-height: 1.2857;
817
+ margin: 0;
818
+ }
819
+
820
+ .eth-search-facet-panel__summary {
821
+ color: var(--eth-color-text-helper);
822
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
823
+ line-height: 1.333;
824
+ margin: var(--eth-space-2xs) 0 0;
825
+ }
826
+
827
+ .eth-search-facet-panel__clear {
828
+ background: transparent;
829
+ border: 0;
830
+ color: var(--eth-color-link);
831
+ cursor: pointer;
832
+ flex: 0 0 auto;
833
+ font: inherit;
834
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
835
+ line-height: 1.333;
836
+ min-block-size: var(--eth-space-xl);
837
+ padding: var(--eth-space-xs) var(--eth-space-sm);
838
+ }
839
+
840
+ .eth-search-facet-panel__clear:hover {
841
+ background: var(--eth-color-layer-hover);
842
+ }
843
+
844
+ .eth-search-facet-panel__clear:focus-visible {
845
+ outline: 2px solid var(--eth-color-focus);
846
+ outline-offset: -2px;
847
+ }
848
+
849
+ .eth-search-facet-panel__groups {
850
+ display: grid;
851
+ }
852
+
853
+ .eth-search-facet-panel fieldset,
854
+ .eth-search-facet-panel__group {
855
+ border: 0;
856
+ display: grid;
857
+ margin: 0;
858
+ min-inline-size: 0;
859
+ padding: var(--eth-space-lg) var(--eth-space-lg)
860
+ var(--eth-space-md);
861
+ }
862
+
863
+ .eth-search-facet-panel__group + .eth-search-facet-panel__group {
864
+ border-top: 1px solid var(--eth-color-border-subtle);
865
+ }
866
+
867
+ .eth-search-facet-panel legend,
868
+ .eth-search-facet-panel__legend {
869
+ align-items: center;
870
+ color: var(--eth-color-text-primary);
871
+ display: flex;
872
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
873
+ font-weight: 600;
874
+ inline-size: 100%;
875
+ justify-content: space-between;
876
+ line-height: 1.333;
877
+ margin: 0 0 var(--eth-space-sm);
878
+ padding: 0;
879
+ }
880
+
881
+ .eth-search-facet-panel__options {
882
+ display: grid;
883
+ gap: var(--eth-space-2xs);
884
+ }
885
+
886
+ .eth-search-facet-panel__option {
887
+ align-items: center;
888
+ color: var(--eth-color-text-primary);
889
+ cursor: pointer;
890
+ display: grid;
891
+ gap: var(--eth-space-sm);
892
+ grid-template-columns: 1rem minmax(0, 1fr);
893
+ min-block-size: var(--eth-space-xl);
894
+ padding: var(--eth-space-xs) var(--eth-space-sm)
895
+ var(--eth-space-xs) 0;
896
+ position: relative;
897
+ }
898
+
899
+ .eth-search-facet-panel__option:hover {
900
+ background: var(--eth-color-layer-hover);
901
+ }
902
+
903
+ .eth-search-facet-panel__option input {
904
+ block-size: 1px;
905
+ inline-size: 1px;
906
+ margin: 0;
907
+ opacity: 0;
908
+ position: absolute;
909
+ }
910
+
911
+ .eth-search-facet-panel__option input:focus-visible {
912
+ outline: 0;
913
+ }
914
+
915
+ .eth-search-facet-panel__control {
916
+ background: var(--eth-color-layer-01);
917
+ block-size: 1rem;
918
+ border: 1px solid var(--eth-color-border-strong);
919
+ box-sizing: border-box;
920
+ inline-size: 1rem;
921
+ }
922
+
923
+ .eth-search-facet-panel__option input:checked + .eth-search-facet-panel__control {
924
+ background: var(--eth-color-text-primary);
925
+ border-color: var(--eth-color-text-primary);
926
+ }
927
+
928
+ .eth-search-facet-panel__option input:checked + .eth-search-facet-panel__control::after {
929
+ border-color: var(--eth-color-layer-01);
930
+ border-style: solid;
931
+ border-width: 0 2px 2px 0;
932
+ block-size: 0.625rem;
933
+ content: "";
934
+ display: block;
935
+ inline-size: 0.375rem;
936
+ margin-block-start: 0.0625rem;
937
+ margin-inline-start: 0.28125rem;
938
+ transform: rotate(45deg);
939
+ }
940
+
941
+ .eth-search-facet-panel__option input:focus-visible + .eth-search-facet-panel__control {
942
+ outline: 2px solid var(--eth-color-focus);
943
+ outline-offset: 2px;
944
+ }
945
+
946
+ .eth-search-facet-panel__option-main {
947
+ align-items: center;
948
+ display: flex;
949
+ gap: var(--eth-space-sm);
950
+ justify-content: space-between;
951
+ min-inline-size: 0;
952
+ }
953
+
954
+ .eth-search-facet-panel__option-label {
955
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
956
+ line-height: 1.2857;
957
+ overflow: hidden;
958
+ text-overflow: ellipsis;
959
+ white-space: nowrap;
960
+ }
961
+
962
+ .eth-search-facet-panel__option-count {
963
+ color: var(--eth-color-text-helper);
964
+ flex: 0 0 auto;
965
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
966
+ font-variant-numeric: tabular-nums;
967
+ line-height: 1.333;
968
+ }
969
+
970
+ .eth-search-facet-panel__option--disabled {
971
+ color: #c6c6c6;
972
+ cursor: not-allowed;
973
+ }
974
+
975
+ .eth-search-facet-panel__option--disabled:hover {
976
+ background: transparent;
977
+ }
978
+
979
+ .eth-search-facet-panel__option--disabled .eth-search-facet-panel__control {
980
+ border-color: #c6c6c6;
981
+ }
982
+
983
+ .eth-search-facet-panel__option--disabled .eth-search-facet-panel__option-count {
984
+ color: #c6c6c6;
985
+ }
986
+
987
+ .eth-search-facet-panel__empty {
988
+ color: var(--eth-color-text-helper);
989
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
990
+ line-height: 1.2857;
991
+ margin: 0;
992
+ padding: var(--eth-space-lg);
993
+ }
994
+
995
+ .eth-search-saved-searches,
996
+ .eth-search-saved {
997
+ background: var(--eth-color-layer-01);
998
+ border: 1px solid var(--eth-color-border-subtle);
999
+ border-radius: 0;
1000
+ }
1001
+
1002
+ .eth-search-saved-searches li > div {
1003
+ display: flex;
1004
+ flex-wrap: wrap;
1005
+ gap: var(--eth-space-sm);
1006
+ min-width: 0;
1007
+ }
1008
+
1009
+ .eth-search-saved-searches code,
1010
+ .eth-search-saved-searches small {
1011
+ color: var(--eth-color-text-helper);
1012
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1013
+ }
1014
+
1015
+ .eth-search-saved-searches code {
1016
+ background: var(--eth-color-layer-02);
1017
+ font-family: var(--eth-font-mono);
1018
+ padding: var(--eth-space-2xs) var(--eth-space-xs);
1019
+ }
1020
+
1021
+ .eth-search-saved {
1022
+ display: flex;
1023
+ flex-wrap: wrap;
1024
+ gap: var(--eth-space-xs);
1025
+ padding: var(--eth-space-md);
1026
+ }
1027
+
1028
+ .eth-search-saved > * {
1029
+ background: var(--eth-color-layer-02);
1030
+ border-radius: 0;
1031
+ color: var(--eth-color-text-primary);
1032
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1033
+ min-height: var(--eth-space-xl);
1034
+ padding: var(--eth-space-xs) var(--eth-space-sm);
1035
+ }
1036
+
1037
+ .eth-search-recent-items,
1038
+ .eth-search-recent {
1039
+ background: var(--eth-color-layer-01);
1040
+ border: 1px solid var(--eth-color-border-subtle);
1041
+ border-radius: 0;
1042
+ }
1043
+
1044
+ .eth-search-recent-items li {
1045
+ border-bottom: 1px solid var(--eth-color-border-subtle);
1046
+ display: block;
1047
+ padding: 0;
1048
+ }
1049
+
1050
+ .eth-search-recent-items li:last-child {
1051
+ border-bottom: 0;
1052
+ }
1053
+
1054
+ .eth-search-recent-items .eth-search-recent-items__row {
1055
+ align-items: center;
1056
+ appearance: none;
1057
+ background: transparent;
1058
+ border: 0;
1059
+ color: var(--eth-color-text-primary);
1060
+ cursor: pointer;
1061
+ display: grid;
1062
+ font: inherit;
1063
+ gap: var(--eth-space-md);
1064
+ grid-template-columns: auto minmax(0, 1fr) auto auto auto;
1065
+ min-block-size: 4rem;
1066
+ padding: var(--eth-space-md) var(--eth-space-lg);
1067
+ text-align: start;
1068
+ text-decoration: none;
1069
+ touch-action: manipulation;
1070
+ transition:
1071
+ background-color var(--eth-motion-fast) var(--eth-motion-easing),
1072
+ color var(--eth-motion-fast) var(--eth-motion-easing);
1073
+ -webkit-tap-highlight-color: transparent;
1074
+ width: 100%;
1075
+ }
1076
+
1077
+ .eth-search-recent-items .eth-search-recent-items__row:hover {
1078
+ background: var(--eth-color-layer-hover);
1079
+ color: var(--eth-color-text-primary);
1080
+ }
1081
+
1082
+ .eth-search-recent-items__icon {
1083
+ align-items: center;
1084
+ background: var(--eth-color-layer-02);
1085
+ block-size: var(--eth-space-2xl);
1086
+ border: 1px solid var(--eth-color-border-subtle);
1087
+ color: var(--eth-color-text-secondary);
1088
+ display: inline-flex;
1089
+ inline-size: var(--eth-space-2xl);
1090
+ justify-content: center;
1091
+ }
1092
+
1093
+ .eth-search-recent-items__copy {
1094
+ display: grid;
1095
+ gap: var(--eth-space-2xs);
1096
+ min-inline-size: 0;
1097
+ }
1098
+
1099
+ .eth-search-recent-items .eth-search-recent-items__label {
1100
+ color: var(--eth-color-text-primary);
1101
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
1102
+ font-weight: 600;
1103
+ line-height: 1.2857;
1104
+ overflow: hidden;
1105
+ text-overflow: ellipsis;
1106
+ white-space: nowrap;
1107
+ }
1108
+
1109
+ .eth-search-recent-items .eth-search-recent-items__description {
1110
+ color: var(--eth-color-text-helper);
1111
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1112
+ line-height: 1.333;
1113
+ overflow: hidden;
1114
+ text-overflow: ellipsis;
1115
+ white-space: nowrap;
1116
+ }
1117
+
1118
+ .eth-search-recent-items .eth-search-recent-items__kind {
1119
+ align-items: center;
1120
+ background: var(--eth-color-layer-02);
1121
+ color: var(--eth-color-text-secondary);
1122
+ display: inline-flex;
1123
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1124
+ line-height: 1.333;
1125
+ min-block-size: var(--eth-space-xl);
1126
+ padding: var(--eth-space-2xs) var(--eth-space-sm);
1127
+ white-space: nowrap;
1128
+ }
1129
+
1130
+ .eth-search-recent-items .eth-search-recent-items__visited {
1131
+ color: var(--eth-color-text-helper);
1132
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1133
+ font-variant-numeric: tabular-nums;
1134
+ line-height: 1.333;
1135
+ white-space: nowrap;
1136
+ }
1137
+
1138
+ .eth-search-recent-items__visited-label {
1139
+ block-size: 1px;
1140
+ clip: rect(0 0 0 0);
1141
+ clip-path: inset(50%);
1142
+ inline-size: 1px;
1143
+ overflow: hidden;
1144
+ position: absolute;
1145
+ white-space: nowrap;
1146
+ }
1147
+
1148
+ .eth-search-recent-items__arrow {
1149
+ color: var(--eth-color-text-helper);
1150
+ }
1151
+
1152
+ .eth-search-recent-items__empty {
1153
+ color: var(--eth-color-text-helper);
1154
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
1155
+ line-height: 1.2857;
1156
+ padding: var(--eth-space-lg);
1157
+ }
1158
+
1159
+ .eth-search-semantic-result {
1160
+ background: var(--eth-color-layer-01);
1161
+ border: 1px solid var(--eth-color-border-subtle);
1162
+ border-inline-start: 3px solid var(--eth-color-interactive-primary);
1163
+ border-radius: 0;
1164
+ display: grid;
1165
+ gap: var(--eth-space-md);
1166
+ inline-size: min(100%, 48rem);
1167
+ margin-inline: auto;
1168
+ max-inline-size: 100%;
1169
+ padding: var(--eth-space-lg);
1170
+ }
1171
+
1172
+ .eth-search-semantic-result__snippet {
1173
+ color: var(--eth-color-text-primary);
1174
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
1175
+ line-height: 1.2857;
1176
+ margin: 0;
1177
+ max-inline-size: 60ch;
1178
+ overflow-wrap: anywhere;
1179
+ }
1180
+
1181
+ .eth-search-semantic-result mark {
1182
+ background: color-mix(in srgb, var(--eth-color-warning) 24%, transparent);
1183
+ color: var(--eth-color-text-primary);
1184
+ padding-inline: var(--eth-space-2xs);
1185
+ }
1186
+
1187
+ .eth-search-semantic-result__evidence {
1188
+ border-block-start: 1px solid var(--eth-color-border-subtle);
1189
+ display: grid;
1190
+ gap: var(--eth-space-xs);
1191
+ padding-block-start: var(--eth-space-sm);
1192
+ }
1193
+
1194
+ .eth-search-semantic-result__evidence-label {
1195
+ color: var(--eth-color-text-helper);
1196
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1197
+ font-weight: 600;
1198
+ letter-spacing: 0;
1199
+ line-height: 1.333;
1200
+ text-transform: uppercase;
1201
+ }
1202
+
1203
+ .eth-search-semantic-result__evidence-list {
1204
+ display: flex;
1205
+ flex-wrap: wrap;
1206
+ gap: var(--eth-space-xs);
1207
+ list-style: none;
1208
+ margin: 0;
1209
+ padding: 0;
1210
+ }
1211
+
1212
+ .eth-search-semantic-result__evidence-list li {
1213
+ display: inline-flex;
1214
+ min-inline-size: 0;
1215
+ }
1216
+
1217
+ .eth-search-semantic-result__evidence-item {
1218
+ align-items: center;
1219
+ background: var(--eth-color-layer-02);
1220
+ color: var(--eth-color-text-secondary);
1221
+ display: inline-flex;
1222
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1223
+ line-height: 1.333;
1224
+ max-inline-size: 100%;
1225
+ min-block-size: var(--eth-space-xl);
1226
+ overflow-wrap: anywhere;
1227
+ padding: var(--eth-space-2xs) var(--eth-space-sm);
1228
+ text-decoration: none;
1229
+ }
1230
+
1231
+ a.eth-search-semantic-result__evidence-item {
1232
+ color: var(--eth-color-link);
1233
+ }
1234
+
1235
+ a.eth-search-semantic-result__evidence-item:hover {
1236
+ background: var(--eth-color-layer-hover);
1237
+ text-decoration: underline;
1238
+ }
1239
+
1240
+ .eth-search-agent-suggestion {
1241
+ align-items: stretch;
1242
+ background: var(--eth-color-layer-01);
1243
+ border: 1px solid var(--eth-color-border-subtle);
1244
+ border-inline-start: 3px solid var(--eth-color-interactive-primary);
1245
+ border-radius: 0;
1246
+ color: var(--eth-color-text-primary);
1247
+ cursor: pointer;
1248
+ display: grid;
1249
+ font: inherit;
1250
+ grid-template-columns: auto minmax(0, 1fr) auto;
1251
+ max-width: 44rem;
1252
+ min-height: 4rem;
1253
+ overflow: hidden;
1254
+ padding: 0;
1255
+ text-align: start;
1256
+ transition:
1257
+ background-color var(--eth-motion-fast) var(--eth-motion-easing),
1258
+ border-color var(--eth-motion-fast) var(--eth-motion-easing);
1259
+ width: min(100%, 44rem);
1260
+ }
1261
+
1262
+ .eth-search-agent-suggestion:hover {
1263
+ background: var(--eth-color-layer-hover);
1264
+ border-color: var(--eth-color-border-strong);
1265
+ border-inline-start-color: var(--eth-color-interactive-primary);
1266
+ }
1267
+
1268
+ .eth-search-agent-suggestion:active {
1269
+ background: var(--eth-color-layer-selected);
1270
+ }
1271
+
1272
+ .eth-search-agent-suggestion:disabled {
1273
+ cursor: not-allowed;
1274
+ opacity: 0.5;
1275
+ }
1276
+
1277
+ .eth-search-agent-suggestion__icon {
1278
+ align-items: center;
1279
+ background: var(--eth-color-layer-02);
1280
+ color: var(--eth-color-interactive-primary);
1281
+ display: inline-flex;
1282
+ inline-size: 3rem;
1283
+ justify-content: center;
1284
+ }
1285
+
1286
+ .eth-search-agent-suggestion__body {
1287
+ display: grid;
1288
+ gap: var(--eth-space-2xs);
1289
+ min-width: 0;
1290
+ padding: var(--eth-space-md) var(--eth-space-lg);
1291
+ }
1292
+
1293
+ .eth-search-agent-suggestion__label {
1294
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
1295
+ font-weight: 600;
1296
+ line-height: 1.2857;
1297
+ overflow-wrap: anywhere;
1298
+ }
1299
+
1300
+ .eth-search-agent-suggestion__rationale {
1301
+ color: var(--eth-color-text-helper);
1302
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1303
+ line-height: 1.333;
1304
+ overflow-wrap: anywhere;
1305
+ }
1306
+
1307
+ .eth-search-agent-suggestion__action {
1308
+ align-items: center;
1309
+ border-inline-start: 1px solid var(--eth-color-border-subtle);
1310
+ color: var(--eth-color-text-secondary);
1311
+ display: inline-flex;
1312
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1313
+ font-weight: 600;
1314
+ gap: var(--eth-space-xs);
1315
+ justify-content: center;
1316
+ padding: 0 var(--eth-space-lg);
1317
+ white-space: nowrap;
1318
+ }
1319
+
1320
+ @media (width <= 42rem) {
1321
+ .eth-search-command-palette__panel,
1322
+ .eth-search-global-command-palette__card {
1323
+ margin-top: 0;
1324
+ }
1325
+
1326
+ .eth-search-app-command__bar,
1327
+ .eth-search-app-command__item {
1328
+ grid-template-columns: minmax(0, 1fr);
1329
+ }
1330
+
1331
+ .eth-search-app-command__controls {
1332
+ border-block-start: 1px solid var(--eth-color-border-subtle);
1333
+ border-inline-start: 0;
1334
+ justify-content: end;
1335
+ }
1336
+
1337
+ .eth-search-app-command__kind,
1338
+ .eth-search-app-command__meta {
1339
+ justify-self: start;
1340
+ text-align: start;
1341
+ }
1342
+
1343
+ .eth-search-app-command__meta {
1344
+ justify-items: start;
1345
+ min-width: 0;
1346
+ }
1347
+
1348
+ .eth-search-app-domain__header,
1349
+ .eth-search-app-domain__summary {
1350
+ align-items: start;
1351
+ flex-direction: column;
1352
+ }
1353
+
1354
+ .eth-search-app-domain__results button {
1355
+ grid-template-columns: minmax(0, 1fr);
1356
+ }
1357
+
1358
+ .eth-search-app-domain__result-meta {
1359
+ justify-self: start;
1360
+ text-align: start;
1361
+ white-space: normal;
1362
+ }
1363
+
1364
+ .eth-search-results-panel__group li,
1365
+ .eth-search-result-row,
1366
+ .eth-search-recent-items li,
1367
+ .eth-search-saved-searches li {
1368
+ grid-template-columns: 1fr;
1369
+ }
1370
+
1371
+ .eth-search-recent-items .eth-search-recent-items__row {
1372
+ align-items: start;
1373
+ grid-template-columns: auto minmax(0, 1fr);
1374
+ }
1375
+
1376
+ .eth-search-recent-items__kind,
1377
+ .eth-search-recent-items__visited,
1378
+ .eth-search-recent-items__arrow {
1379
+ grid-column: 2;
1380
+ }
1381
+
1382
+ .eth-search-recent-items__arrow {
1383
+ display: none;
1384
+ }
1385
+
1386
+ .eth-search-agent-suggestion {
1387
+ grid-template-columns: auto minmax(0, 1fr);
1388
+ }
1389
+
1390
+ .eth-search-agent-suggestion__action {
1391
+ display: none;
1392
+ }
1393
+ }
1394
+ .eth-search-results-panel.eth-search-results-panel {
1395
+ display: block;
1396
+ overflow: hidden;
1397
+ color: #161616;
1398
+ background: #ffffff;
1399
+ border: 1px solid #c6c6c6;
1400
+ border-radius: 0;
1401
+ box-shadow: none;
1402
+ }
1403
+
1404
+ .eth-search-results-panel.eth-search-results-panel * {
1405
+ box-sizing: border-box;
1406
+ }
1407
+
1408
+ .eth-search-results-panel.eth-search-results-panel
1409
+ .eth-search-results-panel__summary {
1410
+ display: flex;
1411
+ align-items: center;
1412
+ justify-content: space-between;
1413
+ gap: 1rem;
1414
+ min-height: 4rem;
1415
+ padding: 0.875rem 1rem;
1416
+ background: #ffffff;
1417
+ border-bottom: 1px solid #e0e0e0;
1418
+ }
1419
+
1420
+ .eth-search-results-panel.eth-search-results-panel
1421
+ .eth-search-results-panel__eyebrow {
1422
+ margin: 0 0 0.125rem;
1423
+ color: #525252;
1424
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1425
+ font-weight: 400;
1426
+ line-height: 1.333;
1427
+ }
1428
+
1429
+ .eth-search-results-panel.eth-search-results-panel
1430
+ .eth-search-results-panel__title {
1431
+ margin: 0;
1432
+ color: #161616;
1433
+ font-size: calc(1rem * var(--eth-text-scale, 1));
1434
+ font-weight: 600;
1435
+ line-height: 1.375;
1436
+ }
1437
+
1438
+ .eth-search-results-panel.eth-search-results-panel
1439
+ .eth-search-results-panel__query {
1440
+ flex: 0 1 auto;
1441
+ max-width: min(24rem, 48%);
1442
+ overflow: hidden;
1443
+ padding: 0.25rem 0.5rem;
1444
+ color: #393939;
1445
+ background: #f4f4f4;
1446
+ border: 1px solid #e0e0e0;
1447
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1448
+ line-height: 1.333;
1449
+ text-overflow: ellipsis;
1450
+ white-space: nowrap;
1451
+ }
1452
+
1453
+ .eth-search-results-panel.eth-search-results-panel
1454
+ .eth-search-results-panel__groups {
1455
+ display: grid;
1456
+ background: #ffffff;
1457
+ }
1458
+
1459
+ .eth-search-results-panel.eth-search-results-panel
1460
+ .eth-search-results-panel__group
1461
+ + .eth-search-results-panel__group {
1462
+ border-top: 1px solid #c6c6c6;
1463
+ }
1464
+
1465
+ .eth-search-results-panel.eth-search-results-panel
1466
+ .eth-search-results-panel__group-header {
1467
+ display: flex;
1468
+ align-items: center;
1469
+ justify-content: space-between;
1470
+ min-height: 2.5rem;
1471
+ padding: 0 1rem;
1472
+ background: #f4f4f4;
1473
+ border-bottom: 1px solid #e0e0e0;
1474
+ }
1475
+
1476
+ .eth-search-results-panel.eth-search-results-panel
1477
+ .eth-search-results-panel__group-title {
1478
+ margin: 0;
1479
+ color: #161616;
1480
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
1481
+ font-weight: 600;
1482
+ line-height: 1.4286;
1483
+ }
1484
+
1485
+ .eth-search-results-panel.eth-search-results-panel
1486
+ .eth-search-results-panel__count {
1487
+ display: inline-flex;
1488
+ align-items: center;
1489
+ justify-content: center;
1490
+ min-width: 1.5rem;
1491
+ height: 1.5rem;
1492
+ padding: 0 0.5rem;
1493
+ color: #525252;
1494
+ background: #ffffff;
1495
+ border: 1px solid #c6c6c6;
1496
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1497
+ line-height: 1;
1498
+ }
1499
+
1500
+ .eth-search-results-panel.eth-search-results-panel
1501
+ .eth-search-results-panel__list {
1502
+ display: grid;
1503
+ }
1504
+
1505
+ .eth-search-results-panel.eth-search-results-panel
1506
+ .eth-search-results-panel__item {
1507
+ display: grid;
1508
+ grid-template-columns: 2rem minmax(0, 1fr) auto;
1509
+ align-items: center;
1510
+ gap: 0.75rem;
1511
+ width: 100%;
1512
+ min-height: 4.5rem;
1513
+ margin: 0;
1514
+ padding: 0.75rem 1rem;
1515
+ color: inherit;
1516
+ background: #ffffff;
1517
+ border: 0;
1518
+ border-bottom: 1px solid #e0e0e0;
1519
+ font: inherit;
1520
+ text-align: left;
1521
+ text-decoration: none;
1522
+ }
1523
+
1524
+ .eth-search-results-panel.eth-search-results-panel
1525
+ .eth-search-results-panel__item:last-child {
1526
+ border-bottom: 0;
1527
+ }
1528
+
1529
+ .eth-search-results-panel.eth-search-results-panel
1530
+ button.eth-search-results-panel__item,
1531
+ .eth-search-results-panel.eth-search-results-panel
1532
+ a.eth-search-results-panel__item {
1533
+ cursor: pointer;
1534
+ }
1535
+
1536
+ .eth-search-results-panel.eth-search-results-panel
1537
+ button.eth-search-results-panel__item:hover,
1538
+ .eth-search-results-panel.eth-search-results-panel
1539
+ a.eth-search-results-panel__item:hover {
1540
+ background: #f4f4f4;
1541
+ }
1542
+
1543
+ .eth-search-results-panel.eth-search-results-panel
1544
+ button.eth-search-results-panel__item:focus-visible,
1545
+ .eth-search-results-panel.eth-search-results-panel
1546
+ a.eth-search-results-panel__item:focus-visible {
1547
+ position: relative;
1548
+ z-index: 1;
1549
+ outline: 2px solid #0f62fe;
1550
+ outline-offset: -2px;
1551
+ }
1552
+
1553
+ .eth-search-results-panel.eth-search-results-panel
1554
+ .eth-search-results-panel__entity {
1555
+ display: inline-flex;
1556
+ align-items: center;
1557
+ justify-content: center;
1558
+ width: 2rem;
1559
+ height: 2rem;
1560
+ color: #0f62fe;
1561
+ background: #edf5ff;
1562
+ border: 1px solid #d0e2ff;
1563
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1564
+ font-weight: 600;
1565
+ line-height: 1;
1566
+ }
1567
+
1568
+ .eth-search-results-panel.eth-search-results-panel
1569
+ .eth-search-results-panel__body {
1570
+ display: grid;
1571
+ min-width: 0;
1572
+ gap: 0.1875rem;
1573
+ }
1574
+
1575
+ .eth-search-results-panel.eth-search-results-panel
1576
+ .eth-search-results-panel__name {
1577
+ overflow: hidden;
1578
+ color: #0f62fe;
1579
+ font-size: calc(0.9375rem * var(--eth-text-scale, 1));
1580
+ font-weight: 500;
1581
+ line-height: 1.333;
1582
+ text-overflow: ellipsis;
1583
+ white-space: nowrap;
1584
+ }
1585
+
1586
+ .eth-search-results-panel.eth-search-results-panel
1587
+ .eth-search-results-panel__description {
1588
+ overflow: hidden;
1589
+ color: #525252;
1590
+ font-size: calc(0.8125rem * var(--eth-text-scale, 1));
1591
+ line-height: 1.385;
1592
+ text-overflow: ellipsis;
1593
+ white-space: nowrap;
1594
+ }
1595
+
1596
+ .eth-search-results-panel.eth-search-results-panel
1597
+ .eth-search-results-panel__metadata {
1598
+ display: flex;
1599
+ flex-wrap: wrap;
1600
+ justify-content: flex-end;
1601
+ gap: 0.375rem;
1602
+ max-width: 22rem;
1603
+ }
1604
+
1605
+ .eth-search-results-panel.eth-search-results-panel
1606
+ .eth-search-results-panel__meta {
1607
+ display: inline-flex;
1608
+ align-items: center;
1609
+ min-height: 1.5rem;
1610
+ max-width: 11rem;
1611
+ overflow: hidden;
1612
+ padding: 0.1875rem 0.5rem;
1613
+ color: #525252;
1614
+ background: #f4f4f4;
1615
+ border: 1px solid #e0e0e0;
1616
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
1617
+ line-height: 1.333;
1618
+ text-overflow: ellipsis;
1619
+ white-space: nowrap;
1620
+ }
1621
+
1622
+ .eth-search-results-panel.eth-search-results-panel
1623
+ .eth-search-results-panel__state {
1624
+ display: grid;
1625
+ gap: 0.75rem;
1626
+ padding: 1.5rem 1rem;
1627
+ color: #525252;
1628
+ background: #ffffff;
1629
+ }
1630
+
1631
+ .eth-search-results-panel.eth-search-results-panel
1632
+ .eth-search-results-panel__empty-title,
1633
+ .eth-search-results-panel.eth-search-results-panel
1634
+ .eth-search-results-panel__empty-copy,
1635
+ .eth-search-results-panel.eth-search-results-panel
1636
+ .eth-search-results-panel__loading-copy {
1637
+ margin: 0;
1638
+ }
1639
+
1640
+ .eth-search-results-panel.eth-search-results-panel
1641
+ .eth-search-results-panel__empty-title {
1642
+ color: #161616;
1643
+ font-size: calc(0.9375rem * var(--eth-text-scale, 1));
1644
+ font-weight: 600;
1645
+ line-height: 1.333;
1646
+ }
1647
+
1648
+ .eth-search-results-panel.eth-search-results-panel
1649
+ .eth-search-results-panel__empty-copy,
1650
+ .eth-search-results-panel.eth-search-results-panel
1651
+ .eth-search-results-panel__loading-copy {
1652
+ color: #525252;
1653
+ font-size: calc(0.8125rem * var(--eth-text-scale, 1));
1654
+ line-height: 1.385;
1655
+ }
1656
+
1657
+ .eth-search-results-panel.eth-search-results-panel
1658
+ .eth-search-results-panel__skeleton {
1659
+ display: block;
1660
+ width: 100%;
1661
+ height: 1rem;
1662
+ background: linear-gradient(90deg, #e0e0e0, #f4f4f4, #e0e0e0);
1663
+ background-size: 200% 100%;
1664
+ animation: eth-search-results-panel-loading 1.2s ease-in-out infinite;
1665
+ }
1666
+
1667
+ .eth-search-results-panel.eth-search-results-panel
1668
+ .eth-search-results-panel__skeleton:nth-of-type(2) {
1669
+ width: 72%;
1670
+ }
1671
+
1672
+ .eth-search-results-panel.eth-search-results-panel
1673
+ .eth-search-results-panel__skeleton:nth-of-type(3) {
1674
+ width: 44%;
1675
+ }
1676
+
1677
+ @keyframes eth-search-results-panel-loading {
1678
+ from {
1679
+ background-position: 100% 0;
1680
+ }
1681
+
1682
+ to {
1683
+ background-position: -100% 0;
1684
+ }
1685
+ }
1686
+
1687
+ @media (prefers-reduced-motion: reduce) {
1688
+ .eth-search-results-panel.eth-search-results-panel
1689
+ .eth-search-results-panel__skeleton {
1690
+ animation: none;
1691
+ }
1692
+ }
1693
+
1694
+ @media (max-width: 640px) {
1695
+ .eth-search-results-panel.eth-search-results-panel
1696
+ .eth-search-results-panel__summary,
1697
+ .eth-search-results-panel.eth-search-results-panel
1698
+ .eth-search-results-panel__group-header {
1699
+ padding-right: 0.75rem;
1700
+ padding-left: 0.75rem;
1701
+ }
1702
+
1703
+ .eth-search-results-panel.eth-search-results-panel
1704
+ .eth-search-results-panel__item {
1705
+ grid-template-columns: 2rem minmax(0, 1fr);
1706
+ padding-right: 0.75rem;
1707
+ padding-left: 0.75rem;
1708
+ }
1709
+
1710
+ .eth-search-results-panel.eth-search-results-panel
1711
+ .eth-search-results-panel__metadata {
1712
+ grid-column: 2;
1713
+ justify-content: flex-start;
1714
+ max-width: 100%;
1715
+ }
1716
+ }