Skip to main content

euv_ui/style/class/overlay/
fn.rs

1use super::*;
2
3class! {
4    pub c_euv_feature_grid {
5        display: "grid";
6        grid-template-columns: "repeat(auto-fit, minmax(220px, 1fr))";
7        gap: var!(space-md);
8        width: "100%";
9        @media ((max-width: 767px)) {
10            grid-template-columns: "1fr";
11        }
12    }
13
14    pub c_euv_feature_card {
15        display: "flex";
16        flex-direction: "column";
17        gap: var!(space-sm);
18        padding: var!(card-padding);
19        overflow: "hidden";
20        box-sizing: "border-box";
21        border: format!("{} solid {}", var!(border-width), var!(border));
22    }
23
24    pub c_euv_feature_header {
25        display: "flex";
26        align-items: "center";
27        gap: var!(space-sm);
28    }
29
30    pub c_euv_feature_icon {
31        display: "flex";
32        align-items: "center";
33        justify-content: "center";
34        font-size: var!(font-2xl);
35        line-height: "1";
36        color: var!(foreground);
37        flex-shrink: "0";
38    }
39
40    pub c_euv_feature_name {
41        font-size: var!(font-lg);
42        font-weight: var!(font-weight-semibold);
43        color: var!(foreground);
44        margin: "0px";
45        overflow: "hidden";
46        text-overflow: "ellipsis";
47        white-space: "nowrap";
48    }
49
50    pub c_euv_feature_desc {
51        font-size: var!(font-sm);
52        color: var!(foreground);
53        margin: "0px";
54    }
55
56    pub c_modal_actions {
57        display: "flex";
58        flex-wrap: "wrap";
59        gap: var!(space-md);
60        margin: format!("{} 0px", var!(space-md));
61    }
62
63    // ═══════════════════════════════════════════════════════════════════════════
64    // File Upload
65    // ═══════════════════════════════════════════════════════════════════════════
66
67    pub c_file_upload_input_hidden {
68        position: "absolute";
69        width: "1px";
70        height: "1px";
71        padding: "0px";
72        // The visually hidden recipe: a 1px box pulled 1px out of the flow,
73        // so it clips at the edge of its parent instead of taking a slot.
74        margin: "-1px";
75        overflow: "hidden";
76        clip: "rect(0, 0, 0, 0)";
77        white-space: "nowrap";
78        border: "0px";
79    }
80
81    pub c_file_upload_options {
82        margin: format!("{} 0px", var!(gap-component));
83    }
84
85    pub c_file_upload_item {
86        display: "flex";
87        align-items: "center";
88        gap: format!("{}", var!(space-md));
89        margin: format!("{} 0px", var!(space-sm));
90        font-size: var!(font-base);
91        color: "inherit";
92    }
93
94    pub c_file_upload_item_index {
95        font-size: var!(font-sm);
96        font-weight: var!(font-weight-semibold);
97        color: var!(primary);
98        min-width: "24px";
99    }
100
101    pub c_file_upload_item_name {
102        color: "inherit";
103        word-break: "break-all";
104    }
105
106    pub(crate) c_euv_tooltip {
107        position: "relative";
108        display: "inline-flex";
109        align-items: "center";
110    }
111
112    pub(crate) c_euv_tooltip_bubble {
113        position: "absolute";
114        z-index: "140";
115        padding: format!("{} {}", var!(space-xs), var!(space-sm));
116        box-sizing: "border-box";
117        border: format!("{} solid {}", var!(border-width), var!(border));
118        border-radius: var!(radius-md);
119        background: var!(primary);
120        color: var!(primary-foreground);
121        font-size: var!(font-xs);
122        font-weight: var!(font-weight-medium);
123        line-height: "1.3";
124        white-space: "nowrap";
125        opacity: "0";
126        visibility: "hidden";
127        pointer-events: "none";
128        transition: format!("opacity {} {}", var!(duration-fast), var!(ease-out));
129    }
130
131    pub(crate) c_euv_tooltip_bubble_top {
132        position: "absolute";
133        z-index: "140";
134        padding: format!("{} {}", var!(space-xs), var!(space-sm));
135        box-sizing: "border-box";
136        border: format!("{} solid {}", var!(border-width), var!(border));
137        border-radius: var!(radius-md);
138        background: var!(primary);
139        color: var!(primary-foreground);
140        font-size: var!(font-xs);
141        font-weight: var!(font-weight-medium);
142        line-height: "1.3";
143        white-space: "nowrap";
144        opacity: "0";
145        visibility: "hidden";
146        pointer-events: "none";
147        bottom: "calc(100% + 8px)";
148        left: "50%";
149        transform: "translateX(-50%)";
150        transition: format!("opacity {} {}", var!(duration-fast), var!(ease-out));
151    }
152
153    pub(crate) c_euv_tooltip_bubble_bottom {
154        position: "absolute";
155        z-index: "140";
156        padding: format!("{} {}", var!(space-xs), var!(space-sm));
157        box-sizing: "border-box";
158        border: format!("{} solid {}", var!(border-width), var!(border));
159        border-radius: var!(radius-md);
160        background: var!(primary);
161        color: var!(primary-foreground);
162        font-size: var!(font-xs);
163        font-weight: var!(font-weight-medium);
164        line-height: "1.3";
165        white-space: "nowrap";
166        opacity: "0";
167        visibility: "hidden";
168        pointer-events: "none";
169        top: "calc(100% + 8px)";
170        left: "50%";
171        transform: "translateX(-50%)";
172        transition: format!("opacity {} {}", var!(duration-fast), var!(ease-out));
173    }
174
175    pub(crate) c_euv_tooltip_bubble_left {
176        position: "absolute";
177        z-index: "140";
178        padding: format!("{} {}", var!(space-xs), var!(space-sm));
179        box-sizing: "border-box";
180        border: format!("{} solid {}", var!(border-width), var!(border));
181        border-radius: var!(radius-md);
182        background: var!(primary);
183        color: var!(primary-foreground);
184        font-size: var!(font-xs);
185        font-weight: var!(font-weight-medium);
186        line-height: "1.3";
187        white-space: "nowrap";
188        opacity: "0";
189        visibility: "hidden";
190        pointer-events: "none";
191        top: "50%";
192        right: "calc(100% + 8px)";
193        transform: "translateY(-50%)";
194        transition: format!("opacity {} {}", var!(duration-fast), var!(ease-out));
195    }
196
197    pub(crate) c_euv_tooltip_bubble_right {
198        position: "absolute";
199        z-index: "140";
200        padding: format!("{} {}", var!(space-xs), var!(space-sm));
201        box-sizing: "border-box";
202        border: format!("{} solid {}", var!(border-width), var!(border));
203        border-radius: var!(radius-md);
204        background: var!(primary);
205        color: var!(primary-foreground);
206        font-size: var!(font-xs);
207        font-weight: var!(font-weight-medium);
208        line-height: "1.3";
209        white-space: "nowrap";
210        opacity: "0";
211        visibility: "hidden";
212        pointer-events: "none";
213        top: "50%";
214        left: "calc(100% + 8px)";
215        transform: "translateY(-50%)";
216        transition: format!("opacity {} {}", var!(duration-fast), var!(ease-out));
217    }
218
219    pub(crate) c_euv_popover {
220        position: "relative";
221        display: "inline-flex";
222        align-items: "center";
223    }
224
225    pub(crate) c_euv_popover_body {
226        position: "absolute";
227        z-index: "150";
228        min-width: "200px";
229        box-sizing: "border-box";
230        border-radius: var!(radius-md);
231        border: format!("{} solid {}", var!(border-width), var!(border));
232        background: var!(popover);
233        color: var!(popover-foreground);
234        box-shadow: var!(shadow-md);
235        font-size: var!(font-base);
236        transition: format!("opacity {} {}, visibility {} {}", var!(duration-overlay), var!(ease-out), var!(duration-overlay), var!(ease-out));
237    }
238
239    pub(crate) c_euv_popover_body_open {
240        position: "absolute";
241        z-index: "150";
242        min-width: "200px";
243        box-sizing: "border-box";
244        border: format!("{} solid {}", var!(border-width), var!(border));
245        box-shadow: var!(shadow-md);
246        border-radius: var!(radius-md);
247        background: var!(background);
248        color: var!(foreground);
249        font-size: var!(font-base);
250        opacity: "1";
251        visibility: "visible";
252        pointer-events: "auto";
253        transition: format!("opacity {} {}, visibility {} {}", var!(duration-overlay), var!(ease-out), var!(duration-overlay), var!(ease-out));
254    }
255
256    pub(crate) c_euv_popover_body_closed {
257        position: "absolute";
258        z-index: "150";
259        min-width: "200px";
260        box-sizing: "border-box";
261        border: format!("{} solid {}", var!(border-width), var!(border));
262        border-radius: var!(radius-md);
263        background: var!(background);
264        color: var!(foreground);
265        font-size: var!(font-base);
266        opacity: "0";
267        visibility: "hidden";
268        pointer-events: "none";
269        transition: format!("opacity {} {}, visibility {} {}", var!(duration-overlay), var!(ease-out), var!(duration-overlay), var!(ease-out));
270    }
271
272    pub(crate) c_euv_popover_header {
273        display: "flex";
274        align-items: "center";
275        justify-content: "space-between";
276        gap: var!(space-sm);
277        padding: format!("{} {}", var!(space-sm), var!(space-md));
278        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
279    }
280
281    pub(crate) c_euv_popover_title {
282        font-size: var!(font-base);
283        font-weight: var!(font-weight-semibold);
284        color: var!(foreground);
285        margin: "0px";
286    }
287
288    pub(crate) c_euv_calendar {
289        display: "flex";
290        flex-direction: "column";
291        gap: var!(space-md);
292        width: "100%";
293        box-sizing: "border-box";
294        padding: var!(space-md);
295        border: format!("{} solid {}", var!(border-width), var!(border));
296        background: var!(background);
297    }
298
299    pub(crate) c_euv_calendar_header {
300        display: "flex";
301        align-items: "center";
302        justify-content: "space-between";
303        gap: var!(space-sm);
304    }
305
306    pub(crate) c_euv_calendar_title {
307        font-size: var!(font-base);
308        font-weight: var!(font-weight-semibold);
309        color: var!(foreground);
310        margin: "0px";
311    }
312
313    pub(crate) c_euv_calendar_nav {
314        display: "flex";
315        align-items: "center";
316        gap: var!(space-xs);
317    }
318
319    pub(crate) c_euv_calendar_weekdays {
320        display: "grid";
321        grid-template-columns: "repeat(7, minmax(0px, 1fr))";
322        gap: "0px";
323        width: "100%";
324    }
325
326    pub(crate) c_euv_calendar_weekday {
327        display: "flex";
328        align-items: "center";
329        justify-content: "center";
330        min-height: "24px";
331        font-size: var!(font-xs);
332        font-weight: var!(font-weight-semibold);
333        color: var!(muted-foreground);
334        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
335    }
336
337    pub(crate) c_euv_calendar_grid {
338        display: "flex";
339        flex-direction: "column";
340        gap: "0px";
341        width: "100%";
342    }
343
344    pub(crate) c_euv_calendar_grid_row {
345        display: "grid";
346        grid-template-columns: "repeat(7, minmax(0px, 1fr))";
347        gap: "0px";
348        width: "100%";
349    }
350
351    pub(crate) c_euv_calendar_grid_cell {
352        display: "flex";
353        min-width: "0px";
354        width: "100%";
355    }
356
357    pub(crate) c_euv_calendar_grid_cell_button {
358        width: "100%";
359        min-width: "0px";
360    }
361
362    pub(crate) c_euv_calendar_day {
363        display: "flex";
364        align-items: "center";
365        justify-content: "center";
366        min-height: "36px";
367        box-sizing: "border-box";
368        font-size: var!(font-base);
369        font-weight: var!(font-weight-medium);
370        color: var!(foreground);
371        background: var!(background);
372        border: format!("{} solid transparent", var!(border-width));
373        border-radius: var!(radius-md);
374        cursor: "pointer";
375        touch-action: "manipulation";
376        user-select: "none";
377        -webkit-user-select: "none";
378        :hover {
379            background: var!(muted);
380            color: var!(primary);
381        }
382    }
383
384    pub(crate) c_euv_calendar_day_muted {
385        display: "flex";
386        align-items: "center";
387        justify-content: "center";
388        min-height: "36px";
389        box-sizing: "border-box";
390        font-size: var!(font-base);
391        font-weight: var!(font-weight-normal);
392        color: var!(muted-foreground);
393        background: var!(background);
394        border: format!("{} solid transparent", var!(border-width));
395        border-radius: var!(radius-md);
396        cursor: "pointer";
397        touch-action: "manipulation";
398        user-select: "none";
399        -webkit-user-select: "none";
400    }
401
402    pub(crate) c_euv_calendar_day_today {
403        display: "flex";
404        align-items: "center";
405        justify-content: "center";
406        min-height: "36px";
407        box-sizing: "border-box";
408        font-size: var!(font-base);
409        font-weight: var!(font-weight-bold);
410        color: var!(foreground);
411        background: var!(background);
412        border: format!("2px solid {}", var!(primary));
413        border-radius: var!(radius-md);
414        cursor: "pointer";
415        touch-action: "manipulation";
416        user-select: "none";
417        -webkit-user-select: "none";
418        :hover {
419            background: var!(muted);
420            color: var!(primary);
421        }
422    }
423
424    pub(crate) c_euv_calendar_day_selected {
425        display: "flex";
426        align-items: "center";
427        justify-content: "center";
428        min-height: "36px";
429        box-sizing: "border-box";
430        font-size: var!(font-base);
431        font-weight: var!(font-weight-semibold);
432        color: var!(primary-foreground);
433        background: var!(primary);
434        border: format!("2px solid {}", var!(primary));
435        border-radius: var!(radius-md);
436        cursor: "pointer";
437        touch-action: "manipulation";
438        user-select: "none";
439        -webkit-user-select: "none";
440    }
441
442    pub(crate) c_euv_upload {
443        display: "flex";
444        flex-direction: "column";
445        gap: var!(space-md);
446        width: "100%";
447    }
448
449    pub(crate) c_euv_upload_input {
450        position: "absolute";
451        width: "1px";
452        height: "1px";
453        opacity: "0";
454        pointer-events: "none";
455        margin: "0px";
456        padding: "0px";
457        border: "none";
458        outline: "none";
459    }
460
461    pub(crate) c_euv_upload_drop_active {
462        display: "flex";
463        flex-direction: "column";
464        align-items: "center";
465        justify-content: "center";
466        gap: var!(space-sm);
467        width: "100%";
468        min-height: var!(space-7xl);
469        box-sizing: "border-box";
470        padding: var!(space-2xl);
471        border: format!("2px solid {}", var!(primary));
472        background: var!(muted);
473        color: var!(primary);
474        font-size: var!(font-base);
475        text-align: "center";
476        cursor: "pointer";
477        touch-action: "manipulation";
478        user-select: "none";
479        -webkit-user-select: "none";
480        @media ((max-width: 767px)) {
481            padding: var!(space-lg);
482        }
483    }
484
485    pub(crate) c_euv_upload_list {
486        display: "flex";
487        flex-direction: "column";
488        gap: var!(space-sm);
489        width: "100%";
490    }
491
492    pub(crate) c_euv_upload_file {
493        display: "flex";
494        align-items: "center";
495        justify-content: "space-between";
496        gap: var!(space-sm);
497        width: "100%";
498        min-height: var!(control-height);
499        box-sizing: "border-box";
500        padding: format!("{} {}", var!(space-sm), var!(space-md));
501        border: format!("{} solid {}", var!(border-width), var!(border));
502    }
503
504    pub(crate) c_euv_upload_file_name {
505        font-size: var!(font-sm);
506        font-weight: var!(font-weight-medium);
507        color: var!(foreground);
508        overflow: "hidden";
509        text-overflow: "ellipsis";
510        white-space: "nowrap";
511        min-width: "0px";
512    }
513
514    pub(crate) c_euv_upload_file_size {
515        font-size: var!(font-xs);
516        color: var!(muted-foreground);
517        font-family: var!(font-family-mono);
518        white-space: "nowrap";
519        flex-shrink: "0";
520    }
521
522    pub(crate) c_euv_upload_file_status_pending {
523        display: "flex";
524        align-items: "center";
525        gap: var!(space-xs);
526        font-size: var!(font-xs);
527        font-weight: var!(font-weight-normal);
528        color: var!(muted-foreground);
529        border: format!("{} solid {}", var!(border-width), var!(border));
530        padding: "0px";
531        white-space: "nowrap";
532        flex-shrink: "0";
533    }
534
535    pub(crate) c_euv_upload_file_status_uploading {
536        display: "flex";
537        align-items: "center";
538        gap: var!(space-xs);
539        font-size: var!(font-xs);
540        font-weight: var!(font-weight-medium);
541        color: var!(foreground);
542        border: format!("{} solid {}", var!(border-width), var!(border));
543        padding: "0px";
544        white-space: "nowrap";
545        flex-shrink: "0";
546    }
547
548    pub(crate) c_euv_upload_file_status_done {
549        display: "flex";
550        align-items: "center";
551        gap: var!(space-xs);
552        font-size: var!(font-xs);
553        font-weight: var!(font-weight-semibold);
554        color: var!(primary);
555        border: format!("2px solid {}", var!(primary));
556        padding: "0px";
557        white-space: "nowrap";
558        flex-shrink: "0";
559    }
560
561    pub(crate) c_euv_upload_file_status_failed {
562        display: "flex";
563        align-items: "center";
564        gap: var!(space-xs);
565        font-size: var!(font-xs);
566        font-weight: var!(font-weight-bold);
567        color: var!(muted-foreground);
568        border: format!("{} solid {}", var!(border-width), var!(foreground));
569        padding: "0px";
570        text-decoration: "line-through";
571        white-space: "nowrap";
572        flex-shrink: "0";
573    }
574
575    // ═══════════════════════════════════════════════════════════════════════════
576    // Modal
577    // ═══════════════════════════════════════════════════════════════════════════
578
579    pub(crate) c_modal_overlay {
580        position: "fixed";
581        top: "0px";
582        left: "0px";
583        width: "100%";
584        height: "100%";
585        background: var!(bg-overlay);
586        contain: "layout style paint";
587        display: "flex";
588        align-items: "center";
589        justify-content: "center";
590        z-index: "1000";
591        animation: format!("euv-fade-in {} {}", var!(duration-modal-overlay), var!(ease-out));
592        @media ((max-width: 767px)) {
593            align-items: "center";
594            justify-content: "center";
595        }
596    }
597
598    pub(crate) c_modal_content {
599        background: var!(popover);
600        color: var!(popover-foreground);
601        padding: "0px";
602        max-width: "480px";
603        width: "90%";
604        animation: format!("euv-scale-in-modal {} {}", var!(duration-modal-content), var!(ease-bounce));
605        overflow: "hidden";
606        color: var!(foreground);
607        box-sizing: "border-box";
608        border-radius: var!(radius-xl);
609        box-shadow: var!(shadow-xl);
610        @media ((max-width: 767px)) {
611            max-width: "100%";
612            width: "calc(100% - 32px)";
613            // Percentage of the fixed overlay (which is already the full
614            // window), so the sheet is capped by the screen it sits on
615            // rather than by a viewport unit that ignores the safe-area
616            // insets the overlay does not account for.
617            max-height: "85%";
618            overflow-y: "auto";
619        }
620    }
621
622    pub(crate) c_modal_header {
623        display: "flex";
624        justify-content: "space-between";
625        align-items: "center";
626        padding: format!("{} {} 0px {}", var!(space-md), var!(space-xl), var!(space-xl));
627    }
628
629    pub(crate) c_modal_title {
630        margin: "0px";
631        font-size: var!(font-xl);
632        font-weight: var!(font-weight-semibold);
633        color: "inherit";
634    }
635
636    pub(crate) c_modal_body {
637        padding: format!("0px {} {} {}", var!(space-xl), var!(space-md), var!(space-xl));
638        color: "inherit";
639    }
640
641    // ═══════════════════════════════════════════════════════════════════════════
642    // VConsole Panel
643    // ═══════════════════════════════════════════════════════════════════════════
644
645    pub(crate) c_vconsole_badge {
646        position: "absolute";
647        top: "-6px";
648        right: "-8px";
649        min-width: "18px";
650        height: "18px";
651        background: var!(background);
652        color: var!(foreground);
653        font-size: "10px";
654        font-weight: var!(font-weight-semibold);
655        display: "flex";
656        align-items: "center";
657        justify-content: "center";
658        padding: format!("0px {}", var!(space-xs));
659        border: format!("{} solid {}", var!(border-width), var!(primary));
660        pointer-events: "none";
661        transition: format!("transform {} {}, opacity {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
662    }
663
664    pub(crate) c_vconsole_overlay {
665        position: "fixed";
666        top: "0px";
667        left: "0px";
668        right: "0px";
669        bottom: "0px";
670        z-index: "10000";
671        background: var!(bg-overlay);
672        contain: "layout style paint";
673        transition: format!("opacity {} {}", var!(duration-overlay), var!(ease-out));
674    }
675
676    pub(crate) c_vconsole_overlay_hidden {
677        opacity: "0";
678        pointer-events: "none";
679    }
680
681    pub(crate) c_vconsole_panel {
682        position: "fixed";
683        bottom: "0px";
684        left: "0px";
685        right: "0px";
686        // A fixed element with `bottom` anchored resolves percentage heights
687        // against the initial containing block, so `76%` and `76vh` measure
688        // the same box here — the percentage form is used to keep viewport
689        // units out of the codebase. The safe-area inset is still subtracted
690        // so the panel clears a home indicator.
691        height: format!("calc(76% - {})", var!(safe-area-inset-bottom));
692        background: var!(background);
693        z-index: "10001";
694        display: "flex";
695        flex-direction: "column";
696        contain: "layout style paint";
697        will-change: "transform";
698        transition: format!("transform {} {}", var!(duration-overlay), var!(ease-out));
699        overflow: "hidden";
700        box-shadow: var!(shadow-lg);
701        padding: format!("{} {}", var!(padding-main-top), var!(edge-gutter));
702        @media ((max-width: 767px)) {
703            padding: format!("{} {}", var!(space-md), var!(edge-gutter-mobile));
704        }
705    }
706
707    pub(crate) c_vconsole_panel_closed {
708        transform: "translateY(100%)";
709        will-change: "auto";
710    }
711
712    pub(crate) c_vconsole_fab {
713        position: "fixed";
714        bottom: format!("calc({} + {})", var!(edge-gutter-bottom), var!(safe-area-inset-bottom));
715        right: var!(edge-gutter);
716        z-index: "9999";
717        @media ((max-width: 767px)) {
718            bottom: format!("calc({} + {})", var!(edge-gutter-mobile), var!(safe-area-inset-bottom));
719            right: var!(edge-gutter-mobile);
720        }
721    }
722
723    pub(crate) c_vconsole_header {
724        display: "flex";
725        justify-content: "space-between";
726        align-items: "center";
727        flex-shrink: "0";
728    }
729
730    pub(crate) c_vconsole_title {
731        color: var!(foreground);
732        font-size: var!(font-md);
733        font-weight: var!(font-weight-semibold);
734        margin: "0px";
735        letter-spacing: var!(letter-spacing-normal);
736        display: "flex";
737        align-items: "center";
738        gap: var!(space-sm);
739    }
740
741    pub(crate) c_vconsole_title_dot {
742        width: "8px";
743        height: "8px";
744        background: var!(primary);
745        display: "inline-block";
746        animation: "euv-pulse 2s ease-in-out infinite";
747    }
748
749    pub(crate) c_vconsole_header_actions {
750        display: "flex";
751        gap: var!(space-sm);
752        align-items: "center";
753    }
754
755    pub(crate) c_vconsole_clear_button {
756        display: "inline-flex";
757        justify-content: "center";
758        align-items: "center";
759        color: var!(foreground);
760        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
761        font-size: var!(font-xs);
762        font-weight: var!(font-weight-semibold);
763        cursor: "pointer";
764        text-align: "center";
765        // A button is a nowrap element (§7): the label never wraps, so the
766        // border of the inline flex box stays where it belongs.
767        white-space: "nowrap";
768        border: format!("1.5px solid {}", var!(border));
769        margin-left: "auto";
770        :focus-visible {
771            outline: "none";
772        }
773    }
774
775    pub(crate) c_vconsole_close_button {
776        display: "inline-flex";
777        justify-content: "center";
778        align-items: "center";
779        color: var!(foreground);
780        padding: format!("{} {}", var!(space-xs), var!(space-md));
781        cursor: "pointer";
782        font-size: var!(font-sm);
783        font-weight: var!(font-weight-normal);
784        text-align: "center";
785        white-space: "nowrap";
786        user-select: "none";
787        -webkit-user-select: "none";
788        vertical-align: "middle";
789        outline: "none";
790        transition: format!("all {} {}", var!(duration-fast), var!(ease-out));
791        :hover {
792            border-color: var!(foreground);
793            color: var!(foreground);
794            background: var!(background);
795        }
796        :focus-visible {
797            outline: "none";
798        }
799        :active {
800            background: "transparent";
801            color: var!(foreground);
802            border-color: var!(border);
803        }
804    }
805
806    pub(crate) c_vconsole_body {
807        flex: "1";
808        overflow-y: "auto";
809        contain: "content";
810        padding-bottom: var!(space-md);
811        font-family: var!(font-family-mono);
812        font-size: var!(font-xs);
813    }
814
815    pub(crate) c_vconsole_log_item {
816        display: "flex";
817        align-items: "center";
818        padding: format!("{} 0px", var!(space-sm));
819        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
820        color: var!(foreground);
821        font-size: var!(font-xs);
822        word-break: "break-all";
823    }
824
825    pub(crate) c_vconsole_empty {
826        color: var!(muted-foreground);
827        font-size: var!(font-xs);
828        text-align: "center";
829        padding: format!("{} 0px", var!(space-4xl));
830        overflow: "hidden";
831    }
832
833    pub(crate) c_vconsole_empty_hidden {
834        height: "0";
835        overflow: "hidden";
836        padding: "0";
837    }
838
839    pub(crate) c_vconsole_log_list {
840        overflow: "hidden";
841    }
842
843    pub(crate) c_vconsole_log_list_hidden {
844        height: "0";
845        overflow: "hidden";
846    }
847
848    pub(crate) c_vconsole_count {
849        color: var!(muted-foreground);
850        font-size: var!(font-sm);
851        font-weight: var!(font-weight-normal);
852    }
853
854    pub(crate) c_vconsole_filter_bar {
855        display: "flex";
856        gap: var!(space-sm);
857        padding: format!("{} 0px", var!(space-sm));
858        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
859        flex-shrink: "0";
860        align-items: "center";
861    }
862
863    pub(crate) c_vconsole_filter_badge {
864        // The wrapping-atom recipe (§7): same kind of element as the tag and
865        // the badge, so it gets the same box.
866        display: "inline-block";
867        vertical-align: "middle";
868        text-align: "center";
869        line-height: "1";
870        box-sizing: "border-box";
871        color: var!(primary-foreground);
872        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
873        border: format!("{} solid {}", var!(border-width), var!(primary));
874        font-size: var!(font-xs);
875        font-weight: var!(font-weight-semibold);
876        cursor: "pointer";
877        background: var!(primary);
878        :focus-visible {
879            outline: "none";
880        }
881    }
882
883    pub(crate) c_vconsole_filter_badge_outline {
884        display: "inline-block";
885        vertical-align: "middle";
886        text-align: "center";
887        line-height: "1";
888        box-sizing: "border-box";
889        color: var!(foreground);
890        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
891        font-size: var!(font-xs);
892        font-weight: var!(font-weight-semibold);
893        cursor: "pointer";
894        border: format!("1.5px solid {}", var!(border));
895    }
896
897    pub(crate) c_vconsole_level_badge {
898        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
899        font-size: var!(font-xs);
900        margin-right: var!(space-sm);
901        letter-spacing: var!(letter-spacing-wide);
902        color: var!(foreground);
903        border: format!("{} solid currentColor", var!(border-width));
904        wrap: "nowrap";
905        flex-shrink: "0";
906    }
907
908    // ═══════════════════════════════════════════════════════════════════════════
909    // euv_dropdown
910    // ═══════════════════════════════════════════════════════════════════════════
911
912    pub(crate) c_euv_dropdown {
913        position: "relative";
914    }
915
916    pub(crate) c_euv_dropdown_menu_open {
917        display: "flex";
918    }
919
920    pub(crate) c_euv_dropdown_menu_closed {
921        display: "none";
922    }
923
924
925
926
927
928    // ═══════════════════════════════════════════════════════════════════════════
929    // euv_drawer
930    // ═══════════════════════════════════════════════════════════════════════════
931
932    pub(crate) c_euv_drawer_overlay {
933        position: "fixed";
934        top: "0px";
935        left: "0px";
936        right: "0px";
937        bottom: "0px";
938        background: var!(bg-overlay);
939        z-index: "200";
940        transition: format!("opacity {} {}, visibility {} {}", var!(duration-overlay), var!(ease-out), var!(duration-overlay), var!(ease-out));
941    }
942
943    pub(crate) c_euv_drawer_overlay_open {
944        opacity: "1";
945        visibility: "visible";
946    }
947
948    pub(crate) c_euv_drawer_overlay_closed {
949        opacity: "0";
950        visibility: "hidden";
951    }
952
953    pub(crate) c_euv_drawer {
954        position: "fixed";
955        top: "0px";
956        left: "0px";
957        bottom: "0px";
958        width: "260px";
959        background: var!(background);
960        border-right: format!("{} solid {}", var!(border-width), var!(border));
961        z-index: "201";
962        overflow-y: "auto";
963        padding: var!(space-xl);
964        transition: format!("transform {} {}, visibility {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
965    }
966
967    pub(crate) c_euv_drawer_open {
968        transform: "translateX(0px)";
969        visibility: "visible";
970    }
971
972    pub(crate) c_euv_drawer_closed {
973        transform: "translateX(-100%)";
974        visibility: "hidden";
975    }
976
977    // The reference drawer is a sheet that rises from the bottom edge.
978    // The panel sits across the full width, keeps its own rounded top
979    // corners and carries the hairline that separates it from the page.
980    pub(crate) c_euv_drawer_content {
981        position: "fixed";
982        left: "0px";
983        right: "0px";
984        bottom: "0px";
985        display: "flex";
986        flex-direction: "column";
987        height: "auto";
988        margin-top: var!(space-3xl);
989        border: format!("{} solid {}", var!(border-width), var!(border));
990        border-radius: var!(radius-lg);
991        background: var!(background);
992        color: var!(foreground);
993        z-index: "201";
994        transition: format!("transform {} {}, visibility {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
995    }
996
997    pub(crate) c_euv_drawer_content_open {
998        transform: "translateY(0px)";
999        visibility: "visible";
1000    }
1001
1002    pub(crate) c_euv_drawer_content_closed {
1003        transform: "translateY(100%)";
1004        visibility: "hidden";
1005    }
1006
1007    // The handle is the small bar at the top of the sheet that says the
1008    // panel can be dragged.
1009    pub(crate) c_euv_drawer_handle {
1010        width: "100px";
1011        height: var!(space-xs);
1012        margin: format!("{} auto 0px", var!(space-lg));
1013        border-radius: var!(radius-full);
1014        background: var!(muted);
1015    }
1016
1017    pub(crate) c_euv_drawer_trigger {
1018        display: "inline-flex";
1019        align-items: "center";
1020        justify-content: "center";
1021    }
1022
1023    pub(crate) c_euv_drawer_header {
1024        display: "grid";
1025        gap: var!(space-2xs);
1026        padding: var!(space-lg);
1027        text-align: "center";
1028    }
1029
1030    pub(crate) c_euv_drawer_footer {
1031        display: "flex";
1032        flex-direction: "column";
1033        gap: var!(space-sm);
1034        margin-top: "auto";
1035        padding: var!(space-lg);
1036    }
1037
1038    pub(crate) c_euv_drawer_title {
1039        font-size: var!(font-lg);
1040        font-weight: var!(font-weight-semibold);
1041        line-height: "1";
1042        letter-spacing: var!(letter-spacing-tight);
1043    }
1044
1045    pub(crate) c_euv_drawer_description {
1046        font-size: var!(font-sm);
1047        color: var!(muted-foreground);
1048    }
1049
1050    pub(crate) c_euv_drawer_close {
1051        display: "inline-flex";
1052        align-items: "center";
1053        justify-content: "center";
1054    }
1055
1056    // ═══════════════════════════════════════════════════════════════════════════
1057    // Message (toast)
1058    // ═══════════════════════════════════════════════════════════════════════════
1059
1060    pub(crate) c_euv_message_stack {
1061        position: "fixed";
1062        top: var!(space-xl);
1063        left: "50%";
1064        transform: "translateX(-50%)";
1065        z-index: "1100";
1066        display: "flex";
1067        flex-direction: "column";
1068        gap: var!(space-sm);
1069        max-width: "calc(100% - 32px)";
1070        pointer-events: "none";
1071    }
1072
1073    pub(crate) c_euv_message {
1074        display: "flex";
1075        align-items: "center";
1076        gap: var!(space-sm);
1077        min-width: "240px";
1078        max-width: "420px";
1079        padding: format!("{} {}", var!(space-sm), var!(space-lg));
1080        border: format!("{} solid {}", var!(border-width), var!(border));
1081        background: var!(background);
1082        color: var!(foreground);
1083        box-shadow: var!(shadow-md);
1084        font-size: var!(font-sm);
1085        box-sizing: "border-box";
1086        pointer-events: "auto";
1087    }
1088
1089    pub(crate) c_euv_message_text {
1090        flex: "1";
1091        min-width: "0px";
1092        overflow-wrap: "anywhere";
1093    }
1094
1095    pub(crate) c_euv_message_action {
1096        flex-shrink: "0";
1097        padding: "0px";
1098        border: "none";
1099        background: "transparent";
1100        color: var!(foreground);
1101        font-size: var!(font-sm);
1102        font-weight: var!(font-weight-semibold);
1103        text-decoration: "underline";
1104        cursor: "pointer";
1105        touch-action: "manipulation";
1106    }
1107
1108    pub(crate) c_euv_message_close {
1109        flex-shrink: "0";
1110        width: var!(space-lg);
1111        height: var!(space-lg);
1112        padding: "0px";
1113        border: "none";
1114        background: "transparent";
1115        color: var!(muted-foreground);
1116        font-size: var!(font-sm);
1117        line-height: "1";
1118        cursor: "pointer";
1119        touch-action: "manipulation";
1120        :hover {
1121            color: var!(foreground);
1122        }
1123    }
1124
1125    // ═══════════════════════════════════════════════════════════════════════════
1126    // Notification
1127    // ═══════════════════════════════════════════════════════════════════════════
1128
1129    pub(crate) c_euv_notification_stack {
1130        position: "fixed";
1131        top: var!(space-xl);
1132        right: var!(space-xl);
1133        z-index: "1200";
1134        display: "flex";
1135        flex-direction: "column";
1136        gap: var!(space-sm);
1137        max-width: "calc(100% - 32px)";
1138        pointer-events: "none";
1139        @media ((max-width: 767px)) {
1140            right: var!(space-lg);
1141            left: var!(space-lg);
1142            max-width: "none";
1143        }
1144    }
1145
1146    pub(crate) c_euv_notification {
1147        display: "flex";
1148        align-items: "flex-start";
1149        gap: var!(space-sm);
1150        width: "320px";
1151        max-width: "100%";
1152        padding: var!(space-md);
1153        border: format!("{} solid {}", var!(border-width), var!(border));
1154        background: var!(background);
1155        color: var!(foreground);
1156        box-shadow: var!(shadow-md);
1157        font-size: var!(font-sm);
1158        box-sizing: "border-box";
1159        pointer-events: "auto";
1160        @media ((max-width: 767px)) {
1161            width: "100%";
1162        }
1163    }
1164
1165    pub(crate) c_euv_notification_body {
1166        flex: "1";
1167        min-width: "0px";
1168        display: "flex";
1169        flex-direction: "column";
1170        gap: var!(space-xs);
1171    }
1172
1173    pub(crate) c_euv_notification_title {
1174        font-size: var!(font-base);
1175        font-weight: var!(font-weight-semibold);
1176        color: var!(foreground);
1177    }
1178
1179    pub(crate) c_euv_notification_text {
1180        font-size: var!(font-sm);
1181        color: var!(muted-foreground);
1182        overflow-wrap: "anywhere";
1183    }
1184
1185    pub(crate) c_euv_notification_close {
1186        flex-shrink: "0";
1187        width: var!(space-lg);
1188        height: var!(space-lg);
1189        padding: "0px";
1190        border: "none";
1191        background: "transparent";
1192        color: var!(muted-foreground);
1193        font-size: var!(font-sm);
1194        line-height: "1";
1195        cursor: "pointer";
1196        touch-action: "manipulation";
1197        :hover {
1198            color: var!(foreground);
1199        }
1200    }
1201
1202    // ═══════════════════════════════════════════════════════════════════════════
1203    // Pop Confirm
1204    // ═══════════════════════════════════════════════════════════════════════════
1205
1206    pub(crate) c_euv_popconfirm {
1207        position: "relative";
1208        display: "inline-flex";
1209        align-items: "center";
1210    }
1211
1212    pub(crate) c_euv_popconfirm_body {
1213        position: "absolute";
1214        top: "100%";
1215        left: "0px";
1216        z-index: "150";
1217        margin-top: var!(space-2xs);
1218        min-width: "220px";
1219        box-sizing: "border-box";
1220        border: format!("{} solid {}", var!(border-width), var!(border));
1221        background: var!(background);
1222        color: var!(foreground);
1223        font-size: var!(font-sm);
1224        box-shadow: var!(shadow-md);
1225    }
1226
1227    pub(crate) c_euv_popconfirm_body_open {
1228        position: "absolute";
1229        top: "100%";
1230        left: "0px";
1231        z-index: "150";
1232        margin-top: var!(space-2xs);
1233        min-width: "220px";
1234        box-sizing: "border-box";
1235        border: format!("{} solid {}", var!(border-width), var!(border));
1236        background: var!(background);
1237        color: var!(foreground);
1238        font-size: var!(font-sm);
1239        box-shadow: var!(shadow-md);
1240        display: "flex";
1241        flex-direction: "column";
1242    }
1243
1244    pub(crate) c_euv_popconfirm_body_closed {
1245        position: "absolute";
1246        top: "100%";
1247        left: "0px";
1248        z-index: "150";
1249        margin-top: var!(space-2xs);
1250        min-width: "220px";
1251        box-sizing: "border-box";
1252        border: format!("{} solid {}", var!(border-width), var!(border));
1253        background: var!(background);
1254        color: var!(foreground);
1255        font-size: var!(font-sm);
1256        box-shadow: var!(shadow-md);
1257        display: "none";
1258    }
1259
1260    pub(crate) c_euv_popconfirm_text {
1261        padding: var!(space-md);
1262        color: var!(foreground);
1263        font-size: var!(font-sm);
1264        overflow-wrap: "anywhere";
1265    }
1266
1267    pub(crate) c_euv_popconfirm_actions {
1268        display: "flex";
1269        align-items: "center";
1270        justify-content: "flex-end";
1271        gap: var!(space-sm);
1272        padding: format!("{} {}", var!(space-sm), var!(space-md));
1273        border-top: format!("{} solid {}", var!(border-width), var!(border));
1274    }
1275
1276    pub c_euv_command_input {
1277        display: "flex";
1278        width: "100%";
1279        height: var!(space-4xl);
1280        padding: var!(space-md);
1281        border: "none";
1282        border-radius: var!(radius-md);
1283        background: "transparent";
1284        color: var!(foreground);
1285        font-family: "inherit";
1286        font-size: var!(font-sm);
1287        outline: "none";
1288    }
1289
1290    pub c_euv_command_list {
1291        max-height: "300px";
1292        padding: var!(space-xs);
1293        overflow-x: "hidden";
1294        overflow-y: "auto";
1295    }
1296
1297    pub c_euv_command_empty {
1298        padding: format!("{} 0px", var!(space-2xl));
1299        color: var!(muted-foreground);
1300        font-size: var!(font-sm);
1301        text-align: "center";
1302    }
1303
1304    pub c_euv_command_group {
1305        padding: var!(space-xs);
1306        overflow: "hidden";
1307        color: var!(foreground);
1308    }
1309
1310    pub c_euv_command_group_heading {
1311        padding: format!("{} {}", var!(space-xs), var!(space-sm));
1312        color: var!(muted-foreground);
1313        font-size: var!(font-xs);
1314        font-weight: "500";
1315    }
1316
1317    pub c_euv_command_item_selected {
1318        background: var!(accent);
1319        color: var!(accent-foreground);
1320    }
1321
1322    pub c_euv_command_item_disabled {
1323        opacity: "0.5";
1324        pointer-events: "none";
1325    }
1326
1327    pub c_euv_command_separator {
1328        height: "1px";
1329        margin: format!("0px calc(-1 * {})", var!(space-xs));
1330        background: var!(border);
1331    }
1332
1333    pub c_euv_command_shortcut {
1334        margin-left: "auto";
1335        color: var!(muted-foreground);
1336        font-size: var!(font-xs);
1337        letter-spacing: var!(letter-spacing-wide);
1338    }
1339
1340    pub c_euv_combobox {
1341        position: "relative";
1342        display: "inline-flex";
1343        flex-direction: "column";
1344    }
1345
1346    pub c_euv_combobox_content_open {
1347        display: "block";
1348    }
1349
1350    pub c_euv_combobox_content_closed {
1351        display: "none";
1352    }
1353
1354    pub c_euv_combobox_list {
1355        max-height: "300px";
1356        overflow-y: "auto";
1357    }
1358
1359    pub c_euv_combobox_item_selected {
1360        background: var!(accent);
1361        color: var!(accent-foreground);
1362    }
1363
1364    pub c_euv_combobox_item_disabled {
1365        opacity: "0.5";
1366        pointer-events: "none";
1367    }
1368
1369    pub c_euv_combobox_group {
1370        padding: var!(space-xs);
1371        overflow: "hidden";
1372    }
1373
1374    pub c_euv_combobox_label {
1375        padding: format!("{} {}", var!(space-xs), var!(space-sm));
1376        color: var!(muted-foreground);
1377        font-size: var!(font-xs);
1378    }
1379
1380    pub c_euv_combobox_empty {
1381        padding: format!("{} 0px", var!(space-2xl));
1382        color: var!(muted-foreground);
1383        font-size: var!(font-sm);
1384        text-align: "center";
1385    }
1386
1387    pub c_euv_combobox_separator {
1388        height: "1px";
1389        margin: format!("{} 0px", var!(space-xs));
1390        background: var!(border);
1391    }
1392
1393    pub c_euv_combobox_clear {
1394        display: "inline-flex";
1395        align-items: "center";
1396        justify-content: "center";
1397        width: var!(space-lg);
1398        height: var!(space-lg);
1399        padding: "0px";
1400        border: "none";
1401        border-radius: var!(radius-sm);
1402        background: "transparent";
1403        color: var!(muted-foreground);
1404        font-family: "inherit";
1405        font-size: var!(font-sm);
1406        line-height: "1";
1407        cursor: "pointer";
1408        :hover {
1409            background: var!(accent);
1410            color: var!(accent-foreground);
1411        }
1412    }
1413
1414    pub c_euv_sheet {
1415        position: "relative";
1416    }
1417
1418    pub c_euv_sheet_overlay {
1419        position: "fixed";
1420        inset: "0px";
1421        z-index: "1000";
1422        background: var!(bg-overlay);
1423    }
1424
1425    pub c_euv_sheet_overlay_open {
1426        display: "block";
1427    }
1428
1429    pub c_euv_sheet_overlay_closed {
1430        display: "none";
1431    }
1432
1433    pub c_euv_sheet_content_top {
1434        top: "0px";
1435        right: "0px";
1436        left: "0px";
1437        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
1438    }
1439
1440    pub c_euv_sheet_content_bottom {
1441        right: "0px";
1442        bottom: "0px";
1443        left: "0px";
1444        border-top: format!("{} solid {}", var!(border-width), var!(border));
1445    }
1446
1447    pub c_euv_sheet_content_open {
1448        display: "flex";
1449    }
1450
1451    pub c_euv_sheet_content_closed {
1452        display: "none";
1453    }
1454
1455    pub c_euv_alert_dialog {
1456        position: "relative";
1457    }
1458
1459    pub c_euv_alert_dialog_overlay {
1460        position: "fixed";
1461        inset: "0px";
1462        z-index: "1000";
1463        background: var!(bg-overlay);
1464    }
1465
1466    pub c_euv_alert_dialog_overlay_open {
1467        display: "block";
1468    }
1469
1470    pub c_euv_alert_dialog_overlay_closed {
1471        display: "none";
1472    }
1473
1474    pub c_euv_alert_dialog_content {
1475        position: "fixed";
1476        top: "50%";
1477        left: "50%";
1478        z-index: "1000";
1479        display: "grid";
1480        gap: var!(space-lg);
1481        width: "100%";
1482        max-width: "384px";
1483        padding: var!(space-lg);
1484        transform: "translate(-50%, -50%)";
1485        border: format!("{} solid {}", var!(border-width), var!(border));
1486        border-radius: var!(radius-xl);
1487        background: var!(popover);
1488        color: var!(popover-foreground);
1489        box-shadow: var!(shadow-lg);
1490        overflow: "hidden";
1491        @media ((max-width: 767px)) {
1492            max-width: "320px";
1493        }
1494    }
1495
1496    pub c_euv_alert_dialog_content_open {
1497        display: "grid";
1498    }
1499
1500    pub c_euv_alert_dialog_content_closed {
1501        display: "none";
1502    }
1503
1504    pub c_euv_alert_dialog_header {
1505        display: "flex";
1506        flex-direction: "column";
1507        gap: var!(space-sm);
1508        text-align: "left";
1509        @media ((max-width: 767px)) {
1510            text-align: "center";
1511        }
1512    }
1513
1514    pub c_euv_alert_dialog_footer {
1515        display: "flex";
1516        flex-direction: "row";
1517        justify-content: "flex-end";
1518        gap: var!(space-sm);
1519        margin: format!(
1520        "0 calc(0px - {}) calc(0px - {})",
1521        var!(space-lg),
1522        var!(space-lg)
1523        );
1524        padding: var!(space-lg);
1525        border-top: format!("{} solid {}", var!(border-width), var!(border));
1526        border-radius: format!("0 0 {} {}", var!(radius-xl), var!(radius-xl));
1527        background: format!("color-mix(in srgb, {} 50%, transparent)", var!(muted));
1528        @media ((max-width: 767px)) {
1529            flex-direction: "column-reverse";
1530        }
1531    }
1532
1533    pub c_euv_alert_dialog_title {
1534        font-size: var!(font-lg);
1535        font-weight: "600";
1536        line-height: "1";
1537    }
1538
1539    pub c_euv_alert_dialog_media {
1540        display: "inline-flex";
1541        align-items: "center";
1542        justify-content: "center";
1543        width: var!(space-3xl);
1544        height: var!(space-3xl);
1545        flex-shrink: "0";
1546        color: var!(foreground);
1547    }
1548
1549    pub c_euv_alert_dialog_description {
1550        color: var!(muted-foreground);
1551        font-size: var!(font-sm);
1552    }
1553
1554    pub c_euv_alert_dialog_action {
1555        display: "inline-flex";
1556        align-items: "center";
1557        justify-content: "center";
1558        gap: var!(space-sm);
1559        height: var!(space-2xl);
1560        padding: format!("0px {}", var!(space-lg));
1561        border: format!("{} solid {}", var!(border-width), var!(border));
1562        border-radius: var!(radius-md);
1563        background: var!(primary);
1564        color: var!(primary-foreground);
1565        font-family: "inherit";
1566        font-size: var!(font-sm);
1567        line-height: "1.5";
1568        white-space: "nowrap";
1569        cursor: "pointer";
1570    }
1571
1572    pub c_euv_alert_dialog_cancel {
1573        display: "inline-flex";
1574        align-items: "center";
1575        justify-content: "center";
1576        gap: var!(space-sm);
1577        height: var!(space-2xl);
1578        padding: format!("0px {}", var!(space-lg));
1579        border: format!("{} solid {}", var!(border-width), var!(border));
1580        border-radius: var!(radius-md);
1581        background: var!(background);
1582        color: var!(foreground);
1583        font-family: "inherit";
1584        font-size: var!(font-sm);
1585        line-height: "1.5";
1586        white-space: "nowrap";
1587        cursor: "pointer";
1588    }
1589
1590    pub c_euv_hover_card {
1591        position: "relative";
1592        display: "inline-flex";
1593    }
1594
1595    pub c_euv_hover_card_content {
1596        position: "absolute";
1597        top: "100%";
1598        left: "0px";
1599        z-index: "150";
1600        width: "256px";
1601        padding: var!(space-lg);
1602        border: format!("{} {} {}", var!(border-width), "solid", var!(border));
1603        border-radius: var!(radius-md);
1604        background: var!(popover);
1605        color: var!(popover-foreground);
1606        box-shadow: var!(shadow-md);
1607        outline: "none";
1608    }
1609
1610    pub c_euv_hover_card_content_open {
1611        display: "block";
1612    }
1613
1614    pub c_euv_hover_card_content_closed {
1615        display: "none";
1616    }
1617
1618    pub c_euv_context_menu {
1619        position: "relative";
1620        display: "inline-flex";
1621    }
1622
1623    pub c_euv_context_menu_content {
1624        position: "fixed";
1625        top: format!("var({}, 0px)", CONTEXT_MENU_POSITION_Y_PROPERTY);
1626        left: format!("var({}, 0px)", CONTEXT_MENU_POSITION_X_PROPERTY);
1627        z-index: "150";
1628        min-width: "180px";
1629        max-width: format!("calc(100vw - {})", var!(space-sm));
1630        max-height: format!("calc(100vh - {})", var!(space-sm));
1631        overflow-y: "auto";
1632        padding: var!(space-xs);
1633        border: format!("{} solid {}", var!(border-width), var!(border));
1634        border-radius: var!(radius-md);
1635        background: var!(popover);
1636        color: var!(popover-foreground);
1637        box-shadow: var!(shadow-md);
1638        transform: format!(
1639        "translate(min(0px, calc(100vw - var({}, 0px) - 100% - {})), min(0px, calc(100vh - var({}, 0px) - 100% - {})))",
1640        CONTEXT_MENU_POSITION_X_PROPERTY,
1641        var!(space-sm),
1642        CONTEXT_MENU_POSITION_Y_PROPERTY,
1643        var!(space-sm)
1644        );
1645    }
1646
1647    pub c_euv_context_menu_content_open {
1648        display: "flex";
1649        flex-direction: "column";
1650    }
1651
1652    pub c_euv_context_menu_content_closed {
1653        display: "none";
1654    }
1655
1656    pub c_euv_context_menu_item {
1657        display: "flex";
1658        box-sizing: "border-box";
1659        align-items: "center";
1660        gap: var!(space-sm);
1661        width: "100%";
1662        padding: format!("{} {}", var!(space-xs), var!(space-sm));
1663        border-radius: var!(radius-sm);
1664        font-size: var!(font-sm);
1665        line-height: "1.5";
1666        cursor: "pointer";
1667        user-select: "none";
1668        :hover {
1669            background: var!(accent);
1670            color: var!(accent-foreground);
1671        }
1672        :focus-visible {
1673            background: var!(accent);
1674            color: var!(accent-foreground);
1675        }
1676        :disabled {
1677            pointer-events: "none";
1678            opacity: "0.5";
1679        }
1680    }
1681
1682    pub c_euv_context_menu_item_disabled {
1683        c_euv_context_menu_item();
1684        opacity: "0.5";
1685        pointer-events: "none";
1686    }
1687
1688    pub c_euv_context_menu_checkbox_item {
1689        c_euv_context_menu_item();
1690    }
1691
1692    pub c_euv_context_menu_radio_item {
1693        c_euv_context_menu_item();
1694    }
1695
1696    pub c_euv_context_menu_label {
1697        padding: format!("{} {}", var!(space-xs), var!(space-sm));
1698        color: var!(muted-foreground);
1699        font-size: var!(font-xs);
1700    }
1701
1702    pub c_euv_context_menu_separator {
1703        height: "1px";
1704        margin: format!("{} 0px", var!(space-xs));
1705        background: var!(border);
1706    }
1707
1708    pub c_euv_context_menu_group {
1709        display: "flex";
1710        flex-direction: "column";
1711        gap: var!(space-2xs);
1712    }
1713
1714    pub c_euv_context_menu_radio_group {
1715        display: "flex";
1716        flex-direction: "column";
1717        gap: var!(space-2xs);
1718    }
1719
1720    pub c_euv_context_menu_sub {
1721        position: "relative";
1722        display: "flex";
1723        flex-direction: "column";
1724    }
1725
1726    pub c_euv_context_menu_sub_trigger {
1727        c_euv_context_menu_item();
1728        border: "none";
1729        background: "transparent";
1730        color: var!(foreground);
1731        font-family: "inherit";
1732        text-align: "start";
1733    }
1734
1735    pub c_euv_context_menu_sub_content {
1736        position: "absolute";
1737        top: "0px";
1738        inset-inline-start: "100%";
1739        z-index: "150";
1740        display: "flex";
1741        flex-direction: "column";
1742        min-width: "160px";
1743        padding: var!(space-xs);
1744        border: format!("{} solid {}", var!(border-width), var!(border));
1745        border-radius: var!(radius-lg);
1746        background: var!(popover);
1747        color: var!(popover-foreground);
1748        box-shadow: var!(shadow-md);
1749    }
1750
1751    pub c_euv_context_menu_shortcut {
1752        margin-left: "auto";
1753        color: var!(muted-foreground);
1754        font-size: var!(font-xs);
1755        letter-spacing: var!(letter-spacing-wide);
1756    }
1757
1758    pub c_euv_dialog_overlay {
1759        position: "fixed";
1760        inset: "0px";
1761        z-index: "1000";
1762        background: var!(bg-overlay);
1763    }
1764
1765    pub c_euv_dialog_overlay_open {
1766        display: "block";
1767    }
1768
1769    pub c_euv_dialog_overlay_closed {
1770        display: "none";
1771    }
1772
1773    pub c_euv_dialog {
1774        position: "fixed";
1775        top: "50%";
1776        left: "50%";
1777        z-index: "1000";
1778        display: "grid";
1779        gap: var!(space-lg);
1780        width: "100%";
1781        max-width: "512px";
1782        padding: var!(space-2xl);
1783        transform: "translate(-50%, -50%)";
1784        border: format!("{} solid {}", var!(border-width), var!(border));
1785        border-radius: var!(radius-lg);
1786        background: var!(background);
1787        color: var!(foreground);
1788        box-shadow: var!(shadow-lg);
1789    }
1790
1791    pub c_euv_dialog_open {
1792        display: "grid";
1793    }
1794
1795    pub c_euv_dialog_closed {
1796        display: "none";
1797    }
1798
1799    pub c_euv_dialog_header {
1800        display: "flex";
1801        flex-direction: "column";
1802        gap: var!(space-xs);
1803        text-align: "center";
1804    }
1805
1806    pub c_euv_dialog_title {
1807        font-size: var!(font-lg);
1808        font-weight: "600";
1809        line-height: "1";
1810        letter-spacing: var!(letter-spacing-tight);
1811    }
1812
1813    pub c_euv_dialog_description {
1814        color: var!(muted-foreground);
1815        font-size: var!(font-sm);
1816    }
1817
1818    pub c_euv_dialog_footer {
1819        display: "flex";
1820        flex-direction: "column-reverse";
1821        gap: var!(space-sm);
1822    }
1823
1824    pub c_euv_dialog_close {
1825        position: "absolute";
1826        top: var!(space-lg);
1827        right: var!(space-lg);
1828        display: "inline-flex";
1829        align-items: "center";
1830        justify-content: "center";
1831        width: var!(space-lg);
1832        height: var!(space-lg);
1833        padding: "0px";
1834        border: "none";
1835        border-radius: var!(radius-sm);
1836        background: "transparent";
1837        color: var!(muted-foreground);
1838        font-family: "inherit";
1839        font-size: var!(font-sm);
1840        line-height: "1";
1841        cursor: "pointer";
1842        :hover {
1843            background: var!(accent);
1844            color: var!(accent-foreground);
1845        }
1846    }
1847
1848    // The panel of a dialog. It is the only thing the reader can act on
1849    // while the dialog is open.
1850    pub c_euv_dialog_content {
1851        position: "fixed";
1852        top: "50%";
1853        left: "50%";
1854        z-index: "1000";
1855        display: "grid";
1856        gap: var!(space-lg);
1857        width: "100%";
1858        max-width: "512px";
1859        padding: var!(space-2xl);
1860        transform: "translate(-50%, -50%)";
1861        border: format!("{} solid {}", var!(border-width), var!(border));
1862        border-radius: var!(radius-lg);
1863        background: var!(background);
1864        color: var!(foreground);
1865    }
1866
1867    pub c_euv_dialog_content_open {
1868        display: "grid";
1869    }
1870
1871    pub c_euv_dialog_content_closed {
1872        display: "none";
1873    }
1874
1875
1876    // The two indicators sit over the list edges, leaving scrolling to the native viewport.
1877    pub c_euv_select_scroll_up_button {
1878        position: "absolute";
1879        top: "0px";
1880        left: "0px";
1881        right: "0px";
1882        display: "flex";
1883        cursor: "default";
1884        align-items: "center";
1885        justify-content: "center";
1886        padding-top: var!(space-xs);
1887        padding-bottom: var!(space-xs);
1888        background: var!(background);
1889        color: var!(muted-foreground);
1890    }
1891
1892    pub c_euv_select_scroll_down_button {
1893        position: "absolute";
1894        right: "0px";
1895        bottom: "0px";
1896        left: "0px";
1897        display: "flex";
1898        cursor: "default";
1899        align-items: "center";
1900        justify-content: "center";
1901        padding-top: var!(space-xs);
1902        padding-bottom: var!(space-xs);
1903        background: var!(background);
1904        color: var!(muted-foreground);
1905    }
1906
1907    pub c_euv_select_scroll_icon {
1908        display: "flex";
1909        align-items: "center";
1910        justify-content: "center";
1911        width: var!(space-lg);
1912        height: var!(space-lg);
1913        pointer-events: "none";
1914    }
1915}
1916
1917#[cfg(not(feature = "theme-shadcn"))]
1918class! {
1919    pub(crate) c_euv_dropdown_menu {
1920        "--euv-dropdown-align": "end";
1921        "--euv-dropdown-anchor": "root";
1922        "--euv-dropdown-gap": "8";
1923        "--euv-dropdown-width-mode": "anchor";
1924        // The portaled popup receives measured viewport coordinates on open.
1925        position: "fixed";
1926        overflow-y: "auto";
1927        box-sizing: "border-box";
1928        overscroll-behavior: "contain";
1929        background: var!(popover);
1930        color: var!(popover-foreground);
1931        border: format!("{} solid {}", var!(border-width), var!(border));
1932        box-shadow: var!(shadow-md);
1933        flex-direction: "column";
1934        z-index: "101";
1935        border-radius: var!(radius-md);
1936    }
1937
1938    pub(crate) c_euv_dropdown_sub_panel {
1939        c_euv_dropdown_menu();
1940        width: "max-content";
1941        z-index: "150";
1942    }
1943
1944    pub(crate) c_euv_dropdown_item_active {
1945        // Same vertical padding as `c_euv_dropdown_item` (`control-row-pad`) —
1946        // the accent fill has to be exactly as tall as the row it replaces.
1947        padding: format!("{} {}", var!(control-row-pad), var!(space-lg));
1948        font-size: var!(font-sm);
1949        text-align: "left";
1950        cursor: "pointer";
1951        font-weight: var!(font-weight-semibold);
1952        // The same pinned line height as `c_euv_dropdown_item`, for the same
1953        // reason: a hovered row's bar has to match this fill to the pixel.
1954        line-height: "24px";
1955        // Only the left edge, for the same reason as `c_euv_dropdown_item`:
1956        // a border on all four sides stacks between neighbouring rows. The
1957        // accent fill spans the full box either way, and reserving the same
1958        // 3px left edge keeps a hovered row's bar and an active row's fill
1959        // aligned edge for edge and at the same width.
1960        border-left: "3px solid transparent";
1961        // The selected item wears the accent fill and the text colour that
1962        // reads on top of it, the same pairing the sidebar's `_active` link
1963        // uses. The inset bar is dropped: the full-width fill already carries
1964        // the current-page signal, and a bar in the same monochrome accent
1965        // would be invisible against it.
1966        background: var!(primary);
1967        color: var!(primary-foreground);
1968        :hover {
1969            background: var!(primary);
1970            color: var!(primary-foreground);
1971            box-shadow: "none";
1972        }
1973    }
1974
1975    pub c_euv_command {
1976        display: "flex";
1977        flex-direction: "column";
1978        width: "100%";
1979        height: "100%";
1980        overflow: "hidden";
1981        border-radius: var!(radius-md);
1982        background: var!(popover);
1983        color: var!(popover-foreground);
1984    }
1985
1986    pub c_euv_command_input_wrapper {
1987        display: "flex";
1988        align-items: "center";
1989        gap: var!(space-sm);
1990        padding: format!("0px {}", var!(space-md));
1991        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
1992    }
1993
1994    pub c_euv_command_item {
1995        position: "relative";
1996        display: "flex";
1997        align-items: "center";
1998        gap: var!(space-sm);
1999        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2000        border-radius: var!(radius-sm);
2001        font-size: var!(font-sm);
2002        cursor: "default";
2003        user-select: "none";
2004    }
2005
2006    pub c_euv_combobox_trigger {
2007        display: "inline-flex";
2008        align-items: "center";
2009        justify-content: "space-between";
2010        gap: var!(space-sm);
2011        height: var!(space-2xl);
2012        padding: format!("0px {}", var!(space-lg));
2013        border: format!("{} solid {}", var!(border-width), var!(border));
2014        border-radius: var!(radius-md);
2015        background: var!(background);
2016        color: var!(foreground);
2017        font-family: "inherit";
2018        font-size: var!(font-sm);
2019        line-height: "1.5";
2020        white-space: "nowrap";
2021        cursor: "pointer";
2022    }
2023
2024    pub c_euv_combobox_input {
2025        display: "flex";
2026        width: "100%";
2027        height: var!(space-2xl);
2028        padding: format!("{} {}", var!(space-sm), var!(space-md));
2029        border: format!("{} solid {}", var!(border-width), var!(border));
2030        border-radius: var!(radius-md);
2031        background: var!(background);
2032        color: var!(foreground);
2033        font-family: "inherit";
2034        font-size: var!(font-sm);
2035        line-height: "1.5";
2036        outline: "none";
2037    }
2038
2039    pub c_euv_combobox_content {
2040        position: "absolute";
2041        top: "100%";
2042        left: "0px";
2043        z-index: "150";
2044        min-width: "180px";
2045        padding: var!(space-xs);
2046        overflow: "hidden";
2047        border: format!("{} solid {}", var!(border-width), var!(border));
2048        border-radius: var!(radius-md);
2049        background: var!(popover);
2050        color: var!(popover-foreground);
2051        box-shadow: var!(shadow-md);
2052    }
2053
2054    pub c_euv_combobox_item {
2055        display: "flex";
2056        align-items: "center";
2057        gap: var!(space-sm);
2058        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2059        border-radius: var!(radius-sm);
2060        font-size: var!(font-sm);
2061        line-height: "1.5";
2062        cursor: "pointer";
2063        user-select: "none";
2064    }
2065
2066    pub c_euv_sheet_trigger {
2067        display: "inline-flex";
2068        align-items: "center";
2069        justify-content: "center";
2070        gap: var!(space-sm);
2071        height: var!(space-2xl);
2072        padding: format!("0px {}", var!(space-lg));
2073        border: format!("{} solid {}", var!(border-width), var!(border));
2074        border-radius: var!(radius-md);
2075        background: var!(background);
2076        color: var!(foreground);
2077        font-family: "inherit";
2078        font-size: var!(font-sm);
2079        line-height: "1.5";
2080        white-space: "nowrap";
2081        cursor: "pointer";
2082    }
2083
2084    pub c_euv_sheet_content {
2085        position: "fixed";
2086        z-index: "1000";
2087        display: "flex";
2088        flex-direction: "column";
2089        gap: var!(space-lg);
2090        padding: var!(space-2xl);
2091        background: var!(background);
2092        color: var!(foreground);
2093        box-shadow: var!(shadow-lg);
2094    }
2095
2096    pub c_euv_sheet_content_left {
2097        top: "0px";
2098        bottom: "0px";
2099        left: "0px";
2100        width: "75%";
2101        max-width: "384px";
2102        border-right: format!("{} solid {}", var!(border-width), var!(border));
2103    }
2104
2105    pub c_euv_sheet_content_right {
2106        top: "0px";
2107        right: "0px";
2108        bottom: "0px";
2109        width: "75%";
2110        max-width: "384px";
2111        border-left: format!("{} solid {}", var!(border-width), var!(border));
2112    }
2113
2114    pub c_euv_sheet_header {
2115        display: "flex";
2116        flex-direction: "column";
2117        gap: var!(space-sm);
2118        text-align: "center";
2119    }
2120
2121    pub c_euv_sheet_footer {
2122        display: "flex";
2123        flex-direction: "column-reverse";
2124        gap: var!(space-sm);
2125    }
2126
2127    pub c_euv_sheet_title {
2128        color: var!(foreground);
2129        font-size: var!(font-lg);
2130        font-weight: "600";
2131        line-height: "1";
2132    }
2133
2134    pub c_euv_sheet_description {
2135        color: var!(muted-foreground);
2136        font-size: var!(font-sm);
2137    }
2138
2139    pub c_euv_sheet_close {
2140        position: "absolute";
2141        top: var!(space-lg);
2142        right: var!(space-lg);
2143        display: "inline-flex";
2144        align-items: "center";
2145        justify-content: "center";
2146        width: var!(space-lg);
2147        height: var!(space-lg);
2148        padding: "0px";
2149        border: "none";
2150        border-radius: var!(radius-sm);
2151        background: "transparent";
2152        color: var!(muted-foreground);
2153        font-family: "inherit";
2154        font-size: var!(font-sm);
2155        line-height: "1";
2156        cursor: "pointer";
2157        :hover {
2158            background: var!(accent);
2159            color: var!(accent-foreground);
2160        }
2161    }
2162
2163    pub c_euv_alert_dialog_trigger {
2164        display: "inline-flex";
2165        align-items: "center";
2166        justify-content: "center";
2167        gap: var!(space-sm);
2168        height: var!(space-2xl);
2169        padding: format!("0px {}", var!(space-lg));
2170        border: format!("{} solid {}", var!(border-width), var!(border));
2171        border-radius: var!(radius-md);
2172        background: var!(background);
2173        color: var!(foreground);
2174        font-family: "inherit";
2175        font-size: var!(font-sm);
2176        line-height: "1.5";
2177        white-space: "nowrap";
2178        cursor: "pointer";
2179    }
2180
2181    pub c_euv_hover_card_trigger {
2182        display: "inline-flex";
2183        align-items: "center";
2184        font-family: "inherit";
2185        font-size: var!(font-sm);
2186        text-decoration: "underline";
2187        text-underline-offset: "4px";
2188        cursor: "pointer";
2189    }
2190
2191    pub c_euv_context_menu_trigger {
2192        -webkit-touch-callout: "none";
2193        display: "inline-flex";
2194        align-items: "center";
2195        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2196        border: format!("{} {} {}", var!(border-width), "solid", var!(border));
2197        border-radius: var!(radius-md);
2198        background: var!(background);
2199        color: var!(foreground);
2200        font-family: "inherit";
2201        font-size: var!(font-sm);
2202        line-height: "1.5";
2203        white-space: "nowrap";
2204        cursor: "pointer";
2205    }
2206
2207    pub(crate) c_euv_dropdown_item {
2208        flex-shrink: "0";
2209        // `control-row-pad` vertically, the same value the sidebar rows and the
2210        // CTA buttons use: 9 + 24 line + 9 + 3 left border = 42. The row is
2211        // only bordered on its left edge, so nothing stacks between neighbours
2212        // and the stack reads as one continuous column.
2213        //
2214        // It was `space-sm` (8px) for as long as the row wore a 1px border on
2215        // all four sides: 8 + 24 + 8 + 1 + 1 + 3 = 45 inside a 42px
2216        // border-box, so the browser gave back a fraction of the padding on
2217        // every row and the options came out with a hairline between them.
2218        // Dropping the stacked borders makes 9px the right number again.
2219        padding: format!("{} {}", var!(control-row-pad), var!(space-lg));
2220        font-size: var!(font-sm);
2221        text-align: "left";
2222        cursor: "pointer";
2223        // Rows must agree on height or the hover bar never lines up with the
2224        // active fill. `line-height: normal` is at the mercy of the glyphs:
2225        // English and Korean settle on a 35px row while Japanese takes 38px,
2226        // and the language switcher lists all three at once. Pinning the line
2227        // height is what makes the stack even, so the left bar can span a row
2228        // that matches the active background exactly. 24px is the tallest
2229        // of the three natural line heights *and* the body line height, so no
2230        // script is clipped and the row matches the sidebar and the buttons.
2231        line-height: "24px";
2232        text-box-trim: "none";
2233        text-box-edge: "none";
2234        // Hover signals through the left edge only — no background wash. The
2235        // menu sits over page content, so tinting the whole row made an
2236        // unselected option read as a highlighted page link and washed out
2237        // the label underneath it. The left border carries the affordance
2238        // without painting behind the text or boxing the row.
2239        //
2240        // Only the LEFT edge is bordered — 3px, transparent until hover, so
2241        // the hover bar needs no width change and the label never shifts.
2242        //
2243        // This used to be `border: 1px solid transparent` plus
2244        // `border-left-width: 3px`, i.e. a box on all four sides. In a stack
2245        // of rows every horizontal edge is shared between two neighbours, so
2246        // the transparent top and bottom of one row sat against those of the
2247        // next. Nothing is visible at rest, but each row then had to fit 8px +
2248        // 24px line + 8px + 1px + 1px + 3px = 45px of content into a 42px
2249        // border-box, and the browser reclaimed the overflow by trimming the
2250        // padding — leaving a hairline between every pair of options. Only the
2251        // left edge remains, so nothing stacks and 9 + 24 + 9 + 3 = 42 lands
2252        // exactly.
2253        border-left: "3px solid transparent";
2254        :hover {
2255            // Only the left edge reacts. The previous rule lit the whole
2256            // perimeter, which framed the option as a card floating over the
2257            // menu; the locale list is a plain vertical stack, so a box on
2258            // every side read as a selection rather than a pointer position.
2259            // The reserved left border carries the affordance on its own.
2260            border-left-color: var!(foreground);
2261        }
2262    }
2263}
2264
2265#[cfg(feature = "theme-shadcn")]
2266class! {
2267    pub(crate) c_euv_dropdown_menu {
2268        "--euv-dropdown-align": "start";
2269        "--euv-dropdown-anchor": "trigger";
2270        "--euv-dropdown-gap": "4";
2271        "--euv-dropdown-width-mode": "content";
2272        // The portaled popup receives measured viewport coordinates on open.
2273        position: "fixed";
2274        overflow-y: "auto";
2275        box-sizing: "border-box";
2276        overscroll-behavior: "contain";
2277        background: var!(popover);
2278        color: var!(popover-foreground);
2279        border: format!("{} solid {}", var!(border-width), var!(border));
2280        box-shadow: var!(shadow-md);
2281        flex-direction: "column";
2282        z-index: "101";
2283        border-radius: var!(radius-md);
2284
2285        width: "max-content";
2286        min-width: format!("calc(4 * {})", var!(space-3xl));
2287        max-width: format!("calc(100vw - {})", var!(space-lg));
2288        padding: var!(space-xs);
2289    }
2290
2291    pub(crate) c_euv_dropdown_sub_panel {
2292        // The portaled popup receives measured viewport coordinates on open.
2293        position: "fixed";
2294        overflow-y: "auto";
2295        box-sizing: "border-box";
2296        overscroll-behavior: "contain";
2297        background: var!(popover);
2298        color: var!(popover-foreground);
2299        border: format!("{} solid {}", var!(border-width), var!(border));
2300        box-shadow: var!(shadow-md);
2301        flex-direction: "column";
2302        z-index: "101";
2303        border-radius: var!(radius-md);
2304
2305        width: "max-content";
2306        min-width: format!("calc(4 * {})", var!(space-3xl));
2307        max-width: format!("calc(100vw - {})", var!(space-lg));
2308        padding: var!(space-xs);
2309
2310        z-index: "150";
2311    }
2312
2313    pub(crate) c_euv_dropdown_item_active {
2314        display: "flex";
2315        flex-shrink: "0";
2316        box-sizing: "border-box";
2317        align-items: "center";
2318        justify-content: "space-between";
2319        gap: var!(space-sm);
2320        width: "100%";
2321        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2322        border: "none";
2323        border-radius: var!(radius-sm);
2324        background: "transparent";
2325        color: var!(foreground);
2326        font-family: "inherit";
2327        font-size: var!(font-sm);
2328        line-height: "1.5";
2329        text-align: "left";
2330        white-space: "nowrap";
2331        cursor: "pointer";
2332        :hover {
2333            background: var!(accent);
2334            color: var!(accent-foreground);
2335        }
2336        :focus-visible {
2337            background: var!(accent);
2338            color: var!(accent-foreground);
2339        }
2340        :disabled {
2341            pointer-events: "none";
2342            opacity: "0.5";
2343        }
2344
2345        background: var!(accent);
2346        color: var!(accent-foreground);
2347    }
2348
2349    pub c_euv_command {
2350        display: "flex";
2351        flex-direction: "column";
2352        width: "100%";
2353        height: "100%";
2354        overflow: "hidden";
2355        border-radius: var!(radius-md);
2356        background: var!(popover);
2357        color: var!(popover-foreground);
2358
2359        border-radius: var!(radius-lg);
2360        border-color: var!(border);
2361        border-bottom-style: "solid";
2362        border-left-style: "solid";
2363        border-right-style: "solid";
2364        border-top-style: "solid";
2365        border-bottom-width: var!(border-width);
2366        border-left-width: var!(border-width);
2367        border-right-width: var!(border-width);
2368        border-top-width: var!(border-width);
2369        padding: var!(space-xs);
2370    }
2371
2372    pub c_euv_command_input_wrapper {
2373        display: "flex";
2374        align-items: "center";
2375        gap: var!(space-sm);
2376        padding: format!("0px {}", var!(space-md));
2377        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
2378
2379        padding: var!(space-xs);
2380    }
2381
2382    pub c_euv_command_item {
2383        position: "relative";
2384        display: "flex";
2385        align-items: "center";
2386        gap: var!(space-sm);
2387        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2388        border-radius: var!(radius-sm);
2389        font-size: var!(font-sm);
2390        cursor: "default";
2391        user-select: "none";
2392
2393        padding: var!(space-sm);
2394        border-bottom-right-radius: var!(radius-sm);
2395        border-bottom-left-radius: var!(radius-sm);
2396        border-top-right-radius: var!(radius-sm);
2397        border-top-left-radius: var!(radius-sm);
2398        padding-top: var!(space-xs-sm);
2399    }
2400
2401    pub c_euv_combobox_trigger {
2402        display: "inline-flex";
2403        align-items: "center";
2404        justify-content: "space-between";
2405        gap: var!(space-sm);
2406        height: var!(space-2xl);
2407        padding: format!("0px {}", var!(space-lg));
2408        border: format!("{} solid {}", var!(border-width), var!(border));
2409        border-radius: var!(radius-md);
2410        background: var!(background);
2411        color: var!(foreground);
2412        font-family: "inherit";
2413        font-size: var!(font-sm);
2414        line-height: "1.5";
2415        white-space: "nowrap";
2416        cursor: "pointer";
2417
2418        height: var!(control-height-sm);
2419        min-height: var!(control-height-sm);
2420        padding: format!("{} {}", var!(space-sm), var!(control-pad-inline));
2421        border-radius: var!(radius-lg);
2422        font-size: var!(font-sm);
2423        line-height: "1.428571";
2424        gap: var!(space-xs-sm);
2425    }
2426
2427    pub c_euv_combobox_input {
2428        display: "flex";
2429        width: "100%";
2430        height: var!(space-2xl);
2431        padding: format!("{} {}", var!(space-sm), var!(space-md));
2432        border: format!("{} solid {}", var!(border-width), var!(border));
2433        border-radius: var!(radius-md);
2434        background: var!(background);
2435        color: var!(foreground);
2436        font-family: "inherit";
2437        font-size: var!(font-sm);
2438        line-height: "1.5";
2439        outline: "none";
2440
2441        height: var!(control-height-sm);
2442        min-height: var!(control-height-sm);
2443        padding: format!("{} {}", var!(space-xs), var!(control-pad-inline));
2444        border-radius: var!(radius-lg);
2445        font-size: var!(font-sm);
2446        line-height: "1.428571";
2447    }
2448
2449    pub c_euv_combobox_content {
2450        position: "absolute";
2451        top: "100%";
2452        left: "0px";
2453        z-index: "150";
2454        min-width: "180px";
2455        padding: var!(space-xs);
2456        overflow: "hidden";
2457        border: format!("{} solid {}", var!(border-width), var!(border));
2458        border-radius: var!(radius-md);
2459        background: var!(popover);
2460        color: var!(popover-foreground);
2461        box-shadow: var!(shadow-md);
2462
2463        border-radius: var!(radius-lg);
2464    }
2465
2466    pub c_euv_combobox_item {
2467        display: "flex";
2468        align-items: "center";
2469        gap: var!(space-sm);
2470        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2471        border-radius: var!(radius-sm);
2472        font-size: var!(font-sm);
2473        line-height: "1.5";
2474        cursor: "pointer";
2475        user-select: "none";
2476
2477        padding: format!("{} calc({} + {})", var!(space-xs), var!(space-xs), var!(space-2xs));
2478        border-radius: var!(radius-md);
2479        font-size: var!(font-sm);
2480        line-height: "1.428571";
2481        :focus {
2482            outline: "none";
2483            background: var!(accent);
2484            color: var!(accent-foreground);
2485        }
2486    }
2487
2488    pub c_euv_sheet_trigger {
2489        display: "inline-flex";
2490        align-items: "center";
2491        justify-content: "center";
2492        gap: var!(space-sm);
2493        height: var!(space-2xl);
2494        padding: format!("0px {}", var!(space-lg));
2495        border: format!("{} solid {}", var!(border-width), var!(border));
2496        border-radius: var!(radius-md);
2497        background: var!(background);
2498        color: var!(foreground);
2499        font-family: "inherit";
2500        font-size: var!(font-sm);
2501        line-height: "1.5";
2502        white-space: "nowrap";
2503        cursor: "pointer";
2504
2505        height: var!(control-height-sm);
2506        gap: var!(space-xs-sm);
2507        border-radius: var!(radius-lg);
2508        font-weight: var!(font-weight-medium);
2509        padding-left: var!(control-pad-inline);
2510    }
2511
2512    pub c_euv_sheet_content {
2513        position: "fixed";
2514        z-index: "1000";
2515        display: "flex";
2516        flex-direction: "column";
2517        gap: var!(space-lg);
2518        padding: var!(space-2xl);
2519        background: var!(background);
2520        color: var!(foreground);
2521        box-shadow: var!(shadow-lg);
2522
2523        background: var!(popover);
2524        color: var!(popover-foreground);
2525        gap: var!(space-lg);
2526        padding: "0px";
2527        font-size: var!(font-sm);
2528        line-height: var!(space-xl);
2529    }
2530
2531    pub c_euv_sheet_content_left {
2532        top: "0px";
2533        bottom: "0px";
2534        left: "0px";
2535        width: "75%";
2536        max-width: "384px";
2537        border-right: format!("{} solid {}", var!(border-width), var!(border));
2538
2539        max-width: "none";
2540        @media ((min-width: 640px)) {
2541            max-width: "384px";
2542        }
2543    }
2544
2545    pub c_euv_sheet_content_right {
2546        top: "0px";
2547        right: "0px";
2548        bottom: "0px";
2549        width: "75%";
2550        max-width: "384px";
2551        border-left: format!("{} solid {}", var!(border-width), var!(border));
2552
2553        max-width: "none";
2554        @media ((min-width: 640px)) {
2555            max-width: "384px";
2556        }
2557    }
2558
2559    pub c_euv_sheet_header {
2560        display: "flex";
2561        flex-direction: "column";
2562        gap: var!(space-sm);
2563        text-align: "center";
2564
2565        padding: var!(space-lg);
2566        gap: var!(space-2xs);
2567        text-align: "left";
2568    }
2569
2570    pub c_euv_sheet_footer {
2571        display: "flex";
2572        flex-direction: "column-reverse";
2573        gap: var!(space-sm);
2574
2575        padding: var!(space-lg);
2576        gap: var!(space-sm);
2577        flex-direction: "column";
2578        margin-top: "auto";
2579    }
2580
2581    pub c_euv_sheet_title {
2582        color: var!(foreground);
2583        font-size: var!(font-lg);
2584        font-weight: "600";
2585        line-height: "1";
2586
2587        font-size: var!(font-base);
2588        font-weight: var!(font-weight-medium);
2589        line-height: var!(space-2xl);
2590    }
2591
2592    pub c_euv_sheet_description {
2593        color: var!(muted-foreground);
2594        font-size: var!(font-sm);
2595
2596        font-size: var!(font-sm);
2597        line-height: var!(space-xl);
2598    }
2599
2600    pub c_euv_sheet_close {
2601        position: "absolute";
2602        top: var!(space-lg);
2603        right: var!(space-lg);
2604        display: "inline-flex";
2605        align-items: "center";
2606        justify-content: "center";
2607        width: var!(space-lg);
2608        height: var!(space-lg);
2609        padding: "0px";
2610        border: "none";
2611        border-radius: var!(radius-sm);
2612        background: "transparent";
2613        color: var!(muted-foreground);
2614        font-family: "inherit";
2615        font-size: var!(font-sm);
2616        line-height: "1";
2617        cursor: "pointer";
2618        :hover {
2619            background: var!(accent);
2620            color: var!(accent-foreground);
2621        }
2622
2623        top: var!(space-md);
2624        right: var!(space-md);
2625        width: format!("calc({} - {})", var!(control-height-sm), var!(space-xs));
2626        height: format!("calc({} - {})", var!(control-height-sm), var!(space-xs));
2627        border-radius: format!("min({}, {})", var!(radius-md), var!(space-md));
2628        color: var!(foreground);
2629        :hover {
2630            background: var!(muted);
2631            color: var!(foreground);
2632        }
2633    }
2634
2635    pub c_euv_alert_dialog_trigger {
2636        display: "inline-flex";
2637        align-items: "center";
2638        justify-content: "center";
2639        gap: var!(space-sm);
2640        height: var!(space-2xl);
2641        padding: format!("0px {}", var!(space-lg));
2642        border: format!("{} solid {}", var!(border-width), var!(border));
2643        border-radius: var!(radius-md);
2644        background: var!(background);
2645        color: var!(foreground);
2646        font-family: "inherit";
2647        font-size: var!(font-sm);
2648        line-height: "1.5";
2649        white-space: "nowrap";
2650        cursor: "pointer";
2651
2652        height: var!(control-height-sm);
2653        gap: var!(space-xs-sm);
2654        border-radius: var!(radius-lg);
2655        font-weight: var!(font-weight-medium);
2656        padding-left: var!(control-pad-inline);
2657    }
2658
2659    pub c_euv_hover_card_trigger {
2660        display: "inline-flex";
2661        align-items: "center";
2662        font-family: "inherit";
2663        font-size: var!(font-sm);
2664        text-decoration: "underline";
2665        text-underline-offset: "4px";
2666        cursor: "pointer";
2667
2668        border-bottom-right-radius: var!(radius-md);
2669        border-bottom-left-radius: var!(radius-md);
2670        border-top-right-radius: var!(radius-md);
2671        border-top-left-radius: var!(radius-md);
2672        gap: var!(space-xs);
2673        justify-content: "center";
2674    }
2675
2676    pub c_euv_context_menu_trigger {
2677        -webkit-touch-callout: "none";
2678        display: "inline-flex";
2679        align-items: "center";
2680        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2681        border: format!("{} {} {}", var!(border-width), "solid", var!(border));
2682        border-radius: var!(radius-md);
2683        background: var!(background);
2684        color: var!(foreground);
2685        font-family: "inherit";
2686        font-size: var!(font-sm);
2687        line-height: "1.5";
2688        white-space: "nowrap";
2689        cursor: "pointer";
2690
2691        border-radius: var!(radius-xl);
2692        border-color: var!(border);
2693        border-bottom-style: "solid";
2694        border-left-style: "solid";
2695        border-right-style: "solid";
2696        border-top-style: "solid";
2697        border-bottom-width: var!(border-width);
2698        border-left-width: var!(border-width);
2699        border-right-width: var!(border-width);
2700        border-top-width: var!(border-width);
2701        justify-content: "center";
2702    }
2703
2704    pub(crate) c_euv_dropdown_item {
2705        display: "flex";
2706        flex-shrink: "0";
2707        box-sizing: "border-box";
2708        align-items: "center";
2709        justify-content: "space-between";
2710        gap: var!(space-sm);
2711        width: "100%";
2712        padding: format!("{} {}", var!(space-xs), var!(space-sm));
2713        border: "none";
2714        border-radius: var!(radius-sm);
2715        background: "transparent";
2716        color: var!(foreground);
2717        font-family: "inherit";
2718        font-size: var!(font-sm);
2719        line-height: "1.5";
2720        text-align: "left";
2721        white-space: "nowrap";
2722        cursor: "pointer";
2723        :hover {
2724            background: var!(accent);
2725            color: var!(accent-foreground);
2726        }
2727        :focus-visible {
2728            background: var!(accent);
2729            color: var!(accent-foreground);
2730        }
2731        :disabled {
2732            pointer-events: "none";
2733            opacity: "0.5";
2734        }
2735    }
2736}