1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/* RadioGroup component — grouped radio buttons with layout */
.mui-radio-group {
border: none;
padding: 0;
margin: 0;
display: flex;
gap: 0.5rem;
}
.mui-radio-group--vertical {
flex-direction: column;
}
.mui-radio-group--horizontal {
flex-direction: row;
flex-wrap: wrap;
gap: 1rem;
}
/* Density variants — override the base gap. Applied after orientation
modifiers so .mui-radio-group--horizontal.mui-radio-group--compact still
lays out as a row, just with tighter spacing. */
.mui-radio-group--comfortable {
gap: 1rem;
}
.mui-radio-group--comfortable.mui-radio-group--horizontal {
gap: 1.5rem;
}
.mui-radio-group--compact {
gap: 0.25rem;
}
.mui-radio-group--compact.mui-radio-group--horizontal {
gap: 0.75rem;
}
.mui-radio-group__legend {
font-size: 0.875rem;
font-weight: 500;
color: var(--mui-text);
margin-bottom: 0.75rem;
}
/* Each radio item — row layout: indicator + label */
.mui-radio {
display: flex;
align-items: flex-start;
gap: 0.5rem;
cursor: pointer;
user-select: none;
}
/* Visually-hidden native input — fully accessible, invisible */
.mui-radio__input {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Indicator — 16px circle, border */
.mui-radio__indicator {
width: 1rem;
height: 1rem;
flex-shrink: 0;
border: 1px solid var(--mui-border);
border-radius: var(--mui-radius-full);
background: transparent;
display: flex;
align-items: center;
justify-content: center;
transition: var(--mui-transition);
margin-top: 0.125rem; /* align with first line of text */
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
/* Checked state — accent border with filled inner circle */
.mui-radio__input:checked + .mui-radio__indicator {
border-color: var(--mui-accent);
}
.mui-radio__input:checked + .mui-radio__indicator::after {
content: "";
display: block;
width: 0.5rem;
height: 0.5rem;
background: var(--mui-accent);
border-radius: var(--mui-radius-full);
}
/* Focus-visible ring */
.mui-radio__input:focus-visible + .mui-radio__indicator {
outline: 2px solid var(--mui-border-focus);
outline-offset: 2px;
}
/* Disabled — reduced opacity, not-allowed cursor */
.mui-radio:has(.mui-radio__input:disabled) {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
/* Label — 0.875rem, medium weight */
.mui-radio__label {
color: var(--mui-text);
font-size: 0.875rem;
font-weight: 500;
line-height: 1.25;
}
/* Description text below label — smaller, muted */
.mui-radio__description {
color: var(--mui-text-muted);
font-size: 0.8125rem;
line-height: 1.4;
margin-top: 0.125rem;
}
/* Label+description wrapper for vertical text stacking */
.mui-radio__text {
display: flex;
flex-direction: column;
gap: 0;
}