Skip to main content

euv_ui/style/class/display/
fn.rs

1use super::*;
2
3class! {
4    // ═══════════════════════════════════════════════════════════════════════════
5    // Buttons
6    // ═══════════════════════════════════════════════════════════════════════════
7
8    pub c_primary_button {
9        display: "flex";
10        justify-content: "center";
11        align-items: "center";
12        gap: var!(space-sm);
13        width: "100%";
14        height: var!(control-height);
15        background: var!(primary);
16        color: var!(primary-foreground);
17        border: format!("{} solid transparent", var!(border-width));
18        padding: format!("0px {}", var!(space-2xl));
19        cursor: "pointer";
20        font-size: var!(font-base);
21        font-weight: var!(font-weight-medium);
22        letter-spacing: var!(letter-spacing-normal);
23        text-align: "center";
24        outline: "none";
25        box-sizing: "border-box";
26        white-space: "nowrap";
27        overflow: "hidden";
28        text-overflow: "ellipsis";
29        user-select: "none";
30        -webkit-user-select: "none";
31        :focus-visible {
32            outline: "none";
33        }
34        :disabled {
35            background: var!(muted-foreground);
36            cursor: "not-allowed";
37            opacity: "1";
38        }
39        :hover {
40            background: var!(primary-hover);
41        }
42        :active {
43            background: var!(primary);
44            color: var!(primary-foreground);
45            border-color: "transparent";
46        }
47        @media ((max-width: 767px)) {
48            max-width: "100%";
49            padding: format!("{} {}", var!(space-lg), var!(space-xl));
50            font-size: var!(font-md);
51        }
52        border-radius: var!(radius-md);
53    }
54
55    // ═══════════════════════════════════════════════════════════════════════════
56    // Button Controls Container
57    // ═══════════════════════════════════════════════════════════════════════════
58
59    pub c_button_controls {
60        display: "flex";
61        flex-wrap: "wrap";
62        gap: var!(gap-element);
63        margin-top: var!(gap-component);
64        margin-bottom: var!(gap-component);
65    }
66
67    // ═══════════════════════════════════════════════════════════════════════════
68    // Euv Button — the registry button
69    //
70    // The control is inline-flex so it hugs its label instead of filling
71    // the row, it carries the 14px control type scale, and it answers a
72    // keyboard focus with a ring drawn from the theme's own ink.
73    // ═══════════════════════════════════════════════════════════════════════════
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107    pub c_euv_button_link {
108        background: "transparent";
109        color: var!(primary);
110        text-decoration: "none";
111        text-underline-offset: "4px";
112        :hover {
113            text-decoration: "underline";
114        }
115    }
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133    // The legacy single-class button kept for the pages that name it
134    // directly. It carries the registry look in one rule so a caller that
135    // cannot compose classes still gets the inline-flex control.
136    pub c_euv_button_primary_md {
137        display: "inline-flex";
138        align-items: "center";
139        justify-content: "center";
140        gap: var!(space-sm);
141        height: "40px";
142        padding: format!("{} {}", var!(space-sm), var!(space-lg));
143        background: var!(primary);
144        color: var!(primary-foreground);
145        border: format!("{} solid transparent", var!(border-width));
146        cursor: "pointer";
147        font-size: var!(font-sm);
148        font-weight: var!(font-weight-medium);
149        line-height: "1";
150        white-space: "nowrap";
151        user-select: "none";
152        -webkit-user-select: "none";
153        box-sizing: "border-box";
154        transition: format!(
155        "background-color {} {}, border-color {} {}, color {} {}, box-shadow {} {}",
156        var!(duration-fast),
157        var!(ease-out),
158        var!(duration-fast),
159        var!(ease-out),
160        var!(duration-fast),
161        var!(ease-out),
162        var!(duration-fast),
163        var!(ease-out)
164        );
165        :hover {
166            background: var!(primary-hover);
167        }
168        :focus-visible {
169            outline: "none";
170            box-shadow: format!("0 0 0 2px {}, 0 0 0 4px {}", var!(background), var!(ring));
171        }
172        :disabled {
173            pointer-events: "none";
174            opacity: "0.5";
175        }
176        border-radius: var!(radius-md);
177    }
178
179    pub c_euv_button_outline_md {
180        box-shadow: var!(shadow-xs);
181        display: "inline-flex";
182        align-items: "center";
183        justify-content: "center";
184        gap: var!(space-sm);
185        height: "40px";
186        padding: format!("{} {}", var!(space-sm), var!(space-lg));
187        background: var!(background);
188        color: var!(foreground);
189        border: format!("{} solid {}", var!(border-width), var!(input));
190        cursor: "pointer";
191        font-size: var!(font-sm);
192        font-weight: var!(font-weight-medium);
193        line-height: "1";
194        white-space: "nowrap";
195        user-select: "none";
196        -webkit-user-select: "none";
197        box-sizing: "border-box";
198        transition: format!(
199        "background-color {} {}, border-color {} {}, color {} {}, box-shadow {} {}",
200        var!(duration-fast),
201        var!(ease-out),
202        var!(duration-fast),
203        var!(ease-out),
204        var!(duration-fast),
205        var!(ease-out),
206        var!(duration-fast),
207        var!(ease-out)
208        );
209        :hover {
210            background: var!(accent);
211            color: var!(accent-foreground);
212        }
213        :focus-visible {
214            outline: "none";
215            box-shadow: format!("0 0 0 2px {}, 0 0 0 4px {}", var!(background), var!(ring));
216        }
217        :disabled {
218            pointer-events: "none";
219            opacity: "0.5";
220        }
221        border-radius: var!(radius-md);
222    }
223
224    // ═══════════════════════════════════════════════════════════════════════════
225    // Status Boxes
226    // ═══════════════════════════════════════════════════════════════════════════
227
228    pub c_error_box {
229        margin: format!("{} 0px", var!(gap-component));
230        background: var!(destructive);
231        color: var!(destructive-foreground);
232        font-size: var!(font-base);
233        font-weight: var!(font-weight-medium);
234        padding: format!("{} {}", var!(space-sm), var!(space-lg));
235        border-radius: var!(radius-sm);
236        box-sizing: "border-box";
237    }
238
239    pub c_success_box {
240        margin: format!("{} 0px", var!(gap-component));
241        background: var!(success);
242        color: var!(success-foreground);
243        font-size: var!(font-base);
244        font-weight: var!(font-weight-medium);
245        padding: format!("{} {}", var!(space-sm), var!(space-lg));
246        border-radius: var!(radius-sm);
247        box-sizing: "border-box";
248    }
249
250    // ═══════════════════════════════════════════════════════════════════════════
251    // Alerts — the registry's two variants
252    // ═══════════════════════════════════════════════════════════════════════════
253
254
255
256
257
258
259
260
261
262    pub(crate) c_euv_alert_title {
263        color: "inherit";
264        font-size: var!(font-sm);
265        font-weight: var!(font-weight-medium);
266        letter-spacing: var!(letter-spacing-tight);
267        line-height: "1";
268    }
269
270    pub(crate) c_euv_alert_description {
271        color: var!(muted-foreground);
272        font-size: var!(font-sm);
273        line-height: "1.5";
274    }
275
276    pub(crate) c_euv_alert_action {
277        position: "absolute";
278        top: var!(space-sm);
279        right: var!(space-sm);
280        display: "flex";
281        align-items: "center";
282        gap: var!(space-sm);
283    }
284
285    // ═══════════════════════════════════════════════════════════════════════════
286    // Counter / Signals Demo
287    // ═══════════════════════════════════════════════════════════════════════════
288
289    pub c_counter_row {
290        display: "grid";
291        grid-template-columns: "minmax(0px, 1fr) minmax(0px, 1fr)";
292        align-items: "center";
293        gap: var!(gap-component);
294        @media ((max-width: 767px)) {
295            grid-template-columns: "1fr";
296        }
297    }
298
299    pub c_counter_text {
300        font-size: var!(font-base);
301        color: "inherit";
302        margin-bottom: var!(gap-component);
303    }
304
305    pub c_counter_value {
306        font-weight: var!(font-weight-bold);
307        color: var!(primary);
308        font-size: var!(font-base);
309    }
310
311    pub c_counter_value_row {
312        margin-top: var!(space-sm);
313        word-break: "break-all";
314        overflow-wrap: "anywhere";
315        font-size: var!(font-base);
316        color: "inherit";
317        font-weight: var!(font-weight-normal);
318    }
319
320    pub c_badge_row {
321        display: "flex";
322        gap: var!(gap-inline);
323        flex-wrap: "wrap";
324        align-items: "center";
325    }
326
327    pub c_badge_hint {
328        margin-bottom: var!(gap-component);
329        color: "inherit";
330        opacity: "1";
331        font-size: var!(font-base);
332    }
333
334    // ═══════════════════════════════════════════════════════════════════════════
335    // Tabs
336    // ═══════════════════════════════════════════════════════════════════════════
337
338    pub c_tab_bar {
339        display: "flex";
340        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
341        margin-bottom: var!(gap-component);
342        gap: var!(gap-element);
343        @media ((max-width: 767px)) {
344            flex-wrap: "wrap";
345        }
346    }
347
348    pub c_tab_item_active {
349        padding: format!("{} {}", var!(space-md), var!(space-xl));
350        cursor: "pointer";
351        border-bottom: format!("2px solid {}", var!(primary));
352        color: var!(primary-foreground);
353        background: var!(primary);
354        font-size: var!(font-base);
355        font-weight: var!(font-weight-medium);
356        // iOS WebKit: tap on a non-button element inside a scrollable
357        // container can be silently dropped because iOS interprets the
358        // touch as the start of a scroll gesture and never dispatches the
359        // synthetic `click`. `touch-action: manipulation` tells iOS this
360        // element only responds to taps and panning — no double-tap-zoom
361        // wait, no scroll-gesture disambiguation. `user-select: none`
362        // additionally suppresses the iOS text-selection bubble that
363        // would otherwise intercept the tap. See ui/src/style/css/fn.rs
364        // for the global reset and PR that documents the iOS repro.
365        touch-action: "manipulation";
366        user-select: "none";
367        -webkit-user-select: "none";
368        border-radius: var!(radius-md);
369    }
370
371    pub c_tab_item_inactive {
372        padding: format!("{} {}", var!(space-md), var!(space-xl));
373        cursor: "pointer";
374        border-bottom: "2px solid transparent";
375        color: "inherit";
376        font-size: var!(font-base);
377        font-weight: var!(font-weight-medium);
378        // iOS WebKit fix — see c_tab_item_active above for the rationale.
379        touch-action: "manipulation";
380        user-select: "none";
381        -webkit-user-select: "none";
382        :hover {
383            background: var!(muted);
384            color: var!(primary);
385        }
386        border-radius: var!(radius-md);
387    }
388
389    pub c_tab_content {
390        padding: format!("{} 0px", var!(gap-element));
391    }
392
393    pub c_tab_text {
394        color: "inherit";
395        font-size: var!(font-base);
396        margin-bottom: var!(gap-element);
397    }
398
399    pub c_tab_text_muted {
400        color: "inherit";
401        opacity: "1";
402        font-size: var!(font-base);
403    }
404
405    pub c_tab_text_input {
406        color: "inherit";
407        font-size: var!(font-base);
408        margin-bottom: var!(gap-component);
409    }
410
411    // ═══════════════════════════════════════════════════════════════════════════
412    // List
413    // ═══════════════════════════════════════════════════════════════════════════
414
415    pub c_list_input {
416        width: "100%";
417        flex: "1";
418        height: "42px";
419        padding: format!("0px {}", var!(space-lg));
420        border: format!("{} solid {}", var!(border-width), var!(border));
421        font-size: var!(font-base);
422        line-height: "normal";
423        box-sizing: "border-box";
424        outline: "none";
425        color: var!(foreground);
426        appearance: "none";
427        -webkit-appearance: "none";
428        -moz-appearance: "none";
429        vertical-align: "middle";
430        :hover {
431            border-color: var!(ring);
432            background: var!(muted);
433        }
434        :focus {
435            outline: "none";
436            border-color: var!(ring);
437            background: var!(muted);
438        }
439        border-radius: var!(radius-md);
440    }
441
442    pub c_list_input_error {
443        width: "100%";
444        flex: "1";
445        height: "42px";
446        padding: format!("0px {}", var!(space-lg));
447        border: format!("{} solid {}", var!(border-width), var!(destructive));
448        font-size: var!(font-base);
449        line-height: "normal";
450        box-sizing: "border-box";
451        outline: "none";
452        color: var!(foreground);
453        appearance: "none";
454        -webkit-appearance: "none";
455        -moz-appearance: "none";
456        vertical-align: "middle";
457        :focus {
458            outline: "none";
459            border-color: var!(foreground);
460        }
461        border-radius: var!(radius-md);
462    }
463
464    pub c_list_error_text {
465        color: var!(destructive);
466        font-size: var!(font-base);
467        margin: format!("{} 0px", var!(gap-element));
468    }
469
470    pub c_inline_input_button_wrap {
471        flex-shrink: "0";
472    }
473
474    pub c_list_ul {
475        list-style: "none";
476        padding: "0px";
477        margin: "0px";
478        margin-top: var!(gap-component);
479    }
480
481    pub c_list_item {
482        display: "flex";
483        justify-content: "space-between";
484        align-items: "center";
485        gap: var!(gap-component);
486        min-height: var!(control-height);
487        margin: format!("{} 0px", var!(gap-element));
488        border-radius: var!(radius-sm);
489    }
490
491    pub c_list_item_text {
492        flex: "1";
493        overflow: "hidden";
494        text-overflow: "ellipsis";
495        white-space: "nowrap";
496        font-size: var!(font-base);
497        color: "inherit";
498        min-width: "0";
499    }
500
501    pub c_list_item_button {
502        max-width: "120px";
503        flex-shrink: "0";
504        border-radius: var!(radius-sm);
505    }
506
507    // ═══════════════════════════════════════════════════════════════════════════
508    // Animation Demo
509    // ═══════════════════════════════════════════════════════════════════════════
510
511    pub c_anim_fade_in {
512        margin-top: var!(gap-component);
513        animation: format!("euv-fade-in 0.5s {}", var!(ease-out));
514        font-size: var!(font-base);
515        color: "inherit";
516    }
517
518    pub c_anim_spin_container {
519        display: "flex";
520        justify-content: "center";
521        align-items: "center";
522        margin: format!("{} 0px", var!(space-lg));
523        min-height: "80px";
524    }
525
526    pub c_anim_spin {
527        font-size: var!(font-5xl);
528        animation: "euv-spin 1.5s linear infinite";
529        display: "inline-block";
530        @media ((max-width: 767px)) {
531            font-size: var!(font-4xl);
532        }
533    }
534
535    pub c_anim_spin_stopped {
536        font-size: var!(font-5xl);
537        display: "inline-block";
538        opacity: "1";
539        @media ((max-width: 767px)) {
540            font-size: var!(font-4xl);
541        }
542    }
543
544    pub c_anim_pulse_container {
545        display: "flex";
546        justify-content: "center";
547        align-items: "center";
548        margin: format!("{} 0px", var!(space-lg));
549        min-height: "80px";
550    }
551
552    pub c_anim_pulse {
553        font-size: var!(font-5xl);
554        animation: "euv-pulse 1.5s ease-in-out infinite";
555        display: "inline-block";
556        color: var!(foreground);
557        @media ((max-width: 767px)) {
558            font-size: var!(font-4xl);
559        }
560    }
561
562    pub c_anim_pulse_stopped {
563        font-size: var!(font-5xl);
564        display: "inline-block";
565        opacity: "1";
566        color: var!(foreground);
567        @media ((max-width: 767px)) {
568            font-size: var!(font-4xl);
569        }
570    }
571
572    pub c_euv_progress_label {
573        font-size: var!(font-sm);
574        font-weight: var!(font-weight-medium);
575    }
576
577    pub c_euv_progress_value {
578        margin-left: "auto";
579        font-size: var!(font-sm);
580        font-variant-numeric: "tabular-nums";
581        color: var!(muted-foreground);
582    }
583
584    pub c_progress_bar_running {
585        height: "100%";
586        background: var!(primary);
587        animation: format!("euv-progress 1.6s {} forwards", var!(ease-in-out));
588        border-radius: var!(radius-full);
589    }
590
591    pub c_progress_bar_stopped {
592        height: "100%";
593        background: var!(primary);
594        width: "0%";
595        border-radius: var!(radius-full);
596        transition: "none";
597    }
598
599    pub c_anim_scale_box {
600        margin: format!("{} 0px", var!(gap-component));
601        padding: var!(space-xl);
602        background: var!(primary);
603        cursor: "pointer";
604        transition: format!("transform {} {}", var!(duration-normal), var!(ease-out));
605    }
606
607    // ═══════════════════════════════════════════════════════════════════════════
608    // Unified Layout Primitives
609    // ═══════════════════════════════════════════════════════════════════════════
610
611    pub c_element_stack {
612        display: "flex";
613        flex-direction: "column";
614        gap: var!(gap-element);
615    }
616
617    pub c_switcher {
618        display: "flex";
619        gap: var!(gap-component);
620        flex-wrap: "wrap";
621        @media ((max-width: 767px)) {
622            flex-direction: "column";
623            gap: var!(gap-component-mobile);
624        }
625    }
626
627    pub c_switcher_col {
628        flex: "1";
629        min-width: "200px";
630        @media ((max-width: 767px)) {
631            min-width: "100%";
632        }
633    }
634
635    // ═══════════════════════════════════════════════════════════════════════════
636    // Unified Description / Hint Text
637    // ═══════════════════════════════════════════════════════════════════════════
638
639    pub c_hint {
640        color: "inherit";
641        opacity: "1";
642        font-size: var!(font-base);
643        margin-bottom: var!(gap-component);
644    }
645
646    // ═══════════════════════════════════════════════════════════════════════════
647    // euv_pagination
648    // ═══════════════════════════════════════════════════════════════════════════
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664    pub c_euv_footer {
665        // Footer sits at the natural end of the article column. The user
666        // reaches it by scrolling to the bottom of the article — no sticky
667        // or fixed positioning. This matches the desktop behavior and
668        // Avoid any layout interference on mobile (where a sticky footer
669        // would overlap the last lines of content while scrolling).
670        // No top margin: the preceding tail block already carries the gap
671        // between the article and its pagination, so a margin here would
672        // stack with it and leave the rule stranded below an empty band.
673        // The dashed rule is this element's own `border-top`, so the
674        // padding below is the gap from the rule to the text and the
675        // padding above is the gap from the preceding content to the rule.
676        // Only one of them belongs to the band inside the rule, and it is
677        // the top one — that is the space between the divider and the text.
678        // `space-md` keeps the text close to the rule; the block is
679        // `display: flex` so the row is centred in the band the padding
680        // defines rather than riding its top edge.
681        padding: format!("{} 0px", var!(space-md));
682        border-top: format!("{} solid {}", var!(border-width), var!(border));
683        display: "flex";
684        // One row: the text and the notices sit side by side and never
685        // wrap. `align-items: center` keeps the badge on the text's
686        // midline, and `overflow: hidden` keeps a long row inside the
687        // column instead of pushing the page wider.
688        flex-wrap: "nowrap";
689        align-items: "center";
690        justify-content: "center";
691        gap: var!(space-md);
692        text-align: "center";
693        font-size: var!(font-sm);
694        color: var!(muted-foreground);
695        min-width: "0px";
696        overflow: "hidden";
697    }
698
699    // One item of the footer row.
700    //
701    // `inline-block` rather than a flex box: the text is inline content
702    // inside this box, so `text-overflow: ellipsis` can cut it with a
703    // dot when the row is too narrow. A flex box would put the text in
704    // an anonymous item that no selector can reach, and the text would
705    // be clipped without a hint that it was cut.
706    pub c_euv_footer_item {
707        display: "inline-block";
708        min-width: "0px";
709        max-width: "100%";
710        overflow: "hidden";
711        text-overflow: "ellipsis";
712        white-space: "nowrap";
713        vertical-align: "middle";
714    }
715
716    // A linked item of the footer row.
717    pub c_euv_footer_item_link {
718        c_euv_footer_item();
719        color: "inherit";
720        text-decoration: "none";
721        :hover {
722            color: var!(primary);
723        }
724    }
725
726    // The official badge that precedes a filing number.
727    //
728    // The height is the badge's own size (20px), so the picture is
729    // served at its native resolution instead of being scaled by the
730    // browser. The margin is the gap to the number: the link is an
731    // inline box, so the gap cannot come from a flex `gap`.
732    pub c_euv_footer_item_icon {
733        display: "inline-block";
734        height: var!(space-xl);
735        width: "auto";
736        vertical-align: "middle";
737        margin-right: var!(space-2xs);
738    }
739
740    pub c_euv_doc_layout {
741        display: "flex";
742        gap: var!(space-4xl);
743        width: "100%";
744        min-width: "0px";
745        max-width: "1080px";
746        margin: "0px auto";
747        // Fill the visible area of the scroll container (`c_app_main`,
748        // `overflow: auto` with a definite `height: 100%`) so the content
749        // column has room to push its tail to the bottom. A viewport unit
750        // would be wrong here: `100vh` measures the whole window including
751        // the app header, overshooting the visible area by the header
752        // height and pushing pagination/footer one header past the fold.
753        // Being a direct child of the scroll container, a percentage does
754        // resolve against its content box — put it one level deeper and
755        // the intermediate auto-height flex row makes `100%` degenerate to
756        // `auto`.
757        min-height: "100%";
758        // As a flex item of the scroll container's column, the default
759        // `flex-shrink: 1` lets this row be compressed to the `min-height`
760        // floor — 824px here — even though its content is 12780px tall. A
761        // sticky descendant can only travel inside its containing block, so
762        // the clamped row made `c_euv_doc_toc` unpin after roughly one
763        // viewport of scroll. Never shrink: the row must carry the article's
764        // full height so the sticky range spans the whole page.
765        flex-shrink: "0";
766    }
767
768    pub c_euv_doc_content {
769        // Two parallel children — the article body and the
770        // `c_euv_doc_tail` wrapper (pagination + footer). The flex column
771        // distributes them at the two ends:
772        //   - when the article is shorter than the column's intrinsic
773        //     height, `justify-content: space-between` pushes the tail to
774        //     the bottom edge;
775        //   - when the article is longer, the tail sits right after the
776        //     article in normal flow (because content height exceeds
777        //     min-height, there's no remaining space to distribute).
778        // The scroll container is `c_app_main` (`overflow: auto`), not the
779        // window, so a viewport unit measures the whole window including the
780        // app header. `100vh` therefore overshoots by the header height and
781        // pushes the tail one header past the fold on a short page. Height
782        // comes from `c_euv_doc_layout` (a direct child of the scroll
783        // container, where a percentage resolves); here `align-items:
784        // stretch` — the flex default — makes this column take that height
785        // so `space-between` has the full column to distribute across.
786        //   - article shorter than the column: `space-between` drops the
787        //     tail to the bottom edge of the visible area;
788        //   - article longer: the column grows with it and the tail follows
789        //     the body in normal flow, scrolling with the page.
790        flex: "1";
791        min-width: "0px";
792        max-width: var!(content-max-width);
793        display: "flex";
794        flex-direction: "column";
795        justify-content: "space-between";
796    }
797
798    pub c_euv_doc_body {
799        // Groups the page title and the rendered markdown into a single
800        // flex item. Without this the column would hold the `<h1>` and
801        // the `<article>` as two separate items, and
802        // `justify-content: space-between` would push them apart — a wide
803        // blank band between the title and the first paragraph on any
804        // page whose body is shorter than the column.
805        display: "flex";
806        flex-direction: "column";
807        // The body takes its natural height; only the tail is pushed to
808        // the far end. `flex-shrink: 0` keeps a long body from being
809        // compressed when the column is height-constrained.
810        flex: "0 0 auto";
811        min-width: "0px";
812    }
813
814    pub c_euv_doc_tail {
815        // Plain block wrapper that groups pagination + footer into one
816        // flex child. With `display: contents` the wrapper would be
817        // skipped and the two siblings would behave as direct children
818        // of `c_euv_doc_content` — breaking the two-parallel-containers
819        // contract that `justify-content: space-between` relies on.
820        display: "block";
821    }
822
823    pub c_euv_doc_toc {
824        width: "200px";
825        flex-shrink: "0";
826        // Pin the TOC column to the viewport while the main content scrolls.
827        // The sticky scroll container is `c_app_main` (the overflow:auto
828        // wrapper), so this offset is measured from that container's top edge.
829        // It tracks `padding-main-top` rather than a bare `0` so the pinned
830        // column keeps the same breathing room below the container edge as the
831        // article has below the same edge — the two columns stay on one
832        // vertical rhythm instead of the TOC riding flush against the top.
833        position: "sticky";
834        top: var!(padding-main-top);
835        @media ((max-width: 1100px)) {
836            display: "none";
837        }
838    }
839
840    // Makes the element's own box disappear while its children stay in the
841    // parent's layout flow, so a wrapper can carry a key or a conditional
842    // without contributing a box.
843    //
844    // The docs shell and page wrappers spelled this as an inline
845    // `style: "display: contents"`; the rule is the same either way, but a
846    // named class keeps the markup declarative and lets the browser cache it.
847    pub c_euv_display_contents {
848        display: "contents";
849    }
850
851    // ═══════════════════════════════════════════════════════════════════════
852    // Home Page Layout
853    // ═══════════════════════════════════════════════════════════════════════
854
855    pub c_home_layout {
856        // Mirrors `c_euv_doc_layout`: fill the visible area of the scroll
857        // container (`c_app_main`, `overflow: auto` with a definite
858        // `height: 100%`) so the column below has room to push its footer to
859        // the bottom. A viewport unit would overshoot by the app header.
860        //
861        // As a flex item of the scroll container's column it must never be
862        // shrunk below its content, or a tall home page collapses and the
863        // sticky-free column loses its height floor.
864        display: "flex";
865        flex-direction: "column";
866        width: "100%";
867        min-width: "0px";
868        min-height: "100%";
869        flex-shrink: "0";
870        margin: "0px auto";
871        max-width: var!(content-max-width);
872    }
873
874    pub c_home_content {
875        // Two parallel children — the content region (hero, stats, feature
876        // grid, blocks) and `c_home_tail` (the footer). `space-between`
877        // puts the footer at the far end of the column: on a short home page
878        // it drops to the bottom of the visible area, and on a tall one it
879        // follows the content in normal flow.
880        flex: "1";
881        min-width: "0px";
882        display: "flex";
883        flex-direction: "column";
884        justify-content: "space-between";
885    }
886
887    pub c_home_body {
888        // Groups hero + stats + grid + blocks into one flex item. Without
889        // this wrapper `space-between` would distribute the free space
890        // between the hero and the grid, tearing the title away from the
891        // content it introduces.
892        display: "flex";
893        flex-direction: "column";
894        flex-shrink: "0";
895    }
896
897    pub c_home_tail {
898        // Plain block wrapper around the footer so the column keeps exactly
899        // two children. A `display: contents` wrapper would be skipped and
900        // the footer would become a direct flex item, which is the case this
901        // structure exists to avoid.
902        display: "block";
903        flex-shrink: "0";
904    }
905
906    pub(crate) c_euv_collapse_item {
907        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
908    }
909
910    pub(crate) c_euv_collapse_header {
911        display: "flex";
912        align-items: "center";
913        gap: var!(space-sm);
914        width: "100%";
915        min-height: var!(control-height);
916        padding: format!("{} 0px", var!(space-sm));
917        cursor: "pointer";
918        text-align: "left";
919        font-size: var!(font-base);
920        font-weight: var!(font-weight-medium);
921        color: var!(foreground);
922        background: "transparent";
923        border: "none";
924        outline: "none";
925        touch-action: "manipulation";
926        user-select: "none";
927        -webkit-user-select: "none";
928        :hover {
929            background: var!(muted);
930            color: var!(primary);
931        }
932    }
933
934    pub(crate) c_euv_collapse_header_active {
935        display: "flex";
936        align-items: "center";
937        gap: var!(space-sm);
938        width: "100%";
939        min-height: var!(control-height);
940        padding: format!("{} 0px", var!(space-sm));
941        cursor: "pointer";
942        text-align: "left";
943        font-size: var!(font-base);
944        font-weight: var!(font-weight-semibold);
945        color: var!(primary);
946        background: var!(muted);
947        border: "none";
948        outline: "none";
949        touch-action: "manipulation";
950        user-select: "none";
951        -webkit-user-select: "none";
952    }
953
954    pub(crate) c_euv_collapse_body {
955        overflow: "hidden";
956        font-size: var!(font-base);
957        color: var!(foreground);
958        transition: format!("max-height {} {}, opacity {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
959    }
960
961    pub(crate) c_euv_collapse_body_open {
962        overflow: "hidden";
963        max-height: "none";
964        opacity: "1";
965        padding-bottom: var!(space-md);
966        font-size: var!(font-base);
967        color: var!(foreground);
968        transition: format!("max-height {} {}, opacity {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
969    }
970
971    pub(crate) c_euv_collapse_body_closed {
972        overflow: "hidden";
973        max-height: "0px";
974        opacity: "0";
975        font-size: var!(font-base);
976        color: var!(foreground);
977        transition: format!("max-height {} {}, opacity {} {}", var!(duration-normal), var!(ease-out), var!(duration-normal), var!(ease-out));
978    }
979
980    pub(crate) c_euv_breadcrumb {
981        display: "flex";
982        align-items: "center";
983        flex-wrap: "wrap";
984        gap: var!(space-xs);
985        font-size: var!(font-sm);
986    }
987
988    pub(crate) c_euv_breadcrumb_list {
989        display: "flex";
990        align-items: "center";
991        flex-wrap: "wrap";
992        gap: var!(space-xs);
993        margin: "0px";
994        padding: "0px";
995        list-style: "none";
996    }
997
998    pub(crate) c_euv_breadcrumb_item {
999        display: "inline-flex";
1000        align-items: "center";
1001        gap: var!(space-xs);
1002        font-size: var!(font-sm);
1003        color: var!(muted-foreground);
1004    }
1005
1006    pub(crate) c_euv_breadcrumb_link {
1007        font-size: var!(font-sm);
1008        color: var!(muted-foreground);
1009        cursor: "pointer";
1010        text-decoration: "none";
1011        touch-action: "manipulation";
1012        user-select: "none";
1013        -webkit-user-select: "none";
1014        :hover {
1015            background: var!(muted);
1016            color: var!(primary);
1017        }
1018    }
1019
1020    pub(crate) c_euv_breadcrumb_sep {
1021        font-size: var!(font-sm);
1022        color: var!(muted-foreground);
1023        user-select: "none";
1024        -webkit-user-select: "none";
1025    }
1026
1027    pub(crate) c_euv_breadcrumb_ellipsis {
1028        display: "inline-flex";
1029        align-items: "center";
1030        justify-content: "center";
1031        width: var!(space-xl);
1032        height: var!(space-lg);
1033        font-size: var!(font-sm);
1034        color: var!(muted-foreground);
1035        user-select: "none";
1036        -webkit-user-select: "none";
1037    }
1038
1039    pub(crate) c_euv_breadcrumb_current {
1040        font-size: var!(font-sm);
1041        font-weight: var!(font-weight-semibold);
1042        color: var!(foreground);
1043        cursor: "default";
1044    }
1045
1046    pub(crate) c_euv_divider {
1047        display: "block";
1048        width: "100%";
1049    }
1050
1051    pub(crate) c_euv_divider_horizontal {
1052        display: "block";
1053        width: "100%";
1054        height: "0px";
1055        border: "none";
1056        border-top: format!("{} solid {}", var!(border-width), var!(border));
1057        margin: format!("{} 0px", var!(space-lg));
1058    }
1059
1060    pub(crate) c_euv_divider_vertical {
1061        display: "block";
1062        width: "0px";
1063        height: "auto";
1064        align-self: "center";
1065        border: "none";
1066        border-left: format!("{} solid {}", var!(border-width), var!(border));
1067        margin: format!("0px {}", var!(space-sm));
1068    }
1069
1070    pub(crate) c_euv_divider_labeled {
1071        display: "flex";
1072        align-items: "center";
1073        gap: var!(space-sm);
1074        width: "100%";
1075        margin: format!("{} 0px", var!(space-lg));
1076    }
1077
1078    pub(crate) c_euv_divider_label_text {
1079        font-size: var!(font-xs);
1080        font-weight: var!(font-weight-medium);
1081        color: var!(muted-foreground);
1082        white-space: "nowrap";
1083        user-select: "none";
1084        -webkit-user-select: "none";
1085    }
1086
1087    // ═══════════════════════════════════════════════════════════════════════════
1088    // Card Component
1089    // ═══════════════════════════════════════════════════════════════════════════
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101    pub c_card_stack {
1102        display: "flex";
1103        flex-direction: "column";
1104        gap: var!(page-block-gap);
1105        > :is("[class], *") {
1106            margin-block: "0px";
1107        }
1108        > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
1109            margin-block: "0px";
1110        }
1111        > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
1112            margin-block: "0px";
1113        }
1114        :is(".c_page_container > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card_stack") {
1115            margin-top: var!(page-block-gap);
1116        }
1117        @media ((max-width: 767px)) {
1118            gap: var!(page-block-gap-mobile);
1119        }
1120        @media ((max-width: 767px)) {
1121            :is(".c_page_container > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card_stack, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card_stack") {
1122                margin-top: var!(page-block-gap-mobile);
1123            }
1124        }
1125    }
1126
1127    pub(crate) c_euv_card_description {
1128        color: var!(muted-foreground);
1129        font-size: var!(font-sm);
1130        line-height: "1.5";
1131    }
1132
1133    pub(crate) c_euv_card_content {
1134        display: "flex";
1135        flex-direction: "column";
1136        gap: var!(space-sm);
1137    }
1138
1139    pub(crate) c_euv_card_footer {
1140        display: "flex";
1141        align-items: "center";
1142        gap: var!(space-sm);
1143    }
1144
1145    pub(crate) c_euv_card_action {
1146        display: "flex";
1147        align-items: "center";
1148        gap: var!(space-sm);
1149        grid-column-start: "2";
1150        grid-row-start: "1";
1151        grid-row-end: "auto";
1152        :is(".c_euv_card_header:has(.c_euv_card_description) .c_euv_card_action") {
1153            grid-row-end: "span 2";
1154        }
1155        justify-self: "end";
1156        align-self: "start";
1157    }
1158
1159    pub(crate) c_modal_close_button {
1160        display: "flex";
1161        justify-content: "center";
1162        align-items: "center";
1163        color: "inherit";
1164        border: "none";
1165        padding: format!("{} {}", var!(space-sm), var!(space-md));
1166        cursor: "pointer";
1167        font-size: "20px";
1168        font-weight: var!(font-weight-normal);
1169        vertical-align: "middle";
1170        outline: "none";
1171        opacity: "1";
1172        flex-shrink: "0";
1173        transition: format!("opacity {} {}", var!(duration-fast), var!(ease-out));
1174        :hover {
1175            opacity: "1";
1176        }
1177        :active {
1178            opacity: "1";
1179        }
1180        :focus {
1181            outline: "none";
1182        }
1183    }
1184
1185    // ═══════════════════════════════════════════════════════════════════════════
1186    // Badges
1187    //
1188    // The badge is the registry's badge: a small pill with four variants.
1189    // The shared class carries the shape and the type scale, the variant
1190    // classes carry the fill.
1191    // ═══════════════════════════════════════════════════════════════════════════
1192
1193
1194
1195
1196
1197    pub(crate) c_euv_badge_clickable {
1198        cursor: "pointer";
1199    }
1200
1201    pub(crate) c_euv_badge_default {
1202        color: var!(primary-foreground);
1203        background: var!(primary);
1204        border: format!("{} solid transparent", var!(border-width));
1205    }
1206
1207    pub(crate) c_euv_badge_secondary {
1208        color: var!(secondary-foreground);
1209        background: var!(secondary);
1210        border: format!("{} solid transparent", var!(border-width));
1211    }
1212
1213    pub(crate) c_euv_badge_outline {
1214        color: var!(foreground);
1215        background: "transparent";
1216        border: format!("{} solid {}", var!(border-width), var!(border));
1217    }
1218
1219    pub(crate) c_euv_badge_ghost {
1220        color: var!(foreground);
1221        background: "transparent";
1222        border: format!("{} solid transparent", var!(border-width));
1223        :hover {
1224            background: var!(accent);
1225            color: var!(accent-foreground);
1226        }
1227    }
1228
1229    pub(crate) c_euv_badge_link {
1230        color: var!(primary);
1231        background: "transparent";
1232        border: format!("{} solid transparent", var!(border-width));
1233        text-underline-offset: var!(space-xs);
1234        :hover {
1235            text-decoration: "underline";
1236        }
1237    }
1238
1239    pub(crate) c_euv_tag_solid_black {
1240        display: "inline-block";
1241        vertical-align: "middle";
1242        text-align: "center";
1243        line-height: "1";
1244        color: var!(primary-foreground);
1245        padding: format!("{} {}", var!(space-xs), var!(space-md));
1246        font-size: var!(font-sm);
1247        font-weight: var!(font-weight-semibold);
1248        cursor: "pointer";
1249        background: var!(primary);
1250        border: format!("{} solid {}", var!(border-width), var!(primary));
1251        box-sizing: "border-box";
1252        border-radius: var!(radius-sm);
1253    }
1254
1255    pub(crate) c_euv_tag_solid_white {
1256        display: "inline-block";
1257        vertical-align: "middle";
1258        text-align: "center";
1259        line-height: "1";
1260        color: var!(foreground);
1261        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
1262        font-size: var!(font-xs);
1263        font-weight: var!(font-weight-semibold);
1264        cursor: "pointer";
1265        border: format!("1.5px solid {}", var!(primary));
1266        box-sizing: "border-box";
1267        border-radius: var!(radius-sm);
1268    }
1269
1270    // ═══════════════════════════════════════════════════════════════════════════
1271    // Euv Tag Variants (semantic colour tags)
1272    // ═══════════════════════════════════════════════════════════════════════════
1273
1274    pub(crate) c_euv_tag_outline_black {
1275        display: "inline-block";
1276        vertical-align: "middle";
1277        text-align: "center";
1278        line-height: "1";
1279        color: var!(primary);
1280        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
1281        font-size: var!(font-xs);
1282        font-weight: var!(font-weight-semibold);
1283        cursor: "pointer";
1284        border: format!("1.5px solid {}", var!(primary));
1285        box-sizing: "border-box";
1286        border-radius: var!(radius-sm);
1287    }
1288
1289    pub(crate) c_euv_tag_outline_white {
1290        display: "inline-block";
1291        vertical-align: "middle";
1292        text-align: "center";
1293        line-height: "1";
1294        color: var!(foreground);
1295        padding: format!("{} {}", var!(space-xs), var!(space-md));
1296        font-size: var!(font-sm);
1297        font-weight: var!(font-weight-semibold);
1298        cursor: "pointer";
1299        border: format!("1.5px solid {}", var!(border));
1300        box-sizing: "border-box";
1301        border-radius: var!(radius-sm);
1302    }
1303
1304
1305
1306
1307
1308    pub(crate) c_euv_pagination_no_next {
1309        text-align: "left";
1310    }
1311
1312    pub(crate) c_euv_pagination_spacer {
1313        flex: "1";
1314    }
1315
1316    // ═══════════════════════════════════════════════════════════════════════════
1317    // euv_markdown / euv_footer
1318    // ═══════════════════════════════════════════════════════════════════════════
1319
1320    pub(crate) c_euv_markdown {
1321        width: "100%";
1322        min-width: "0px";
1323    }
1324
1325    // Scroll container for a markdown table.
1326    //
1327    // The table keeps `display: table` (so it fills the column and its
1328    // columns are sized by real table layout), which means the *wrapper*
1329    // is what can scroll: `overflow-x` on the table box itself is ignored.
1330    // `min-width: 0` is what lets the wrapper shrink inside the flex/grid
1331    // prose column instead of being floored by its table's intrinsic width,
1332    // so a wide table scrolls rather than pushing the whole article wide.
1333    pub(crate) c_euv_markdown_table_scroll {
1334        overflow-x: "auto";
1335        max-width: "100%";
1336        min-width: "0px";
1337    }
1338
1339    // ═══════════════════════════════════════════════════════════════════════════
1340    // euv_result / euv_doc_layout
1341    // ═══════════════════════════════════════════════════════════════════════════
1342
1343    pub(crate) c_euv_result {
1344        display: "flex";
1345        flex-direction: "column";
1346        align-items: "center";
1347        justify-content: "center";
1348        text-align: "center";
1349        gap: var!(space-md);
1350        padding: format!("{} {}", var!(space-4xl), var!(space-md));
1351        // Half the available height, not half the viewport: the result block
1352        // lives inside a scroll container, so a viewport unit would be taller
1353        // than the visible area on short pages and leave the buttons below
1354        // the fold.
1355        min-height: "50%";
1356    }
1357
1358    pub(crate) c_euv_result_code {
1359        font-size: var!(font-6xl);
1360        font-weight: var!(font-weight-bold);
1361        line-height: "1";
1362        letter-spacing: var!(letter-spacing-tight);
1363    }
1364
1365    pub(crate) c_euv_result_title {
1366        font-size: var!(font-2xl);
1367        font-weight: var!(font-weight-semibold);
1368        margin: "0px";
1369    }
1370
1371    pub(crate) c_euv_result_description {
1372        color: var!(muted-foreground);
1373        margin: "0px";
1374    }
1375
1376    pub(crate) c_euv_result_actions {
1377        display: "flex";
1378        gap: var!(space-md);
1379        margin-top: var!(space-lg);
1380    }
1381
1382    // ═══════════════════════════════════════════════════════════════════════════
1383    // Empty
1384    // ═══════════════════════════════════════════════════════════════════════════
1385
1386
1387
1388
1389
1390    pub(crate) c_euv_empty_icon {
1391        font-size: var!(font-3xl);
1392        line-height: "1";
1393        color: var!(muted-foreground);
1394    }
1395
1396    pub(crate) c_euv_alert_icon {
1397        display: "inline-flex";
1398        align-items: "center";
1399        justify-content: "center";
1400        width: var!(space-3xl);
1401        height: var!(space-3xl);
1402        flex-shrink: "0";
1403        color: var!(foreground);
1404    }
1405
1406    pub(crate) c_euv_empty_text {
1407        font-size: var!(font-lg);
1408        font-weight: var!(font-weight-semibold);
1409        color: var!(foreground);
1410    }
1411
1412    pub(crate) c_euv_empty_desc {
1413        font-size: var!(font-sm);
1414        color: var!(muted-foreground);
1415        max-width: var!(text-measure);
1416    }
1417
1418    pub(crate) c_euv_empty_action {
1419        margin-top: var!(space-sm);
1420    }
1421
1422    // ═══════════════════════════════════════════════════════════════════════════
1423    // Typography
1424    // ═══════════════════════════════════════════════════════════════════════════
1425
1426    pub(crate) c_euv_text {
1427        margin: "0px";
1428        color: var!(foreground);
1429        font-size: var!(font-base);
1430        line-height: "1.6";
1431    }
1432
1433    pub(crate) c_euv_text_title {
1434        margin: "0px";
1435        color: var!(foreground);
1436        font-size: var!(font-xl);
1437        font-weight: var!(font-weight-semibold);
1438        line-height: "1.4";
1439    }
1440
1441    pub(crate) c_euv_text_title_lg {
1442        margin: "0px";
1443        color: var!(foreground);
1444        font-size: var!(font-2xl);
1445        font-weight: var!(font-weight-semibold);
1446        line-height: "1.35";
1447    }
1448
1449    pub(crate) c_euv_text_title_sm {
1450        margin: "0px";
1451        color: var!(foreground);
1452        font-size: var!(font-lg);
1453        font-weight: var!(font-weight-semibold);
1454        line-height: "1.4";
1455    }
1456
1457    pub(crate) c_euv_text_paragraph {
1458        margin: "0px";
1459        color: var!(foreground);
1460        font-size: var!(font-base);
1461        line-height: "1.6";
1462    }
1463
1464    pub(crate) c_euv_text_secondary {
1465        margin: "0px";
1466        color: var!(muted-foreground);
1467        font-size: var!(font-sm);
1468        line-height: "1.6";
1469    }
1470
1471    pub(crate) c_euv_text_mono {
1472        margin: "0px";
1473        color: var!(foreground);
1474        font-size: var!(font-sm);
1475        font-family: var!(font-family-mono);
1476        line-height: "1.5";
1477    }
1478
1479    pub(crate) c_euv_text_deletion {
1480        margin: "0px";
1481        color: var!(muted-foreground);
1482        font-size: var!(font-base);
1483        text-decoration: "line-through";
1484        line-height: "1.6";
1485    }
1486
1487    pub(crate) c_euv_text_underline {
1488        margin: "0px";
1489        color: var!(foreground);
1490        font-size: var!(font-base);
1491        text-decoration: "underline";
1492        line-height: "1.6";
1493    }
1494
1495    // ═══════════════════════════════════════════════════════════════════════════
1496    // Link
1497    // ═══════════════════════════════════════════════════════════════════════════
1498
1499    pub(crate) c_euv_link {
1500        display: "inline";
1501        color: var!(foreground);
1502        font-size: var!(font-base);
1503        text-decoration: "underline";
1504        text-underline-offset: "2px";
1505        cursor: "pointer";
1506        touch-action: "manipulation";
1507        :hover {
1508            color: var!(muted-foreground);
1509        }
1510    }
1511
1512    pub(crate) c_euv_link_disabled {
1513        display: "inline";
1514        color: var!(muted-foreground);
1515        font-size: var!(font-base);
1516        text-decoration: "none";
1517        cursor: "not-allowed";
1518        opacity: "0.5";
1519    }
1520
1521    // ═══════════════════════════════════════════════════════════════════════════
1522    // Image
1523    // ═══════════════════════════════════════════════════════════════════════════
1524
1525    pub(crate) c_euv_image {
1526        display: "block";
1527        max-width: "100%";
1528        height: "auto";
1529        border: "none";
1530        background: "transparent";
1531    }
1532
1533    pub(crate) c_euv_image_placeholder {
1534        position: "relative";
1535        display: "flex";
1536        align-items: "center";
1537        justify-content: "center";
1538        width: "100%";
1539        min-height: var!(control-height);
1540        padding: var!(space-md);
1541        border: format!("{} solid {}", var!(border-width), var!(border));
1542        background: var!(background);
1543        color: var!(muted-foreground);
1544        font-size: var!(font-sm);
1545        text-align: "center";
1546        box-sizing: "border-box";
1547    }
1548
1549    // Keep native lazy loading active without exposing intrinsic broken-image layout.
1550    pub(crate) c_euv_image_unavailable_picture {
1551        position: "absolute";
1552        inset: "0px";
1553        width: "100%";
1554        height: "100%";
1555        opacity: "0";
1556        pointer-events: "none";
1557    }
1558
1559    pub(crate) c_euv_image_failed {
1560        position: "relative";
1561        display: "flex";
1562        align-items: "center";
1563        justify-content: "center";
1564        width: "100%";
1565        min-height: var!(control-height);
1566        padding: var!(space-md);
1567        border: format!("{} solid {}", var!(border-width), var!(border));
1568        background: var!(background);
1569        color: var!(muted-foreground);
1570        font-size: var!(font-sm);
1571        text-align: "center";
1572        box-sizing: "border-box";
1573    }
1574
1575    // ═══════════════════════════════════════════════════════════════════════════
1576    // Carousel
1577    // ═══════════════════════════════════════════════════════════════════════════
1578
1579    pub(crate) c_euv_carousel {
1580        position: "relative";
1581        display: "flex";
1582        flex-direction: "column";
1583        width: "100%";
1584        overflow: "hidden";
1585        touch-action: "pan-y";
1586    }
1587
1588    pub(crate) c_euv_carousel_track {
1589        display: "flex";
1590        flex-direction: "row";
1591        width: "100%";
1592        transition: format!("transform {} {}", var!(duration-normal), var!(ease-out));
1593    }
1594
1595    pub(crate) c_euv_carousel_slide {
1596        flex: "0 0 100%";
1597        width: "100%";
1598        min-width: "100%";
1599        box-sizing: "border-box";
1600        padding-left: format!("calc({} + {})", var!(space-4xl), var!(space-lg));
1601        padding-right: format!("calc({} + {})", var!(space-4xl), var!(space-lg));
1602    }
1603
1604    pub(crate) c_euv_carousel_dots {
1605        display: "flex";
1606        align-items: "center";
1607        justify-content: "center";
1608        gap: var!(space-sm);
1609        padding-top: var!(space-sm);
1610    }
1611
1612    pub(crate) c_euv_carousel_dot {
1613        width: var!(space-sm);
1614        height: var!(space-sm);
1615        padding: "0px";
1616        border: format!("{} solid {}", var!(border-width), var!(border));
1617        border-radius: var!(radius-full);
1618        background: var!(background);
1619        cursor: "pointer";
1620        touch-action: "manipulation";
1621        :hover {
1622            background: var!(muted);
1623        }
1624    }
1625
1626    pub(crate) c_euv_carousel_dot_active {
1627        width: var!(space-sm);
1628        height: var!(space-sm);
1629        padding: "0px";
1630        border: format!("{} solid {}", var!(border-width), var!(border));
1631        border-radius: var!(radius-full);
1632        background: var!(primary);
1633        cursor: "pointer";
1634        touch-action: "manipulation";
1635        :hover {
1636            background: var!(primary);
1637        }
1638    }
1639
1640    // ═══════════════════════════════════════════════════════════════════════════
1641    // Anchor
1642    // ═══════════════════════════════════════════════════════════════════════════
1643
1644    pub(crate) c_euv_anchor {
1645        display: "flex";
1646        flex-direction: "column";
1647        gap: var!(space-xs);
1648        width: "100%";
1649    }
1650
1651    pub(crate) c_euv_anchor_title {
1652        font-size: var!(font-sm);
1653        font-weight: var!(font-weight-semibold);
1654        color: var!(foreground);
1655        margin-bottom: var!(space-xs);
1656    }
1657
1658    pub(crate) c_euv_anchor_link {
1659        display: "block";
1660        padding: format!("{} 0px", var!(space-2xs));
1661        color: var!(muted-foreground);
1662        font-size: var!(font-sm);
1663        text-decoration: "none";
1664        cursor: "pointer";
1665        touch-action: "manipulation";
1666        :hover {
1667            color: var!(foreground);
1668        }
1669    }
1670
1671    pub(crate) c_euv_anchor_link_active {
1672        display: "block";
1673        padding: format!("{} 0px", var!(space-2xs));
1674        color: var!(foreground);
1675        font-size: var!(font-sm);
1676        font-weight: var!(font-weight-semibold);
1677        text-decoration: "none";
1678        cursor: "pointer";
1679        touch-action: "manipulation";
1680        :hover {
1681            color: var!(foreground);
1682        }
1683    }
1684
1685    // ═══════════════════════════════════════════════════════════════════════════
1686    // Watermark
1687    // ═══════════════════════════════════════════════════════════════════════════
1688
1689    pub(crate) c_euv_watermark {
1690        position: "relative";
1691        display: "block";
1692        width: "100%";
1693    }
1694
1695    pub(crate) c_euv_watermark_layer {
1696        position: "absolute";
1697        top: "0px";
1698        left: "0px";
1699        right: "0px";
1700        bottom: "0px";
1701        z-index: "1";
1702        display: "flex";
1703        align-items: "center";
1704        justify-content: "center";
1705        overflow: "hidden";
1706        pointer-events: "none";
1707    }
1708
1709    pub(crate) c_euv_watermark_text {
1710        color: var!(muted-foreground);
1711        font-size: var!(font-2xl);
1712        font-weight: var!(font-weight-bold);
1713        letter-spacing: var!(letter-spacing-wide);
1714        opacity: "0.12";
1715        transform: "rotate(-22deg)";
1716        user-select: "none";
1717        -webkit-user-select: "none";
1718        white-space: "nowrap";
1719    }
1720
1721    // ═══════════════════════════════════════════════════════════════════════════
1722    // Back To Top
1723    // ═══════════════════════════════════════════════════════════════════════════
1724
1725
1726    pub(crate) c_euv_back_top_visible {
1727        position: "fixed";
1728        right: var!(space-xl);
1729        bottom: var!(space-xl);
1730        z-index: "900";
1731        display: "flex";
1732        align-items: "center";
1733        justify-content: "center";
1734        width: "40px";
1735        height: "40px";
1736        padding: "0px";
1737        border: format!("{} solid {}", var!(border-width), var!(border));
1738        background: var!(background);
1739        color: var!(foreground);
1740        font-size: var!(font-sm);
1741        line-height: "1";
1742        cursor: "pointer";
1743        box-shadow: var!(shadow-sm);
1744        touch-action: "manipulation";
1745        :hover {
1746            background: var!(muted);
1747            color: var!(primary);
1748        }
1749        @media ((max-width: 767px)) {
1750            right: var!(space-lg);
1751            bottom: var!(space-lg);
1752        }
1753    }
1754
1755    pub(crate) c_euv_back_top_hidden {
1756        position: "fixed";
1757        right: var!(space-xl);
1758        bottom: var!(space-xl);
1759        z-index: "900";
1760        display: "none";
1761        align-items: "center";
1762        justify-content: "center";
1763        width: "40px";
1764        height: "40px";
1765        padding: "0px";
1766        border: format!("{} solid {}", var!(border-width), var!(border));
1767        background: var!(background);
1768        color: var!(foreground);
1769        font-size: var!(font-sm);
1770        line-height: "1";
1771        cursor: "pointer";
1772        box-shadow: var!(shadow-sm);
1773        touch-action: "manipulation";
1774        :hover {
1775            background: var!(muted);
1776            color: var!(primary);
1777        }
1778        @media ((max-width: 767px)) {
1779            right: var!(space-lg);
1780            bottom: var!(space-lg);
1781        }
1782    }
1783
1784    // ═══════════════════════════════════════════════════════════════════════════
1785    // Splitter
1786    // ═══════════════════════════════════════════════════════════════════════════
1787
1788    pub(crate) c_euv_splitter {
1789        display: "flex";
1790        align-items: "stretch";
1791        width: "100%";
1792        height: "100%";
1793        min-height: "0px";
1794    }
1795
1796    pub(crate) c_euv_splitter_pane {
1797        flex: "1";
1798        min-width: "0px";
1799        min-height: "0px";
1800        overflow: "auto";
1801    }
1802
1803    pub(crate) c_euv_splitter_bar {
1804        flex: "0 0 6px";
1805        align-self: "stretch";
1806        background: var!(border);
1807        cursor: "col-resize";
1808        touch-action: "none";
1809        user-select: "none";
1810        -webkit-user-select: "none";
1811        :hover {
1812            background: var!(primary);
1813        }
1814    }
1815
1816    // ═══════════════════════════════════════════════════════════════════════════
1817    // Grid
1818    // ═══════════════════════════════════════════════════════════════════════════
1819
1820    pub(crate) c_euv_grid {
1821        display: "flex";
1822        flex-wrap: "wrap";
1823        width: "100%";
1824        box-sizing: "border-box";
1825    }
1826
1827    // A grid row that spaces its columns.
1828    //
1829    // The spacing is padding on the columns, not a `gap` on the row: a
1830    // column's width is a percentage of the row, so a gap would be
1831    // added on top of a row that already sums to a hundred percent and
1832    // push the last column onto a second line. The row pulls itself
1833    // out by half the gutter and the columns pad themselves back in, so
1834    // the columns still add up to the row's full width.
1835    pub(crate) c_euv_grid_gutter {
1836        display: "flex";
1837        flex-wrap: "wrap";
1838        width: "100%";
1839        box-sizing: "border-box";
1840        margin-left: {
1841            format!("calc({} / -2)", var!(gap-component))
1842        };
1843        margin-right: {
1844            format!("calc({} / -2)", var!(gap-component))
1845        };
1846    }
1847
1848    // A grid column. The width is a share of the row, and the caller
1849    // sets it inline, so a row's columns add up exactly whatever their
1850    // span.
1851    pub(crate) c_euv_grid_col {
1852        display: "block";
1853        flex: "0 0 auto";
1854        box-sizing: "border-box";
1855        min-width: "0px";
1856    }
1857
1858    // A grid column inside a spaced row. The column keeps its share of
1859    // the row and takes half the gutter as padding on each side, which
1860    // is what opens the space between two columns.
1861    pub(crate) c_euv_grid_gutter_col {
1862        display: "block";
1863        flex: "0 0 auto";
1864        box-sizing: "border-box";
1865        min-width: "0px";
1866        padding-left: {
1867            format!("calc({} / 2)", var!(gap-component))
1868        };
1869        padding-right: {
1870            format!("calc({} / 2)", var!(gap-component))
1871        };
1872    }
1873
1874    // A grid column that is pushed to the right by an offset. The
1875    // offset's size is set inline, like the column's own width.
1876    pub(crate) c_euv_grid_col_offset {
1877        display: "block";
1878        flex: "0 0 auto";
1879        box-sizing: "border-box";
1880        min-width: "0px";
1881    }
1882
1883    // A grid column inside a spaced row that is also pushed to the
1884    // right by an offset. It is the spaced column and the offset
1885    // column at once: the padding that opens the gutter and the offset
1886    // that pushes the column along the row.
1887    pub(crate) c_euv_grid_gutter_col_offset {
1888        display: "block";
1889        flex: "0 0 auto";
1890        box-sizing: "border-box";
1891        min-width: "0px";
1892        padding-left: {
1893            format!("calc({} / 2)", var!(gap-component))
1894        };
1895        padding-right: {
1896            format!("calc({} / 2)", var!(gap-component))
1897        };
1898    }
1899
1900    // ═══════════════════════════════════════════════════════════════════════════
1901    // Affix
1902    // ═══════════════════════════════════════════════════════════════════════════
1903
1904    pub(crate) c_euv_affix {
1905        position: "sticky";
1906        z-index: "10";
1907        width: "100%";
1908        box-sizing: "border-box";
1909    }
1910
1911    // ═══════════════════════════════════════════════════════════════════════════
1912    // Accordion
1913    // ═══════════════════════════════════════════════════════════════════════════
1914
1915    pub(crate) c_euv_accordion {
1916        display: "flex";
1917        flex-direction: "column";
1918        width: "100%";
1919    }
1920
1921    pub(crate) c_euv_accordion_header {
1922        display: "flex";
1923        width: "100%";
1924    }
1925
1926    pub(crate) c_euv_accordion_trigger_open {
1927        text-decoration: "underline";
1928    }
1929
1930    pub(crate) c_euv_accordion_icon {
1931        flex-shrink: "0";
1932        width: var!(space-lg);
1933        height: var!(space-lg);
1934        border-right: format!("{} solid {}", var!(border-width), var!(muted-foreground));
1935        border-bottom: format!("{} solid {}", var!(border-width), var!(muted-foreground));
1936        transform: "rotate(45deg)";
1937        transform-origin: "center";
1938        transition: format!("{} {}", var!(duration-normal), var!(ease-out));
1939    }
1940
1941    pub(crate) c_euv_accordion_icon_open {
1942        transform: "rotate(225deg)";
1943    }
1944
1945    pub(crate) c_euv_accordion_content_open {
1946        display: "block";
1947    }
1948
1949    pub(crate) c_euv_accordion_content_closed {
1950        display: "none";
1951    }
1952
1953    pub(crate) c_euv_accordion_content_inner {
1954        padding: format!("0px 0px {}", var!(space-lg));
1955    }
1956
1957
1958
1959    // ═══════════════════════════════════════════════════════════════════════════
1960    // Item
1961    // ═══════════════════════════════════════════════════════════════════════════
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990    pub(crate) c_euv_item_media_default {
1991        display: "flex";
1992        flex-shrink: "0";
1993        align-items: "center";
1994        justify-content: "center";
1995        gap: var!(space-sm);
1996        background: "transparent";
1997    }
1998
1999    pub(crate) c_euv_item_media_icon {
2000        display: "flex";
2001        flex-shrink: "0";
2002        align-items: "center";
2003        justify-content: "center";
2004        gap: var!(space-sm);
2005        width: "32px";
2006        height: "32px";
2007        border: format!("{} solid {}", var!(border-width), var!(border));
2008        border-radius: var!(radius-sm);
2009        background: var!(muted);
2010        color: var!(foreground);
2011        font-size: var!(font-base);
2012    }
2013
2014    pub(crate) c_euv_item_media_image {
2015        display: "flex";
2016        flex-shrink: "0";
2017        align-items: "center";
2018        justify-content: "center";
2019        width: "40px";
2020        height: "40px";
2021        overflow: "hidden";
2022        border-radius: var!(radius-sm);
2023        background: var!(muted);
2024    }
2025
2026    pub(crate) c_euv_item_content {
2027        display: "flex";
2028        flex: "1";
2029        flex-direction: "column";
2030        gap: var!(space-xs);
2031        min-width: "0px";
2032    }
2033
2034    pub(crate) c_euv_item_title {
2035        display: "flex";
2036        align-items: "center";
2037        gap: var!(space-sm);
2038        color: var!(foreground);
2039        font-size: var!(font-sm);
2040        font-weight: var!(font-weight-medium);
2041        line-height: "1.25";
2042    }
2043
2044    pub(crate) c_euv_item_description {
2045        margin: "0px";
2046        color: var!(muted-foreground);
2047        font-size: var!(font-sm);
2048        font-weight: var!(font-weight-normal);
2049        line-height: "1.5";
2050    }
2051
2052    pub(crate) c_euv_item_actions {
2053        display: "flex";
2054        align-items: "center";
2055        gap: var!(space-sm);
2056    }
2057
2058    pub(crate) c_euv_item_header {
2059        display: "flex";
2060        width: "100%";
2061        align-items: "center";
2062        justify-content: "space-between";
2063        gap: var!(space-sm);
2064    }
2065
2066    pub(crate) c_euv_item_footer {
2067        display: "flex";
2068        width: "100%";
2069        align-items: "center";
2070        justify-content: "space-between";
2071        gap: var!(space-sm);
2072    }
2073
2074    pub(crate) c_euv_item_separator {
2075        width: "100%";
2076        height: "1px";
2077        margin: "0px";
2078        background: var!(border);
2079    }
2080
2081    // ═══════════════════════════════════════════════════════════════════════════
2082    // Spinner
2083    // ═══════════════════════════════════════════════════════════════════════════
2084
2085    pub(crate) c_euv_spinner_root {
2086        display: "inline-flex";
2087        align-items: "center";
2088        gap: var!(space-sm);
2089    }
2090
2091    pub(crate) c_euv_spinner {
2092        display: "inline-block";
2093        width: var!(space-lg);
2094        height: var!(space-lg);
2095        border: format!("{} solid {}", var!(border-width), var!(muted));
2096        border-top-color: var!(foreground);
2097        border-radius: var!(radius-full);
2098        box-sizing: "border-box";
2099        vertical-align: "middle";
2100        line-height: "1";
2101        text-align: "center";
2102        animation: "euv-spin 0.8s linear infinite";
2103    }
2104
2105    pub(crate) c_euv_spinner_label {
2106        color: var!(muted-foreground);
2107        font-size: var!(font-sm);
2108        white-space: "nowrap";
2109    }
2110
2111    pub(crate) c_euv_spinner_label_hidden {
2112        display: "none";
2113    }
2114
2115    // ═══════════════════════════════════════════════════════════════════════════
2116    // Aspect Ratio
2117    // ═══════════════════════════════════════════════════════════════════════════
2118
2119
2120
2121
2122
2123
2124
2125
2126    pub c_euv_separator_horizontal {
2127        height: "1px";
2128        width: "100%";
2129    }
2130
2131    pub c_euv_separator_vertical {
2132        height: "100%";
2133        width: "1px";
2134    }
2135}
2136
2137#[cfg(not(feature = "theme-shadcn"))]
2138class! {
2139    pub c_card_title {
2140        margin: "0px";
2141        color: var!(card-foreground);
2142        font-size: var!(font-lg);
2143        font-weight: var!(font-weight-semibold);
2144        letter-spacing: var!(letter-spacing-tight);
2145        @media ((max-width: 767px)) {
2146            font-size: var!(font-md);
2147        }
2148    }
2149
2150    pub c_euv_button {
2151        display: "inline-flex";
2152        align-items: "center";
2153        justify-content: "center";
2154        gap: var!(space-sm);
2155        white-space: "nowrap";
2156        border-radius: var!(radius-lg);
2157        font-size: var!(font-sm);
2158        font-weight: var!(font-weight-medium);
2159        line-height: "1";
2160        box-sizing: "border-box";
2161        cursor: "pointer";
2162        // The control may be an anchor rather than a button, and an anchor
2163        // carries an underline the control does not want.
2164        text-decoration: "none";
2165        user-select: "none";
2166        -webkit-user-select: "none";
2167        transition: format!(
2168        "background-color {} {}, border-color {} {}, color {} {}, box-shadow {} {}, transform {} {}",
2169        var!(duration-fast),
2170        var!(ease-out),
2171        var!(duration-fast),
2172        var!(ease-out),
2173        var!(duration-fast),
2174        var!(ease-out),
2175        var!(duration-fast),
2176        var!(ease-out),
2177        var!(duration-press),
2178        var!(ease-accelerate)
2179        );
2180        :focus-visible {
2181            outline: "none";
2182            box-shadow: format!("0 0 0 {} {}, 0 0 0 calc({} + {}) {}", var!(ring-offset), var!(background), var!(ring-offset), var!(ring-width), var!(ring));
2183        }
2184        // The scale is what makes the press read as the button taking the
2185        // weight of the finger instead of a colour swap.
2186        :active {
2187            transform: format!("scale({})", var!(press-scale));
2188        }
2189        :disabled {
2190            pointer-events: "none";
2191            opacity: "0.5";
2192        }
2193    }
2194
2195    pub c_euv_button_default {
2196        background: var!(primary);
2197        color: var!(primary-foreground);
2198        border: format!("{} solid transparent", var!(border-width));
2199        :hover {
2200            background: var!(primary-hover);
2201        }
2202    }
2203
2204    pub c_euv_button_secondary {
2205        background: var!(secondary);
2206        color: var!(secondary-foreground);
2207        border: format!("{} solid transparent", var!(border-width));
2208        :hover {
2209            background: format!("color-mix(in srgb, {} 80%, transparent)", var!(secondary));
2210        }
2211    }
2212
2213    pub c_euv_button_destructive {
2214        background: var!(destructive);
2215        color: var!(destructive-foreground);
2216        border: format!("{} solid transparent", var!(border-width));
2217        :hover {
2218            background: format!("color-mix(in srgb, {} 90%, transparent)", var!(destructive));
2219        }
2220    }
2221
2222    pub c_euv_button_outline {
2223        background: var!(background);
2224        color: var!(foreground);
2225        border: format!("{} solid {}", var!(border-width), var!(input));
2226        :hover {
2227            background: var!(accent);
2228            color: var!(accent-foreground);
2229        }
2230    }
2231
2232    pub c_euv_button_ghost {
2233        background: "transparent";
2234        color: var!(foreground);
2235        :hover {
2236            background: var!(accent);
2237            color: var!(accent-foreground);
2238        }
2239    }
2240
2241    pub c_euv_button_size_default {
2242        height: var!(control-height-sm);
2243        padding: format!("0px {}", var!(control-pad-inline));
2244    }
2245
2246    pub c_euv_button_size_small {
2247        height: format!("calc({} - 4px)", var!(control-height-sm));
2248        padding: format!("0px {}", var!(control-pad-inline));
2249    }
2250
2251    pub c_euv_button_size_large {
2252        height: var!(control-height);
2253        padding: format!("0px {}", var!(control-pad-inline));
2254    }
2255
2256    pub c_euv_button_size_icon {
2257        height: var!(control-height-sm);
2258        width: var!(control-height-sm);
2259        padding: "0px";
2260    }
2261
2262    pub c_euv_button_size_xs {
2263        height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2264        padding: format!("0px {}", var!(control-pad-inline));
2265    }
2266
2267    pub c_euv_button_size_icon_xs {
2268        width: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2269        height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2270        padding: "0px";
2271    }
2272
2273    pub c_euv_button_size_icon_sm {
2274        width: var!(control-height-sm);
2275        height: var!(control-height-sm);
2276        padding: "0px";
2277    }
2278
2279    pub c_euv_button_size_icon_lg {
2280        width: format!("calc({} + {})", var!(control-height), var!(space-xs));
2281        height: format!("calc({} + {})", var!(control-height), var!(space-xs));
2282        padding: "0px";
2283    }
2284
2285    pub(crate) c_euv_alert_default {
2286        position: "relative";
2287        width: "100%";
2288        box-sizing: "border-box";
2289        padding: var!(space-lg);
2290        background: var!(background);
2291        color: var!(foreground);
2292        border: format!("{} solid {}", var!(border-width), var!(border));
2293        border-radius: var!(radius-lg);
2294    }
2295
2296    pub(crate) c_euv_alert_destructive {
2297        position: "relative";
2298        width: "100%";
2299        box-sizing: "border-box";
2300        padding: var!(space-lg);
2301        color: var!(destructive);
2302        background: var!(background);
2303        border: format!("{} solid {}", var!(border-width), var!(destructive));
2304        border-radius: var!(radius-lg);
2305    }
2306
2307    pub c_progress_container {
2308        width: "100%";
2309        margin: format!("{} 0px", var!(space-lg));
2310    }
2311
2312    pub(crate) c_progress_bar_track {
2313        position: "relative";
2314        display: "flex";
2315        align-items: "center";
2316        width: "100%";
2317        height: "12px";
2318        overflow: "hidden";
2319        background: var!(muted);
2320        border-radius: var!(radius-sm);
2321    }
2322
2323    pub c_euv_pagination {}
2324
2325    pub c_euv_pagination_link {
2326        // `min-width: 0` lets long labels ellipsize on the desktop row
2327        // layout. `overflow: hidden` is required to actually apply ellipsis
2328        // when content is wider than the link.
2329        min-width: "0px";
2330        border: format!("{} solid {}", var!(border-width), var!(border));
2331        padding: var!(space-lg);
2332        cursor: "pointer";
2333        display: "flex";
2334        flex-direction: "column";
2335        gap: var!(space-2xs);
2336        overflow: "hidden";
2337        :hover {
2338            border-color: var!(ring);
2339        }
2340        border-radius: var!(radius-md);
2341        :is(".c_euv_pagination_auto_content .c_euv_pagination_link") {
2342            display: "grid";
2343            grid-template-columns: "auto minmax(0px, 1fr) auto";
2344            grid-template-rows: "auto auto";
2345            align-content: "center";
2346            align-items: "center";
2347            justify-items: "stretch";
2348            flex: "1";
2349            width: "100%";
2350            height: "auto";
2351            min-height: format!("calc({} + {})", var!(control-height), var!(space-lg));
2352            box-sizing: "border-box";
2353            padding: var!(space-lg);
2354            column-gap: var!(space-sm);
2355            row-gap: var!(space-2xs);
2356            white-space: "normal";
2357            text-decoration: "none";
2358        }
2359    }
2360
2361    pub(crate) c_euv_tabs {
2362        display: "flex";
2363        flex-direction: "column";
2364        width: "100%";
2365    }
2366
2367    pub(crate) c_euv_tabs_bar {
2368        display: "flex";
2369        background: var!(muted);
2370        border-radius: var!(radius-lg);
2371        padding: var!(space-xs);
2372        margin-bottom: var!(gap-component);
2373        gap: var!(space-xs);
2374        @media ((max-width: 767px)) {
2375            flex-wrap: "wrap";
2376        }
2377    }
2378
2379    pub(crate) c_euv_tab_item {
2380        padding: format!("{} {}", var!(space-md), var!(space-xl));
2381        cursor: "pointer";
2382        font-size: var!(font-base);
2383        font-weight: var!(font-weight-medium);
2384        border-bottom: "2px solid transparent";
2385        color: "inherit";
2386        background: "transparent";
2387        touch-action: "manipulation";
2388        user-select: "none";
2389        -webkit-user-select: "none";
2390        white-space: "nowrap";
2391        :hover {
2392            background: var!(muted);
2393            color: var!(primary);
2394        }
2395        border-radius: var!(radius-md);
2396    }
2397
2398    pub(crate) c_euv_tab_item_active {
2399        padding: format!("{} {}", var!(space-md), var!(space-xl));
2400        cursor: "pointer";
2401        font-size: var!(font-base);
2402        font-weight: var!(font-weight-medium);
2403        border-bottom: format!("2px solid {}", var!(primary));
2404        color: var!(primary-foreground);
2405        background: var!(primary);
2406        touch-action: "manipulation";
2407        user-select: "none";
2408        -webkit-user-select: "none";
2409        white-space: "nowrap";
2410        border-radius: var!(radius-md);
2411    }
2412
2413    pub(crate) c_euv_tabs_panel {
2414        padding: format!("{} 0px", var!(gap-element));
2415    }
2416
2417    pub(crate) c_card {
2418        color: var!(card-foreground);
2419        background: var!(card);
2420        border: format!("{} solid {}", var!(surface-border-width), var!(border));
2421        box-shadow: var!(shadow-sm);
2422        padding: var!(card-padding);
2423        display: "flex";
2424        flex-direction: "column";
2425        gap: var!(card-content-gap);
2426        // Shell-owned spacing outranks child classes, including through transparent slots.
2427        > :is("[class], *") {
2428            margin-block: "0px";
2429        }
2430        > slot > :is("[class], *") {
2431            margin-block: "0px";
2432        }
2433        > slot > slot > :is("[class], *") {
2434            margin-block: "0px";
2435        }
2436        > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
2437            margin-block: "0px";
2438        }
2439        > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
2440            margin-block: "0px";
2441        }
2442        > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
2443            margin-block: "0px";
2444        }
2445        > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
2446            margin-block: "0px";
2447        }
2448        box-sizing: "border-box";
2449        // Only page-level cards own a block gap; composed cards use their parent's gap.
2450        margin-top: "0px";
2451        :is(".c_page_container > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card") {
2452            margin-top: var!(page-block-gap);
2453        }
2454        @media ((max-width: 767px)) {
2455            :is(".c_page_container > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card") {
2456                margin-top: var!(page-block-gap-mobile);
2457            }
2458        }
2459        border-radius: var!(radius-xl);
2460    }
2461
2462    pub(crate) c_euv_card_header {
2463        display: "grid";
2464        grid-template-columns: "1fr auto";
2465        grid-template-rows: "auto";
2466        grid-auto-rows: "min-content";
2467        align-items: "start";
2468        gap: var!(space-xs);
2469    }
2470
2471    pub(crate) c_euv_badge {
2472        // The wrapping-atom recipe (§7): an inline flex box is atomic, so a
2473        // wrapped label left-aligns while the border stays at the parent
2474        // width — the right border reads as missing. The four `c_euv_tag_*`
2475        // variants already use this recipe; a badge is the same kind of
2476        // element and must not mix the two.
2477        display: "inline-block";
2478        vertical-align: "middle";
2479        text-align: "center";
2480        line-height: "1";
2481        height: "20px";
2482        box-sizing: "border-box";
2483        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
2484        font-size: var!(font-xs);
2485        font-weight: var!(font-weight-semibold);
2486        transition: format!(
2487        "background-color {} {}, border-color {} {}, color {} {}",
2488        var!(duration-fast),
2489        var!(ease-out),
2490        var!(duration-fast),
2491        var!(ease-out),
2492        var!(duration-fast),
2493        var!(ease-out)
2494        );
2495        :focus-visible {
2496            outline: "none";
2497        }
2498        @media ((max-width: 767px)) {
2499            padding: format!("{} {}", var!(space-2xs), var!(space-xs));
2500            font-size: var!(font-xs);
2501        }
2502        border-radius: var!(radius-full);
2503    }
2504
2505    pub(crate) c_euv_badge_destructive {
2506        color: var!(destructive);
2507        background: format!("color-mix(in srgb, {} 10%, transparent)", var!(destructive));
2508        border: format!("{} solid transparent", var!(border-width));
2509    }
2510
2511    pub(crate) c_euv_pagination_next {
2512        text-align: "right";
2513        :is(".c_euv_pagination_auto_content .c_euv_pagination_next") {
2514            padding: var!(space-lg);
2515            text-align: "right";
2516        }
2517    }
2518
2519    pub(crate) c_euv_empty {
2520        display: "flex";
2521        flex-direction: "column";
2522        align-items: "center";
2523        justify-content: "center";
2524        gap: var!(space-sm);
2525        width: "100%";
2526        padding: var!(space-3xl);
2527        box-sizing: "border-box";
2528        text-align: "center";
2529    }
2530
2531    pub(crate) c_euv_kbd {
2532        display: "inline-flex";
2533        align-items: "center";
2534        justify-content: "center";
2535        gap: var!(space-2xs);
2536        min-width: "20px";
2537        height: "20px";
2538        padding-inline: var!(space-2xs);
2539        border-radius: var!(radius-sm);
2540        border: format!("{} solid {}", var!(border-width), var!(border));
2541        background: var!(muted);
2542        color: var!(muted-foreground);
2543        font-family: var!(font-family-mono);
2544        font-size: var!(font-xs);
2545        font-weight: var!(font-weight-medium);
2546        line-height: "1";
2547        white-space: "nowrap";
2548        user-select: "none";
2549        -webkit-user-select: "none";
2550    }
2551
2552    pub(crate) c_euv_accordion_item {
2553        display: "flex";
2554        flex-direction: "column";
2555        width: "100%";
2556        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
2557        :last-child {
2558            border-bottom: "none";
2559        }
2560    }
2561
2562    pub(crate) c_euv_accordion_trigger {
2563        display: "flex";
2564        flex: "1";
2565        align-items: "center";
2566        justify-content: "space-between";
2567        gap: var!(space-sm);
2568        padding: format!("{} 0px", var!(space-lg));
2569        border: "none";
2570        background: "transparent";
2571        color: var!(foreground);
2572        font-size: var!(font-sm);
2573        font-weight: var!(font-weight-medium);
2574        line-height: "1.5";
2575        text-align: "left";
2576        cursor: "pointer";
2577        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
2578        :hover {
2579            color: var!(muted-foreground);
2580            text-decoration: "underline";
2581        }
2582        :disabled {
2583            opacity: "0.5";
2584            cursor: "not-allowed";
2585        }
2586    }
2587
2588    pub(crate) c_euv_accordion_content {
2589        overflow: "hidden";
2590        color: var!(foreground);
2591        font-size: var!(font-sm);
2592        line-height: "1.5";
2593    }
2594
2595    pub(crate) c_euv_item_group {
2596        display: "flex";
2597        flex-direction: "column";
2598    }
2599
2600    pub(crate) c_euv_item_default {
2601        display: "flex";
2602        flex-wrap: "wrap";
2603        align-items: "center";
2604        border: format!("{} solid transparent", var!(border-width));
2605        border-radius: var!(radius-md);
2606        background: "transparent";
2607        color: var!(foreground);
2608        font-size: var!(font-sm);
2609        outline: "none";
2610        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
2611        :focus-within {
2612            border-color: var!(ring);
2613        }
2614    }
2615
2616    pub(crate) c_euv_item_outline {
2617        display: "flex";
2618        flex-wrap: "wrap";
2619        align-items: "center";
2620        border: format!("{} solid {}", var!(border-width), var!(border));
2621        border-radius: var!(radius-md);
2622        background: "transparent";
2623        color: var!(foreground);
2624        font-size: var!(font-sm);
2625        outline: "none";
2626        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
2627        :focus-within {
2628            border-color: var!(ring);
2629        }
2630    }
2631
2632    pub(crate) c_euv_item_muted {
2633        display: "flex";
2634        flex-wrap: "wrap";
2635        align-items: "center";
2636        border: format!("{} solid transparent", var!(border-width));
2637        border-radius: var!(radius-md);
2638        background: var!(muted);
2639        color: var!(foreground);
2640        font-size: var!(font-sm);
2641        outline: "none";
2642        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
2643        :focus-within {
2644            border-color: var!(ring);
2645        }
2646    }
2647
2648    pub(crate) c_euv_item_size_default {
2649        gap: var!(space-lg);
2650        padding: var!(space-lg);
2651    }
2652
2653    pub(crate) c_euv_item_size_sm {
2654        gap: var!(space-sm-md);
2655        padding: format!("{} {}", var!(space-md), var!(space-lg));
2656    }
2657
2658    pub(crate) c_euv_item_size_xs {
2659        gap: var!(space-sm);
2660        padding: format!("{} {}", var!(space-sm), var!(space-sm-md));
2661    }
2662
2663    pub(crate) c_euv_aspect_ratio {
2664        position: "relative";
2665        width: "100%";
2666        overflow: "hidden";
2667    }
2668
2669    pub c_euv_separator {
2670        flex-shrink: "0";
2671        background: var!(border);
2672    }
2673
2674    pub(crate) c_euv_pagination_previous {
2675        :is(".c_euv_pagination_auto_content .c_euv_pagination_previous") {
2676            padding: var!(space-lg);
2677            text-align: "left";
2678        }
2679    }
2680
2681    pub c_euv_button_primary {
2682        background: var!(primary);
2683        color: var!(primary-foreground);
2684        border: format!("{} solid transparent", var!(border-width));
2685        :hover {
2686            background: var!(primary-hover);
2687        }
2688    }
2689
2690    pub(crate) c_euv_pagination_label {
2691        font-size: var!(font-xs);
2692        color: var!(muted-foreground);
2693        text-transform: var!(text-transform-uppercase);
2694        letter-spacing: var!(letter-spacing-wide);
2695        :is(".c_euv_pagination_auto_content .c_euv_pagination_label") {
2696            display: "block";
2697            grid-column: "2";
2698            grid-row: "1";
2699            min-width: "0px";
2700            overflow: "hidden";
2701            white-space: "nowrap";
2702            text-overflow: "ellipsis";
2703            font-size: var!(font-xs);
2704            line-height: "1.5";
2705            color: var!(muted-foreground);
2706        }
2707    }
2708
2709    pub(crate) c_euv_pagination_text {
2710        font-size: var!(font-base);
2711        font-weight: var!(font-weight-semibold);
2712        color: var!(primary);
2713        // Ellipsize when the link is too narrow for the page title. The
2714        // outer `.c_euv_pagination_link` already sets `overflow: hidden`
2715        // and `min-width: 0`, so a single `text-overflow: ellipsis` here
2716        // is enough — without `white-space: nowrap` the text wraps to
2717        // multiple lines and the ellipsis never kicks in.
2718        white-space: "nowrap";
2719        overflow: "hidden";
2720        text-overflow: "ellipsis";
2721        min-width: "0px";
2722        :is(".c_euv_pagination_auto_content .c_euv_pagination_text") {
2723            display: "block";
2724            grid-column: "2";
2725            grid-row: "2";
2726            min-width: "0px";
2727            overflow: "hidden";
2728            white-space: "nowrap";
2729            text-overflow: "ellipsis";
2730            font-size: var!(font-sm);
2731            line-height: "1.5";
2732            color: var!(foreground);
2733        }
2734    }
2735
2736    pub(crate) c_euv_pagination_icon {
2737        display: "none";
2738        :is(".c_euv_pagination_auto_content .c_euv_pagination_icon") {
2739            display: "flex";
2740            grid-row: "1 / 3";
2741            align-items: "center";
2742            justify-content: "center";
2743            width: var!(space-lg);
2744            color: var!(foreground);
2745        }
2746        :is(".c_euv_pagination_auto_content .c_euv_pagination_previous .c_euv_pagination_icon") {
2747            grid-column: "1";
2748        }
2749        :is(".c_euv_pagination_auto_content .c_euv_pagination_next .c_euv_pagination_icon") {
2750            grid-column: "3";
2751        }
2752    }
2753}
2754
2755#[cfg(feature = "theme-shadcn")]
2756class! {
2757    pub c_card_title {
2758        margin: "0px";
2759        color: var!(card-foreground);
2760        font-size: var!(font-lg);
2761        font-weight: var!(font-weight-semibold);
2762        letter-spacing: var!(letter-spacing-tight);
2763        @media ((max-width: 767px)) {
2764            font-size: var!(font-md);
2765        }
2766
2767        margin: "0px";
2768        font-size: var!(font-base);
2769        font-weight: var!(font-weight-medium);
2770        letter-spacing: var!(letter-spacing-normal);
2771    }
2772
2773    pub c_euv_button {
2774        display: "inline-flex";
2775        align-items: "center";
2776        justify-content: "center";
2777        gap: var!(space-sm);
2778        white-space: "nowrap";
2779        border-radius: var!(radius-lg);
2780        font-size: var!(font-sm);
2781        font-weight: var!(font-weight-medium);
2782        line-height: "1";
2783        box-sizing: "border-box";
2784        cursor: "pointer";
2785        // The control may be an anchor rather than a button, and an anchor
2786        // carries an underline the control does not want.
2787        text-decoration: "none";
2788        user-select: "none";
2789        -webkit-user-select: "none";
2790        transition: format!(
2791        "background-color {} {}, border-color {} {}, color {} {}, box-shadow {} {}, transform {} {}",
2792        var!(duration-fast),
2793        var!(ease-out),
2794        var!(duration-fast),
2795        var!(ease-out),
2796        var!(duration-fast),
2797        var!(ease-out),
2798        var!(duration-fast),
2799        var!(ease-out),
2800        var!(duration-press),
2801        var!(ease-accelerate)
2802        );
2803        :focus-visible {
2804            outline: "none";
2805            box-shadow: format!("0 0 0 {} {}, 0 0 0 calc({} + {}) {}", var!(ring-offset), var!(background), var!(ring-offset), var!(ring-width), var!(ring));
2806        }
2807        // The scale is what makes the press read as the button taking the
2808        // weight of the finger instead of a colour swap.
2809        :active {
2810            transform: format!("scale({})", var!(press-scale));
2811        }
2812        :disabled {
2813            pointer-events: "none";
2814            opacity: "0.5";
2815        }
2816
2817        border-radius: var!(radius-lg);
2818        font-size: var!(font-sm);
2819        font-weight: var!(font-weight-medium);
2820        line-height: "1.428571";
2821        gap: var!(space-sm);
2822        cursor: "default";
2823        // The reference button uses a 3px focus ring and a 1px press translation.
2824        :focus-visible {
2825            border-color: var!(ring);
2826            box-shadow: format!("0 0 0 3px color-mix(in srgb, {} 50%, transparent)", var!(ring));
2827        }
2828        :active {
2829            transform: "translateY(1px)";
2830        }
2831    }
2832
2833    pub c_euv_button_default {
2834        background: var!(primary);
2835        color: var!(primary-foreground);
2836        border: format!("{} solid transparent", var!(border-width));
2837        :hover {
2838            background: var!(primary-hover);
2839        }
2840
2841        :hover {
2842            background: var!(button-primary-hover-bg);
2843        }
2844    }
2845
2846    pub c_euv_button_secondary {
2847        background: var!(secondary);
2848        color: var!(secondary-foreground);
2849        border: format!("{} solid transparent", var!(border-width));
2850        :hover {
2851            background: format!("color-mix(in srgb, {} 80%, transparent)", var!(secondary));
2852        }
2853
2854        :hover {
2855            background: var!(button-secondary-hover-bg);
2856        }
2857    }
2858
2859    pub c_euv_button_destructive {
2860        background: var!(destructive);
2861        color: var!(destructive-foreground);
2862        border: format!("{} solid transparent", var!(border-width));
2863        :hover {
2864            background: format!("color-mix(in srgb, {} 90%, transparent)", var!(destructive));
2865        }
2866
2867        background: var!(button-destructive-bg);
2868        color: var!(destructive);
2869        :hover {
2870            background: var!(button-destructive-hover-bg);
2871        }
2872        // The reference uses a destructive-tinted focus border and ring.
2873        :focus-visible {
2874            border-color: var!(button-destructive-focus-border);
2875            box-shadow: format!("0 0 0 3px {}", var!(button-destructive-focus-ring));
2876        }
2877    }
2878
2879    pub c_euv_button_outline {
2880        background: var!(background);
2881        color: var!(foreground);
2882        border: format!("{} solid {}", var!(border-width), var!(input));
2883        :hover {
2884            background: var!(accent);
2885            color: var!(accent-foreground);
2886        }
2887
2888        background: var!(button-outline-bg);
2889        box-shadow: var!(shadow-xs);
2890        :hover {
2891            background: var!(button-outline-hover-bg);
2892            color: var!(button-outline-hover-fg);
2893        }
2894    }
2895
2896    pub c_euv_button_ghost {
2897        background: "transparent";
2898        color: var!(foreground);
2899        :hover {
2900            background: var!(accent);
2901            color: var!(accent-foreground);
2902        }
2903
2904        :hover {
2905            background: var!(button-ghost-hover-bg);
2906            color: var!(button-ghost-hover-fg);
2907        }
2908    }
2909
2910    pub c_euv_button_size_default {
2911        height: var!(control-height-sm);
2912        padding: format!("0px {}", var!(control-pad-inline));
2913
2914        height: var!(control-height-sm);
2915        min-height: var!(control-height-sm);
2916        padding: format!("0px {}", var!(space-sm-md));
2917        gap: format!("calc({} - {})", var!(space-sm), var!(space-2xs));
2918        border-radius: var!(radius-lg);
2919    }
2920
2921    pub c_euv_button_size_small {
2922        height: format!("calc({} - 4px)", var!(control-height-sm));
2923        padding: format!("0px {}", var!(control-pad-inline));
2924
2925        height: format!("calc({} - {})", var!(control-height-sm), var!(space-xs));
2926        min-height: format!("calc({} - {})", var!(control-height-sm), var!(space-xs));
2927        padding: format!("0px {}", var!(space-sm-md));
2928        gap: var!(space-xs);
2929        font-size: var!(font-xs);
2930        border-radius: var!(radius-md);
2931    }
2932
2933    pub c_euv_button_size_large {
2934        height: var!(control-height);
2935        padding: format!("0px {}", var!(control-pad-inline));
2936
2937        height: var!(control-height);
2938        min-height: var!(control-height);
2939        padding: format!("0px {}", var!(space-sm-md));
2940        gap: format!("calc({} - {})", var!(space-sm), var!(space-2xs));
2941        border-radius: var!(radius-lg);
2942    }
2943
2944    pub c_euv_button_size_icon {
2945        height: var!(control-height-sm);
2946        width: var!(control-height-sm);
2947        padding: "0px";
2948
2949        width: var!(control-height-sm);
2950        height: var!(control-height-sm);
2951        min-height: var!(control-height-sm);
2952        padding: "0px";
2953        border-radius: var!(radius-md);
2954    }
2955
2956    pub c_euv_button_size_xs {
2957        height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2958        padding: format!("0px {}", var!(control-pad-inline));
2959
2960        height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2961        min-height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2962        padding: format!("0px {}", var!(space-sm));
2963        gap: var!(space-xs);
2964        font-size: var!(font-xs);
2965        border-radius: var!(radius-md);
2966    }
2967
2968    pub c_euv_button_size_icon_xs {
2969        width: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2970        height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2971        padding: "0px";
2972
2973        width: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2974        height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2975        min-height: format!("calc({} - {})", var!(control-height-sm), var!(space-sm));
2976        padding: "0px";
2977        border-radius: var!(radius-md);
2978    }
2979
2980    pub c_euv_button_size_icon_sm {
2981        width: var!(control-height-sm);
2982        height: var!(control-height-sm);
2983        padding: "0px";
2984
2985        width: format!("calc({} - {})", var!(control-height-sm), var!(space-xs));
2986        height: format!("calc({} - {})", var!(control-height-sm), var!(space-xs));
2987        min-height: format!("calc({} - {})", var!(control-height-sm), var!(space-xs));
2988        padding: "0px";
2989        border-radius: var!(radius-md);
2990    }
2991
2992    pub c_euv_button_size_icon_lg {
2993        width: format!("calc({} + {})", var!(control-height), var!(space-xs));
2994        height: format!("calc({} + {})", var!(control-height), var!(space-xs));
2995        padding: "0px";
2996
2997        width: var!(control-height);
2998        height: var!(control-height);
2999        min-height: var!(control-height);
3000        padding: "0px";
3001        border-radius: var!(radius-lg);
3002    }
3003
3004    pub(crate) c_euv_alert_default {
3005        position: "relative";
3006        width: "100%";
3007        box-sizing: "border-box";
3008        padding: var!(space-lg);
3009        background: var!(background);
3010        color: var!(foreground);
3011        border: format!("{} solid {}", var!(border-width), var!(border));
3012        border-radius: var!(radius-lg);
3013
3014        padding: format!("{} {}", var!(space-sm), var!(control-pad-inline));
3015        background: var!(card);
3016    }
3017
3018    pub(crate) c_euv_alert_destructive {
3019        position: "relative";
3020        width: "100%";
3021        box-sizing: "border-box";
3022        padding: var!(space-lg);
3023        color: var!(destructive);
3024        background: var!(background);
3025        border: format!("{} solid {}", var!(border-width), var!(destructive));
3026        border-radius: var!(radius-lg);
3027
3028        padding: format!("{} {}", var!(space-sm), var!(control-pad-inline));
3029        color: var!(destructive);
3030        background: var!(card);
3031        border-color: var!(border);
3032    }
3033
3034    pub c_progress_container {
3035        width: "100%";
3036        margin: format!("{} 0px", var!(space-lg));
3037
3038        flex-wrap: "wrap";
3039        gap: var!(space-md);
3040    }
3041
3042    pub(crate) c_progress_bar_track {
3043        position: "relative";
3044        display: "flex";
3045        align-items: "center";
3046        width: "100%";
3047        height: "12px";
3048        overflow: "hidden";
3049        background: var!(muted);
3050        border-radius: var!(radius-sm);
3051
3052        height: var!(space-xs);
3053    }
3054
3055    pub c_euv_pagination {
3056        display: "flex";
3057        justify-content: "center";
3058        width: "100%";
3059        min-width: "0px";
3060        margin: "0px";
3061    }
3062
3063    pub c_euv_pagination_link {
3064        // `min-width: 0` lets long labels ellipsize on the desktop row
3065        // layout. `overflow: hidden` is required to actually apply ellipsis
3066        // when content is wider than the link.
3067        min-width: "0px";
3068        border: format!("{} solid {}", var!(border-width), var!(border));
3069        padding: var!(space-lg);
3070        cursor: "pointer";
3071        display: "flex";
3072        flex-direction: "column";
3073        gap: var!(space-2xs);
3074        overflow: "hidden";
3075        :hover {
3076            border-color: var!(ring);
3077        }
3078        border-radius: var!(radius-md);
3079
3080        display: "inline-flex";
3081        flex-direction: "row";
3082        align-items: "center";
3083        justify-content: "center";
3084        gap: format!("calc({} - {})", var!(space-sm), var!(space-2xs));
3085        height: var!(control-height-sm);
3086        min-height: var!(control-height-sm);
3087        padding: "0px";
3088        border-color: var!(card);
3089        border-radius: var!(radius-lg);
3090        text-align: "center";
3091        white-space: "nowrap";
3092        :is(".c_euv_pagination_auto_content .c_euv_pagination_link") {
3093            display: "grid";
3094            grid-template-columns: "auto minmax(0px, 1fr) auto";
3095            grid-template-rows: "auto auto";
3096            align-content: "center";
3097            align-items: "center";
3098            justify-content: "normal";
3099            justify-items: "stretch";
3100            flex: "1";
3101            width: "100%";
3102            height: "auto";
3103            min-height: format!("calc({} + {})", var!(control-height), var!(space-lg));
3104            box-sizing: "border-box";
3105            padding: var!(space-lg);
3106            column-gap: var!(space-sm);
3107            row-gap: var!(space-2xs);
3108            white-space: "normal";
3109            text-decoration: "none";
3110        }
3111    }
3112
3113    pub(crate) c_euv_tabs {
3114        display: "flex";
3115        flex-direction: "column";
3116        width: "100%";
3117
3118        gap: var!(space-sm);
3119    }
3120
3121    pub(crate) c_euv_tabs_bar {
3122        display: "flex";
3123        background: var!(muted);
3124        border-radius: var!(radius-lg);
3125        padding: var!(space-xs);
3126        margin-bottom: var!(gap-component);
3127        gap: var!(space-xs);
3128        @media ((max-width: 767px)) {
3129            flex-wrap: "wrap";
3130        }
3131
3132        width: "fit-content";
3133        height: var!(control-height-sm);
3134        align-items: "center";
3135        box-sizing: "border-box";
3136        margin-bottom: "0px";
3137        padding: var!(tablist-inset);
3138        gap: "0px";
3139        color: var!(muted-foreground);
3140        justify-content: "center";
3141    }
3142
3143    pub(crate) c_euv_tab_item {
3144        padding: format!("{} {}", var!(space-md), var!(space-xl));
3145        cursor: "pointer";
3146        font-size: var!(font-base);
3147        font-weight: var!(font-weight-medium);
3148        border-bottom: "2px solid transparent";
3149        color: "inherit";
3150        background: "transparent";
3151        touch-action: "manipulation";
3152        user-select: "none";
3153        -webkit-user-select: "none";
3154        white-space: "nowrap";
3155        :hover {
3156            background: var!(muted);
3157            color: var!(primary);
3158        }
3159        border-radius: var!(radius-md);
3160
3161        display: "inline-flex";
3162        flex: "1";
3163        height: "calc(100% - 1px)";
3164        align-items: "center";
3165        justify-content: "center";
3166        gap: format!("calc({} - {})", var!(space-sm), var!(space-2xs));
3167        padding: format!("{} calc({} + {})", var!(space-2xs), var!(space-xs), var!(space-2xs));
3168        border: format!("{} solid transparent", var!(border-width));
3169        border-bottom: "none";
3170        border-radius: var!(radius-md);
3171        background: "transparent";
3172        color: format!("color-mix(in srgb, {} 60%, transparent)", var!(foreground));
3173        font-size: var!(font-sm);
3174        font-weight: var!(font-weight-medium);
3175        white-space: "nowrap";
3176        line-height: var!(space-xl);
3177        box-sizing: "border-box";
3178        user-select: "none";
3179        -webkit-user-select: "none";
3180        border-color: "transparent";
3181        border-bottom-style: "solid";
3182        border-left-style: "solid";
3183        border-right-style: "solid";
3184        border-top-style: "solid";
3185        border-bottom-width: var!(border-width);
3186        border-left-width: var!(border-width);
3187        border-right-width: var!(border-width);
3188        border-top-width: var!(border-width);
3189        :hover {
3190            background: "transparent";
3191            color: var!(foreground);
3192        }
3193        :is(.c_theme_dark button) {
3194            color: var!(muted-foreground);
3195        }
3196        : is(.c_theme_dark button):hover {
3197            color: var!(foreground);
3198        }
3199    }
3200
3201    pub(crate) c_euv_tab_item_active {
3202        padding: format!("{} {}", var!(space-md), var!(space-xl));
3203        cursor: "pointer";
3204        font-size: var!(font-base);
3205        font-weight: var!(font-weight-medium);
3206        border-bottom: "2px solid transparent";
3207        color: "inherit";
3208        background: "transparent";
3209        touch-action: "manipulation";
3210        user-select: "none";
3211        -webkit-user-select: "none";
3212        white-space: "nowrap";
3213        :hover {
3214            background: var!(muted);
3215            color: var!(primary);
3216        }
3217        border-radius: var!(radius-md);
3218
3219        display: "inline-flex";
3220        flex: "1";
3221        height: "calc(100% - 1px)";
3222        align-items: "center";
3223        justify-content: "center";
3224        gap: format!("calc({} - {})", var!(space-sm), var!(space-2xs));
3225        padding: format!("{} calc({} + {})", var!(space-2xs), var!(space-xs), var!(space-2xs));
3226        border: format!("{} solid transparent", var!(border-width));
3227        border-bottom: "none";
3228        border-radius: var!(radius-md);
3229        background: "transparent";
3230        color: format!("color-mix(in srgb, {} 60%, transparent)", var!(foreground));
3231        font-size: var!(font-sm);
3232        font-weight: var!(font-weight-medium);
3233        white-space: "nowrap";
3234        line-height: var!(space-xl);
3235        box-sizing: "border-box";
3236        user-select: "none";
3237        -webkit-user-select: "none";
3238        border-color: "transparent";
3239        border-bottom-style: "solid";
3240        border-left-style: "solid";
3241        border-right-style: "solid";
3242        border-top-style: "solid";
3243        border-bottom-width: var!(border-width);
3244        border-left-width: var!(border-width);
3245        border-right-width: var!(border-width);
3246        border-top-width: var!(border-width);
3247        :hover {
3248            background: "transparent";
3249            color: var!(foreground);
3250        }
3251        :is(.c_theme_dark button) {
3252            color: var!(muted-foreground);
3253        }
3254        : is(.c_theme_dark button):hover {
3255            color: var!(foreground);
3256        }
3257
3258        :hover {
3259            background: var!(background);
3260            color: var!(foreground);
3261        }
3262        background: var!(background);
3263        color: var!(foreground);
3264        box-shadow: var!(shadow-sm);
3265        :is(.c_theme_dark button) {
3266            background: format!("color-mix(in srgb, {} 30%, transparent)", var!(input));
3267            border-color: var!(input);
3268            color: var!(foreground);
3269        }
3270
3271        // Both base and state classes stay mounted; state paint also wins on hover.
3272        :is(.c_euv_tab_item_active) {
3273            background: var!(background);
3274            color: var!(foreground);
3275        }
3276        : is(.c_euv_tab_item_active):hover {
3277            background: var!(background);
3278            color: var!(foreground);
3279        }
3280        :is(".c_theme_dark .c_euv_tab_item_active") {
3281            background: format!("color-mix(in srgb, {} 30%, transparent)", var!(input));
3282            border-color: var!(input);
3283            color: var!(foreground);
3284        }
3285        : is(".c_theme_dark .c_euv_tab_item_active"):hover {
3286            background: format!("color-mix(in srgb, {} 30%, transparent)", var!(input));
3287            color: var!(foreground);
3288        }
3289    }
3290
3291    pub(crate) c_euv_tabs_panel {
3292        padding: format!("{} 0px", var!(gap-element));
3293
3294        padding: "0px";
3295    }
3296
3297    pub(crate) c_card {
3298        color: var!(card-foreground);
3299        background: var!(card);
3300        border: format!("{} solid {}", var!(surface-border-width), var!(border));
3301        box-shadow: var!(shadow-sm);
3302        padding: var!(card-padding);
3303        display: "flex";
3304        flex-direction: "column";
3305        gap: var!(card-content-gap);
3306        // Shell-owned spacing outranks child classes, including through transparent slots.
3307        > :is("[class], *") {
3308            margin-block: "0px";
3309        }
3310        > slot > :is("[class], *") {
3311            margin-block: "0px";
3312        }
3313        > slot > slot > :is("[class], *") {
3314            margin-block: "0px";
3315        }
3316        > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
3317            margin-block: "0px";
3318        }
3319        > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
3320            margin-block: "0px";
3321        }
3322        > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
3323            margin-block: "0px";
3324        }
3325        > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > : is("slot, [data-euv-dynamic-id]") > :is("[class], *") {
3326            margin-block: "0px";
3327        }
3328        box-sizing: "border-box";
3329        // Only page-level cards own a block gap; composed cards use their parent's gap.
3330        margin-top: "0px";
3331        :is(".c_page_container > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card") {
3332            margin-top: var!(page-block-gap);
3333        }
3334        @media ((max-width: 767px)) {
3335            :is(".c_page_container > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card, .c_page_container > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > :is(slot, [data-euv-dynamic-id]) > .c_card") {
3336                margin-top: var!(page-block-gap-mobile);
3337            }
3338        }
3339        border-radius: var!(radius-xl);
3340
3341        display: "flex";
3342        flex-direction: "column";
3343        gap: var!(card-content-gap);
3344        border: "none";
3345        box-shadow: format!(
3346        "0 0 0 1px color-mix(in srgb, {} 10%, transparent)",
3347        var!(foreground)
3348        );
3349        padding: var!(card-padding);
3350        overflow: "hidden";
3351    }
3352
3353    pub(crate) c_euv_card_header {
3354        display: "grid";
3355        grid-template-columns: "1fr auto";
3356        grid-template-rows: "auto";
3357        grid-auto-rows: "min-content";
3358        align-items: "start";
3359        gap: var!(space-xs);
3360
3361        align-items: "flex-start";
3362    }
3363
3364    pub(crate) c_euv_badge {
3365        // The wrapping-atom recipe (§7): an inline flex box is atomic, so a
3366        // wrapped label left-aligns while the border stays at the parent
3367        // width — the right border reads as missing. The four `c_euv_tag_*`
3368        // variants already use this recipe; a badge is the same kind of
3369        // element and must not mix the two.
3370        display: "inline-block";
3371        vertical-align: "middle";
3372        text-align: "center";
3373        line-height: "1";
3374        height: "20px";
3375        box-sizing: "border-box";
3376        padding: format!("{} {}", var!(space-2xs), var!(space-sm));
3377        font-size: var!(font-xs);
3378        font-weight: var!(font-weight-semibold);
3379        transition: format!(
3380        "background-color {} {}, border-color {} {}, color {} {}",
3381        var!(duration-fast),
3382        var!(ease-out),
3383        var!(duration-fast),
3384        var!(ease-out),
3385        var!(duration-fast),
3386        var!(ease-out)
3387        );
3388        :focus-visible {
3389            outline: "none";
3390        }
3391        @media ((max-width: 767px)) {
3392            padding: format!("{} {}", var!(space-2xs), var!(space-xs));
3393            font-size: var!(font-xs);
3394        }
3395        border-radius: var!(radius-full);
3396
3397        font-weight: var!(font-weight-medium);
3398    }
3399
3400    pub(crate) c_euv_badge_destructive {
3401        color: var!(destructive);
3402        background: format!("color-mix(in srgb, {} 10%, transparent)", var!(destructive));
3403        border: format!("{} solid transparent", var!(border-width));
3404
3405        color: var!(destructive);
3406        background: var!(button-destructive-bg);
3407        border: format!("{} solid transparent", var!(border-width));
3408        :hover {
3409            background: var!(button-destructive-hover-bg);
3410        }
3411        :focus-visible {
3412            border-color: var!(button-destructive-focus-border);
3413            box-shadow: format!("0 0 0 3px {}", var!(button-destructive-focus-ring));
3414        }
3415    }
3416
3417    pub(crate) c_euv_pagination_next {
3418        text-align: "right";
3419
3420        padding: format!(
3421        "0px calc({} - {}) 0px {}",
3422        var!(space-sm),
3423        var!(space-2xs),
3424        var!(space-sm-md)
3425        );
3426        :is(".c_euv_pagination_auto_content .c_euv_pagination_next") {
3427            padding: var!(space-lg);
3428            text-align: "right";
3429        }
3430    }
3431
3432    pub(crate) c_euv_empty {
3433        display: "flex";
3434        flex-direction: "column";
3435        align-items: "center";
3436        justify-content: "center";
3437        gap: var!(space-sm);
3438        width: "100%";
3439        padding: var!(space-3xl);
3440        box-sizing: "border-box";
3441        text-align: "center";
3442
3443        gap: var!(space-lg);
3444        padding: var!(space-2xl);
3445        border-bottom-right-radius: var!(radius-xl);
3446        border-bottom-left-radius: var!(radius-xl);
3447        border-top-right-radius: var!(radius-xl);
3448        border-top-left-radius: var!(radius-xl);
3449    }
3450
3451    pub(crate) c_euv_kbd {
3452        display: "inline-flex";
3453        align-items: "center";
3454        justify-content: "center";
3455        gap: var!(space-2xs);
3456        min-width: "20px";
3457        height: "20px";
3458        padding-inline: var!(space-2xs);
3459        border-radius: var!(radius-sm);
3460        border: format!("{} solid {}", var!(border-width), var!(border));
3461        background: var!(muted);
3462        color: var!(muted-foreground);
3463        font-family: var!(font-family-mono);
3464        font-size: var!(font-xs);
3465        font-weight: var!(font-weight-medium);
3466        line-height: "1";
3467        white-space: "nowrap";
3468        user-select: "none";
3469        -webkit-user-select: "none";
3470
3471        gap: var!(space-xs);
3472        padding-left: var!(space-xs);
3473    }
3474
3475    pub(crate) c_euv_accordion_item {
3476        display: "flex";
3477        flex-direction: "column";
3478        width: "100%";
3479        border-bottom: format!("{} solid {}", var!(border-width), var!(border));
3480        :last-child {
3481            border-bottom: "none";
3482        }
3483
3484        padding-left: var!(space-lg);
3485    }
3486
3487    pub(crate) c_euv_accordion_trigger {
3488        display: "flex";
3489        flex: "1";
3490        align-items: "center";
3491        justify-content: "space-between";
3492        gap: var!(space-sm);
3493        padding: format!("{} 0px", var!(space-lg));
3494        border: "none";
3495        background: "transparent";
3496        color: var!(foreground);
3497        font-size: var!(font-sm);
3498        font-weight: var!(font-weight-medium);
3499        line-height: "1.5";
3500        text-align: "left";
3501        cursor: "pointer";
3502        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
3503        :hover {
3504            color: var!(muted-foreground);
3505            text-decoration: "underline";
3506        }
3507        :disabled {
3508            opacity: "0.5";
3509            cursor: "not-allowed";
3510        }
3511
3512        padding: format!("{} 0px", var!(control-pad-inline));
3513        border: format!("{} solid transparent", var!(border-width));
3514        border-radius: var!(radius-lg);
3515        line-height: "1.428571";
3516        align-items: "flex-start";
3517        border-color: var!(border);
3518        border-bottom-style: "solid";
3519        border-left-style: "solid";
3520        border-right-style: "solid";
3521        border-top-style: "solid";
3522        border-bottom-width: var!(border-width);
3523        border-left-width: var!(border-width);
3524        border-right-width: var!(border-width);
3525        border-top-width: var!(border-width);
3526        :hover {
3527            color: var!(foreground);
3528            text-decoration: "underline";
3529        }
3530        :focus-visible {
3531            border-color: var!(ring);
3532            box-shadow: format!("0 0 0 3px color-mix(in srgb, {} 50%, transparent)", var!(ring));
3533        }
3534    }
3535
3536    pub(crate) c_euv_accordion_content {
3537        overflow: "hidden";
3538        color: var!(foreground);
3539        font-size: var!(font-sm);
3540        line-height: "1.5";
3541
3542        line-height: "1.428571";
3543    }
3544
3545    pub(crate) c_euv_item_group {
3546        display: "flex";
3547        flex-direction: "column";
3548
3549        gap: var!(space-lg);
3550    }
3551
3552    pub(crate) c_euv_item_default {
3553        display: "flex";
3554        flex-wrap: "wrap";
3555        align-items: "center";
3556        border: format!("{} solid transparent", var!(border-width));
3557        border-radius: var!(radius-md);
3558        background: "transparent";
3559        color: var!(foreground);
3560        font-size: var!(font-sm);
3561        outline: "none";
3562        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
3563        :focus-within {
3564            border-color: var!(ring);
3565        }
3566
3567        border-color: var!(border);
3568        border-bottom-right-radius: var!(radius-lg);
3569        border-bottom-left-radius: var!(radius-lg);
3570        border-top-right-radius: var!(radius-lg);
3571        border-top-left-radius: var!(radius-lg);
3572    }
3573
3574    pub(crate) c_euv_item_outline {
3575        display: "flex";
3576        flex-wrap: "wrap";
3577        align-items: "center";
3578        border: format!("{} solid {}", var!(border-width), var!(border));
3579        border-radius: var!(radius-md);
3580        background: "transparent";
3581        color: var!(foreground);
3582        font-size: var!(font-sm);
3583        outline: "none";
3584        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
3585        :focus-within {
3586            border-color: var!(ring);
3587        }
3588
3589        border-color: var!(border);
3590        border-bottom-right-radius: var!(radius-lg);
3591        border-bottom-left-radius: var!(radius-lg);
3592        border-top-right-radius: var!(radius-lg);
3593        border-top-left-radius: var!(radius-lg);
3594        border-bottom-style: "solid";
3595        border-left-style: "solid";
3596        border-right-style: "solid";
3597        border-top-style: "solid";
3598        border-bottom-width: var!(border-width);
3599        border-left-width: var!(border-width);
3600        border-right-width: var!(border-width);
3601        border-top-width: var!(border-width);
3602    }
3603
3604    pub(crate) c_euv_item_muted {
3605        display: "flex";
3606        flex-wrap: "wrap";
3607        align-items: "center";
3608        border: format!("{} solid transparent", var!(border-width));
3609        border-radius: var!(radius-md);
3610        background: var!(muted);
3611        color: var!(foreground);
3612        font-size: var!(font-sm);
3613        outline: "none";
3614        transition: format!("{} {}", var!(duration-fast), var!(ease-out));
3615        :focus-within {
3616            border-color: var!(ring);
3617        }
3618
3619        border-bottom-right-radius: var!(radius-lg);
3620        border-bottom-left-radius: var!(radius-lg);
3621        border-top-right-radius: var!(radius-lg);
3622        border-top-left-radius: var!(radius-lg);
3623    }
3624
3625    pub(crate) c_euv_item_size_default {
3626        gap: var!(space-lg);
3627        padding: var!(space-lg);
3628
3629        gap: var!(space-sm-md);
3630        padding: format!("{} {}", var!(space-sm-md), var!(space-md));
3631    }
3632
3633    pub(crate) c_euv_item_size_sm {
3634        gap: var!(space-sm-md);
3635        padding: format!("{} {}", var!(space-md), var!(space-lg));
3636
3637        gap: var!(space-sm-md);
3638        padding: format!("{} {}", var!(space-sm-md), var!(space-md));
3639    }
3640
3641    pub(crate) c_euv_item_size_xs {
3642        gap: var!(space-sm);
3643        padding: format!("{} {}", var!(space-sm), var!(space-sm-md));
3644
3645        gap: var!(space-sm);
3646        padding: format!("{} {}", var!(space-sm), var!(space-sm-md));
3647    }
3648
3649    pub(crate) c_euv_aspect_ratio {
3650        position: "relative";
3651        width: "100%";
3652        overflow: "hidden";
3653
3654        background-color: var!(muted);
3655        border-bottom-right-radius: var!(radius-lg);
3656        border-bottom-left-radius: var!(radius-lg);
3657        border-top-right-radius: var!(radius-lg);
3658        border-top-left-radius: var!(radius-lg);
3659    }
3660
3661    pub c_euv_separator {
3662        flex-shrink: "0";
3663        background: var!(border);
3664
3665        flex-shrink: "0";
3666        background: var!(border);
3667    }
3668
3669    pub(crate) c_euv_pagination_previous {
3670        padding: format!(
3671        "0px {} 0px calc({} - {})",
3672        var!(space-sm-md),
3673        var!(space-sm),
3674        var!(space-2xs)
3675        );
3676        :is(".c_euv_pagination_auto_content .c_euv_pagination_previous") {
3677            padding: var!(space-lg);
3678            text-align: "left";
3679        }
3680    }
3681
3682    pub c_euv_button_primary {
3683        background: var!(primary);
3684        color: var!(primary-foreground);
3685        border: format!("{} solid transparent", var!(border-width));
3686        :hover {
3687            background: var!(primary-hover);
3688        }
3689
3690        :hover {
3691            background: var!(button-primary-hover-bg);
3692        }
3693    }
3694
3695    pub(crate) c_euv_pagination_label {
3696        display: "inline";
3697        :is(".c_euv_pagination_auto_content .c_euv_pagination_label") {
3698            display: "block";
3699            grid-column: "2";
3700            grid-row: "1";
3701            min-width: "0px";
3702            overflow: "hidden";
3703            white-space: "nowrap";
3704            text-overflow: "ellipsis";
3705            font-size: var!(font-xs);
3706            line-height: "1.5";
3707            color: var!(muted-foreground);
3708        }
3709    }
3710
3711    pub(crate) c_euv_pagination_text {
3712        display: "none";
3713        :is(".c_euv_pagination_auto_content .c_euv_pagination_text") {
3714            display: "block";
3715            grid-column: "2";
3716            grid-row: "2";
3717            min-width: "0px";
3718            overflow: "hidden";
3719            white-space: "nowrap";
3720            text-overflow: "ellipsis";
3721            font-size: var!(font-sm);
3722            font-weight: var!(font-weight-semibold);
3723            line-height: "1.5";
3724            color: var!(foreground);
3725        }
3726    }
3727
3728    pub(crate) c_euv_pagination_icon {
3729        display: "inline-flex";
3730        align-items: "center";
3731        justify-content: "center";
3732        flex: "0 0 auto";
3733        width: var!(space-lg);
3734        height: var!(space-lg);
3735        font-size: var!(font-sm);
3736        line-height: "1";
3737        :is(".c_euv_pagination_auto_content .c_euv_pagination_icon") {
3738            display: "flex";
3739            grid-row: "1 / 3";
3740            align-items: "center";
3741            justify-content: "center";
3742            color: var!(foreground);
3743        }
3744        :is(".c_euv_pagination_auto_content .c_euv_pagination_previous .c_euv_pagination_icon") {
3745            grid-column: "1";
3746        }
3747        :is(".c_euv_pagination_auto_content .c_euv_pagination_next .c_euv_pagination_icon") {
3748            grid-column: "3";
3749        }
3750    }
3751}