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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/* Command palette component — Cmd+K modal */
dialog.mui-command {
border: none;
border-radius: var(--mui-radius-lg);
background: var(--mui-bg-card);
color: var(--mui-text);
padding: 0;
box-shadow: var(--mui-shadow-lg);
max-width: 32rem;
width: 90vw;
overflow: hidden;
animation: mui-command-enter 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
dialog.mui-command::backdrop {
background: rgba(0, 0, 0, 0.8);
animation: mui-command-backdrop-enter 150ms ease-out;
}
@keyframes mui-command-enter {
from {
opacity: 0;
transform: scale(0.95) translateY(-8px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
@keyframes mui-command-backdrop-enter {
from { opacity: 0; }
to { opacity: 1; }
}
/* Search area */
.mui-command__search-wrap {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--mui-border);
}
.mui-command__search-icon {
color: var(--mui-text-muted);
font-size: 1rem;
flex-shrink: 0;
}
.mui-command__search {
flex: 1;
background: transparent;
border: none;
outline: none;
color: var(--mui-text);
font-family: inherit;
font-size: 0.9375rem;
line-height: 1.5;
padding: 0;
}
.mui-command__search::placeholder {
color: var(--mui-text-muted);
}
/* Item list */
.mui-command__list {
overflow-y: auto;
max-height: 18rem;
padding: 0.25rem;
}
/* Groups */
.mui-command__group {
padding: 0.125rem 0;
}
.mui-command__group + .mui-command__group {
border-top: 1px solid var(--mui-border);
margin-top: 0.25rem;
padding-top: 0.375rem;
}
.mui-command__group-label {
padding: 0.375rem 0.5rem 0.25rem;
font-size: 0.6875rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--mui-text-muted);
user-select: none;
}
/* Items */
.mui-command__item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.5rem 0.5rem;
border-radius: var(--mui-radius-sm);
font-size: 0.875rem;
cursor: pointer;
transition: background var(--mui-transition);
}
.mui-command__item:hover {
background: var(--mui-bg-input);
}
.mui-command__item--highlighted {
background: var(--mui-bg-input);
}
.mui-command__item--disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
.mui-command__item-label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Shortcut kbd inside command items */
.mui-command__item .mui-kbd {
margin-inline-start: auto;
flex-shrink: 0;
}
/* Empty state */
.mui-command__empty {
padding: 2rem 1rem;
text-align: center;
color: var(--mui-text-muted);
font-size: 0.875rem;
}
.mui-command__empty[hidden] {
display: none;
}
/* Hidden items during search */
.mui-command__item[data-hidden="true"] {
display: none;
}
.mui-command__group[data-hidden="true"] {
display: none;
}
/* Mobile: full-width command palette with tighter padding */
@media (max-width: 640px) {
dialog.mui-command {
width: calc(100vw - 1.5rem);
max-width: calc(100vw - 1.5rem);
}
.mui-command__search-wrap {
padding: 0.625rem 0.875rem;
}
.mui-command__list {
max-height: 60vh;
}
.mui-command__item {
padding: 0.5rem 0.375rem;
}
}