dsh-ustc-campus 0.2.15 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/material.mjs CHANGED
@@ -1,65 +1,2320 @@
1
- export const material = `
2
- .campus-workbench{height:100%;overflow:auto;color-scheme:light dark;--md-bg:light-dark(#f8f9fd,#111318);--md-surface:light-dark(#fff,#1b1f29);--md-high:light-dark(#e9eef9,#293247);--md-text:light-dark(#191e2b,#e3e8f6);--md-muted:light-dark(#495467,#b8c4d9);--md-primary:light-dark(#2455a5,#aac7ff);--md-on-primary:light-dark(#fff,#062f64);--md-outline:light-dark(#c8d1e0,#495467);background:var(--md-bg);color:var(--md-text);font:inherit}
3
- .campus-shell{max-width:1340px;margin:auto;padding:0 clamp(12px,2.6vw,36px) 32px;line-height:1.5}
4
- .campus-shell [hidden]{display:none!important}
5
- .campus-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--md-bg);border-bottom:1px solid var(--md-outline);padding:8px 0}
6
- .campus-bar nav{display:flex;align-items:center;gap:8px;overflow:auto;white-space:nowrap}
7
- .campus-bar nav button[aria-current=page]{background:var(--md-high);color:var(--md-primary);box-shadow:inset 0 -3px var(--md-primary)}
8
- .campus-shell button,.campus-shell input,.campus-shell select,.campus-shell textarea{font:inherit;color:inherit;background:var(--md-surface);border:1px solid var(--md-outline);border-radius:12px;padding:.48rem .7rem;max-width:100%;min-width:0}
9
- .campus-shell button{border-radius:999px;cursor:pointer;font-weight:550;background:transparent}
10
- .campus-shell button:hover{background:var(--md-high)}
11
- .campus-shell button:disabled{opacity:.55;cursor:default}
12
- .campus-shell button.campus-primary{background:var(--md-primary);border-color:var(--md-primary);color:var(--md-on-primary)}
13
- .campus-shell .campus-avatar{width:40px;height:40px;padding:0;flex:none;background:var(--md-high);color:var(--md-primary)}
14
- .campus-avatar svg{width:22px;height:22px;vertical-align:middle;fill:currentColor}
15
- .campus-avatar[data-state=connected]{outline:2px solid #288961;outline-offset:2px}
16
- .campus-shell :focus-visible{outline:2px solid var(--md-primary);outline-offset:2px}
17
- .campus-shell a{color:var(--md-primary);text-decoration:underline;text-underline-offset:2px}
18
- .campus-shell h1{font-size:clamp(24px,3vw,38px);font-weight:600;margin:20px 0 4px}
19
- .campus-shell h2{font-size:1.12rem;margin:0 0 .55rem}
20
- .campus-shell h3{font-size:.92rem;margin:0}
21
- .campus-shell p{margin:.45rem 0}
22
- .campus-card{background:var(--md-surface);border:1px solid var(--md-outline);border-radius:24px;padding:clamp(12px,2vw,20px);margin:14px 0}
23
- .campus-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.55rem;margin:.6rem 0}
24
- .campus-controls label,.campus-fields label{display:grid;gap:.25rem;font-size:.9rem;min-width:0}
25
- .campus-controls .campus-inline{display:flex;flex-direction:row-reverse;align-items:center;align-self:center}
26
- .campus-muted{font-size:.88rem;color:var(--md-muted)}
27
- .campus-days{max-height:min(620px,65vh);overflow:auto;border:1px solid var(--md-outline);border-radius:16px;background:var(--md-surface)}
28
- .campus-week-header{position:sticky;top:0;z-index:1;min-width:698px;background:var(--md-surface)}
29
- .campus-all-day .campus-event+.campus-event{margin-top:2px}
30
- .campus-week-row{display:grid;grid-template-columns:54px repeat(7,minmax(92px,1fr));min-width:698px}
31
- .campus-week-label,.campus-week-day{font-size:.75rem;color:var(--md-muted);padding:6px;text-align:center}
32
- .campus-week-day strong{display:block;font-size:1.35rem;color:var(--md-text)}
33
- .campus-week-day[data-today=true] strong{width:2rem;margin:auto;border-radius:50%;background:var(--md-primary);color:var(--md-on-primary)}
34
- .campus-ruler,.campus-track{position:relative;border-top:1px solid var(--md-outline)}
35
- .campus-ruler span{position:absolute;right:6px;font-size:.7rem;color:var(--md-muted)}
36
- .campus-track{border-inline-start:1px solid var(--md-outline);background:repeating-linear-gradient(to bottom,transparent 0 59px,var(--md-outline) 59px 60px);cursor:crosshair}
37
- .campus-all-day{padding:2px;border-inline-start:1px solid var(--md-outline);min-height:24px}
38
- .campus-list{list-style:none;margin:.35rem 0;padding:0}
39
- .campus-list li{padding:.45rem 0;overflow-wrap:anywhere}
40
- .campus-list li+li{border-top:1px solid var(--md-outline)}
41
- .campus-shell button.campus-event{display:block;overflow:hidden;text-align:start;border:0;border-radius:5px;font-size:.75rem;line-height:1.2;padding:3px 5px;background:var(--md-high);width:100%;color:var(--md-text);font-weight:400}
42
- .campus-event strong,.campus-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
43
- .campus-track .campus-event{position:absolute}
44
- .campus-shell button.campus-event:hover{filter:brightness(.92)}
45
- .campus-shell button.campus-event[data-kind=exam]{border-inline-start:3px solid #bc614b}
46
- .campus-shell button.campus-event[data-kind=task]{border-inline-start:3px solid #368665}
47
- .campus-shell button.campus-event[data-kind=event]{border-inline-start:3px solid #7a63ab}
48
- .campus-event[data-done=true]{text-decoration:line-through}
49
- .campus-task{display:flex;align-items:center;gap:.5rem}
50
- .campus-shell button.campus-item-title{padding:2px 4px;border:0;border-radius:5px;text-align:start}
51
- .campus-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
52
- .campus-notes li.campus-note{border:1px solid var(--md-outline);border-radius:12px;padding:12px}
53
- .campus-shell details.campus-create{position:relative;margin:0}
54
- .campus-create summary{list-style:none;background:var(--md-primary);color:var(--md-on-primary);border-radius:999px;padding:.5rem 1rem;font-weight:600}
55
- .campus-create > div{position:absolute;z-index:3;min-width:120px;display:grid;background:var(--md-surface);padding:6px;border:1px solid var(--md-outline);border-radius:12px;box-shadow:0 3px 14px #0002}
56
- .campus-create button{border:0;text-align:start}
57
- .campus-shell details{margin:.8rem 0}
58
- .campus-shell summary{cursor:pointer}
59
- .campus-shell dialog{color:var(--md-text);background:var(--md-surface);border:1px solid var(--md-outline);border-radius:28px;padding:24px;width:min(480px,calc(100% - 40px));max-height:85vh;overflow:auto}
60
- .campus-shell dialog:modal{overscroll-behavior:contain}
61
- .campus-shell dialog::backdrop{background:#10172488;overflow:hidden;overscroll-behavior:contain}
62
- .campus-fields{display:grid;gap:.75rem}
63
- .campus-actions{display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
64
- .campus-school-status{background:var(--md-high);border-radius:12px;padding:.8rem}
65
- `;
1
+ const STYLE_ID = 'ustc-campus-md3-styles';
2
+
3
+ export const material = `
4
+ /* ==========================================================================
5
+ USTC Campus Workbench v2 — Material Design 3 Tokens & Component Styles
6
+ Seed Color: #005AC1 (USTC Cobalt Blue)
7
+ ========================================================================== */
8
+
9
+ .uc-workbench,
10
+ .uc-card-root {
11
+ color-scheme: light dark;
12
+
13
+ /* Raw Light / Dark Palette Tokens (Seed #005AC1) */
14
+ --uc-l-primary: #005AC1;
15
+ --uc-d-primary: #ADC6FF;
16
+ --uc-l-on-primary: #FFFFFF;
17
+ --uc-d-on-primary: #002E69;
18
+ --uc-l-primary-container: #D8E2FF;
19
+ --uc-d-primary-container: #004494;
20
+ --uc-l-on-primary-container: #001A41;
21
+ --uc-d-on-primary-container: #D8E2FF;
22
+
23
+ --uc-l-secondary: #535E78;
24
+ --uc-d-secondary: #BBC6E4;
25
+ --uc-l-on-secondary: #FFFFFF;
26
+ --uc-d-on-secondary: #253048;
27
+ --uc-l-secondary-container: #D7E2FF;
28
+ --uc-d-secondary-container: #3B475F;
29
+ --uc-l-on-secondary-container: #0F1B32;
30
+ --uc-d-on-secondary-container: #D7E2FF;
31
+
32
+ --uc-l-tertiary: #6B538C;
33
+ --uc-d-tertiary: #D7BAFA;
34
+ --uc-l-on-tertiary: #FFFFFF;
35
+ --uc-d-on-tertiary: #3B255A;
36
+ --uc-l-tertiary-container: #EDDCFF;
37
+ --uc-d-tertiary-container: #523B72;
38
+ --uc-l-on-tertiary-container: #250E44;
39
+ --uc-d-on-tertiary-container: #EDDCFF;
40
+
41
+ --uc-l-error: #BA1A1A;
42
+ --uc-d-error: #FFB4AB;
43
+ --uc-l-on-error: #FFFFFF;
44
+ --uc-d-on-error: #690005;
45
+ --uc-l-error-container: #FFDAD6;
46
+ --uc-d-error-container: #93000A;
47
+ --uc-l-on-error-container: #410002;
48
+ --uc-d-on-error-container: #FFDAD6;
49
+
50
+ /* Harmonized Semantic Roles (Success / Warning) */
51
+ --uc-l-success: #146C43;
52
+ --uc-d-success: #79DBA2;
53
+ --uc-l-on-success: #FFFFFF;
54
+ --uc-d-on-success: #00391F;
55
+ --uc-l-success-container: #B9F2CE;
56
+ --uc-d-success-container: #00522F;
57
+ --uc-l-on-success-container: #002110;
58
+ --uc-d-on-success-container: #B9F2CE;
59
+
60
+ --uc-l-warning: #8A5300;
61
+ --uc-d-warning: #FFB95C;
62
+ --uc-l-on-warning: #FFFFFF;
63
+ --uc-d-on-warning: #492900;
64
+ --uc-l-warning-container: #FFDDB6;
65
+ --uc-d-warning-container: #683D00;
66
+ --uc-l-on-warning-container: #2B1700;
67
+ --uc-d-on-warning-container: #FFDDB6;
68
+
69
+ /* Calendar exam palette */
70
+ --uc-l-exam: #705900;
71
+ --uc-d-exam: #FFDA57;
72
+ --uc-l-exam-container: #FFE789;
73
+ --uc-d-exam-container: #554500;
74
+ --uc-l-on-exam-container: #251A00;
75
+ --uc-d-on-exam-container: #FFE789;
76
+
77
+ /* Surface & Neutral Hierarchy */
78
+ --uc-l-surface: #F9F9FF;
79
+ --uc-d-surface: #11131A;
80
+ --uc-l-surface-dim: #D9DAE3;
81
+ --uc-d-surface-dim: #11131A;
82
+ --uc-l-surface-bright: #F9F9FF;
83
+ --uc-d-surface-bright: #373941;
84
+ --uc-l-surface-container-lowest: #FFFFFF;
85
+ --uc-d-surface-container-lowest: #0C0E14;
86
+ --uc-l-surface-container-low: #F3F3FC;
87
+ --uc-d-surface-container-low: #191B22;
88
+ --uc-l-surface-container: #EDEEF7;
89
+ --uc-d-surface-container: #1D2027;
90
+ --uc-l-surface-container-high: #E7E8F1;
91
+ --uc-d-surface-container-high: #282A31;
92
+ --uc-l-surface-container-highest: #E1E2EB;
93
+ --uc-d-surface-container-highest: #33353C;
94
+
95
+ --uc-l-on-surface: #191B22;
96
+ --uc-d-on-surface: #E2E2EC;
97
+ --uc-l-on-surface-variant: #444753;
98
+ --uc-d-on-surface-variant: #C4C6D4;
99
+
100
+ --uc-l-outline: #747784;
101
+ --uc-d-outline: #8E909E;
102
+ --uc-l-outline-variant: #C4C6D4;
103
+ --uc-d-outline-variant: #444753;
104
+
105
+ --uc-l-inverse-surface: #2E3038;
106
+ --uc-d-inverse-surface: #E2E2EC;
107
+ --uc-l-inverse-on-surface: #F0F0F9;
108
+ --uc-d-inverse-on-surface: #2E3038;
109
+ --uc-l-inverse-primary: #ADC6FF;
110
+ --uc-d-inverse-primary: #005AC1;
111
+
112
+ --uc-l-scrim: rgba(12, 16, 28, 0.45);
113
+ --uc-d-scrim: rgba(4, 6, 12, 0.65);
114
+
115
+ --uc-l-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 3px 1px rgba(15, 23, 42, 0.06);
116
+ --uc-d-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
117
+ --uc-l-shadow-md: 0 2px 8px 2px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.08);
118
+ --uc-d-shadow-md: 0 4px 12px 2px rgba(0, 0, 0, 0.52), 0 1px 4px rgba(0, 0, 0, 0.4);
119
+ --uc-l-shadow-lg: 0 8px 24px 4px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
120
+ --uc-d-shadow-lg: 0 12px 28px 4px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.45);
121
+
122
+ /* Fallback Light Defaults */
123
+ --md-sys-color-primary: var(--uc-l-primary);
124
+ --md-sys-color-on-primary: var(--uc-l-on-primary);
125
+ --md-sys-color-primary-container: var(--uc-l-primary-container);
126
+ --md-sys-color-on-primary-container: var(--uc-l-on-primary-container);
127
+ --md-sys-color-secondary: var(--uc-l-secondary);
128
+ --md-sys-color-on-secondary: var(--uc-l-on-secondary);
129
+ --md-sys-color-secondary-container: var(--uc-l-secondary-container);
130
+ --md-sys-color-on-secondary-container: var(--uc-l-on-secondary-container);
131
+ --md-sys-color-tertiary: var(--uc-l-tertiary);
132
+ --md-sys-color-on-tertiary: var(--uc-l-on-tertiary);
133
+ --md-sys-color-tertiary-container: var(--uc-l-tertiary-container);
134
+ --md-sys-color-on-tertiary-container: var(--uc-l-on-tertiary-container);
135
+ --md-sys-color-error: var(--uc-l-error);
136
+ --md-sys-color-on-error: var(--uc-l-on-error);
137
+ --md-sys-color-error-container: var(--uc-l-error-container);
138
+ --md-sys-color-on-error-container: var(--uc-l-on-error-container);
139
+ --md-sys-color-success: var(--uc-l-success);
140
+ --md-sys-color-on-success: var(--uc-l-on-success);
141
+ --md-sys-color-success-container: var(--uc-l-success-container);
142
+ --md-sys-color-on-success-container: var(--uc-l-on-success-container);
143
+ --md-sys-color-warning: var(--uc-l-warning);
144
+ --md-sys-color-on-warning: var(--uc-l-on-warning);
145
+ --md-sys-color-warning-container: var(--uc-l-warning-container);
146
+ --md-sys-color-on-warning-container: var(--uc-l-on-warning-container);
147
+ --md-sys-color-exam: var(--uc-l-exam);
148
+ --md-sys-color-exam-container: var(--uc-l-exam-container);
149
+ --md-sys-color-on-exam-container: var(--uc-l-on-exam-container);
150
+ --md-sys-color-surface: var(--uc-l-surface);
151
+ --md-sys-color-surface-dim: var(--uc-l-surface-dim);
152
+ --md-sys-color-surface-bright: var(--uc-l-surface-bright);
153
+ --md-sys-color-surface-container-lowest: var(--uc-l-surface-container-lowest);
154
+ --md-sys-color-surface-container-low: var(--uc-l-surface-container-low);
155
+ --md-sys-color-surface-container: var(--uc-l-surface-container);
156
+ --md-sys-color-surface-container-high: var(--uc-l-surface-container-high);
157
+ --md-sys-color-surface-container-highest: var(--uc-l-surface-container-highest);
158
+ --md-sys-color-on-surface: var(--uc-l-on-surface);
159
+ --md-sys-color-on-surface-variant: var(--uc-l-on-surface-variant);
160
+ --md-sys-color-outline: var(--uc-l-outline);
161
+ --md-sys-color-outline-variant: var(--uc-l-outline-variant);
162
+ --md-sys-color-inverse-surface: var(--uc-l-inverse-surface);
163
+ --md-sys-color-inverse-on-surface: var(--uc-l-inverse-on-surface);
164
+ --md-sys-color-inverse-primary: var(--uc-l-inverse-primary);
165
+ --md-sys-color-scrim: var(--uc-l-scrim);
166
+ --uc-shadow-sm: var(--uc-l-shadow-sm);
167
+ --uc-shadow-md: var(--uc-l-shadow-md);
168
+ --uc-shadow-lg: var(--uc-l-shadow-lg);
169
+
170
+ /* Typography */
171
+ --md-ref-typeface-brand: 'Roboto Flex', 'Roboto', 'PingFang SC', 'Microsoft YaHei UI', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
172
+ --md-ref-typeface-plain: 'Roboto Flex', 'Roboto', 'PingFang SC', 'Microsoft YaHei UI', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
173
+
174
+ --md-sys-typescale-headline-small-size: 1.375rem;
175
+ --md-sys-typescale-headline-small-lh: 1.875rem;
176
+ --md-sys-typescale-title-large-size: 1.25rem;
177
+ --md-sys-typescale-title-large-lh: 1.75rem;
178
+ --md-sys-typescale-title-medium-size: 1rem;
179
+ --md-sys-typescale-title-medium-lh: 1.5rem;
180
+ --md-sys-typescale-title-small-size: 0.875rem;
181
+ --md-sys-typescale-title-small-lh: 1.25rem;
182
+ --md-sys-typescale-body-large-size: 0.9375rem;
183
+ --md-sys-typescale-body-large-lh: 1.4375rem;
184
+ --md-sys-typescale-body-medium-size: 0.875rem;
185
+ --md-sys-typescale-body-medium-lh: 1.3125rem;
186
+ --md-sys-typescale-body-small-size: 0.75rem;
187
+ --md-sys-typescale-body-small-lh: 1.0625rem;
188
+ --md-sys-typescale-label-large-size: 0.875rem;
189
+ --md-sys-typescale-label-large-lh: 1.25rem;
190
+ --md-sys-typescale-label-medium-size: 0.75rem;
191
+ --md-sys-typescale-label-medium-lh: 1rem;
192
+ --md-sys-typescale-label-small-size: 0.6875rem;
193
+ --md-sys-typescale-label-small-lh: 0.9375rem;
194
+
195
+ /* Shape */
196
+ --md-sys-shape-corner-none: 0px;
197
+ --md-sys-shape-corner-extra-small: 4px;
198
+ --md-sys-shape-corner-small: 8px;
199
+ --md-sys-shape-corner-medium: 12px;
200
+ --md-sys-shape-corner-large: 16px;
201
+ --md-sys-shape-corner-extra-large: 28px;
202
+ --md-sys-shape-corner-full: 9999px;
203
+
204
+ /* Motion */
205
+ --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
206
+ --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
207
+ --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
208
+ --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
209
+ --md-sys-motion-duration-short2: 100ms;
210
+ --md-sys-motion-duration-short3: 150ms;
211
+ --md-sys-motion-duration-short4: 200ms;
212
+ --md-sys-motion-duration-medium1: 250ms;
213
+ --md-sys-motion-duration-medium2: 300ms;
214
+ --md-sys-motion-duration-medium4: 400ms;
215
+
216
+ font-family: var(--md-ref-typeface-plain);
217
+ font-size: var(--md-sys-typescale-body-medium-size);
218
+ line-height: var(--md-sys-typescale-body-medium-lh);
219
+ color: var(--md-sys-color-on-surface);
220
+ accent-color: var(--md-sys-color-primary);
221
+ }
222
+
223
+ @media (prefers-color-scheme: dark) {
224
+ .uc-workbench,
225
+ .uc-card-root {
226
+ --md-sys-color-primary: var(--uc-d-primary);
227
+ --md-sys-color-on-primary: var(--uc-d-on-primary);
228
+ --md-sys-color-primary-container: var(--uc-d-primary-container);
229
+ --md-sys-color-on-primary-container: var(--uc-d-on-primary-container);
230
+ --md-sys-color-secondary: var(--uc-d-secondary);
231
+ --md-sys-color-on-secondary: var(--uc-d-on-secondary);
232
+ --md-sys-color-secondary-container: var(--uc-d-secondary-container);
233
+ --md-sys-color-on-secondary-container: var(--uc-d-on-secondary-container);
234
+ --md-sys-color-tertiary: var(--uc-d-tertiary);
235
+ --md-sys-color-on-tertiary: var(--uc-d-on-tertiary);
236
+ --md-sys-color-tertiary-container: var(--uc-d-tertiary-container);
237
+ --md-sys-color-on-tertiary-container: var(--uc-d-on-tertiary-container);
238
+ --md-sys-color-error: var(--uc-d-error);
239
+ --md-sys-color-on-error: var(--uc-d-on-error);
240
+ --md-sys-color-error-container: var(--uc-d-error-container);
241
+ --md-sys-color-on-error-container: var(--uc-d-on-error-container);
242
+ --md-sys-color-success: var(--uc-d-success);
243
+ --md-sys-color-on-success: var(--uc-d-on-success);
244
+ --md-sys-color-success-container: var(--uc-d-success-container);
245
+ --md-sys-color-on-success-container: var(--uc-d-on-success-container);
246
+ --md-sys-color-warning: var(--uc-d-warning);
247
+ --md-sys-color-on-warning: var(--uc-d-on-warning);
248
+ --md-sys-color-warning-container: var(--uc-d-warning-container);
249
+ --md-sys-color-on-warning-container: var(--uc-d-on-warning-container);
250
+ --md-sys-color-exam: var(--uc-d-exam);
251
+ --md-sys-color-exam-container: var(--uc-d-exam-container);
252
+ --md-sys-color-on-exam-container: var(--uc-d-on-exam-container);
253
+ --md-sys-color-surface: var(--uc-d-surface);
254
+ --md-sys-color-surface-dim: var(--uc-d-surface-dim);
255
+ --md-sys-color-surface-bright: var(--uc-d-surface-bright);
256
+ --md-sys-color-surface-container-lowest: var(--uc-d-surface-container-lowest);
257
+ --md-sys-color-surface-container-low: var(--uc-d-surface-container-low);
258
+ --md-sys-color-surface-container: var(--uc-d-surface-container);
259
+ --md-sys-color-surface-container-high: var(--uc-d-surface-container-high);
260
+ --md-sys-color-surface-container-highest: var(--uc-d-surface-container-highest);
261
+ --md-sys-color-on-surface: var(--uc-d-on-surface);
262
+ --md-sys-color-on-surface-variant: var(--uc-d-on-surface-variant);
263
+ --md-sys-color-outline: var(--uc-d-outline);
264
+ --md-sys-color-outline-variant: var(--uc-d-outline-variant);
265
+ --md-sys-color-inverse-surface: var(--uc-d-inverse-surface);
266
+ --md-sys-color-inverse-on-surface: var(--uc-d-inverse-on-surface);
267
+ --md-sys-color-inverse-primary: var(--uc-d-inverse-primary);
268
+ --md-sys-color-scrim: var(--uc-d-scrim);
269
+ --uc-shadow-sm: var(--uc-d-shadow-sm);
270
+ --uc-shadow-md: var(--uc-d-shadow-md);
271
+ --uc-shadow-lg: var(--uc-d-shadow-lg);
272
+ }
273
+ }
274
+
275
+ @supports (color: light-dark(white, black)) {
276
+ .uc-workbench,
277
+ .uc-card-root {
278
+ --md-sys-color-primary: light-dark(var(--uc-l-primary), var(--uc-d-primary));
279
+ --md-sys-color-on-primary: light-dark(var(--uc-l-on-primary), var(--uc-d-on-primary));
280
+ --md-sys-color-primary-container: light-dark(var(--uc-l-primary-container), var(--uc-d-primary-container));
281
+ --md-sys-color-on-primary-container: light-dark(var(--uc-l-on-primary-container), var(--uc-d-on-primary-container));
282
+ --md-sys-color-secondary: light-dark(var(--uc-l-secondary), var(--uc-d-secondary));
283
+ --md-sys-color-on-secondary: light-dark(var(--uc-l-on-secondary), var(--uc-d-on-secondary));
284
+ --md-sys-color-secondary-container: light-dark(var(--uc-l-secondary-container), var(--uc-d-secondary-container));
285
+ --md-sys-color-on-secondary-container: light-dark(var(--uc-l-on-secondary-container), var(--uc-d-on-secondary-container));
286
+ --md-sys-color-tertiary: light-dark(var(--uc-l-tertiary), var(--uc-d-tertiary));
287
+ --md-sys-color-on-tertiary: light-dark(var(--uc-l-on-tertiary), var(--uc-d-on-tertiary));
288
+ --md-sys-color-tertiary-container: light-dark(var(--uc-l-tertiary-container), var(--uc-d-tertiary-container));
289
+ --md-sys-color-on-tertiary-container: light-dark(var(--uc-l-on-tertiary-container), var(--uc-d-on-tertiary-container));
290
+ --md-sys-color-error: light-dark(var(--uc-l-error), var(--uc-d-error));
291
+ --md-sys-color-on-error: light-dark(var(--uc-l-on-error), var(--uc-d-on-error));
292
+ --md-sys-color-error-container: light-dark(var(--uc-l-error-container), var(--uc-d-error-container));
293
+ --md-sys-color-on-error-container: light-dark(var(--uc-l-on-error-container), var(--uc-d-on-error-container));
294
+ --md-sys-color-success: light-dark(var(--uc-l-success), var(--uc-d-success));
295
+ --md-sys-color-on-success: light-dark(var(--uc-l-on-success), var(--uc-d-on-success));
296
+ --md-sys-color-success-container: light-dark(var(--uc-l-success-container), var(--uc-d-success-container));
297
+ --md-sys-color-on-success-container: light-dark(var(--uc-l-on-success-container), var(--uc-d-on-success-container));
298
+ --md-sys-color-warning: light-dark(var(--uc-l-warning), var(--uc-d-warning));
299
+ --md-sys-color-on-warning: light-dark(var(--uc-l-on-warning), var(--uc-d-on-warning));
300
+ --md-sys-color-warning-container: light-dark(var(--uc-l-warning-container), var(--uc-d-warning-container));
301
+ --md-sys-color-on-warning-container: light-dark(var(--uc-l-on-warning-container), var(--uc-d-on-warning-container));
302
+ --md-sys-color-exam: light-dark(var(--uc-l-exam), var(--uc-d-exam));
303
+ --md-sys-color-exam-container: light-dark(var(--uc-l-exam-container), var(--uc-d-exam-container));
304
+ --md-sys-color-on-exam-container: light-dark(var(--uc-l-on-exam-container), var(--uc-d-on-exam-container));
305
+ --md-sys-color-surface: light-dark(var(--uc-l-surface), var(--uc-d-surface));
306
+ --md-sys-color-surface-dim: light-dark(var(--uc-l-surface-dim), var(--uc-d-surface-dim));
307
+ --md-sys-color-surface-bright: light-dark(var(--uc-l-surface-bright), var(--uc-d-surface-bright));
308
+ --md-sys-color-surface-container-lowest: light-dark(var(--uc-l-surface-container-lowest), var(--uc-d-surface-container-lowest));
309
+ --md-sys-color-surface-container-low: light-dark(var(--uc-l-surface-container-low), var(--uc-d-surface-container-low));
310
+ --md-sys-color-surface-container: light-dark(var(--uc-l-surface-container), var(--uc-d-surface-container));
311
+ --md-sys-color-surface-container-high: light-dark(var(--uc-l-surface-container-high), var(--uc-d-surface-container-high));
312
+ --md-sys-color-surface-container-highest: light-dark(var(--uc-l-surface-container-highest), var(--uc-d-surface-container-highest));
313
+ --md-sys-color-on-surface: light-dark(var(--uc-l-on-surface), var(--uc-d-on-surface));
314
+ --md-sys-color-on-surface-variant: light-dark(var(--uc-l-on-surface-variant), var(--uc-d-on-surface-variant));
315
+ --md-sys-color-outline: light-dark(var(--uc-l-outline), var(--uc-d-outline));
316
+ --md-sys-color-outline-variant: light-dark(var(--uc-l-outline-variant), var(--uc-d-outline-variant));
317
+ --md-sys-color-inverse-surface: light-dark(var(--uc-l-inverse-surface), var(--uc-d-inverse-surface));
318
+ --md-sys-color-inverse-on-surface: light-dark(var(--uc-l-inverse-on-surface), var(--uc-d-inverse-on-surface));
319
+ --md-sys-color-inverse-primary: light-dark(var(--uc-l-inverse-primary), var(--uc-d-inverse-primary));
320
+ --md-sys-color-scrim: light-dark(var(--uc-l-scrim), var(--uc-d-scrim));
321
+ --uc-shadow-sm: light-dark(var(--uc-l-shadow-sm), var(--uc-d-shadow-sm));
322
+ --uc-shadow-md: light-dark(var(--uc-l-shadow-md), var(--uc-d-shadow-md));
323
+ --uc-shadow-lg: light-dark(var(--uc-l-shadow-lg), var(--uc-d-shadow-lg));
324
+ }
325
+ }
326
+
327
+ /* Host Theme Detection & Manual Override */
328
+ :where(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .uc-workbench,
329
+ :where(html.dark, html[data-theme="dark"], body.dark, body[data-theme="dark"]) .uc-card-root {
330
+ color-scheme: dark;
331
+ }
332
+
333
+ :where(html.light, html[data-theme="light"], body.light, body[data-theme="light"]) .uc-workbench,
334
+ :where(html.light, html[data-theme="light"], body.light, body[data-theme="light"]) .uc-card-root {
335
+ color-scheme: light;
336
+ }
337
+
338
+ .uc-workbench[data-uc-theme="dark"],
339
+ .uc-card-root[data-uc-theme="dark"] {
340
+ color-scheme: dark;
341
+ }
342
+
343
+ .uc-workbench[data-uc-theme="light"],
344
+ .uc-card-root[data-uc-theme="light"] {
345
+ color-scheme: light;
346
+ }
347
+
348
+ /* ==========================================================================
349
+ Reset & Utilities
350
+ ========================================================================== */
351
+
352
+ .uc-workbench *,
353
+ .uc-workbench *::before,
354
+ .uc-workbench *::after,
355
+ .uc-card-root *,
356
+ .uc-card-root *::before,
357
+ .uc-card-root *::after {
358
+ box-sizing: border-box;
359
+ }
360
+
361
+ .uc-workbench {
362
+ position: relative;
363
+ height: 100%;
364
+ width: 100%;
365
+ display: flex;
366
+ flex-direction: row;
367
+ overflow: hidden;
368
+ background: var(--md-sys-color-surface);
369
+ color: var(--md-sys-color-on-surface);
370
+ scrollbar-color: var(--md-sys-color-outline-variant) transparent;
371
+ }
372
+
373
+ .uc-workbench :focus-visible,
374
+ .uc-card-root :focus-visible {
375
+ outline: 2px solid var(--md-sys-color-primary);
376
+ outline-offset: 2px;
377
+ }
378
+
379
+ .uc-tabular {
380
+ font-variant-numeric: tabular-nums;
381
+ }
382
+
383
+ .uc-muted {
384
+ color: var(--md-sys-color-on-surface-variant);
385
+ }
386
+
387
+ .uc-link {
388
+ color: var(--md-sys-color-primary);
389
+ text-decoration: none;
390
+ font-weight: 500;
391
+ display: inline-flex;
392
+ align-items: center;
393
+ gap: 4px;
394
+ border-radius: var(--md-sys-shape-corner-extra-small);
395
+ }
396
+
397
+ .uc-link:hover {
398
+ text-decoration: underline;
399
+ text-underline-offset: 3px;
400
+ }
401
+
402
+ /* ==========================================================================
403
+ Adaptive App Shell (MD3 Navigation Rail -> Bottom Bar)
404
+ ========================================================================== */
405
+
406
+ .uc-nav-rail {
407
+ width: 80px;
408
+ flex: none;
409
+ background: var(--md-sys-color-surface-container-low);
410
+ border-inline-end: 1px solid var(--md-sys-color-outline-variant);
411
+ display: flex;
412
+ flex-direction: column;
413
+ align-items: center;
414
+ padding: 16px 8px;
415
+ gap: 8px;
416
+ z-index: 4;
417
+ }
418
+
419
+ .uc-brand-mark {
420
+ width: 44px;
421
+ height: 44px;
422
+ border-radius: var(--md-sys-shape-corner-large);
423
+ background: var(--md-sys-color-primary-container);
424
+ color: var(--md-sys-color-on-primary-container);
425
+ display: grid;
426
+ place-items: center;
427
+ margin-bottom: 12px;
428
+ flex: none;
429
+ }
430
+
431
+ .uc-nav-items {
432
+ display: flex;
433
+ flex-direction: column;
434
+ align-items: center;
435
+ gap: 12px;
436
+ width: 100%;
437
+ }
438
+
439
+ .uc-nav-item {
440
+ appearance: none;
441
+ border: 0;
442
+ background: transparent;
443
+ color: var(--md-sys-color-on-surface-variant);
444
+ cursor: pointer;
445
+ display: flex;
446
+ flex-direction: column;
447
+ align-items: center;
448
+ gap: 4px;
449
+ padding: 0;
450
+ width: 64px;
451
+ font: inherit;
452
+ font-size: var(--md-sys-typescale-label-medium-size);
453
+ line-height: var(--md-sys-typescale-label-medium-lh);
454
+ font-weight: 500;
455
+ transition: color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
456
+ }
457
+
458
+ .uc-nav-indicator {
459
+ width: 56px;
460
+ height: 32px;
461
+ border-radius: var(--md-sys-shape-corner-full);
462
+ display: grid;
463
+ place-items: center;
464
+ transition:
465
+ background-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
466
+ color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
467
+ transform var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
468
+ }
469
+
470
+ .uc-nav-item:hover .uc-nav-indicator {
471
+ background: var(--md-sys-color-surface-container-highest);
472
+ color: var(--md-sys-color-on-surface);
473
+ }
474
+
475
+ .uc-nav-item[aria-current="page"] {
476
+ color: var(--md-sys-color-on-surface);
477
+ font-weight: 600;
478
+ }
479
+
480
+ .uc-nav-item[aria-current="page"] .uc-nav-indicator {
481
+ background: var(--md-sys-color-secondary-container);
482
+ color: var(--md-sys-color-on-secondary-container);
483
+ }
484
+
485
+ .uc-main-column {
486
+ flex: 1;
487
+ min-width: 0;
488
+ display: flex;
489
+ flex-direction: column;
490
+ height: 100%;
491
+ overflow: hidden;
492
+ }
493
+
494
+ .uc-top-bar {
495
+ flex: none;
496
+ min-height: 64px;
497
+ padding: 10px 24px;
498
+ display: flex;
499
+ align-items: center;
500
+ justify-content: space-between;
501
+ gap: 16px;
502
+ background: var(--md-sys-color-surface);
503
+ border-bottom: 1px solid var(--md-sys-color-outline-variant);
504
+ z-index: 3;
505
+ }
506
+
507
+ .uc-top-bar-title {
508
+ display: flex;
509
+ align-items: baseline;
510
+ gap: 10px;
511
+ min-width: 0;
512
+ }
513
+
514
+ .uc-top-bar-title h1 {
515
+ margin: 0;
516
+ font-family: var(--md-ref-typeface-brand);
517
+ font-size: var(--md-sys-typescale-title-large-size);
518
+ line-height: var(--md-sys-typescale-title-large-lh);
519
+ font-weight: 600;
520
+ letter-spacing: -0.01em;
521
+ white-space: nowrap;
522
+ }
523
+
524
+ .uc-top-bar-sub {
525
+ font-size: var(--md-sys-typescale-body-small-size);
526
+ color: var(--md-sys-color-on-surface-variant);
527
+ white-space: nowrap;
528
+ overflow: hidden;
529
+ text-overflow: ellipsis;
530
+ }
531
+
532
+ .uc-top-bar-actions {
533
+ display: flex;
534
+ align-items: center;
535
+ gap: 8px;
536
+ flex: none;
537
+ }
538
+
539
+ .uc-scroll-area {
540
+ flex: 1;
541
+ min-height: 0;
542
+ overflow-y: auto;
543
+ overflow-x: hidden;
544
+ padding: 20px 24px 32px;
545
+ }
546
+
547
+ .uc-page-container {
548
+ max-width: 1280px;
549
+ margin: 0 auto;
550
+ display: flex;
551
+ flex-direction: column;
552
+ gap: 16px;
553
+ }
554
+
555
+ .uc-page-container--narrow {
556
+ max-width: 960px;
557
+ }
558
+
559
+ @media (max-width: 767px) {
560
+ .uc-workbench {
561
+ flex-direction: column;
562
+ }
563
+
564
+ .uc-nav-rail {
565
+ order: 2;
566
+ width: 100%;
567
+ height: 68px;
568
+ flex-direction: row;
569
+ justify-content: space-around;
570
+ padding: 6px 12px;
571
+ border-inline-end: 0;
572
+ border-top: 1px solid var(--md-sys-color-outline-variant);
573
+ background: var(--md-sys-color-surface-container);
574
+ }
575
+
576
+ .uc-brand-mark {
577
+ display: none;
578
+ }
579
+
580
+ .uc-nav-items {
581
+ flex-direction: row;
582
+ justify-content: space-around;
583
+ gap: 4px;
584
+ }
585
+
586
+ .uc-nav-item {
587
+ width: auto;
588
+ min-width: 72px;
589
+ }
590
+
591
+ .uc-top-bar {
592
+ padding: 8px 14px;
593
+ }
594
+
595
+ .uc-top-bar-sub {
596
+ display: none;
597
+ }
598
+
599
+ .uc-scroll-area {
600
+ padding: 14px 12px 24px;
601
+ }
602
+ }
603
+
604
+ /* ==========================================================================
605
+ MD3 Primitives (Buttons, Chips, Segmented, Inputs, Cards, Banners)
606
+ ========================================================================== */
607
+
608
+ .uc-btn {
609
+ appearance: none;
610
+ border: 1px solid transparent;
611
+ border-radius: var(--md-sys-shape-corner-full);
612
+ height: 36px;
613
+ padding: 0 16px;
614
+ display: inline-flex;
615
+ align-items: center;
616
+ justify-content: center;
617
+ gap: 6px;
618
+ font: inherit;
619
+ font-size: var(--md-sys-typescale-label-large-size);
620
+ line-height: 1;
621
+ font-weight: 500;
622
+ cursor: pointer;
623
+ white-space: nowrap;
624
+ flex: none;
625
+ transition:
626
+ background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
627
+ border-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
628
+ color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
629
+ box-shadow var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
630
+ transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
631
+ }
632
+
633
+ .uc-btn--sm {
634
+ height: 30px;
635
+ padding: 0 12px;
636
+ font-size: var(--md-sys-typescale-label-medium-size);
637
+ }
638
+
639
+ .uc-btn:active:not(:disabled) {
640
+ transform: scale(0.98);
641
+ }
642
+
643
+ .uc-btn:disabled {
644
+ opacity: 0.45;
645
+ cursor: not-allowed;
646
+ }
647
+
648
+ .uc-btn--filled {
649
+ background: var(--md-sys-color-primary);
650
+ color: var(--md-sys-color-on-primary);
651
+ }
652
+
653
+ .uc-btn--filled:hover:not(:disabled) {
654
+ box-shadow: var(--uc-shadow-sm);
655
+ filter: brightness(1.06);
656
+ }
657
+
658
+ .uc-btn--tonal {
659
+ background: var(--md-sys-color-secondary-container);
660
+ color: var(--md-sys-color-on-secondary-container);
661
+ }
662
+
663
+ .uc-btn--tonal:hover:not(:disabled) {
664
+ background: var(--md-sys-color-primary-container);
665
+ color: var(--md-sys-color-on-primary-container);
666
+ }
667
+
668
+ .uc-btn--outlined {
669
+ background: transparent;
670
+ border-color: var(--md-sys-color-outline);
671
+ color: var(--md-sys-color-primary);
672
+ }
673
+
674
+ .uc-btn--outlined:hover:not(:disabled) {
675
+ background: var(--md-sys-color-surface-container-high);
676
+ }
677
+
678
+ .uc-btn--text {
679
+ background: transparent;
680
+ color: var(--md-sys-color-primary);
681
+ padding: 0 12px;
682
+ }
683
+
684
+ .uc-btn--text:hover:not(:disabled) {
685
+ background: var(--md-sys-color-surface-container-high);
686
+ }
687
+
688
+ .uc-btn--danger {
689
+ background: var(--md-sys-color-error);
690
+ color: var(--md-sys-color-on-error);
691
+ }
692
+
693
+ .uc-btn--danger-tonal {
694
+ background: var(--md-sys-color-error-container);
695
+ color: var(--md-sys-color-on-error-container);
696
+ }
697
+
698
+ .uc-icon-btn {
699
+ appearance: none;
700
+ border: 0;
701
+ width: 36px;
702
+ height: 36px;
703
+ border-radius: var(--md-sys-shape-corner-full);
704
+ display: inline-grid;
705
+ place-items: center;
706
+ cursor: pointer;
707
+ background: transparent;
708
+ color: var(--md-sys-color-on-surface-variant);
709
+ flex: none;
710
+ transition:
711
+ background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
712
+ color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
713
+ }
714
+
715
+ .uc-icon-btn:hover:not(:disabled) {
716
+ background: var(--md-sys-color-surface-container-highest);
717
+ color: var(--md-sys-color-on-surface);
718
+ }
719
+
720
+ .uc-icon-btn--tonal {
721
+ background: var(--md-sys-color-surface-container-high);
722
+ color: var(--md-sys-color-on-surface);
723
+ }
724
+
725
+ .uc-icon-btn--filled {
726
+ background: var(--md-sys-color-primary);
727
+ color: var(--md-sys-color-on-primary);
728
+ }
729
+
730
+ .uc-icon-btn:disabled {
731
+ opacity: 0.45;
732
+ cursor: not-allowed;
733
+ }
734
+
735
+ /* Segmented Button */
736
+ .uc-segmented {
737
+ display: inline-flex;
738
+ align-items: center;
739
+ border: 1px solid var(--md-sys-color-outline);
740
+ border-radius: var(--md-sys-shape-corner-full);
741
+ overflow: hidden;
742
+ background: var(--md-sys-color-surface-container-lowest);
743
+ flex: none;
744
+ }
745
+
746
+ .uc-segmented-btn {
747
+ appearance: none;
748
+ border: 0;
749
+ border-inline-start: 1px solid var(--md-sys-color-outline-variant);
750
+ background: transparent;
751
+ color: var(--md-sys-color-on-surface);
752
+ height: 36px;
753
+ padding: 0 14px;
754
+ display: inline-flex;
755
+ align-items: center;
756
+ gap: 6px;
757
+ font: inherit;
758
+ font-size: var(--md-sys-typescale-label-large-size);
759
+ font-weight: 500;
760
+ cursor: pointer;
761
+ white-space: nowrap;
762
+ transition:
763
+ background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
764
+ color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
765
+ }
766
+
767
+ .uc-segmented-btn:first-child {
768
+ border-inline-start: 0;
769
+ }
770
+
771
+ .uc-segmented-btn:hover:not([aria-pressed="true"]) {
772
+ background: var(--md-sys-color-surface-container);
773
+ }
774
+
775
+ .uc-segmented-btn[aria-pressed="true"] {
776
+ background: var(--md-sys-color-secondary-container);
777
+ color: var(--md-sys-color-on-secondary-container);
778
+ font-weight: 600;
779
+ }
780
+
781
+ /* Chips */
782
+ .uc-chip-row {
783
+ display: flex;
784
+ flex-wrap: wrap;
785
+ align-items: center;
786
+ gap: 8px;
787
+ }
788
+
789
+ .uc-chip {
790
+ appearance: none;
791
+ border: 1px solid var(--md-sys-color-outline-variant);
792
+ border-radius: var(--md-sys-shape-corner-small);
793
+ background: var(--md-sys-color-surface-container-low);
794
+ color: var(--md-sys-color-on-surface-variant);
795
+ min-height: 30px;
796
+ padding: 4px 12px;
797
+ display: inline-flex;
798
+ align-items: center;
799
+ gap: 6px;
800
+ font: inherit;
801
+ font-size: var(--md-sys-typescale-label-medium-size);
802
+ font-weight: 500;
803
+ cursor: pointer;
804
+ white-space: nowrap;
805
+ transition:
806
+ background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
807
+ border-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
808
+ color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
809
+ }
810
+
811
+ .uc-chip:hover {
812
+ background: var(--md-sys-color-surface-container-high);
813
+ color: var(--md-sys-color-on-surface);
814
+ }
815
+
816
+ .uc-chip[aria-pressed="true"],
817
+ .uc-chip--selected {
818
+ background: var(--md-sys-color-secondary-container);
819
+ border-color: transparent;
820
+ color: var(--md-sys-color-on-secondary-container);
821
+ font-weight: 600;
822
+ }
823
+
824
+ .uc-badge {
825
+ display: inline-flex;
826
+ align-items: center;
827
+ gap: 4px;
828
+ padding: 2px 9px;
829
+ border-radius: var(--md-sys-shape-corner-full);
830
+ font-size: var(--md-sys-typescale-label-small-size);
831
+ line-height: 1.35;
832
+ font-weight: 600;
833
+ white-space: nowrap;
834
+ }
835
+
836
+ .uc-badge--primary {
837
+ background: var(--md-sys-color-primary-container);
838
+ color: var(--md-sys-color-on-primary-container);
839
+ }
840
+
841
+ .uc-badge--secondary {
842
+ background: var(--md-sys-color-secondary-container);
843
+ color: var(--md-sys-color-on-secondary-container);
844
+ }
845
+
846
+ .uc-badge--tertiary {
847
+ background: var(--md-sys-color-tertiary-container);
848
+ color: var(--md-sys-color-on-tertiary-container);
849
+ }
850
+
851
+ .uc-badge--success {
852
+ background: var(--md-sys-color-success-container);
853
+ color: var(--md-sys-color-on-success-container);
854
+ }
855
+
856
+ .uc-badge--warning {
857
+ background: var(--md-sys-color-warning-container);
858
+ color: var(--md-sys-color-on-warning-container);
859
+ }
860
+
861
+ .uc-badge--error {
862
+ background: var(--md-sys-color-error-container);
863
+ color: var(--md-sys-color-on-error-container);
864
+ }
865
+
866
+ .uc-badge--neutral {
867
+ background: var(--md-sys-color-surface-container-high);
868
+ color: var(--md-sys-color-on-surface-variant);
869
+ }
870
+
871
+ /* Cards */
872
+ .uc-surface-card {
873
+ background: var(--md-sys-color-surface-container-low);
874
+ border-radius: var(--md-sys-shape-corner-large);
875
+ padding: 16px 20px;
876
+ }
877
+
878
+ .uc-surface-card--elevated {
879
+ background: var(--md-sys-color-surface-container-lowest);
880
+ box-shadow: var(--uc-shadow-sm);
881
+ }
882
+
883
+ .uc-surface-card--outlined {
884
+ background: var(--md-sys-color-surface-container-lowest);
885
+ border: 1px solid var(--md-sys-color-outline-variant);
886
+ }
887
+
888
+ /* Form Controls */
889
+ .uc-field {
890
+ display: flex;
891
+ flex-direction: column;
892
+ gap: 6px;
893
+ min-width: 0;
894
+ }
895
+
896
+ .uc-field-label {
897
+ font-size: var(--md-sys-typescale-label-medium-size);
898
+ font-weight: 500;
899
+ color: var(--md-sys-color-on-surface-variant);
900
+ }
901
+
902
+ .uc-input,
903
+ .uc-select,
904
+ .uc-textarea {
905
+ font: inherit;
906
+ color: var(--md-sys-color-on-surface);
907
+ background: var(--md-sys-color-surface-container-lowest);
908
+ border: 1px solid var(--md-sys-color-outline);
909
+ border-radius: var(--md-sys-shape-corner-small);
910
+ padding: 8px 12px;
911
+ min-width: 0;
912
+ width: 100%;
913
+ transition:
914
+ border-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
915
+ background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
916
+ }
917
+
918
+ .uc-input,
919
+ .uc-select {
920
+ height: 38px;
921
+ }
922
+
923
+ .uc-textarea {
924
+ min-height: 76px;
925
+ resize: vertical;
926
+ }
927
+
928
+ .uc-input:focus,
929
+ .uc-select:focus,
930
+ .uc-textarea:focus {
931
+ border-color: var(--md-sys-color-primary);
932
+ outline: 1px solid var(--md-sys-color-primary);
933
+ }
934
+
935
+ /* Search Bar */
936
+ .uc-search-bar {
937
+ display: flex;
938
+ align-items: center;
939
+ gap: 8px;
940
+ height: 40px;
941
+ padding: 0 14px;
942
+ border-radius: var(--md-sys-shape-corner-full);
943
+ background: var(--md-sys-color-surface-container-high);
944
+ color: var(--md-sys-color-on-surface);
945
+ min-width: 200px;
946
+ flex: 1;
947
+ transition: background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
948
+ }
949
+
950
+ .uc-search-bar:focus-within {
951
+ background: var(--md-sys-color-surface-container-highest);
952
+ outline: 2px solid var(--md-sys-color-primary);
953
+ }
954
+
955
+ .uc-search-bar input {
956
+ flex: 1;
957
+ min-width: 0;
958
+ border: 0;
959
+ background: transparent;
960
+ color: inherit;
961
+ font: inherit;
962
+ outline: none;
963
+ }
964
+
965
+ .uc-search-bar input::placeholder {
966
+ color: var(--md-sys-color-on-surface-variant);
967
+ }
968
+
969
+ /* Status Banner */
970
+ .uc-banner {
971
+ display: flex;
972
+ align-items: center;
973
+ justify-content: space-between;
974
+ gap: 12px;
975
+ padding: 10px 14px;
976
+ border-radius: var(--md-sys-shape-corner-medium);
977
+ font-size: var(--md-sys-typescale-body-small-size);
978
+ line-height: 1.45;
979
+ }
980
+
981
+ .uc-banner--info {
982
+ background: var(--md-sys-color-secondary-container);
983
+ color: var(--md-sys-color-on-secondary-container);
984
+ }
985
+
986
+ .uc-banner--warning {
987
+ background: var(--md-sys-color-warning-container);
988
+ color: var(--md-sys-color-on-warning-container);
989
+ }
990
+
991
+ .uc-banner--error {
992
+ background: var(--md-sys-color-error-container);
993
+ color: var(--md-sys-color-on-error-container);
994
+ }
995
+
996
+ .uc-banner--success {
997
+ background: var(--md-sys-color-success-container);
998
+ color: var(--md-sys-color-on-success-container);
999
+ }
1000
+
1001
+ .uc-banner-body {
1002
+ display: flex;
1003
+ align-items: center;
1004
+ gap: 8px;
1005
+ min-width: 0;
1006
+ flex: 1;
1007
+ }
1008
+
1009
+ /* ==========================================================================
1010
+ Account Status Pill
1011
+ ========================================================================== */
1012
+
1013
+ .uc-account-pill {
1014
+ appearance: none;
1015
+ border: 1px solid var(--md-sys-color-outline-variant);
1016
+ border-radius: var(--md-sys-shape-corner-full);
1017
+ height: 36px;
1018
+ padding: 0 12px 0 8px;
1019
+ display: inline-flex;
1020
+ align-items: center;
1021
+ gap: 8px;
1022
+ background: var(--md-sys-color-surface-container-low);
1023
+ color: var(--md-sys-color-on-surface);
1024
+ font: inherit;
1025
+ font-size: var(--md-sys-typescale-label-large-size);
1026
+ font-weight: 500;
1027
+ cursor: pointer;
1028
+ white-space: nowrap;
1029
+ transition: background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
1030
+ }
1031
+
1032
+ .uc-account-pill:hover {
1033
+ background: var(--md-sys-color-surface-container-high);
1034
+ }
1035
+
1036
+ .uc-account-pill--connected {
1037
+ background: var(--md-sys-color-success-container);
1038
+ color: var(--md-sys-color-on-success-container);
1039
+ border-color: transparent;
1040
+ }
1041
+
1042
+ .uc-account-pill--mfa {
1043
+ background: var(--md-sys-color-warning-container);
1044
+ color: var(--md-sys-color-on-warning-container);
1045
+ border-color: transparent;
1046
+ }
1047
+
1048
+ .uc-account-pill--expired {
1049
+ background: var(--md-sys-color-error-container);
1050
+ color: var(--md-sys-color-on-error-container);
1051
+ border-color: transparent;
1052
+ }
1053
+
1054
+ .uc-account-pill--pending {
1055
+ background: var(--md-sys-color-primary-container);
1056
+ color: var(--md-sys-color-on-primary-container);
1057
+ border-color: transparent;
1058
+ }
1059
+
1060
+ .uc-status-dot {
1061
+ width: 8px;
1062
+ height: 8px;
1063
+ border-radius: var(--md-sys-shape-corner-full);
1064
+ background: currentColor;
1065
+ flex: none;
1066
+ }
1067
+
1068
+ @media (prefers-reduced-motion: no-preference) {
1069
+ .uc-status-dot--pulse {
1070
+ animation: uc-pulse 1.5s var(--md-sys-motion-easing-standard) infinite;
1071
+ }
1072
+ }
1073
+
1074
+ @keyframes uc-pulse {
1075
+ 0%, 100% { opacity: 1; transform: scale(1); }
1076
+ 50% { opacity: 0.45; transform: scale(0.8); }
1077
+ }
1078
+
1079
+ /* ==========================================================================
1080
+ Native Dialog (Modern Top-Layer + Scroll Containment)
1081
+ ========================================================================== */
1082
+
1083
+ dialog.uc-dialog {
1084
+ margin: auto;
1085
+ padding: 0;
1086
+ border: 0;
1087
+ border-radius: var(--md-sys-shape-corner-extra-large);
1088
+ background: var(--md-sys-color-surface-container-high);
1089
+ color: var(--md-sys-color-on-surface);
1090
+ box-shadow: var(--uc-shadow-lg);
1091
+ width: min(520px, calc(100vw - 32px));
1092
+ max-height: min(86vh, 840px);
1093
+ overflow: hidden;
1094
+ opacity: 0;
1095
+ transition-property: opacity, transform, display, overlay;
1096
+ transition-duration: var(--md-sys-motion-duration-short4);
1097
+ transition-timing-function: var(--md-sys-motion-easing-emphasized-accelerate);
1098
+ transition-behavior: allow-discrete;
1099
+ }
1100
+
1101
+ dialog.uc-dialog--lg {
1102
+ width: min(720px, calc(100vw - 32px));
1103
+ }
1104
+
1105
+ dialog.uc-dialog--sm {
1106
+ width: min(420px, calc(100vw - 32px));
1107
+ }
1108
+
1109
+ @media (prefers-reduced-motion: no-preference) {
1110
+ dialog.uc-dialog {
1111
+ transform: translateY(8px) scale(0.96);
1112
+ }
1113
+ }
1114
+
1115
+ dialog.uc-dialog[open] {
1116
+ display: flex;
1117
+ flex-direction: column;
1118
+ opacity: 1;
1119
+ transition-duration: var(--md-sys-motion-duration-medium2);
1120
+ transition-timing-function: var(--md-sys-motion-easing-emphasized-decelerate);
1121
+
1122
+ @starting-style {
1123
+ opacity: 0;
1124
+ }
1125
+
1126
+ @media (prefers-reduced-motion: no-preference) {
1127
+ transform: translateY(0) scale(1);
1128
+
1129
+ @starting-style {
1130
+ transform: translateY(8px) scale(0.96);
1131
+ }
1132
+ }
1133
+ }
1134
+
1135
+ dialog.uc-dialog:modal {
1136
+ overscroll-behavior: contain;
1137
+ }
1138
+
1139
+ dialog.uc-dialog::backdrop {
1140
+ background: transparent;
1141
+ overflow: hidden;
1142
+ overscroll-behavior: contain;
1143
+ transition-property: background-color, display, overlay;
1144
+ transition-duration: var(--md-sys-motion-duration-short4);
1145
+ transition-behavior: allow-discrete;
1146
+ }
1147
+
1148
+ dialog.uc-dialog[open]::backdrop {
1149
+ background: var(--md-sys-color-scrim);
1150
+
1151
+ @starting-style {
1152
+ background: transparent;
1153
+ }
1154
+ }
1155
+
1156
+ @media (prefers-reduced-motion: reduce) {
1157
+ dialog.uc-dialog,
1158
+ dialog.uc-dialog::backdrop {
1159
+ transition-duration: 90ms;
1160
+ }
1161
+ }
1162
+
1163
+ .uc-dialog-header {
1164
+ display: flex;
1165
+ align-items: center;
1166
+ justify-content: space-between;
1167
+ gap: 12px;
1168
+ padding: 20px 24px 12px;
1169
+ flex: none;
1170
+ }
1171
+
1172
+ .uc-dialog-title {
1173
+ margin: 0;
1174
+ font-family: var(--md-ref-typeface-brand);
1175
+ font-size: var(--md-sys-typescale-title-large-size);
1176
+ line-height: var(--md-sys-typescale-title-large-lh);
1177
+ font-weight: 600;
1178
+ }
1179
+
1180
+ .uc-dialog-body {
1181
+ padding: 4px 24px 20px;
1182
+ overflow-y: auto;
1183
+ flex: 1;
1184
+ min-height: 0;
1185
+ display: flex;
1186
+ flex-direction: column;
1187
+ gap: 14px;
1188
+ }
1189
+
1190
+ .uc-dialog-footer {
1191
+ display: flex;
1192
+ align-items: center;
1193
+ justify-content: flex-end;
1194
+ gap: 8px;
1195
+ flex-wrap: wrap;
1196
+ padding: 12px 24px 20px;
1197
+ border-top: 1px solid var(--md-sys-color-outline-variant);
1198
+ flex: none;
1199
+ }
1200
+
1201
+ /* ==========================================================================
1202
+ Menu & Snackbar
1203
+ ========================================================================== */
1204
+
1205
+ .uc-menu-anchor {
1206
+ position: relative;
1207
+ display: inline-flex;
1208
+ }
1209
+
1210
+ .uc-menu-surface {
1211
+ position: absolute;
1212
+ top: calc(100% + 6px);
1213
+ inset-inline-end: 0;
1214
+ z-index: 20;
1215
+ min-width: 210px;
1216
+ max-width: 280px;
1217
+ padding: 6px;
1218
+ border-radius: var(--md-sys-shape-corner-medium);
1219
+ background: var(--md-sys-color-surface-container-high);
1220
+ box-shadow: var(--uc-shadow-md);
1221
+ border: 1px solid var(--md-sys-color-outline-variant);
1222
+ display: flex;
1223
+ flex-direction: column;
1224
+ gap: 2px;
1225
+ }
1226
+
1227
+ .uc-menu-surface--start {
1228
+ inset-inline-end: auto;
1229
+ inset-inline-start: 0;
1230
+ }
1231
+
1232
+ .uc-menu-item {
1233
+ appearance: none;
1234
+ border: 0;
1235
+ border-radius: var(--md-sys-shape-corner-small);
1236
+ background: transparent;
1237
+ color: var(--md-sys-color-on-surface);
1238
+ padding: 9px 12px;
1239
+ display: flex;
1240
+ align-items: center;
1241
+ gap: 10px;
1242
+ width: 100%;
1243
+ text-align: start;
1244
+ font: inherit;
1245
+ font-size: var(--md-sys-typescale-body-medium-size);
1246
+ cursor: pointer;
1247
+ text-decoration: none;
1248
+ }
1249
+
1250
+ .uc-menu-item:hover:not(:disabled) {
1251
+ background: var(--md-sys-color-surface-container-highest);
1252
+ }
1253
+
1254
+ .uc-menu-item:disabled {
1255
+ opacity: 0.45;
1256
+ cursor: not-allowed;
1257
+ }
1258
+
1259
+ .uc-menu-divider {
1260
+ height: 1px;
1261
+ margin: 4px 6px;
1262
+ background: var(--md-sys-color-outline-variant);
1263
+ }
1264
+
1265
+ .uc-snackbar-host {
1266
+ position: fixed;
1267
+ inset-block-end: 20px;
1268
+ inset-inline-start: 50%;
1269
+ transform: translateX(-50%);
1270
+ z-index: 50;
1271
+ pointer-events: none;
1272
+ max-width: min(460px, calc(100vw - 32px));
1273
+ }
1274
+
1275
+ .uc-snackbar {
1276
+ pointer-events: auto;
1277
+ display: flex;
1278
+ align-items: center;
1279
+ gap: 12px;
1280
+ padding: 10px 12px 10px 16px;
1281
+ border-radius: var(--md-sys-shape-corner-small);
1282
+ background: var(--md-sys-color-inverse-surface);
1283
+ color: var(--md-sys-color-inverse-on-surface);
1284
+ box-shadow: var(--uc-shadow-md);
1285
+ font-size: var(--md-sys-typescale-body-medium-size);
1286
+ }
1287
+
1288
+ .uc-snackbar-action {
1289
+ appearance: none;
1290
+ border: 0;
1291
+ background: transparent;
1292
+ color: var(--md-sys-color-inverse-primary);
1293
+ font: inherit;
1294
+ font-weight: 600;
1295
+ padding: 4px 8px;
1296
+ border-radius: var(--md-sys-shape-corner-extra-small);
1297
+ cursor: pointer;
1298
+ white-space: nowrap;
1299
+ }
1300
+
1301
+ /* ==========================================================================
1302
+ View 1: Agenda Supporting-Pane & Weekly Timeline
1303
+ ========================================================================== */
1304
+
1305
+ .uc-agenda-toolbar {
1306
+ display: flex;
1307
+ flex-wrap: wrap;
1308
+ align-items: center;
1309
+ justify-content: space-between;
1310
+ gap: 12px;
1311
+ }
1312
+
1313
+ .uc-agenda-toolbar-group {
1314
+ display: flex;
1315
+ flex-wrap: wrap;
1316
+ align-items: center;
1317
+ gap: 8px;
1318
+ }
1319
+
1320
+ .uc-week-range-label {
1321
+ font-family: var(--md-ref-typeface-brand);
1322
+ font-size: var(--md-sys-typescale-title-medium-size);
1323
+ font-weight: 600;
1324
+ padding: 0 6px;
1325
+ }
1326
+
1327
+ .uc-agenda-panes {
1328
+ display: grid;
1329
+ grid-template-columns: minmax(0, 1fr) 328px;
1330
+ gap: 16px;
1331
+ align-items: start;
1332
+ }
1333
+
1334
+ @media (max-width: 1079px) {
1335
+ .uc-agenda-panes {
1336
+ grid-template-columns: minmax(0, 1fr);
1337
+ }
1338
+ }
1339
+
1340
+ .uc-mobile-pane-switch {
1341
+ display: none;
1342
+ }
1343
+
1344
+ @media (max-width: 1079px) {
1345
+ .uc-mobile-pane-switch {
1346
+ display: flex;
1347
+ justify-content: flex-start;
1348
+ }
1349
+
1350
+ .uc-pane--hidden-narrow {
1351
+ display: none;
1352
+ }
1353
+ }
1354
+
1355
+ /* Calendar Grid */
1356
+ .uc-calendar-shell {
1357
+ background: var(--md-sys-color-surface-container-lowest);
1358
+ border: 1px solid var(--md-sys-color-outline-variant);
1359
+ border-radius: var(--md-sys-shape-corner-large);
1360
+ overflow: auto;
1361
+ max-height: min(680px, 72vh);
1362
+ scrollbar-color: var(--md-sys-color-outline-variant) transparent;
1363
+ }
1364
+
1365
+ .uc-week-grid {
1366
+ min-width: 680px;
1367
+ }
1368
+
1369
+ .uc-week-sticky {
1370
+ position: sticky;
1371
+ top: 0;
1372
+ z-index: 2;
1373
+ background: var(--md-sys-color-surface-container-low);
1374
+ border-bottom: 1px solid var(--md-sys-color-outline-variant);
1375
+ }
1376
+
1377
+ .uc-week-row {
1378
+ display: grid;
1379
+ grid-template-columns: 52px repeat(7, minmax(88px, 1fr));
1380
+ }
1381
+
1382
+ .uc-week-corner {
1383
+ padding: 8px 4px;
1384
+ font-size: var(--md-sys-typescale-label-small-size);
1385
+ color: var(--md-sys-color-on-surface-variant);
1386
+ text-align: center;
1387
+ display: flex;
1388
+ align-items: center;
1389
+ justify-content: center;
1390
+ }
1391
+
1392
+ .uc-week-day-head {
1393
+ padding: 8px 4px;
1394
+ text-align: center;
1395
+ border-inline-start: 1px solid var(--md-sys-color-outline-variant);
1396
+ display: flex;
1397
+ flex-direction: column;
1398
+ align-items: center;
1399
+ gap: 2px;
1400
+ }
1401
+
1402
+ .uc-week-day-name {
1403
+ font-size: var(--md-sys-typescale-label-small-size);
1404
+ color: var(--md-sys-color-on-surface-variant);
1405
+ font-weight: 500;
1406
+ }
1407
+
1408
+ .uc-week-day-num {
1409
+ width: 28px;
1410
+ height: 28px;
1411
+ border-radius: var(--md-sys-shape-corner-full);
1412
+ display: grid;
1413
+ place-items: center;
1414
+ font-size: var(--md-sys-typescale-title-small-size);
1415
+ font-weight: 600;
1416
+ }
1417
+
1418
+ .uc-week-day-head[data-today="true"] .uc-week-day-name {
1419
+ color: var(--md-sys-color-primary);
1420
+ font-weight: 600;
1421
+ }
1422
+
1423
+ .uc-week-day-head[data-today="true"] .uc-week-day-num {
1424
+ background: var(--md-sys-color-primary);
1425
+ color: var(--md-sys-color-on-primary);
1426
+ }
1427
+
1428
+ .uc-allday-row {
1429
+ border-top: 1px solid var(--md-sys-color-outline-variant);
1430
+ background: var(--md-sys-color-surface-container-lowest);
1431
+ }
1432
+
1433
+ .uc-allday-cell {
1434
+ padding: 4px;
1435
+ border-inline-start: 1px solid var(--md-sys-color-outline-variant);
1436
+ min-height: 28px;
1437
+ display: flex;
1438
+ flex-direction: column;
1439
+ gap: 3px;
1440
+ }
1441
+
1442
+ .uc-ruler {
1443
+ position: relative;
1444
+ background: var(--md-sys-color-surface-container-lowest);
1445
+ }
1446
+
1447
+ .uc-ruler-tick {
1448
+ position: absolute;
1449
+ inset-inline-end: 6px;
1450
+ transform: translateY(-50%);
1451
+ font-size: var(--md-sys-typescale-label-small-size);
1452
+ color: var(--md-sys-color-on-surface-variant);
1453
+ user-select: none;
1454
+ }
1455
+
1456
+ .uc-track {
1457
+ position: relative;
1458
+ border-inline-start: 1px solid var(--md-sys-color-outline-variant);
1459
+ background: repeating-linear-gradient(
1460
+ to bottom,
1461
+ transparent 0 59px,
1462
+ var(--md-sys-color-outline-variant) 59px 60px
1463
+ );
1464
+ cursor: crosshair;
1465
+ }
1466
+
1467
+ .uc-track[data-today="true"] {
1468
+ background-color: var(--md-sys-color-surface-container-low);
1469
+ }
1470
+
1471
+ .uc-now-line {
1472
+ position: absolute;
1473
+ inset-inline: 0;
1474
+ height: 2px;
1475
+ background: var(--md-sys-color-error);
1476
+ z-index: 2;
1477
+ pointer-events: none;
1478
+ }
1479
+
1480
+ .uc-now-line::before {
1481
+ content: '';
1482
+ position: absolute;
1483
+ inset-inline-start: -4px;
1484
+ top: -3px;
1485
+ width: 8px;
1486
+ height: 8px;
1487
+ border-radius: var(--md-sys-shape-corner-full);
1488
+ background: var(--md-sys-color-error);
1489
+ }
1490
+
1491
+ /* Event Blocks (Tonal Semantic Colors) */
1492
+ .uc-event-block {
1493
+ appearance: none;
1494
+ border: 0;
1495
+ border-inline-start: 3px solid var(--md-sys-color-primary);
1496
+ border-radius: var(--md-sys-shape-corner-small);
1497
+ background: var(--md-sys-color-primary-container);
1498
+ color: var(--md-sys-color-on-primary-container);
1499
+ padding: 3px 6px;
1500
+ text-align: start;
1501
+ font: inherit;
1502
+ font-size: var(--md-sys-typescale-label-medium-size);
1503
+ line-height: 1.25;
1504
+ overflow: hidden;
1505
+ cursor: pointer;
1506
+ width: 100%;
1507
+ display: flex;
1508
+ flex-direction: column;
1509
+ gap: 1px;
1510
+ transition: filter var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
1511
+ }
1512
+
1513
+ .uc-track .uc-event-block {
1514
+ position: absolute;
1515
+ z-index: 1;
1516
+ }
1517
+
1518
+ .uc-event-block:hover {
1519
+ filter: brightness(0.96);
1520
+ z-index: 2;
1521
+ }
1522
+
1523
+ .uc-event-block[data-kind="exam"] {
1524
+ background: var(--md-sys-color-exam-container);
1525
+ color: var(--md-sys-color-on-exam-container);
1526
+ border-inline-start-color: var(--md-sys-color-exam);
1527
+ }
1528
+
1529
+ .uc-event-block[data-kind="event"] {
1530
+ background: var(--md-sys-color-tertiary-container);
1531
+ color: var(--md-sys-color-on-tertiary-container);
1532
+ border-inline-start-color: var(--md-sys-color-tertiary);
1533
+ }
1534
+
1535
+ .uc-event-block[data-kind="deadline"] {
1536
+ --uc-point-color: var(--md-sys-color-error);
1537
+ border-inline-start: 0;
1538
+ background: transparent;
1539
+ color: var(--md-sys-color-on-error-container);
1540
+ justify-content: center;
1541
+ min-inline-size: 24px;
1542
+ padding: 0;
1543
+ }
1544
+
1545
+ .uc-event-block[data-kind="deadline"]::before {
1546
+ content: '';
1547
+ position: absolute;
1548
+ inset-inline: 0;
1549
+ top: min(var(--uc-deadline-marker), calc(100% - 2px));
1550
+ border-block-start: 2px solid var(--uc-point-color);
1551
+ }
1552
+
1553
+ .uc-event-block[data-kind="deadline"] .uc-event-title {
1554
+ z-index: 1;
1555
+ align-self: flex-start;
1556
+ max-inline-size: 100%;
1557
+ box-sizing: border-box;
1558
+ padding: 1px 3px;
1559
+ border-radius: var(--md-sys-shape-corner-extra-small);
1560
+ background: var(--md-sys-color-error-container);
1561
+ }
1562
+
1563
+ .uc-event-block[data-kind="deadline"]:focus-visible {
1564
+ outline: 2px solid var(--uc-point-color);
1565
+ outline-offset: -2px;
1566
+ z-index: 3;
1567
+ }
1568
+
1569
+ .uc-event-block[data-kind="reservation"],
1570
+ .uc-event-block[data-kind="task"] {
1571
+ background: var(--md-sys-color-success-container);
1572
+ color: var(--md-sys-color-on-success-container);
1573
+ border-inline-start-color: var(--md-sys-color-success);
1574
+ }
1575
+
1576
+ .uc-event-block[data-kind="note"] {
1577
+ background: var(--md-sys-color-secondary-container);
1578
+ color: var(--md-sys-color-on-secondary-container);
1579
+ border-inline-start-color: var(--md-sys-color-secondary);
1580
+ }
1581
+
1582
+ .uc-event-block[data-done="true"] {
1583
+ opacity: 0.65;
1584
+ text-decoration: line-through;
1585
+ }
1586
+
1587
+ .uc-event-title {
1588
+ font-weight: 600;
1589
+ overflow: hidden;
1590
+ text-overflow: ellipsis;
1591
+ white-space: nowrap;
1592
+ }
1593
+
1594
+ .uc-event-meta {
1595
+ font-size: var(--md-sys-typescale-label-small-size);
1596
+ opacity: 0.85;
1597
+ overflow: hidden;
1598
+ text-overflow: ellipsis;
1599
+ white-space: nowrap;
1600
+ }
1601
+
1602
+ /* Supporting Pane: Tasks & Keep Notes */
1603
+ .uc-side-stack {
1604
+ display: flex;
1605
+ flex-direction: column;
1606
+ gap: 14px;
1607
+ }
1608
+
1609
+ .uc-pane-header {
1610
+ display: flex;
1611
+ align-items: center;
1612
+ justify-content: space-between;
1613
+ gap: 8px;
1614
+ margin-bottom: 10px;
1615
+ }
1616
+
1617
+ .uc-pane-header h2 {
1618
+ margin: 0;
1619
+ font-size: var(--md-sys-typescale-title-medium-size);
1620
+ font-weight: 600;
1621
+ display: flex;
1622
+ align-items: center;
1623
+ gap: 8px;
1624
+ }
1625
+
1626
+ .uc-task-list {
1627
+ list-style: none;
1628
+ margin: 0;
1629
+ padding: 0;
1630
+ display: flex;
1631
+ flex-direction: column;
1632
+ gap: 6px;
1633
+ }
1634
+
1635
+ .uc-task-row {
1636
+ display: flex;
1637
+ align-items: flex-start;
1638
+ gap: 10px;
1639
+ padding: 8px 10px;
1640
+ border-radius: var(--md-sys-shape-corner-medium);
1641
+ background: var(--md-sys-color-surface-container-lowest);
1642
+ transition: background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
1643
+ }
1644
+
1645
+ .uc-task-row:hover {
1646
+ background: var(--md-sys-color-surface-container-high);
1647
+ }
1648
+
1649
+ .uc-task-check {
1650
+ width: 18px;
1651
+ height: 18px;
1652
+ margin-top: 2px;
1653
+ cursor: pointer;
1654
+ flex: none;
1655
+ }
1656
+
1657
+ .uc-task-body {
1658
+ flex: 1;
1659
+ min-width: 0;
1660
+ }
1661
+
1662
+ .uc-task-title-btn {
1663
+ appearance: none;
1664
+ border: 0;
1665
+ padding: 0;
1666
+ background: transparent;
1667
+ color: var(--md-sys-color-on-surface);
1668
+ font: inherit;
1669
+ font-weight: 500;
1670
+ text-align: start;
1671
+ cursor: pointer;
1672
+ width: 100%;
1673
+ overflow-wrap: anywhere;
1674
+ }
1675
+
1676
+ .uc-task-title-btn[data-done="true"] {
1677
+ text-decoration: line-through;
1678
+ color: var(--md-sys-color-on-surface-variant);
1679
+ }
1680
+
1681
+ .uc-notes-grid {
1682
+ display: grid;
1683
+ grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
1684
+ gap: 8px;
1685
+ }
1686
+
1687
+ .uc-keep-note {
1688
+ appearance: none;
1689
+ border: 0;
1690
+ border-radius: var(--md-sys-shape-corner-medium);
1691
+ background: var(--md-sys-color-surface-container-lowest);
1692
+ color: var(--md-sys-color-on-surface);
1693
+ padding: 12px;
1694
+ text-align: start;
1695
+ font: inherit;
1696
+ cursor: pointer;
1697
+ display: flex;
1698
+ flex-direction: column;
1699
+ gap: 4px;
1700
+ box-shadow: var(--uc-shadow-sm);
1701
+ transition:
1702
+ background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
1703
+ transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
1704
+ }
1705
+
1706
+ .uc-keep-note:hover {
1707
+ background: var(--md-sys-color-secondary-container);
1708
+ color: var(--md-sys-color-on-secondary-container);
1709
+ transform: translateY(-1px);
1710
+ }
1711
+
1712
+ .uc-keep-note-title {
1713
+ font-weight: 600;
1714
+ font-size: var(--md-sys-typescale-title-small-size);
1715
+ overflow-wrap: anywhere;
1716
+ }
1717
+
1718
+ .uc-keep-note-preview {
1719
+ font-size: var(--md-sys-typescale-body-small-size);
1720
+ color: var(--md-sys-color-on-surface-variant);
1721
+ display: -webkit-box;
1722
+ -webkit-line-clamp: 3;
1723
+ -webkit-box-orient: vertical;
1724
+ overflow: hidden;
1725
+ overflow-wrap: anywhere;
1726
+ }
1727
+
1728
+ /* ==========================================================================
1729
+ View 2: Feed & Recommendations
1730
+ ========================================================================== */
1731
+
1732
+ .uc-feed-controls {
1733
+ display: flex;
1734
+ flex-direction: column;
1735
+ gap: 10px;
1736
+ }
1737
+
1738
+ .uc-feed-bar-top {
1739
+ display: flex;
1740
+ flex-wrap: wrap;
1741
+ align-items: center;
1742
+ justify-content: space-between;
1743
+ gap: 10px;
1744
+ }
1745
+
1746
+ .uc-feed-filter-row {
1747
+ display: flex;
1748
+ flex-wrap: wrap;
1749
+ align-items: center;
1750
+ gap: 8px;
1751
+ }
1752
+
1753
+ .uc-feed-list {
1754
+ display: flex;
1755
+ flex-direction: column;
1756
+ gap: 10px;
1757
+ }
1758
+
1759
+ .uc-feed-card {
1760
+ background: var(--md-sys-color-surface-container-lowest);
1761
+ border-radius: var(--md-sys-shape-corner-large);
1762
+ padding: 16px 18px;
1763
+ display: flex;
1764
+ flex-direction: column;
1765
+ gap: 10px;
1766
+ box-shadow: var(--uc-shadow-sm);
1767
+ transition:
1768
+ background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
1769
+ box-shadow var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard);
1770
+ }
1771
+
1772
+ .uc-feed-card:hover {
1773
+ box-shadow: var(--uc-shadow-md);
1774
+ }
1775
+
1776
+ .uc-feed-card-top {
1777
+ display: flex;
1778
+ align-items: flex-start;
1779
+ justify-content: space-between;
1780
+ gap: 12px;
1781
+ }
1782
+
1783
+ .uc-feed-card-title {
1784
+ margin: 0;
1785
+ font-size: var(--md-sys-typescale-title-medium-size);
1786
+ line-height: var(--md-sys-typescale-title-medium-lh);
1787
+ font-weight: 600;
1788
+ overflow-wrap: anywhere;
1789
+ }
1790
+
1791
+ .uc-feed-card-title a {
1792
+ color: var(--md-sys-color-on-surface);
1793
+ text-decoration: none;
1794
+ }
1795
+
1796
+ .uc-feed-card-title a:hover {
1797
+ color: var(--md-sys-color-primary);
1798
+ text-decoration: underline;
1799
+ text-underline-offset: 3px;
1800
+ }
1801
+
1802
+ .uc-feed-meta {
1803
+ display: flex;
1804
+ flex-wrap: wrap;
1805
+ align-items: center;
1806
+ gap: 6px 12px;
1807
+ font-size: var(--md-sys-typescale-body-small-size);
1808
+ color: var(--md-sys-color-on-surface-variant);
1809
+ }
1810
+
1811
+ .uc-feed-reason {
1812
+ display: inline-flex;
1813
+ align-items: center;
1814
+ gap: 6px;
1815
+ padding: 4px 10px;
1816
+ border-radius: var(--md-sys-shape-corner-small);
1817
+ background: var(--md-sys-color-surface-container);
1818
+ color: var(--md-sys-color-on-surface-variant);
1819
+ font-size: var(--md-sys-typescale-body-small-size);
1820
+ align-self: flex-start;
1821
+ }
1822
+
1823
+ .uc-feed-actions {
1824
+ display: flex;
1825
+ flex-wrap: wrap;
1826
+ align-items: center;
1827
+ justify-content: space-between;
1828
+ gap: 8px;
1829
+ padding-top: 4px;
1830
+ border-top: 1px solid var(--md-sys-color-outline-variant);
1831
+ }
1832
+
1833
+ .uc-pagination {
1834
+ display: flex;
1835
+ flex-wrap: wrap;
1836
+ align-items: center;
1837
+ justify-content: space-between;
1838
+ gap: 10px 14px;
1839
+ padding: 12px 16px;
1840
+ border-radius: var(--md-sys-shape-corner-large);
1841
+ background: var(--md-sys-color-surface-container-low);
1842
+ }
1843
+
1844
+ .uc-pagination-info {
1845
+ font-size: var(--md-sys-typescale-body-small-size);
1846
+ }
1847
+
1848
+ .uc-pagination-controls {
1849
+ display: flex;
1850
+ flex-wrap: wrap;
1851
+ align-items: center;
1852
+ gap: 6px;
1853
+ }
1854
+
1855
+ .uc-page-btn {
1856
+ appearance: none;
1857
+ border: 1px solid var(--md-sys-color-outline-variant);
1858
+ border-radius: var(--md-sys-shape-corner-full);
1859
+ min-width: 30px;
1860
+ height: 30px;
1861
+ padding: 0 8px;
1862
+ display: inline-grid;
1863
+ place-items: center;
1864
+ background: var(--md-sys-color-surface-container-lowest);
1865
+ color: var(--md-sys-color-on-surface-variant);
1866
+ font: inherit;
1867
+ font-size: var(--md-sys-typescale-label-medium-size);
1868
+ font-weight: 500;
1869
+ cursor: pointer;
1870
+ transition:
1871
+ background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
1872
+ color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
1873
+ border-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
1874
+ }
1875
+
1876
+ .uc-page-btn:hover:not(:disabled):not([aria-current="page"]) {
1877
+ background: var(--md-sys-color-surface-container-high);
1878
+ color: var(--md-sys-color-on-surface);
1879
+ }
1880
+
1881
+ .uc-page-btn[aria-current="page"] {
1882
+ background: var(--md-sys-color-primary);
1883
+ border-color: var(--md-sys-color-primary);
1884
+ color: var(--md-sys-color-on-primary);
1885
+ font-weight: 600;
1886
+ }
1887
+
1888
+ .uc-page-btn:disabled {
1889
+ opacity: 0.45;
1890
+ cursor: not-allowed;
1891
+ }
1892
+
1893
+ .uc-page-ellipsis {
1894
+ padding: 0 4px;
1895
+ color: var(--md-sys-color-on-surface-variant);
1896
+ font-size: var(--md-sys-typescale-label-medium-size);
1897
+ user-select: none;
1898
+ }
1899
+
1900
+ /* ==========================================================================
1901
+ View 3: Campus Services (Shuttle / Grades & Exams / Quick Links)
1902
+ ========================================================================== */
1903
+
1904
+ .uc-services-grid {
1905
+ display: grid;
1906
+ grid-template-columns: repeat(12, minmax(0, 1fr));
1907
+ gap: 16px;
1908
+ }
1909
+
1910
+ .uc-col-span-12 { grid-column: span 12; }
1911
+ .uc-col-span-6 { grid-column: span 6; }
1912
+
1913
+ @media (max-width: 960px) {
1914
+ .uc-col-span-6 { grid-column: span 12; }
1915
+ }
1916
+
1917
+ .uc-section-head {
1918
+ display: flex;
1919
+ flex-wrap: wrap;
1920
+ align-items: center;
1921
+ justify-content: space-between;
1922
+ gap: 10px;
1923
+ margin-bottom: 14px;
1924
+ }
1925
+
1926
+ .uc-section-title {
1927
+ margin: 0;
1928
+ font-family: var(--md-ref-typeface-brand);
1929
+ font-size: var(--md-sys-typescale-title-large-size);
1930
+ font-weight: 600;
1931
+ display: flex;
1932
+ align-items: center;
1933
+ gap: 8px;
1934
+ }
1935
+
1936
+ .uc-shuttle-controls {
1937
+ display: flex;
1938
+ flex-wrap: wrap;
1939
+ align-items: flex-end;
1940
+ gap: 10px;
1941
+ margin-bottom: 14px;
1942
+ }
1943
+
1944
+ .uc-shuttle-date-group {
1945
+ display: inline-flex;
1946
+ flex-wrap: wrap;
1947
+ align-items: center;
1948
+ gap: 8px;
1949
+ }
1950
+
1951
+ .uc-shuttle-switch-btn {
1952
+ appearance: none;
1953
+ border: 1px solid var(--md-sys-color-outline-variant);
1954
+ border-radius: var(--md-sys-shape-corner-full);
1955
+ height: 26px;
1956
+ padding: 0 10px;
1957
+ background: transparent;
1958
+ color: var(--md-sys-color-on-surface-variant);
1959
+ font: inherit;
1960
+ font-size: var(--md-sys-typescale-label-small-size);
1961
+ font-weight: 500;
1962
+ cursor: pointer;
1963
+ white-space: nowrap;
1964
+ transition:
1965
+ background-color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard),
1966
+ color var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
1967
+ }
1968
+
1969
+ .uc-shuttle-switch-btn:hover:not(:disabled) {
1970
+ background: var(--md-sys-color-surface-container-high);
1971
+ color: var(--md-sys-color-on-surface);
1972
+ }
1973
+
1974
+ .uc-shuttle-switch-btn:disabled {
1975
+ opacity: 0.45;
1976
+ cursor: not-allowed;
1977
+ }
1978
+
1979
+ .uc-shuttle-footer {
1980
+ display: flex;
1981
+ flex-wrap: wrap;
1982
+ align-items: center;
1983
+ justify-content: space-between;
1984
+ gap: 6px 12px;
1985
+ margin-top: 10px;
1986
+ font-size: var(--md-sys-typescale-label-small-size);
1987
+ }
1988
+
1989
+ .uc-shuttle-vacation {
1990
+ margin-inline-start: auto;
1991
+ opacity: 0.85;
1992
+ }
1993
+
1994
+ .uc-shuttle-next-card {
1995
+ border-radius: var(--md-sys-shape-corner-large);
1996
+ background: var(--md-sys-color-primary-container);
1997
+ color: var(--md-sys-color-on-primary-container);
1998
+ padding: 16px 20px;
1999
+ display: flex;
2000
+ flex-wrap: wrap;
2001
+ align-items: center;
2002
+ justify-content: space-between;
2003
+ gap: 12px;
2004
+ margin-bottom: 14px;
2005
+ }
2006
+
2007
+ .uc-shuttle-next-time {
2008
+ font-family: var(--md-ref-typeface-brand);
2009
+ font-size: 1.75rem;
2010
+ line-height: 1.1;
2011
+ font-weight: 700;
2012
+ }
2013
+
2014
+ .uc-time-pills {
2015
+ display: flex;
2016
+ flex-wrap: wrap;
2017
+ gap: 6px;
2018
+ }
2019
+
2020
+ .uc-time-pill {
2021
+ padding: 4px 10px;
2022
+ border-radius: var(--md-sys-shape-corner-small);
2023
+ background: var(--md-sys-color-surface-container);
2024
+ color: var(--md-sys-color-on-surface);
2025
+ font-size: var(--md-sys-typescale-label-large-size);
2026
+ font-weight: 500;
2027
+ }
2028
+
2029
+ .uc-time-pill--past {
2030
+ opacity: 0.48;
2031
+ }
2032
+
2033
+ .uc-time-pill--next {
2034
+ background: var(--md-sys-color-primary);
2035
+ color: var(--md-sys-color-on-primary);
2036
+ font-weight: 700;
2037
+ }
2038
+
2039
+ .uc-kpi-grid {
2040
+ display: grid;
2041
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
2042
+ gap: 10px;
2043
+ margin-bottom: 14px;
2044
+ }
2045
+
2046
+ .uc-kpi-card {
2047
+ background: var(--md-sys-color-surface-container);
2048
+ border-radius: var(--md-sys-shape-corner-medium);
2049
+ padding: 12px 14px;
2050
+ display: flex;
2051
+ flex-direction: column;
2052
+ gap: 2px;
2053
+ }
2054
+
2055
+ .uc-kpi-label {
2056
+ font-size: var(--md-sys-typescale-label-medium-size);
2057
+ color: var(--md-sys-color-on-surface-variant);
2058
+ }
2059
+
2060
+ .uc-kpi-value {
2061
+ font-family: var(--md-ref-typeface-brand);
2062
+ font-size: var(--md-sys-typescale-headline-small-size);
2063
+ font-weight: 700;
2064
+ color: var(--md-sys-color-on-surface);
2065
+ }
2066
+
2067
+ .uc-quick-links {
2068
+ display: grid;
2069
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
2070
+ gap: 10px;
2071
+ }
2072
+
2073
+ .uc-quick-link-card {
2074
+ display: flex;
2075
+ align-items: center;
2076
+ justify-content: space-between;
2077
+ gap: 12px;
2078
+ padding: 14px 16px;
2079
+ border-radius: var(--md-sys-shape-corner-medium);
2080
+ background: var(--md-sys-color-surface-container-lowest);
2081
+ color: var(--md-sys-color-on-surface);
2082
+ text-decoration: none;
2083
+ box-shadow: var(--uc-shadow-sm);
2084
+ transition:
2085
+ background-color var(--md-sys-motion-duration-short3) var(--md-sys-motion-easing-standard),
2086
+ transform var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
2087
+ }
2088
+
2089
+ .uc-quick-link-card:hover {
2090
+ background: var(--md-sys-color-primary-container);
2091
+ color: var(--md-sys-color-on-primary-container);
2092
+ transform: translateY(-1px);
2093
+ }
2094
+
2095
+ .uc-quick-link-card--action {
2096
+ appearance: none;
2097
+ border: 0;
2098
+ font: inherit;
2099
+ text-align: start;
2100
+ cursor: pointer;
2101
+ width: 100%;
2102
+ }
2103
+
2104
+ .uc-quick-card-head {
2105
+ display: inline-flex;
2106
+ align-items: center;
2107
+ gap: 6px;
2108
+ font-weight: 600;
2109
+ font-size: var(--md-sys-typescale-title-small-size);
2110
+ }
2111
+
2112
+ .uc-exams-grid {
2113
+ display: grid;
2114
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
2115
+ gap: 8px;
2116
+ max-height: 360px;
2117
+ overflow-y: auto;
2118
+ }
2119
+
2120
+ .uc-table-wrap {
2121
+ overflow-x: auto;
2122
+ border-radius: var(--md-sys-shape-corner-medium);
2123
+ border: 1px solid var(--md-sys-color-outline-variant);
2124
+ background: var(--md-sys-color-surface-container-lowest);
2125
+ }
2126
+
2127
+ .uc-table {
2128
+ width: 100%;
2129
+ border-collapse: collapse;
2130
+ font-size: var(--md-sys-typescale-body-small-size);
2131
+ }
2132
+
2133
+ .uc-table th,
2134
+ .uc-table td {
2135
+ padding: 9px 12px;
2136
+ text-align: start;
2137
+ border-bottom: 1px solid var(--md-sys-color-outline-variant);
2138
+ }
2139
+
2140
+ .uc-table th {
2141
+ font-weight: 600;
2142
+ color: var(--md-sys-color-on-surface-variant);
2143
+ background: var(--md-sys-color-surface-container-low);
2144
+ }
2145
+
2146
+ .uc-table tr:last-child td {
2147
+ border-bottom: 0;
2148
+ }
2149
+
2150
+ /* ==========================================================================
2151
+ In-Chat Tool Cards (DSH tool.call.toolview — Gemini Keep Style)
2152
+ ========================================================================== */
2153
+
2154
+ .uc-card-root {
2155
+ margin: 6px 0;
2156
+ max-width: 100%;
2157
+ }
2158
+
2159
+ .uc-tool-card {
2160
+ background: var(--md-sys-color-surface-container-low);
2161
+ border: 1px solid var(--md-sys-color-outline-variant);
2162
+ border-radius: var(--md-sys-shape-corner-large);
2163
+ padding: 14px 16px;
2164
+ display: flex;
2165
+ flex-direction: column;
2166
+ gap: 10px;
2167
+ color: var(--md-sys-color-on-surface);
2168
+ }
2169
+
2170
+ .uc-tool-card-header {
2171
+ display: flex;
2172
+ align-items: flex-start;
2173
+ justify-content: space-between;
2174
+ gap: 10px;
2175
+ }
2176
+
2177
+ .uc-tool-card-title-row {
2178
+ display: flex;
2179
+ align-items: center;
2180
+ gap: 8px;
2181
+ min-width: 0;
2182
+ }
2183
+
2184
+ .uc-tool-icon-box {
2185
+ width: 32px;
2186
+ height: 32px;
2187
+ border-radius: var(--md-sys-shape-corner-small);
2188
+ background: var(--md-sys-color-primary-container);
2189
+ color: var(--md-sys-color-on-primary-container);
2190
+ display: grid;
2191
+ place-items: center;
2192
+ flex: none;
2193
+ }
2194
+
2195
+ .uc-tool-title {
2196
+ margin: 0;
2197
+ font-size: var(--md-sys-typescale-title-small-size);
2198
+ line-height: 1.35;
2199
+ font-weight: 600;
2200
+ overflow-wrap: anywhere;
2201
+ }
2202
+
2203
+ .uc-tool-sub {
2204
+ font-size: var(--md-sys-typescale-body-small-size);
2205
+ color: var(--md-sys-color-on-surface-variant);
2206
+ }
2207
+
2208
+ .uc-tool-progress {
2209
+ height: 3px;
2210
+ border-radius: var(--md-sys-shape-corner-full);
2211
+ background: var(--md-sys-color-surface-container-highest);
2212
+ overflow: hidden;
2213
+ }
2214
+
2215
+ .uc-tool-progress-bar {
2216
+ height: 100%;
2217
+ width: 42%;
2218
+ border-radius: var(--md-sys-shape-corner-full);
2219
+ background: var(--md-sys-color-primary);
2220
+ }
2221
+
2222
+ @media (prefers-reduced-motion: no-preference) {
2223
+ .uc-tool-progress-bar {
2224
+ animation: uc-indeterminate 1.4s var(--md-sys-motion-easing-standard) infinite;
2225
+ }
2226
+
2227
+ .uc-icon-spin {
2228
+ animation: uc-spin 1s linear infinite;
2229
+ }
2230
+ }
2231
+
2232
+ @keyframes uc-indeterminate {
2233
+ 0% { transform: translateX(-100%); }
2234
+ 100% { transform: translateX(260%); }
2235
+ }
2236
+
2237
+ @keyframes uc-spin {
2238
+ to { transform: rotate(360deg); }
2239
+ }
2240
+
2241
+ .uc-tool-list {
2242
+ display: flex;
2243
+ flex-direction: column;
2244
+ gap: 6px;
2245
+ }
2246
+
2247
+ .uc-tool-item {
2248
+ display: flex;
2249
+ align-items: flex-start;
2250
+ justify-content: space-between;
2251
+ gap: 10px;
2252
+ padding: 8px 10px;
2253
+ border-radius: var(--md-sys-shape-corner-medium);
2254
+ background: var(--md-sys-color-surface-container-lowest);
2255
+ }
2256
+
2257
+ .uc-tool-raw-toggle {
2258
+ appearance: none;
2259
+ border: 0;
2260
+ background: transparent;
2261
+ color: var(--md-sys-color-on-surface-variant);
2262
+ padding: 2px 0;
2263
+ font: inherit;
2264
+ font-size: var(--md-sys-typescale-label-medium-size);
2265
+ cursor: pointer;
2266
+ display: inline-flex;
2267
+ align-items: center;
2268
+ gap: 4px;
2269
+ align-self: flex-start;
2270
+ }
2271
+
2272
+ .uc-tool-raw-toggle:hover {
2273
+ color: var(--md-sys-color-primary);
2274
+ }
2275
+
2276
+ .uc-tool-raw-pre {
2277
+ margin: 0;
2278
+ padding: 10px 12px;
2279
+ border-radius: var(--md-sys-shape-corner-small);
2280
+ background: var(--md-sys-color-surface-container-highest);
2281
+ color: var(--md-sys-color-on-surface);
2282
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
2283
+ font-size: var(--md-sys-typescale-body-small-size);
2284
+ line-height: 1.45;
2285
+ max-height: 220px;
2286
+ overflow: auto;
2287
+ white-space: pre-wrap;
2288
+ overflow-wrap: anywhere;
2289
+ }
2290
+
2291
+ .uc-empty-state {
2292
+ padding: 28px 16px;
2293
+ text-align: center;
2294
+ display: flex;
2295
+ flex-direction: column;
2296
+ align-items: center;
2297
+ gap: 8px;
2298
+ color: var(--md-sys-color-on-surface-variant);
2299
+ }
2300
+
2301
+ .uc-divider {
2302
+ height: 1px;
2303
+ background: var(--md-sys-color-outline-variant);
2304
+ border: 0;
2305
+ margin: 0;
2306
+ }
2307
+ `;
2308
+
2309
+ export function ensureCampusStyles() {
2310
+ if (typeof document === 'undefined' || !document.head) return;
2311
+ let style = document.getElementById(STYLE_ID);
2312
+ if (!style) {
2313
+ style = document.createElement('style');
2314
+ style.id = STYLE_ID;
2315
+ document.head.append(style);
2316
+ }
2317
+ if (style.textContent !== material) {
2318
+ style.textContent = material;
2319
+ }
2320
+ }