@innovatorved/code-lab 0.5.0 → 0.6.1

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.
Files changed (76) hide show
  1. package/ARCHITECTURE.md +3 -3
  2. package/CHANGELOG.md +23 -0
  3. package/README.md +3 -3
  4. package/dist/code-lab-sql.css +87 -64
  5. package/dist/code-lab-sql.esm.js +109 -86
  6. package/dist/code-lab-sql.umd.js +110 -87
  7. package/dist/code-lab.css +32 -7273
  8. package/dist/code-lab.d.ts +1 -1
  9. package/dist/code-lab.esm.js +4966 -74622
  10. package/dist/code-lab.js +4974 -74631
  11. package/dist/code-lab.umd.js +4974 -74631
  12. package/dist/extensions/cpp.d.ts +2 -2
  13. package/dist/extensions/cpp.esm.js +1788 -14707
  14. package/dist/extensions/cpp.js +1788 -14707
  15. package/dist/extensions/guided-lab.esm.js +2938 -16127
  16. package/dist/extensions/guided-lab.js +2938 -16127
  17. package/dist/extensions/python.d.ts +2 -2
  18. package/dist/extensions/python.esm.js +1769 -14701
  19. package/dist/extensions/python.js +1769 -14701
  20. package/dist/index.d.ts +1 -1
  21. package/dist/packages/sql/src/styles.d.ts +1 -1
  22. package/dist/packages/ui/src/settings-dialog.d.ts +2 -0
  23. package/dist/preview-sw.js +4 -188
  24. package/dist/runtime.esm.js +109 -10284
  25. package/dist/runtime.js +107 -10284
  26. package/dist/schemas.d.ts +2 -2
  27. package/dist/schemas.esm.js +2938 -16127
  28. package/dist/schemas.js +2941 -16130
  29. package/dist/scm.d.ts +221 -20
  30. package/dist/shell.esm.js +811 -10002
  31. package/dist/shell.js +811 -10002
  32. package/dist/storage.d.ts +9 -0
  33. package/dist/terminal.esm.js +20 -1347
  34. package/dist/terminal.js +20 -1347
  35. package/dist/workbench/command-palette.d.ts +16 -1
  36. package/dist/workbench/diff-editor.d.ts +27 -1
  37. package/dist/workbench/icons.d.ts +6 -2
  38. package/dist/workbench/index.d.ts +33 -1
  39. package/dist/workbench/intellisense.d.ts +194 -0
  40. package/dist/workbench/styles.d.ts +1 -1
  41. package/dist/workbench/xterm-adapter.d.ts +122 -0
  42. package/package.json +7 -1
  43. package/packages/commands/package.json +1 -1
  44. package/packages/core/package.json +1 -1
  45. package/packages/editor/package.json +1 -1
  46. package/packages/fs/package.json +1 -1
  47. package/packages/preview/package.json +1 -1
  48. package/packages/runtime/package.json +1 -1
  49. package/packages/settings/package.json +1 -1
  50. package/packages/sql/package.json +1 -1
  51. package/packages/sql/src/styles.ts +87 -64
  52. package/packages/terminal/package.json +1 -1
  53. package/packages/ui/package.json +1 -1
  54. package/packages/ui/src/observability.ts +12 -14
  55. package/packages/ui/src/settings-dialog.ts +383 -47
  56. package/packages/ui/src/themes.ts +89 -23
  57. package/src/code-lab.css +1883 -578
  58. package/src/extensions/cpp.ts +304 -38
  59. package/src/extensions/python.ts +342 -43
  60. package/src/index.ts +1 -1
  61. package/src/runtime.ts +272 -43
  62. package/src/schemas.ts +2 -2
  63. package/src/scm.ts +1467 -92
  64. package/src/shell.ts +1075 -93
  65. package/src/storage.ts +66 -3
  66. package/src/terminal.ts +148 -12
  67. package/src/workbench/command-palette.ts +289 -48
  68. package/src/workbench/diff-editor.ts +244 -78
  69. package/src/workbench/drawer.ts +5 -5
  70. package/src/workbench/icons.ts +250 -53
  71. package/src/workbench/index.ts +7 -1
  72. package/src/workbench/intellisense.ts +1871 -0
  73. package/src/workbench/styles.ts +58 -54
  74. package/src/workbench/toolbar.ts +1 -1
  75. package/src/workbench/xterm-adapter.ts +1571 -0
  76. package/src/workbench.ts +1699 -324
package/src/code-lab.css CHANGED
@@ -4,18 +4,26 @@
4
4
  Crafted to Linear / Zed / StackBlitz / Stripe Docs Desktop Standards
5
5
  ═══════════════════════════════════════════════════════════════════════════ */
6
6
 
7
- :root,
8
- [data-theme="dark"],
7
+ code-lab,
8
+ .codelab,
9
+ .codelab-workbench,
10
+ [data-theme="dark"] .codelab,
9
11
  [data-cl-theme="dark"],
10
12
  .codelab-workbench--dark,
11
- .codelab[data-theme="dark"] {
12
- color-scheme: dark;
13
- /* Ved Gupta Monochrome Neutral Design System — Dark (matches css/variables.css) */
14
- --cl-bg: var(--bg, #000000);
15
- --cl-bg-elevated: var(--surface, #0a0a0a);
16
- --cl-bg-panel: var(--surface-hover, #171717);
17
- --cl-bg-hover: var(--surface-hover, #171717);
18
- --cl-bg-active: var(--surface-active, #262626);
13
+ .codelab[data-theme="dark"],
14
+ dialog.codelab-dialog {
15
+ /* Ved Gupta Unified Design System — Charcoal Ink (system-design / dsa-in-depth / interview-copilot) */
16
+ --cl-bg: var(--ds-canvas, var(--bg, #0f0f10));
17
+ --cl-bg-editor: var(--ds-canvas, var(--bg, #0f0f10));
18
+ --cl-bg-elevated: var(--sidebar-bg, var(--ds-canvas-subtle, var(--bg-alt, #141415)));
19
+ --cl-chrome: var(--cl-bg-elevated);
20
+ --cl-bg-panel: var(--ds-surface, var(--surface, #18181a));
21
+ --cl-input-bg: var(--ds-canvas-subtle, var(--bg-alt, #141415));
22
+ --cl-input-border: var(--ds-border, var(--border, #27272a));
23
+ --cl-bg-hover: var(--ds-surface-hover, var(--surface-hover, #1f1f22));
24
+ --cl-bg-active: var(--ds-surface-active, var(--surface-active, #28282b));
25
+ --cl-list-active: var(--ds-surface-active, var(--surface-active, #28282b));
26
+ --cl-list-active-fg: var(--ds-ink, var(--fg, #f4f4f5));
19
27
 
20
28
  /* Backwards-compatible surface aliases */
21
29
  --cl-surface: var(--cl-bg-elevated);
@@ -24,58 +32,89 @@
24
32
  --cl-hover: var(--cl-bg-hover);
25
33
  --cl-active: var(--cl-bg-active);
26
34
 
27
- /* Crisp 1px monochrome borders */
28
- --cl-border-subtle: var(--border-subtle, #171717);
29
- --cl-border: var(--border, #262626);
30
- --cl-border-strong: var(--border-strong, #404040);
31
-
32
- /* Monochrome foreground hierarchy */
33
- --cl-fg: var(--fg, #ffffff);
34
- --cl-fg-muted: var(--fg-muted, #a1a1a1);
35
- --cl-fg-faint: var(--fg-faint, #8f8f8f);
35
+ /* Crisp 1px Charcoal Ink hairline borders */
36
+ --cl-border-subtle: var(--border-subtle, #1d1d20);
37
+ --cl-border: var(--ds-border, var(--border, #27272a));
38
+ --cl-border-strong: var(--ds-border-strong, var(--border-strong, #3a3a3e));
39
+ --cl-focus-border: var(--border-focus, #a1a1aa);
40
+
41
+ /* Foreground hierarchy (WCAG AAA >= 7:1 against #0f0f10 and #141415) */
42
+ --cl-fg: var(--ds-ink, var(--fg, #f4f4f5));
43
+ --cl-fg-active: #ffffff;
44
+ --cl-fg-muted: var(--ds-ink-muted, var(--fg-muted, #a1a1aa));
45
+ --cl-fg-faint: var(--ds-ink-faint, var(--fg-faint, #8e8e97));
36
46
  --cl-fg-subtle: var(--cl-fg-faint);
37
47
 
38
- /* Primary monochrome accent + semantic status indicators */
39
- --cl-accent: var(--accent, #ffffff);
40
- --cl-accent-fg: var(--accent-fg, #000000);
41
- --cl-blue: var(--info, #54a2ff);
42
- --cl-blue-muted: rgba(84, 162, 255, 0.12);
43
- --cl-green: var(--success, #05df72);
44
- --cl-green-bright: var(--success, #05df72);
45
- --cl-green-muted: rgba(5, 223, 114, 0.12);
46
- --cl-amber: var(--warning, #ffd236);
47
- --cl-amber-muted: rgba(255, 210, 54, 0.12);
48
- --cl-red: var(--error, #fb2c36);
49
- --cl-red-muted: rgba(251, 44, 54, 0.12);
50
- --cl-purple: #a1a1a1;
51
- --cl-purple-muted: rgba(255, 255, 255, 0.08);
52
-
53
- /* GFM Callout Alert Tokens (Geist Dark) */
54
- --cl-callout-note: var(--cl-blue, #54a2ff);
55
- --cl-callout-note-bg: rgba(84, 162, 255, 0.08);
56
- --cl-callout-tip: var(--cl-green, #05df72);
57
- --cl-callout-tip-bg: rgba(5, 223, 114, 0.08);
58
- --cl-callout-important: #a855f7;
59
- --cl-callout-important-bg: rgba(168, 85, 247, 0.08);
60
- --cl-callout-warning: var(--cl-amber, #ffd236);
61
- --cl-callout-warning-bg: rgba(255, 210, 54, 0.08);
62
- --cl-callout-caution: var(--cl-red, #fb2c36);
63
- --cl-callout-caution-bg: rgba(251, 44, 54, 0.08);
64
-
65
- /* GFM Syntax Highlighting Tokens (Geist Dark) */
66
- --cl-tok-comment: #666666;
67
- --cl-tok-keyword: #ff7b72;
68
- --cl-tok-string: #a5d6ff;
69
- --cl-tok-number: #79c0ff;
70
- --cl-tok-type: #ffa657;
71
- --cl-tok-function: #d2a8ff;
72
- --cl-tok-punctuation: #8f8f8f;
73
-
74
- --cl-radius-sm: 4px;
75
- --cl-radius-md: 6px;
76
- --cl-radius-lg: 8px;
77
- --cl-font-sans: var(--font-sans, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
78
- --cl-font-mono: var(--font-mono, "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace);
48
+ /* Monochrome Ink Accent & Primary CTA Tokens */
49
+ --cl-accent: var(--brand-accent, var(--accent, #f4f4f5));
50
+ --cl-accent-fg: var(--brand-accent-ink, var(--accent-fg, #0f0f10));
51
+ --cl-btn-primary-bg: var(--brand-accent, var(--accent, #f4f4f5));
52
+ --cl-btn-primary-fg: var(--brand-accent-ink, var(--accent-fg, #0f0f10));
53
+ --cl-btn-primary-hover: var(--brand-accent-hover, var(--accent-hover, #ffffff));
54
+ --cl-blue: var(--ds-info, var(--info, #e4e4e7));
55
+ --cl-blue-muted: rgba(244, 244, 245, 0.1);
56
+ --cl-green: var(--ds-success, var(--success, #34d399));
57
+ --cl-green-bright: #6ee7b7;
58
+ --cl-green-muted: rgba(16, 185, 129, 0.12);
59
+ --cl-amber: var(--ds-warning, var(--warning, #fbbf24));
60
+ --cl-amber-muted: rgba(245, 158, 11, 0.12);
61
+ --cl-red: var(--ds-danger, var(--error, #f87171));
62
+ --cl-red-muted: rgba(239, 68, 68, 0.12);
63
+ --cl-purple: #c084fc;
64
+ --cl-purple-muted: rgba(192, 132, 252, 0.12);
65
+
66
+ /* Git & Diagnostic Tokens */
67
+ --cl-git-added: #34d399;
68
+ --cl-git-modified: #fbbf24;
69
+ --cl-git-deleted: #f87171;
70
+ --cl-git-untracked: #34d399;
71
+ --cl-diag-error: #f87171;
72
+ --cl-diag-warning: #fbbf24;
73
+ --cl-diag-info: #e4e4e7;
74
+
75
+ /* GFM Callout Alert Tokens */
76
+ --cl-callout-note: var(--cl-fg-muted, #a1a1aa);
77
+ --cl-callout-note-bg: rgba(244, 244, 245, 0.04);
78
+ --cl-callout-tip: var(--cl-green, #34d399);
79
+ --cl-callout-tip-bg: rgba(16, 185, 129, 0.07);
80
+ --cl-callout-important: #c084fc;
81
+ --cl-callout-important-bg: rgba(192, 132, 252, 0.07);
82
+ --cl-callout-warning: var(--cl-amber, #fbbf24);
83
+ --cl-callout-warning-bg: rgba(245, 158, 11, 0.07);
84
+ --cl-callout-caution: var(--cl-red, #f87171);
85
+ --cl-callout-caution-bg: rgba(239, 68, 68, 0.07);
86
+
87
+ /* Syntax Highlighting Tokens (Aligned with system-design-in-depth --syn-*) */
88
+ --cl-tok-comment: var(--syn-comment, #8e8e97);
89
+ --cl-tok-keyword: var(--syn-keyword, #f87171);
90
+ --cl-tok-string: var(--syn-string, #86efac);
91
+ --cl-tok-number: var(--syn-number, #fb923c);
92
+ --cl-tok-type: var(--syn-type, #c084fc);
93
+ --cl-tok-function: var(--syn-func, #fcd34d);
94
+ --cl-tok-punctuation: var(--syn-operator, #a1a1aa);
95
+
96
+ /* Radii & Tokenized Geist Typography Scale */
97
+ --cl-radius-sm: var(--ds-radius-sm, 4px);
98
+ --cl-radius-md: var(--ds-radius-md, 6px);
99
+ --cl-radius-lg: var(--ds-radius-lg, 8px);
100
+ --cl-font-sans: var(--ds-font-sans, var(--font-sans, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif));
101
+ --cl-font-mono: var(--ds-font-mono, var(--font-mono, "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace));
102
+ --cl-text-2xs: var(--ds-text-2xs, 0.6875rem);
103
+ --cl-text-xs: var(--ds-text-xs, 0.75rem);
104
+ --cl-text-sm: var(--ds-text-sm, 0.8125rem);
105
+ --cl-text-base: var(--ds-text-base, 0.875rem);
106
+ --cl-text-lg: var(--ds-text-lg, 1.0625rem);
107
+ --cl-text-xl: var(--ds-text-xl, 1.375rem);
108
+ }
109
+
110
+ code-lab,
111
+ .codelab,
112
+ .codelab-workbench,
113
+ [data-cl-theme="dark"],
114
+ .codelab-workbench--dark,
115
+ .codelab[data-theme="dark"],
116
+ dialog.codelab-dialog {
117
+ color-scheme: dark;
79
118
  }
80
119
 
81
120
  code-lab,
@@ -90,18 +129,30 @@ code-lab,
90
129
  box-sizing: border-box;
91
130
  }
92
131
 
93
- [data-theme="light"],
132
+ .codelab :where(button, input, select, textarea),
133
+ .codelab-workbench :where(button, input, select, textarea),
134
+ dialog.codelab-dialog :where(button, input, select, textarea) {
135
+ font-family: var(--cl-font-sans);
136
+ }
137
+
94
138
  [data-theme="light"] .codelab,
95
139
  [data-cl-theme="light"],
96
140
  .codelab[data-theme="light"],
97
- .codelab-workbench--light {
141
+ .codelab-workbench--light,
142
+ dialog.codelab-dialog[data-cl-theme="light"] {
98
143
  color-scheme: light;
99
- /* Ved Gupta Monochrome Neutral Design System — Light (matches css/variables.css) */
100
- --cl-bg: var(--bg, #ffffff);
101
- --cl-bg-elevated: var(--bg-alt, #fafafa);
102
- --cl-bg-panel: var(--surface-hover, #f5f5f5);
103
- --cl-bg-hover: var(--surface-hover, #f5f5f5);
104
- --cl-bg-active: var(--surface-active, #e5e5e5);
144
+ /* Ved Gupta Unified Design System — Warm Paper (system-design / dsa-in-depth / interview-copilot) */
145
+ --cl-bg: var(--ds-surface, var(--surface, #ffffff));
146
+ --cl-bg-editor: var(--ds-surface, var(--surface, #ffffff));
147
+ --cl-bg-elevated: var(--sidebar-bg, var(--ds-canvas, var(--bg, #f7f7f5)));
148
+ --cl-chrome: var(--cl-bg-elevated);
149
+ --cl-bg-panel: var(--ds-canvas-subtle, var(--bg-alt, #f1f1ee));
150
+ --cl-input-bg: var(--ds-surface, var(--surface, #ffffff));
151
+ --cl-input-border: var(--ds-border-strong, var(--border-strong, #d3d0c9));
152
+ --cl-bg-hover: var(--ds-surface-hover, var(--surface-hover, #f1f1ee));
153
+ --cl-bg-active: var(--ds-surface-active, var(--surface-active, #ecebe7));
154
+ --cl-list-active: var(--ds-surface-active, var(--surface-active, #ecebe7));
155
+ --cl-list-active-fg: var(--ds-ink, var(--fg, #18181b));
105
156
 
106
157
  --cl-surface: var(--cl-bg-elevated);
107
158
  --cl-surface-2: var(--cl-bg-panel);
@@ -109,49 +160,62 @@ code-lab,
109
160
  --cl-hover: var(--cl-bg-hover);
110
161
  --cl-active: var(--cl-bg-active);
111
162
 
112
- --cl-border-subtle: var(--border-subtle, #f5f5f5);
113
- --cl-border: var(--border, #e5e5e5);
114
- --cl-border-strong: var(--border-strong, #d4d4d4);
163
+ --cl-border-subtle: var(--border-subtle, #eeede9);
164
+ --cl-border: var(--ds-border, var(--border, #e6e4df));
165
+ --cl-border-strong: var(--ds-border-strong, var(--border-strong, #d3d0c9));
166
+ --cl-focus-border: var(--border-focus, #3f3f46);
115
167
 
116
- --cl-fg: var(--fg, #0a0a0a);
117
- --cl-fg-muted: var(--fg-muted, #525252);
118
- --cl-fg-faint: var(--fg-faint, #666666);
168
+ --cl-fg: var(--ds-ink, var(--fg, #18181b));
169
+ --cl-fg-active: #09090b;
170
+ --cl-fg-muted: var(--ds-ink-muted, var(--fg-muted, #52525b));
171
+ --cl-fg-faint: var(--ds-ink-faint, var(--fg-faint, #6e6a64));
119
172
  --cl-fg-subtle: var(--cl-fg-faint);
120
173
 
121
- --cl-accent: var(--accent, #000000);
122
- --cl-accent-fg: var(--accent-fg, #ffffff);
123
- --cl-blue: var(--info, #1447e6);
124
- --cl-blue-muted: rgba(20, 71, 230, 0.08);
125
- --cl-green: var(--success, #008138);
126
- --cl-green-bright: var(--success, #008138);
127
- --cl-green-muted: rgba(0, 129, 56, 0.08);
128
- --cl-amber: var(--warning, #b75000);
129
- --cl-amber-muted: rgba(183, 80, 0, 0.08);
130
- --cl-red: var(--error, #e40014);
131
- --cl-red-muted: rgba(228, 0, 20, 0.08);
132
- --cl-purple: #525252;
133
- --cl-purple-muted: rgba(0, 0, 0, 0.06);
134
-
135
- /* GFM Callout Alert Tokens (Geist Light) */
136
- --cl-callout-note: var(--cl-blue, #1447e6);
137
- --cl-callout-note-bg: rgba(20, 71, 230, 0.06);
138
- --cl-callout-tip: var(--cl-green, #008138);
139
- --cl-callout-tip-bg: rgba(0, 129, 56, 0.06);
140
- --cl-callout-important: #8250df;
141
- --cl-callout-important-bg: rgba(130, 80, 223, 0.06);
142
- --cl-callout-warning: var(--cl-amber, #b75000);
143
- --cl-callout-warning-bg: rgba(183, 80, 0, 0.06);
144
- --cl-callout-caution: var(--cl-red, #e40014);
145
- --cl-callout-caution-bg: rgba(228, 0, 20, 0.06);
146
-
147
- /* GFM Syntax Highlighting Tokens (Geist Light) */
148
- --cl-tok-comment: #6e7781;
149
- --cl-tok-keyword: #cf222e;
150
- --cl-tok-string: #0a3069;
151
- --cl-tok-number: #0550ae;
152
- --cl-tok-type: #953800;
153
- --cl-tok-function: #8250df;
154
- --cl-tok-punctuation: #57606a;
174
+ --cl-accent: var(--brand-accent, var(--accent, #18181b));
175
+ --cl-accent-fg: var(--brand-accent-ink, var(--accent-fg, #ffffff));
176
+ --cl-btn-primary-bg: var(--brand-accent, var(--accent, #18181b));
177
+ --cl-btn-primary-fg: var(--brand-accent-ink, var(--accent-fg, #ffffff));
178
+ --cl-btn-primary-hover: var(--brand-accent-hover, var(--accent-hover, #27272a));
179
+ --cl-blue: var(--ds-info, var(--info, #18181b));
180
+ --cl-blue-muted: rgba(24, 24, 27, 0.08);
181
+ --cl-green: var(--ds-success, var(--success, #067647));
182
+ --cl-green-bright: #059669;
183
+ --cl-green-muted: rgba(6, 118, 71, 0.09);
184
+ --cl-amber: var(--ds-warning, var(--warning, #b54708));
185
+ --cl-amber-muted: rgba(181, 71, 8, 0.09);
186
+ --cl-red: var(--ds-danger, var(--error, #b42318));
187
+ --cl-red-muted: rgba(180, 35, 24, 0.09);
188
+ --cl-purple: #7c3aed;
189
+ --cl-purple-muted: rgba(124, 58, 237, 0.09);
190
+
191
+ --cl-git-added: #067647;
192
+ --cl-git-modified: #b54708;
193
+ --cl-git-deleted: #b42318;
194
+ --cl-git-untracked: #067647;
195
+ --cl-diag-error: #b42318;
196
+ --cl-diag-warning: #b54708;
197
+ --cl-diag-info: #18181b;
198
+
199
+ /* GFM Callout Alert Tokens */
200
+ --cl-callout-note: var(--cl-fg-muted, #52525b);
201
+ --cl-callout-note-bg: rgba(24, 24, 27, 0.035);
202
+ --cl-callout-tip: var(--cl-green, #067647);
203
+ --cl-callout-tip-bg: rgba(6, 118, 71, 0.06);
204
+ --cl-callout-important: #7c3aed;
205
+ --cl-callout-important-bg: rgba(124, 58, 237, 0.06);
206
+ --cl-callout-warning: var(--cl-amber, #b54708);
207
+ --cl-callout-warning-bg: rgba(181, 71, 8, 0.06);
208
+ --cl-callout-caution: var(--cl-red, #b42318);
209
+ --cl-callout-caution-bg: rgba(180, 35, 24, 0.06);
210
+
211
+ /* Syntax Highlighting Tokens (Aligned with system-design-in-depth Light) */
212
+ --cl-tok-comment: var(--syn-comment, #6e6a64);
213
+ --cl-tok-keyword: var(--syn-keyword, #be123c);
214
+ --cl-tok-string: var(--syn-string, #15803d);
215
+ --cl-tok-number: var(--syn-number, #c2410c);
216
+ --cl-tok-type: var(--syn-type, #7c3aed);
217
+ --cl-tok-function: var(--syn-func, #9a3412);
218
+ --cl-tok-punctuation: var(--syn-operator, #52525b);
155
219
  }
156
220
 
157
221
  /* ── Fullscreen Body Lock & Back Button ──────────────────────────────────── */
@@ -199,6 +263,14 @@ code-lab,
199
263
  position: relative;
200
264
  }
201
265
 
266
+ .codelab.codelab--sized-host,
267
+ .codelab-workbench.codelab--sized-host {
268
+ width: 100%;
269
+ height: 100%;
270
+ min-height: 0;
271
+ max-height: none;
272
+ }
273
+
202
274
  .codelab.codelab--fullbleed,
203
275
  .codelab-workbench.codelab--fullbleed,
204
276
  .codelab-fullbleed > .codelab,
@@ -242,15 +314,15 @@ code-lab,
242
314
  border: none !important;
243
315
  }
244
316
 
245
- /* ── Top Workbench Titlebar (38px compact height, 3-section VS Code bar) ── */
317
+ /* ── Top Workbench Titlebar (35px VS Code Titlebar) ── */
246
318
  .codelab-topbar,
247
319
  .codelab-titlebar,
248
320
  .codelab-toolbar {
249
321
  display: flex;
250
322
  align-items: center;
251
323
  justify-content: space-between;
252
- height: 38px;
253
- padding: 0 10px;
324
+ height: 35px;
325
+ padding: 0 8px;
254
326
  background: var(--cl-bg-elevated);
255
327
  border-bottom: 1px solid var(--cl-border);
256
328
  gap: 8px;
@@ -258,19 +330,20 @@ code-lab,
258
330
  user-select: none;
259
331
  position: relative;
260
332
  z-index: 30;
333
+ font-family: var(--cl-font-sans);
261
334
  }
262
335
 
263
336
  .codelab-topbar__left {
264
337
  display: flex;
265
338
  align-items: center;
266
- gap: 6px;
339
+ gap: 4px;
267
340
  min-width: 0;
268
- flex: 1 1 auto;
341
+ flex: 1 0 auto;
269
342
  }
270
343
 
271
344
  .codelab-toolbar__sep {
272
345
  width: 1px;
273
- height: 18px;
346
+ height: 16px;
274
347
  background: var(--cl-border);
275
348
  flex-shrink: 0;
276
349
  margin: 0 2px;
@@ -279,26 +352,34 @@ code-lab,
279
352
  .codelab-brand {
280
353
  display: inline-flex;
281
354
  align-items: center;
282
- gap: 7px;
283
- font-family: var(--cl-font-mono);
284
- font-size: 11.5px;
355
+ gap: 6px;
356
+ font-family: var(--cl-font-sans);
357
+ font-size: 12px;
285
358
  font-weight: 600;
286
- padding: 4px 10px;
287
- border-radius: 5px;
288
- background: var(--cl-bg);
289
- border: 1px solid var(--cl-border);
359
+ padding: 2px 6px;
360
+ border-radius: 4px;
361
+ background: transparent;
362
+ border: 1px solid transparent;
290
363
  color: var(--cl-fg);
291
364
  letter-spacing: -0.01em;
292
- max-width: 220px;
365
+ max-width: 200px;
293
366
  overflow: hidden;
294
367
  text-overflow: ellipsis;
295
368
  white-space: nowrap;
296
369
  }
297
370
 
371
+ .codelab-brand--compact {
372
+ padding: 2px 4px;
373
+ }
374
+
375
+ .codelab-brand--compact .codelab-brand__label {
376
+ display: none;
377
+ }
378
+
298
379
  .codelab-brand__dot {
299
- width: 6px;
300
- height: 6px;
301
- border-radius: 50%;
380
+ width: 7px;
381
+ height: 7px;
382
+ border-radius: 2px;
302
383
  background: var(--cl-fg);
303
384
  flex-shrink: 0;
304
385
  }
@@ -307,26 +388,27 @@ code-lab,
307
388
  .codelab-mode-switch {
308
389
  display: inline-flex;
309
390
  align-items: center;
310
- background: var(--cl-bg);
391
+ background: var(--cl-bg-panel);
311
392
  border: 1px solid var(--cl-border);
312
- border-radius: 6px;
313
- padding: 2px;
314
- gap: 2px;
393
+ border-radius: 4px;
394
+ padding: 1px;
395
+ gap: 1px;
315
396
  }
316
397
 
317
398
  .codelab-mode-btn {
318
399
  display: inline-flex;
319
400
  align-items: center;
320
- gap: 6px;
321
- padding: 4px 10px;
401
+ gap: 5px;
402
+ padding: 3px 8px;
403
+ font-family: var(--cl-font-sans);
322
404
  font-size: 11.5px;
323
405
  font-weight: 500;
324
- border-radius: 4px;
406
+ border-radius: 3px;
325
407
  color: var(--cl-fg-muted);
326
408
  background: transparent;
327
409
  border: none;
328
410
  cursor: pointer;
329
- transition: color 120ms ease, background-color 120ms ease;
411
+ transition: color 100ms ease, background-color 100ms ease;
330
412
  white-space: nowrap;
331
413
  }
332
414
 
@@ -340,45 +422,47 @@ code-lab,
340
422
  font-weight: 600;
341
423
  }
342
424
 
343
- /* Language Toggle: JS / TS */
425
+ /* Language Toggle (Guided Lab Mode Only) */
344
426
  .codelab-lang-switch {
345
427
  display: inline-flex;
346
428
  align-items: center;
347
- background: var(--cl-bg);
429
+ background: var(--cl-bg-panel);
348
430
  border: 1px solid var(--cl-border);
349
- border-radius: 6px;
350
- padding: 2px;
351
- gap: 2px;
431
+ border-radius: 4px;
432
+ padding: 1px;
433
+ gap: 1px;
352
434
  }
353
435
 
354
436
  .codelab-lang-btn {
355
- font-family: var(--cl-font-mono);
437
+ font-family: var(--cl-font-sans);
356
438
  font-size: 11px;
357
439
  font-weight: 600;
358
- padding: 3px 9px;
359
- border-radius: 4px;
440
+ padding: 2px 8px;
441
+ border-radius: 3px;
360
442
  color: var(--cl-fg-muted);
361
443
  background: transparent;
362
444
  border: none;
363
445
  cursor: pointer;
364
- transition: all 120ms ease;
446
+ transition: all 100ms ease;
365
447
  }
366
448
 
367
449
  .codelab-lang-btn:hover {
368
450
  color: var(--cl-fg);
369
451
  }
370
452
 
371
- .codelab-lang-btn.active[data-lang="js"],
372
- .codelab-lang-btn.active[data-lang="ts"] {
373
- background: var(--cl-bg-active);
374
- color: var(--cl-fg);
453
+ .codelab-lang-btn.active {
454
+ background: var(--cl-btn-primary-bg);
455
+ color: var(--cl-btn-primary-fg);
375
456
  }
376
457
 
377
458
  .codelab-topbar__center {
378
459
  display: flex;
379
460
  align-items: center;
461
+ justify-content: center;
380
462
  gap: 6px;
381
- overflow-x: auto;
463
+ flex: 0 1 320px;
464
+ min-width: 0;
465
+ overflow: hidden;
382
466
  scrollbar-width: none;
383
467
  }
384
468
 
@@ -396,9 +480,9 @@ code-lab,
396
480
  display: inline-flex;
397
481
  align-items: center;
398
482
  gap: 5px;
399
- padding: 3px 10px;
483
+ padding: 2px 9px;
400
484
  border-radius: 999px;
401
- font-family: var(--cl-font-mono);
485
+ font-family: var(--cl-font-sans);
402
486
  font-variant-numeric: tabular-nums;
403
487
  font-size: 11px;
404
488
  font-weight: 500;
@@ -406,7 +490,7 @@ code-lab,
406
490
  border: 1px solid var(--cl-border);
407
491
  color: var(--cl-fg-muted);
408
492
  cursor: pointer;
409
- transition: all 120ms ease;
493
+ transition: all 100ms ease;
410
494
  white-space: nowrap;
411
495
  }
412
496
 
@@ -417,9 +501,9 @@ code-lab,
417
501
  }
418
502
 
419
503
  .codelab-step-pill.active {
420
- border-color: var(--cl-fg);
421
- color: var(--cl-accent-fg);
422
- background: var(--cl-accent);
504
+ border-color: var(--cl-btn-primary-bg);
505
+ color: var(--cl-btn-primary-fg);
506
+ background: var(--cl-btn-primary-bg);
423
507
  font-weight: 600;
424
508
  }
425
509
 
@@ -440,23 +524,27 @@ code-lab,
440
524
  .codelab-topbar__right {
441
525
  display: flex;
442
526
  align-items: center;
443
- gap: 6px;
527
+ justify-content: flex-end;
528
+ gap: 4px;
529
+ flex: 1 0 auto;
530
+ min-width: 0;
444
531
  }
445
532
 
446
533
  .codelab-btn {
447
534
  display: inline-flex;
448
535
  align-items: center;
449
- gap: 6px;
450
- height: 28px;
451
- padding: 0 11px;
452
- border-radius: 5px;
536
+ gap: 5px;
537
+ height: 26px;
538
+ padding: 0 9px;
539
+ border-radius: var(--cl-radius-sm, 3px);
540
+ font-family: var(--cl-font-sans);
453
541
  font-size: 12px;
454
542
  font-weight: 500;
455
543
  border: 1px solid var(--cl-border);
456
- background: var(--cl-bg);
544
+ background: var(--cl-bg-panel);
457
545
  color: var(--cl-fg);
458
546
  cursor: pointer;
459
- transition: all 120ms ease;
547
+ transition: background 100ms ease, border-color 100ms ease, color 100ms ease;
460
548
  white-space: nowrap;
461
549
  }
462
550
 
@@ -470,15 +558,30 @@ code-lab,
470
558
  cursor: not-allowed;
471
559
  }
472
560
 
561
+ .codelab-btn--primary {
562
+ background: var(--cl-btn-primary-bg);
563
+ border-color: var(--cl-btn-primary-bg);
564
+ color: var(--cl-btn-primary-fg);
565
+ font-weight: 500;
566
+ }
567
+
568
+ .codelab-btn--primary:hover:not(:disabled) {
569
+ background: var(--cl-btn-primary-hover);
570
+ border-color: var(--cl-btn-primary-hover);
571
+ color: var(--cl-btn-primary-fg);
572
+ }
573
+
473
574
  .codelab-btn--run {
474
- background: var(--cl-bg-panel);
475
- border-color: var(--cl-border-strong);
575
+ background: transparent;
576
+ border-color: transparent;
476
577
  color: var(--cl-fg);
578
+ height: 24px;
579
+ padding: 0 7px;
477
580
  }
478
581
 
479
582
  .codelab-btn--run:hover {
480
- background: var(--cl-bg-active);
481
- border-color: var(--cl-fg-muted);
583
+ background: var(--cl-bg-hover);
584
+ border-color: var(--cl-border);
482
585
  }
483
586
 
484
587
  .codelab-btn--stop {
@@ -496,12 +599,14 @@ code-lab,
496
599
  .codelab-btn--ctrl-c {
497
600
  color: var(--cl-fg-muted);
498
601
  border-color: transparent;
602
+ background: transparent;
499
603
  font-weight: 600;
500
604
  letter-spacing: 0.02em;
501
605
  }
502
606
 
503
607
  .codelab-btn--ctrl-c:hover {
504
608
  color: var(--cl-fg);
609
+ background: var(--cl-bg-hover);
505
610
  border-color: var(--cl-border);
506
611
  }
507
612
 
@@ -512,32 +617,41 @@ code-lab,
512
617
  }
513
618
 
514
619
  .codelab-btn--test {
515
- background: var(--cl-accent);
516
- border-color: var(--cl-accent);
517
- color: var(--cl-accent-fg);
518
- font-weight: 600;
620
+ background: var(--cl-btn-primary-bg);
621
+ border-color: var(--cl-btn-primary-bg);
622
+ color: var(--cl-btn-primary-fg);
623
+ font-weight: 500;
624
+ height: 24px;
625
+ padding: 0 9px;
519
626
  }
520
627
 
521
- .codelab-btn--test:hover {
522
- opacity: 0.9;
523
- background: var(--cl-accent);
524
- border-color: var(--cl-accent);
628
+ .codelab-btn--test:hover:not(:disabled) {
629
+ background: var(--cl-btn-primary-hover);
630
+ border-color: var(--cl-btn-primary-hover);
631
+ color: var(--cl-btn-primary-fg);
525
632
  }
526
633
 
527
634
  .codelab-btn--icon {
528
- padding: 0 7px;
635
+ height: 24px;
636
+ width: 26px;
637
+ padding: 0;
638
+ justify-content: center;
639
+ border-color: transparent;
640
+ background: transparent;
529
641
  color: var(--cl-fg-muted);
530
642
  }
531
643
 
532
644
  .codelab-btn--icon:hover {
533
645
  color: var(--cl-fg);
646
+ background: var(--cl-bg-hover);
647
+ border-color: transparent;
534
648
  }
535
649
 
536
650
  .codelab-btn--icon.active,
537
651
  .codelab-btn--icon[aria-pressed="true"] {
538
652
  color: var(--cl-fg);
539
- background: var(--cl-bg-elevated);
540
- border-color: var(--cl-border-strong);
653
+ background: var(--cl-bg-active);
654
+ border-color: transparent;
541
655
  }
542
656
 
543
657
  .codelab-btn--subtle {
@@ -1084,6 +1198,9 @@ code-lab,
1084
1198
  .codelab-workbench.panel-collapsed .codelab-splitter-h,
1085
1199
  .codelab-workbench.panel-collapsed .codelab-drawer {
1086
1200
  display: none !important;
1201
+ height: 0 !important;
1202
+ min-height: 0 !important;
1203
+ overflow: hidden !important;
1087
1204
  }
1088
1205
 
1089
1206
  .codelab.panel-maximized .codelab-editor-row,
@@ -1130,10 +1247,10 @@ code-lab,
1130
1247
  .codelab-explorer {
1131
1248
  display: flex;
1132
1249
  flex-direction: column;
1133
- width: var(--cl-explorer-width, 220px);
1250
+ width: var(--cl-explorer-width, 240px);
1134
1251
  min-width: 160px;
1135
1252
  max-width: 520px;
1136
- flex: 0 0 var(--cl-explorer-width, 220px);
1253
+ flex: 0 0 var(--cl-explorer-width, 240px);
1137
1254
  height: 100%;
1138
1255
  min-height: 0;
1139
1256
  background: var(--cl-bg-elevated);
@@ -1141,6 +1258,7 @@ code-lab,
1141
1258
  overflow: hidden;
1142
1259
  user-select: none;
1143
1260
  order: 4;
1261
+ font-family: var(--cl-font-sans);
1144
1262
  }
1145
1263
 
1146
1264
  .codelab-sidebar__view {
@@ -1159,10 +1277,10 @@ code-lab,
1159
1277
  flex: 1 1 auto;
1160
1278
  min-height: 0;
1161
1279
  overflow-y: auto;
1162
- padding: 8px 6px;
1280
+ padding: 2px 0;
1163
1281
  display: flex;
1164
1282
  flex-direction: column;
1165
- gap: 2px;
1283
+ gap: 0;
1166
1284
  }
1167
1285
 
1168
1286
  .codelab-explorer__header {
@@ -1170,12 +1288,12 @@ code-lab,
1170
1288
  align-items: center;
1171
1289
  justify-content: space-between;
1172
1290
  height: 35px;
1173
- padding: 0 12px;
1174
- font-family: var(--cl-font-mono);
1175
- font-size: 10.5px;
1291
+ padding: 0 8px 0 12px;
1292
+ font-family: var(--cl-font-sans);
1293
+ font-size: 11px;
1176
1294
  font-weight: 600;
1177
1295
  text-transform: uppercase;
1178
- letter-spacing: 0.06em;
1296
+ letter-spacing: 0.04em;
1179
1297
  color: var(--cl-fg-muted);
1180
1298
  border-bottom: 1px solid var(--cl-border);
1181
1299
  flex-shrink: 0;
@@ -1184,18 +1302,20 @@ code-lab,
1184
1302
  .codelab-file-item {
1185
1303
  display: flex;
1186
1304
  align-items: center;
1187
- gap: 7px;
1305
+ gap: 6px;
1188
1306
  width: 100%;
1189
- padding: 6px 9px;
1190
- border-radius: 5px;
1191
- border: 1px solid transparent;
1307
+ min-height: 22px;
1308
+ padding: 2px 10px 2px 14px;
1309
+ border-radius: 0;
1310
+ border: none;
1192
1311
  background: transparent;
1193
- font-family: var(--cl-font-mono);
1194
- font-size: 12px;
1195
- color: var(--cl-fg-muted);
1312
+ font-family: var(--cl-font-sans);
1313
+ font-size: 13px;
1314
+ line-height: 18px;
1315
+ color: var(--cl-fg);
1196
1316
  text-align: left;
1197
1317
  cursor: pointer;
1198
- transition: background 100ms ease, color 100ms ease, border-color 100ms ease;
1318
+ transition: background 80ms ease, color 80ms ease;
1199
1319
  }
1200
1320
 
1201
1321
  .codelab-file-item:hover {
@@ -1204,66 +1324,87 @@ code-lab,
1204
1324
  }
1205
1325
 
1206
1326
  .codelab-file-item.active {
1207
- background: var(--cl-bg-hover);
1208
- border-color: var(--cl-border-strong);
1209
- color: var(--cl-fg);
1210
- font-weight: 600;
1327
+ background: var(--cl-list-active);
1328
+ color: var(--cl-list-active-fg);
1329
+ font-weight: 500;
1330
+ }
1331
+
1332
+ .codelab-file-item.active .codelab-file-icon,
1333
+ .codelab-file-item.active .codelab-file-badge {
1334
+ color: var(--cl-list-active-fg);
1211
1335
  }
1212
1336
 
1213
1337
  .codelab-file-badge {
1214
1338
  margin-left: auto;
1215
- font-size: 9.5px;
1216
- padding: 1px 5px;
1217
- border-radius: 3px;
1218
- background: var(--cl-bg-panel);
1339
+ font-family: var(--cl-font-sans);
1340
+ font-size: 11px;
1341
+ font-weight: 600;
1342
+ padding: 0 4px;
1343
+ border-radius: 2px;
1344
+ background: transparent;
1219
1345
  color: var(--cl-fg-muted);
1220
- border: 1px solid var(--cl-border-subtle);
1346
+ border: none;
1347
+ }
1348
+
1349
+ .codelab-file-git {
1350
+ margin-left: auto;
1351
+ font-family: var(--cl-font-sans);
1352
+ font-size: 11px;
1353
+ font-weight: 600;
1354
+ padding-left: 6px;
1355
+ flex-shrink: 0;
1221
1356
  }
1222
1357
 
1358
+ .codelab-file-git--M { color: var(--cl-git-modified, #e2c08d); }
1359
+ .codelab-file-git--U,
1360
+ .codelab-file-git--A { color: var(--cl-git-added, #73c991); }
1361
+ .codelab-file-git--D { color: var(--cl-git-deleted, #c74e39); text-decoration: line-through; }
1362
+
1223
1363
  .codelab-explorer__actions {
1224
1364
  display: inline-flex;
1225
1365
  align-items: center;
1226
- gap: 3px;
1366
+ gap: 2px;
1227
1367
  margin-left: auto;
1228
- margin-right: 8px;
1368
+ margin-right: 2px;
1229
1369
  }
1230
1370
 
1231
1371
  .codelab-explorer__btn {
1232
1372
  display: inline-flex;
1233
1373
  align-items: center;
1234
1374
  justify-content: center;
1235
- width: 20px;
1236
- height: 20px;
1237
- border-radius: 4px;
1238
- border: 1px solid transparent;
1375
+ width: 22px;
1376
+ height: 22px;
1377
+ border-radius: 3px;
1378
+ border: none;
1239
1379
  background: transparent;
1240
1380
  color: var(--cl-fg-muted);
1241
1381
  cursor: pointer;
1242
1382
  padding: 0;
1243
- transition: all 120ms ease;
1383
+ transition: background 80ms ease, color 80ms ease;
1244
1384
  }
1245
1385
 
1246
1386
  .codelab-explorer__btn:hover {
1247
1387
  background: var(--cl-bg-hover);
1248
1388
  color: var(--cl-fg);
1249
- border-color: var(--cl-border);
1250
1389
  }
1251
1390
 
1252
1391
  .codelab-folder-item {
1253
1392
  display: flex;
1254
1393
  align-items: center;
1255
- gap: 6px;
1394
+ gap: 4px;
1256
1395
  width: 100%;
1257
- padding: 5px 8px;
1258
- border-radius: 5px;
1259
- border: 1px solid transparent;
1396
+ min-height: 22px;
1397
+ padding: 2px 8px;
1398
+ border-radius: 0;
1399
+ border: none;
1260
1400
  background: transparent;
1261
- font-family: var(--cl-font-mono);
1262
- font-size: 12px;
1401
+ font-family: var(--cl-font-sans);
1402
+ font-size: 13px;
1403
+ line-height: 18px;
1263
1404
  color: var(--cl-fg);
1264
1405
  text-align: left;
1265
1406
  cursor: pointer;
1266
- transition: background 100ms ease, border-color 100ms ease;
1407
+ transition: background 80ms ease;
1267
1408
  position: relative;
1268
1409
  }
1269
1410
 
@@ -1273,8 +1414,8 @@ code-lab,
1273
1414
 
1274
1415
  .codelab-folder-item.drag-over {
1275
1416
  background: var(--cl-bg-hover);
1276
- border-color: var(--cl-accent);
1277
- outline: 1px dashed var(--cl-accent);
1417
+ outline: 1px dashed var(--cl-focus-border);
1418
+ outline-offset: -1px;
1278
1419
  }
1279
1420
 
1280
1421
  .codelab-chevron {
@@ -1286,7 +1427,7 @@ code-lab,
1286
1427
  padding: 0;
1287
1428
  border: none;
1288
1429
  background: transparent;
1289
- color: var(--cl-fg-faint);
1430
+ color: var(--cl-fg-muted);
1290
1431
  cursor: pointer;
1291
1432
  flex-shrink: 0;
1292
1433
  border-radius: 3px;
@@ -1294,7 +1435,6 @@ code-lab,
1294
1435
 
1295
1436
  .codelab-chevron:hover {
1296
1437
  color: var(--cl-fg);
1297
- background: var(--cl-bg-panel);
1298
1438
  }
1299
1439
 
1300
1440
  .codelab-folder-icon {
@@ -1309,7 +1449,7 @@ code-lab,
1309
1449
  overflow: hidden;
1310
1450
  text-overflow: ellipsis;
1311
1451
  white-space: nowrap;
1312
- font-weight: 500;
1452
+ font-weight: 400;
1313
1453
  }
1314
1454
 
1315
1455
  .codelab-node-actions {
@@ -1319,7 +1459,8 @@ code-lab,
1319
1459
  margin-left: auto;
1320
1460
  }
1321
1461
 
1322
- .codelab-folder-item:hover .codelab-node-actions {
1462
+ .codelab-folder-item:hover .codelab-node-actions,
1463
+ .codelab-file-item:hover .codelab-node-actions {
1323
1464
  display: inline-flex;
1324
1465
  }
1325
1466
 
@@ -1331,22 +1472,24 @@ code-lab,
1331
1472
  height: 18px;
1332
1473
  padding: 0;
1333
1474
  border-radius: 3px;
1334
- border: 1px solid transparent;
1475
+ border: none;
1335
1476
  background: transparent;
1336
1477
  color: var(--cl-fg-muted);
1337
1478
  cursor: pointer;
1338
1479
  }
1339
1480
 
1340
1481
  .codelab-node-action:hover {
1341
- background: var(--cl-bg-panel);
1482
+ background: var(--cl-bg-active);
1342
1483
  color: var(--cl-fg);
1343
- border-color: var(--cl-border);
1344
1484
  }
1345
1485
 
1346
1486
  .codelab-file-icon {
1347
1487
  display: inline-flex;
1348
1488
  align-items: center;
1349
- color: var(--cl-fg-faint);
1489
+ justify-content: center;
1490
+ width: 16px;
1491
+ height: 16px;
1492
+ color: var(--cl-fg-muted);
1350
1493
  flex-shrink: 0;
1351
1494
  }
1352
1495
 
@@ -1361,7 +1504,7 @@ code-lab,
1361
1504
  display: flex;
1362
1505
  align-items: center;
1363
1506
  gap: 6px;
1364
- padding: 3px 8px;
1507
+ padding: 2px 8px;
1365
1508
  }
1366
1509
 
1367
1510
  .codelab-tree-create-icon {
@@ -1373,19 +1516,19 @@ code-lab,
1373
1516
 
1374
1517
  .codelab-tree-input {
1375
1518
  flex: 1;
1376
- height: 24px;
1519
+ height: 22px;
1377
1520
  padding: 0 6px;
1378
- border-radius: var(--cl-radius-sm);
1379
- border: 1px solid var(--cl-border-strong);
1380
- background: var(--cl-bg);
1521
+ border-radius: var(--cl-radius-sm, 4px);
1522
+ border: 1px solid var(--cl-focus-border);
1523
+ background: var(--cl-input-bg);
1381
1524
  color: var(--cl-fg);
1382
- font-family: var(--cl-font-mono);
1383
- font-size: 11.5px;
1525
+ font-family: var(--cl-font-sans);
1526
+ font-size: var(--cl-text-xs, 0.75rem);
1384
1527
  outline: none;
1385
1528
  }
1386
1529
 
1387
1530
  .codelab-tree-input:focus {
1388
- border-color: var(--cl-accent);
1531
+ border-color: var(--cl-focus-border);
1389
1532
  }
1390
1533
 
1391
1534
  /* Editor Column */
@@ -1398,7 +1541,7 @@ code-lab,
1398
1541
  background: var(--cl-bg);
1399
1542
  }
1400
1543
 
1401
- /* File Tab Bar (35px height, WAI-ARIA tablist + sibling actions) */
1544
+ /* File Tab Bar (35px VS Code height, WAI-ARIA tablist + sibling actions) */
1402
1545
  .codelab-tabs-bar {
1403
1546
  display: flex;
1404
1547
  align-items: center;
@@ -1424,8 +1567,8 @@ code-lab,
1424
1567
  .codelab-tabs-actions {
1425
1568
  display: flex;
1426
1569
  align-items: center;
1427
- gap: 4px;
1428
- padding: 0 8px;
1570
+ gap: 2px;
1571
+ padding: 0 6px;
1429
1572
  height: 100%;
1430
1573
  flex-shrink: 0;
1431
1574
  background: var(--cl-bg-elevated);
@@ -1439,11 +1582,12 @@ code-lab,
1439
1582
  .codelab-tab {
1440
1583
  display: inline-flex;
1441
1584
  align-items: center;
1442
- gap: 7px;
1585
+ gap: 6px;
1443
1586
  height: 100%;
1444
- padding: 0 12px;
1445
- font-family: var(--cl-font-mono);
1446
- font-size: 12px;
1587
+ padding: 0 10px 0 12px;
1588
+ font-family: var(--cl-font-sans);
1589
+ font-size: 13px;
1590
+ font-weight: 400;
1447
1591
  color: var(--cl-fg-muted);
1448
1592
  border: none;
1449
1593
  border-right: 1px solid var(--cl-border);
@@ -1452,59 +1596,51 @@ code-lab,
1452
1596
  white-space: nowrap;
1453
1597
  position: relative;
1454
1598
  user-select: none;
1455
- transition: background 100ms ease, color 100ms ease;
1599
+ transition: background 80ms ease, color 80ms ease;
1600
+ }
1601
+
1602
+ .codelab-tab--preview .codelab-tab__label {
1603
+ font-style: italic;
1456
1604
  }
1457
1605
 
1458
1606
  .codelab-tab:hover {
1459
1607
  color: var(--cl-fg);
1460
- background: var(--cl-bg-hover);
1608
+ background: var(--cl-bg);
1461
1609
  }
1462
1610
 
1463
1611
  .codelab-tab.active,
1464
1612
  .codelab-tab[aria-selected="true"] {
1465
1613
  color: var(--cl-fg);
1466
1614
  background: var(--cl-bg);
1467
- font-weight: 600;
1468
- box-shadow: inset 0 2px 0 var(--cl-accent);
1615
+ font-weight: 500;
1616
+ box-shadow: inset 0 1px 0 var(--cl-fg);
1469
1617
  }
1470
1618
 
1471
1619
  .codelab-tab__ext {
1472
1620
  display: inline-flex;
1473
1621
  align-items: center;
1474
1622
  justify-content: center;
1475
- font-family: var(--cl-font-mono);
1476
- font-size: 9.5px;
1623
+ width: 16px;
1624
+ height: 16px;
1625
+ font-family: var(--cl-font-sans);
1626
+ font-size: 10px;
1477
1627
  font-weight: 700;
1478
- padding: 1px 4px;
1479
- border-radius: 3px;
1480
- letter-spacing: -0.02em;
1481
- }
1482
-
1483
- .codelab-tab__ext--js {
1484
- background: var(--cl-amber-muted);
1485
- color: var(--cl-amber);
1486
- }
1487
-
1488
- .codelab-tab__ext--ts {
1489
- background: var(--cl-blue-muted);
1490
- color: var(--cl-blue);
1491
- }
1492
-
1493
- .codelab-tab__ext--json {
1494
- background: var(--cl-purple-muted);
1495
- color: var(--cl-purple);
1628
+ padding: 0;
1629
+ border-radius: 2px;
1630
+ background: transparent;
1631
+ flex-shrink: 0;
1496
1632
  }
1497
1633
 
1498
- .codelab-tab__ext--md {
1499
- background: var(--cl-bg-panel);
1500
- color: var(--cl-fg-muted);
1501
- }
1634
+ .codelab-tab__ext--js { color: #f1dd3f; }
1635
+ .codelab-tab__ext--ts { color: #3178c6; }
1636
+ .codelab-tab__ext--json { color: #cbcb41; }
1637
+ .codelab-tab__ext--md { color: #519aba; }
1502
1638
 
1503
1639
  .codelab-tab__dot {
1504
- width: 6px;
1505
- height: 6px;
1640
+ width: 7px;
1641
+ height: 7px;
1506
1642
  border-radius: 50%;
1507
- background: var(--cl-blue);
1643
+ background: var(--cl-fg-muted);
1508
1644
  }
1509
1645
 
1510
1646
  .codelab-tab__close {
@@ -1513,15 +1649,21 @@ code-lab,
1513
1649
  justify-content: center;
1514
1650
  width: 18px;
1515
1651
  height: 18px;
1516
- border-radius: var(--cl-radius-sm);
1517
- font-size: 13px;
1652
+ border-radius: 3px;
1653
+ font-size: 14px;
1518
1654
  line-height: 1;
1519
- color: var(--cl-fg-faint);
1520
- margin-left: 4px;
1655
+ color: var(--cl-fg-muted);
1656
+ margin-left: 2px;
1521
1657
  cursor: pointer;
1522
1658
  background: transparent;
1523
1659
  border: none;
1524
- transition: all 120ms ease;
1660
+ opacity: 0.75;
1661
+ transition: background 80ms ease, color 80ms ease, opacity 80ms ease;
1662
+ }
1663
+
1664
+ .codelab-tab:hover .codelab-tab__close,
1665
+ .codelab-tab.active .codelab-tab__close {
1666
+ opacity: 1;
1525
1667
  }
1526
1668
 
1527
1669
  .codelab-tab__close:hover {
@@ -1933,22 +2075,24 @@ code-lab,
1933
2075
  padding: 1px 6px;
1934
2076
  }
1935
2077
 
1936
- /* ── Bottom Drawer: Tests, Terminal REPL, Virtual Disk & Network ─────────── */
2078
+ /* ── Bottom Panel: PROBLEMS, OUTPUT, TERMINAL, PORTS, TESTS ──────────────── */
1937
2079
  .codelab-drawer,
1938
2080
  .codelab-bottom {
1939
2081
  display: flex;
1940
2082
  flex-direction: column;
1941
2083
  height: var(--cl-drawer-height, 220px);
1942
- min-height: 110px;
1943
- max-height: 70%;
2084
+ min-height: 80px;
2085
+ max-height: 78%;
1944
2086
  background: var(--cl-bg-elevated);
2087
+ border-top: 1px solid var(--cl-border);
1945
2088
  flex-shrink: 0;
1946
2089
  }
1947
2090
 
1948
2091
  .codelab-drawer.is-minimized,
1949
2092
  .codelab-bottom.is-minimized {
1950
- height: 36px !important;
1951
- min-height: 36px !important;
2093
+ display: none !important;
2094
+ height: 0 !important;
2095
+ min-height: 0 !important;
1952
2096
  }
1953
2097
 
1954
2098
  .codelab-drawer__bar {
@@ -1956,31 +2100,26 @@ code-lab,
1956
2100
  align-items: center;
1957
2101
  justify-content: space-between;
1958
2102
  gap: 8px;
1959
- height: 36px;
1960
- padding: 0 14px;
1961
- background: var(--cl-bg);
2103
+ height: 35px;
2104
+ padding: 0 8px 0 12px;
2105
+ background: var(--cl-bg-elevated);
1962
2106
  border-bottom: 1px solid var(--cl-border);
1963
2107
  flex-shrink: 0;
1964
2108
  user-select: none;
1965
2109
  min-width: 0;
1966
2110
  }
1967
2111
 
1968
- /* Keep the Clear / minimize controls pinned while the tab strip scrolls. */
1969
- .codelab-drawer__bar > div:last-child {
1970
- flex-shrink: 0;
1971
- }
1972
-
1973
- /* On narrow/guided layouts, drop the tab pill badges so labels never wrap. */
1974
- @media (max-width: 720px) {
1975
- .codelab-drawer__tab .codelab-drawer__pill {
1976
- display: none;
1977
- }
2112
+ /* Keep the right-side Split / + / Clear / Maximize / Close controls pinned. */
2113
+ .codelab-drawer__bar > div:last-child,
2114
+ .codelab-drawer__actions {
2115
+ flex: 0 0 auto;
2116
+ margin-left: auto;
1978
2117
  }
1979
2118
 
1980
2119
  .codelab-drawer__tabs {
1981
2120
  display: flex;
1982
2121
  align-items: center;
1983
- gap: 4px;
2122
+ gap: 2px;
1984
2123
  height: 100%;
1985
2124
  flex: 1 1 auto;
1986
2125
  flex-wrap: nowrap;
@@ -1998,38 +2137,51 @@ code-lab,
1998
2137
  .codelab-drawer__tab {
1999
2138
  display: inline-flex;
2000
2139
  align-items: center;
2001
- gap: 6px;
2140
+ gap: 5px;
2002
2141
  height: 100%;
2003
- padding: 0 11px;
2004
- font-size: 12px;
2142
+ padding: 0 10px;
2143
+ font-family: var(--cl-font-sans);
2144
+ font-size: 11px;
2005
2145
  font-weight: 500;
2146
+ text-transform: uppercase;
2147
+ letter-spacing: 0.03em;
2006
2148
  color: var(--cl-fg-muted);
2007
2149
  background: transparent;
2008
2150
  border: none;
2009
2151
  cursor: pointer;
2010
- transition: all 100ms ease;
2152
+ transition: color 80ms ease;
2011
2153
  flex-shrink: 0;
2012
2154
  white-space: nowrap;
2155
+ position: relative;
2013
2156
  }
2014
2157
 
2015
2158
  .codelab-drawer__tab:hover {
2016
2159
  color: var(--cl-fg);
2017
2160
  }
2018
2161
 
2019
- .codelab-drawer__tab.active {
2162
+ .codelab-drawer__tab.active,
2163
+ .codelab-drawer__tab[aria-selected="true"] {
2020
2164
  color: var(--cl-fg);
2021
- box-shadow: inset 0 -2px 0 var(--cl-fg);
2022
- font-weight: 600;
2165
+ box-shadow: inset 0 -1px 0 var(--cl-fg);
2166
+ font-weight: 500;
2023
2167
  }
2024
2168
 
2025
2169
  .codelab-drawer__pill {
2026
- font-family: var(--cl-font-mono);
2170
+ font-family: var(--cl-font-sans);
2027
2171
  font-variant-numeric: tabular-nums;
2028
- font-size: 10.5px;
2029
- padding: 1px 7px;
2172
+ font-size: 10px;
2173
+ font-weight: 600;
2174
+ text-transform: none;
2175
+ letter-spacing: 0;
2176
+ padding: 1px 6px;
2030
2177
  border-radius: 999px;
2031
- background: var(--cl-bg-hover);
2032
- color: var(--cl-fg-muted);
2178
+ background: var(--cl-bg-active);
2179
+ color: var(--cl-fg);
2180
+ }
2181
+
2182
+ .codelab-drawer__pill:empty,
2183
+ .codelab-drawer__pill[data-empty="true"] {
2184
+ display: none;
2033
2185
  }
2034
2186
 
2035
2187
  .codelab-drawer__pill.pass {
@@ -2047,9 +2199,17 @@ code-lab,
2047
2199
  flex: 1;
2048
2200
  min-height: 0;
2049
2201
  overflow-y: auto;
2050
- padding: 14px 18px;
2202
+ padding: 10px 14px;
2051
2203
  font-family: var(--cl-font-mono);
2052
2204
  font-size: 12.5px;
2205
+ background: var(--cl-bg);
2206
+ }
2207
+
2208
+ .codelab-drawer__body.is-flush-panel {
2209
+ padding: 0;
2210
+ overflow: hidden;
2211
+ display: flex;
2212
+ flex-direction: column;
2053
2213
  }
2054
2214
 
2055
2215
  /* Test Results Grid (Zero side-stripes, crisp 1px semantic borders) */
@@ -2345,21 +2505,21 @@ code-lab,
2345
2505
  white-space: pre;
2346
2506
  }
2347
2507
 
2348
- /* ── Sleek 24px IDE Status Bar Footer (.codelab-statusbar) ───────────────── */
2508
+ /* ── 24px VS Code Status Bar Footer (.codelab-statusbar) ───────────────── */
2349
2509
  .codelab-statusbar {
2350
2510
  display: flex;
2351
2511
  align-items: center;
2352
2512
  justify-content: space-between;
2353
2513
  height: 24px;
2354
- padding: 0 10px;
2514
+ padding: 0 8px;
2355
2515
  background: var(--cl-bg-elevated);
2356
2516
  border-top: 1px solid var(--cl-border);
2357
- font-family: var(--cl-font-mono);
2358
- font-size: 11px;
2517
+ font-family: var(--cl-font-sans);
2518
+ font-size: 12px;
2359
2519
  color: var(--cl-fg-muted);
2360
2520
  user-select: none;
2361
2521
  flex-shrink: 0;
2362
- gap: 8px;
2522
+ gap: 6px;
2363
2523
  }
2364
2524
 
2365
2525
  .codelab.statusbar-hidden .codelab-statusbar,
@@ -2371,7 +2531,7 @@ code-lab,
2371
2531
  .codelab-statusbar__right {
2372
2532
  display: flex;
2373
2533
  align-items: center;
2374
- gap: 8px;
2534
+ gap: 4px;
2375
2535
  min-width: 0;
2376
2536
  }
2377
2537
 
@@ -2379,6 +2539,8 @@ code-lab,
2379
2539
  display: inline-flex;
2380
2540
  align-items: center;
2381
2541
  gap: 5px;
2542
+ padding: 0 5px;
2543
+ height: 22px;
2382
2544
  white-space: nowrap;
2383
2545
  font-variant-numeric: tabular-nums;
2384
2546
  }
@@ -2387,18 +2549,18 @@ code-lab,
2387
2549
  display: inline-flex;
2388
2550
  align-items: center;
2389
2551
  gap: 5px;
2390
- height: 20px;
2552
+ height: 22px;
2391
2553
  padding: 0 6px;
2392
2554
  border: none;
2393
- border-radius: 3px;
2555
+ border-radius: 0;
2394
2556
  background: transparent;
2395
2557
  color: var(--cl-fg-muted);
2396
- font-family: var(--cl-font-mono);
2397
- font-size: 11px;
2558
+ font-family: var(--cl-font-sans);
2559
+ font-size: 12px;
2398
2560
  font-variant-numeric: tabular-nums;
2399
2561
  cursor: pointer;
2400
2562
  white-space: nowrap;
2401
- transition: background 100ms ease, color 100ms ease;
2563
+ transition: background 80ms ease, color 80ms ease;
2402
2564
  }
2403
2565
 
2404
2566
  .codelab-statusbar__btn:hover,
@@ -2407,9 +2569,23 @@ code-lab,
2407
2569
  color: var(--cl-fg);
2408
2570
  }
2409
2571
 
2572
+ .codelab-statusbar__remote {
2573
+ display: inline-flex;
2574
+ align-items: center;
2575
+ gap: 4px;
2576
+ height: 22px;
2577
+ padding: 0 8px;
2578
+ margin-left: -8px;
2579
+ background: var(--cl-bg-active);
2580
+ color: var(--cl-fg);
2581
+ border-right: 1px solid var(--cl-border);
2582
+ font-size: var(--cl-text-2xs, 0.6875rem);
2583
+ font-weight: 500;
2584
+ }
2585
+
2410
2586
  .codelab-statusbar__sep {
2411
2587
  width: 1px;
2412
- height: 12px;
2588
+ height: 11px;
2413
2589
  background: var(--cl-border);
2414
2590
  }
2415
2591
 
@@ -2449,8 +2625,7 @@ code-lab,
2449
2625
  .codelab-modal-backdrop {
2450
2626
  position: absolute;
2451
2627
  inset: 0;
2452
- background: rgba(8, 10, 15, 0.72);
2453
- backdrop-filter: blur(4px);
2628
+ background: rgba(0, 0, 0, 0.52);
2454
2629
  z-index: 50;
2455
2630
  display: flex;
2456
2631
  align-items: center;
@@ -2460,35 +2635,37 @@ code-lab,
2460
2635
 
2461
2636
  .codelab-modal {
2462
2637
  width: 100%;
2463
- max-width: 860px;
2638
+ max-width: 640px;
2464
2639
  max-height: 85%;
2465
2640
  background: var(--cl-bg-elevated);
2466
2641
  border: 1px solid var(--cl-border-strong);
2467
- border-radius: 10px;
2642
+ border-radius: var(--cl-radius-md, 5px);
2468
2643
  display: flex;
2469
2644
  flex-direction: column;
2470
2645
  overflow: hidden;
2471
- box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
2646
+ box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52);
2647
+ font-family: var(--cl-font-sans);
2472
2648
  }
2473
2649
 
2474
2650
  .codelab-modal__header {
2475
2651
  display: flex;
2476
2652
  align-items: center;
2477
2653
  justify-content: space-between;
2478
- padding: 12px 18px;
2479
- background: var(--cl-bg);
2654
+ padding: 10px 16px;
2655
+ background: var(--cl-bg-elevated);
2480
2656
  border-bottom: 1px solid var(--cl-border);
2657
+ font-family: var(--cl-font-sans);
2481
2658
  font-weight: 600;
2482
- font-size: 13.5px;
2659
+ font-size: 13px;
2483
2660
  }
2484
2661
 
2485
2662
  .codelab-modal__body {
2486
2663
  flex: 1;
2487
2664
  overflow-y: auto;
2488
- padding: 18px;
2489
- font-family: var(--cl-font-mono);
2490
- font-size: 12px;
2491
- line-height: 1.6;
2665
+ padding: 16px;
2666
+ font-family: var(--cl-font-sans);
2667
+ font-size: 12.5px;
2668
+ line-height: 1.55;
2492
2669
  }
2493
2670
 
2494
2671
  .codelab-pkg-grid {
@@ -2502,34 +2679,35 @@ code-lab,
2502
2679
  display: flex;
2503
2680
  align-items: center;
2504
2681
  justify-content: space-between;
2505
- padding: 8px 11px;
2506
- border-radius: 6px;
2682
+ padding: 7px 10px;
2683
+ border-radius: var(--cl-radius-sm, 3px);
2507
2684
  background: var(--cl-bg);
2508
2685
  border: 1px solid var(--cl-border);
2509
2686
  color: var(--cl-fg);
2510
2687
  font-family: var(--cl-font-mono);
2511
2688
  font-size: 11.5px;
2512
2689
  cursor: pointer;
2513
- transition: all 120ms ease;
2690
+ transition: all 100ms ease;
2514
2691
  }
2515
2692
 
2516
2693
  .codelab-pkg-chip:hover {
2517
- border-color: var(--cl-blue);
2518
- background: var(--cl-blue-muted);
2694
+ border-color: var(--cl-border-strong);
2695
+ background: var(--cl-bg-hover);
2519
2696
  }
2520
2697
 
2521
- /* ── Editor Breadcrumbs Bar (Geist Monochrome) ─────────────────────────── */
2698
+ /* ── 22px VS Code Editor Breadcrumbs Bar ─────────────────────────────────── */
2522
2699
  .codelab-breadcrumbs {
2523
2700
  display: flex;
2524
2701
  align-items: center;
2525
2702
  justify-content: space-between;
2526
- gap: 8px;
2527
- min-height: 26px;
2703
+ gap: 6px;
2704
+ min-height: 22px;
2705
+ height: 22px;
2528
2706
  padding: 0 12px;
2529
- background: var(--cl-bg-elevated);
2530
- border-bottom: 1px solid var(--cl-border);
2531
- font-family: var(--cl-font-mono);
2532
- font-size: 11.5px;
2707
+ background: var(--cl-bg);
2708
+ border-bottom: 1px solid var(--cl-border-subtle);
2709
+ font-family: var(--cl-font-sans);
2710
+ font-size: 12px;
2533
2711
  color: var(--cl-fg-muted);
2534
2712
  user-select: none;
2535
2713
  overflow: visible;
@@ -2539,19 +2717,19 @@ code-lab,
2539
2717
  display: none;
2540
2718
  align-items: center;
2541
2719
  gap: 5px;
2542
- height: 20px;
2543
- padding: 0 7px;
2720
+ height: 18px;
2721
+ padding: 0 6px;
2544
2722
  font-size: 11px;
2545
2723
  font-family: var(--cl-font-sans);
2546
2724
  font-weight: 500;
2547
2725
  color: var(--cl-fg-muted);
2548
- background: var(--cl-bg);
2726
+ background: var(--cl-bg-elevated);
2549
2727
  border: 1px solid var(--cl-border);
2550
- border-radius: 4px;
2728
+ border-radius: 3px;
2551
2729
  cursor: pointer;
2552
2730
  flex-shrink: 0;
2553
2731
  margin-right: 6px;
2554
- transition: all 120ms ease;
2732
+ transition: all 100ms ease;
2555
2733
  }
2556
2734
 
2557
2735
  .codelab-guide__expand-btn:hover {
@@ -2569,7 +2747,7 @@ code-lab,
2569
2747
  .codelab-breadcrumbs__left {
2570
2748
  display: inline-flex;
2571
2749
  align-items: center;
2572
- gap: 8px;
2750
+ gap: 4px;
2573
2751
  min-width: 0;
2574
2752
  flex: 1 1 auto;
2575
2753
  }
@@ -2577,7 +2755,7 @@ code-lab,
2577
2755
  .codelab-breadcrumbs__path {
2578
2756
  display: inline-flex;
2579
2757
  align-items: center;
2580
- gap: 4px;
2758
+ gap: 2px;
2581
2759
  min-width: 0;
2582
2760
  white-space: nowrap;
2583
2761
  overflow-x: auto;
@@ -2596,15 +2774,15 @@ code-lab,
2596
2774
  display: inline-flex;
2597
2775
  align-items: center;
2598
2776
  gap: 4px;
2599
- padding: 2px 5px;
2777
+ padding: 1px 4px;
2600
2778
  border: none;
2601
- border-radius: 4px;
2779
+ border-radius: 3px;
2602
2780
  background: transparent;
2603
2781
  color: var(--cl-fg-muted);
2604
- font-family: var(--cl-font-mono);
2605
- font-size: 11.5px;
2782
+ font-family: var(--cl-font-sans);
2783
+ font-size: 12px;
2606
2784
  cursor: pointer;
2607
- transition: background 120ms ease, color 120ms ease;
2785
+ transition: background 80ms ease, color 80ms ease;
2608
2786
  }
2609
2787
 
2610
2788
  .codelab-breadcrumbs__item:hover {
@@ -2613,19 +2791,19 @@ code-lab,
2613
2791
  }
2614
2792
 
2615
2793
  .codelab-breadcrumbs__item--root {
2616
- color: var(--cl-fg-subtle);
2794
+ color: var(--cl-fg-muted);
2617
2795
  cursor: default;
2618
2796
  }
2619
2797
 
2620
2798
  .codelab-breadcrumbs__item--file {
2621
2799
  color: var(--cl-fg);
2622
- font-weight: 500;
2800
+ font-weight: 400;
2623
2801
  }
2624
2802
 
2625
2803
  .codelab-breadcrumbs__item--symbol {
2626
2804
  color: var(--cl-fg-muted);
2627
- background: var(--cl-bg-panel);
2628
- border: 1px solid var(--cl-border);
2805
+ background: transparent;
2806
+ border: none;
2629
2807
  cursor: default;
2630
2808
  }
2631
2809
 
@@ -3910,41 +4088,39 @@ code-lab,
3910
4088
  border-bottom: 1px solid var(--cl-border-subtle);
3911
4089
  }
3912
4090
 
3913
- /* ── GitHub Callout Alert Boxes ──────────────────────────────────────────── */
4091
+ /* ── GitHub Callout Alert Boxes (1px Semantic Hairline — Zero Side-Stripes) ── */
3914
4092
  .codelab-callout {
3915
4093
  margin: 16px 0;
3916
4094
  padding: 12px 14px;
3917
4095
  border-radius: var(--cl-radius-md);
3918
4096
  background: var(--cl-bg-elevated);
3919
4097
  border: 1px solid var(--cl-border);
3920
- border-left-width: 3.5px;
3921
- border-left-style: solid;
3922
4098
  position: relative;
3923
4099
  box-sizing: border-box;
3924
4100
  }
3925
4101
 
3926
4102
  .codelab-callout--note {
3927
- border-left-color: var(--cl-callout-note);
4103
+ border-color: color-mix(in srgb, var(--cl-callout-note) 32%, var(--cl-border));
3928
4104
  background: var(--cl-callout-note-bg);
3929
4105
  }
3930
4106
 
3931
4107
  .codelab-callout--tip {
3932
- border-left-color: var(--cl-callout-tip);
4108
+ border-color: color-mix(in srgb, var(--cl-callout-tip) 35%, var(--cl-border));
3933
4109
  background: var(--cl-callout-tip-bg);
3934
4110
  }
3935
4111
 
3936
4112
  .codelab-callout--important {
3937
- border-left-color: var(--cl-callout-important);
4113
+ border-color: color-mix(in srgb, var(--cl-callout-important) 35%, var(--cl-border));
3938
4114
  background: var(--cl-callout-important-bg);
3939
4115
  }
3940
4116
 
3941
4117
  .codelab-callout--warning {
3942
- border-left-color: var(--cl-callout-warning);
4118
+ border-color: color-mix(in srgb, var(--cl-callout-warning) 35%, var(--cl-border));
3943
4119
  background: var(--cl-callout-warning-bg);
3944
4120
  }
3945
4121
 
3946
4122
  .codelab-callout--caution {
3947
- border-left-color: var(--cl-callout-caution);
4123
+ border-color: color-mix(in srgb, var(--cl-callout-caution) 35%, var(--cl-border));
3948
4124
  background: var(--cl-callout-caution-bg);
3949
4125
  }
3950
4126
 
@@ -4012,11 +4188,11 @@ code-lab,
4012
4188
  .codelab-blockquote {
4013
4189
  margin: 16px 0;
4014
4190
  padding: 8px 14px;
4015
- border-left: 3px solid var(--cl-border-strong);
4191
+ box-shadow: inset 2px 0 0 var(--cl-border-strong);
4016
4192
  background: var(--cl-bg-elevated);
4017
4193
  border-radius: 0 var(--cl-radius-sm) var(--cl-radius-sm) 0;
4018
4194
  color: var(--cl-fg-muted);
4019
- font-size: 13px;
4195
+ font-size: var(--cl-text-sm, 0.8125rem);
4020
4196
  line-height: 1.6;
4021
4197
  font-style: italic;
4022
4198
  }
@@ -4882,22 +5058,22 @@ code-lab,
4882
5058
  padding: 1px 6px;
4883
5059
  border-radius: var(--cl-radius-sm);
4884
5060
  font-family: var(--cl-font-mono);
4885
- font-size: 11.5px;
5061
+ font-size: var(--cl-text-2xs, 0.6875rem);
4886
5062
  font-weight: 600;
4887
- background: color-mix(in srgb, var(--cl-accent, #3b82f6) 15%, transparent);
4888
- color: var(--cl-accent, #60a5fa);
5063
+ background: var(--cl-bg-active);
5064
+ color: var(--cl-fg);
4889
5065
  }
4890
5066
 
4891
5067
  .codelab-port-link {
4892
5068
  color: var(--cl-fg);
4893
5069
  font-family: var(--cl-font-mono);
4894
- font-size: 11.5px;
5070
+ font-size: var(--cl-text-xs, 0.75rem);
4895
5071
  text-decoration: none;
4896
5072
  }
4897
5073
 
4898
5074
  .codelab-port-link:hover {
4899
5075
  text-decoration: underline;
4900
- color: var(--cl-accent, #60a5fa);
5076
+ color: var(--cl-fg);
4901
5077
  }
4902
5078
 
4903
5079
  .codelab-port-status {
@@ -5187,11 +5363,11 @@ code-lab,
5187
5363
  color: var(--cl-fg);
5188
5364
  }
5189
5365
 
5190
- .codelab-method-get { color: var(--cl-blue, #60a5fa); }
5191
- .codelab-method-post { color: var(--cl-green, #4ade80); }
5366
+ .codelab-method-get { color: var(--cl-fg); }
5367
+ .codelab-method-post { color: var(--cl-green); }
5192
5368
  .codelab-method-put,
5193
- .codelab-method-patch { color: var(--cl-amber, #fbbf24); }
5194
- .codelab-method-delete { color: var(--cl-red, #f87171); }
5369
+ .codelab-method-patch { color: var(--cl-amber); }
5370
+ .codelab-method-delete { color: var(--cl-red); }
5195
5371
 
5196
5372
  .codelab-waterfall-cell {
5197
5373
  width: 140px;
@@ -5207,7 +5383,7 @@ code-lab,
5207
5383
 
5208
5384
  .codelab-waterfall-bar {
5209
5385
  height: 100%;
5210
- background: var(--cl-accent, #3b82f6);
5386
+ background: var(--cl-fg-muted);
5211
5387
  border-radius: 999px;
5212
5388
  }
5213
5389
 
@@ -5519,8 +5695,8 @@ code-lab,
5519
5695
  }
5520
5696
  .codelab-split-menu__item:hover,
5521
5697
  .codelab-split-menu__item:focus-visible {
5522
- background: var(--cl-accent, #38bdf8);
5523
- color: var(--cl-accent-fg, #06131f);
5698
+ background: var(--cl-list-active);
5699
+ color: var(--cl-list-active-fg);
5524
5700
  outline: none;
5525
5701
  }
5526
5702
 
@@ -5532,19 +5708,19 @@ code-lab,
5532
5708
  gap: 6px;
5533
5709
  padding: 3px 12px;
5534
5710
  min-width: 190px;
5535
- border-radius: var(--cl-radius, 6px);
5536
- background: var(--cl-bg-hover, rgba(128, 128, 128, 0.12));
5537
- border: 1px solid var(--cl-border, #3c3c3c);
5538
- color: var(--cl-fg-muted, #858585);
5539
- font-size: 11.5px;
5711
+ border-radius: var(--cl-radius-md, 6px);
5712
+ background: var(--cl-bg-panel);
5713
+ border: 1px solid var(--cl-border);
5714
+ color: var(--cl-fg-muted);
5715
+ font-size: var(--cl-text-xs, 0.75rem);
5540
5716
  cursor: pointer;
5541
5717
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
5542
5718
  }
5543
5719
  .codelab-cmd-trigger:hover,
5544
5720
  .codelab-cmd-trigger:focus-visible {
5545
- background: var(--cl-bg-active, rgba(128, 128, 128, 0.2));
5546
- color: var(--cl-fg, #cccccc);
5547
- border-color: var(--cl-accent, #38bdf8);
5721
+ background: var(--cl-bg-hover);
5722
+ color: var(--cl-fg);
5723
+ border-color: var(--cl-border-strong);
5548
5724
  outline: none;
5549
5725
  }
5550
5726
 
@@ -5552,16 +5728,18 @@ code-lab,
5552
5728
  .codelab-hud-pill {
5553
5729
  display: inline-flex;
5554
5730
  align-items: center;
5555
- gap: 8px;
5556
- padding: 2px 10px;
5557
- border-radius: 12px;
5558
- background: var(--cl-hud-bg, rgba(0, 122, 204, 0.15));
5559
- border: 1px solid var(--cl-hud-border, rgba(0, 122, 204, 0.35));
5560
- color: var(--cl-hud-fg, #4fc1ff);
5561
- font-family: var(--cl-font-mono, monospace);
5562
- font-size: 11px;
5731
+ gap: 6px;
5732
+ padding: 2px 8px;
5733
+ border-radius: var(--cl-radius-sm, 4px);
5734
+ background: var(--cl-bg-panel);
5735
+ border: 1px solid var(--cl-border);
5736
+ color: var(--cl-fg-muted);
5737
+ font-family: var(--cl-font-mono);
5738
+ font-variant-numeric: tabular-nums;
5739
+ font-size: var(--cl-text-2xs, 0.6875rem);
5563
5740
  font-weight: 500;
5564
- letter-spacing: 0.3px;
5741
+ white-space: nowrap;
5742
+ flex-shrink: 0;
5565
5743
  margin-left: auto;
5566
5744
  user-select: none;
5567
5745
  }
@@ -5569,6 +5747,7 @@ code-lab,
5569
5747
  display: inline-flex;
5570
5748
  align-items: center;
5571
5749
  gap: 4px;
5750
+ white-space: nowrap;
5572
5751
  }
5573
5752
 
5574
5753
  /* ── Stdin / Custom Input Panel ── */
@@ -5607,7 +5786,7 @@ code-lab,
5607
5786
  box-sizing: border-box;
5608
5787
  }
5609
5788
  .codelab-stdin-panel__textarea:focus {
5610
- border-color: var(--cl-accent, #007acc);
5789
+ border-color: var(--cl-focus-border);
5611
5790
  }
5612
5791
 
5613
5792
  /* ── Problems Drawer Tab ── */
@@ -5623,27 +5802,27 @@ code-lab,
5623
5802
  align-items: center;
5624
5803
  gap: 8px;
5625
5804
  padding: 5px 12px;
5626
- font-size: 12px;
5805
+ font-size: var(--cl-text-xs, 0.75rem);
5627
5806
  font-family: var(--cl-font-mono, monospace);
5628
5807
  cursor: pointer;
5629
- border-bottom: 1px solid rgba(255, 255, 255, 0.04);
5808
+ border-bottom: 1px solid var(--cl-border-subtle);
5630
5809
  }
5631
5810
  .codelab-problem-item:hover {
5632
- background: var(--cl-tree-hover, rgba(255, 255, 255, 0.06));
5811
+ background: var(--cl-bg-hover);
5633
5812
  }
5634
5813
  .codelab-problem-item--error {
5635
- color: #f14c4c;
5814
+ color: var(--cl-diag-error);
5636
5815
  }
5637
5816
  .codelab-problem-item--warning {
5638
- color: #cca700;
5817
+ color: var(--cl-diag-warning);
5639
5818
  }
5640
5819
  .codelab-problem-item--info {
5641
- color: #3794ff;
5820
+ color: var(--cl-diag-info);
5642
5821
  }
5643
5822
  .codelab-problem-item__location,
5644
5823
  .codelab-problem-item__loc {
5645
- color: var(--cl-fg-muted, #858585);
5646
- font-size: 11px;
5824
+ color: var(--cl-fg-muted);
5825
+ font-size: var(--cl-text-2xs, 0.6875rem);
5647
5826
  margin-left: auto;
5648
5827
  }
5649
5828
 
@@ -5651,21 +5830,21 @@ code-lab,
5651
5830
  .codelab-modal-input {
5652
5831
  flex: 1;
5653
5832
  padding: 6px 10px;
5654
- background: var(--cl-input-bg, #252526);
5655
- color: var(--cl-fg, #cccccc);
5656
- border: 1px solid var(--cl-border, #3c3c3c);
5657
- border-radius: var(--cl-radius, 4px);
5658
- font-family: var(--cl-font-mono, monospace);
5659
- font-size: 12px;
5833
+ background: var(--cl-input-bg);
5834
+ color: var(--cl-fg);
5835
+ border: 1px solid var(--cl-border);
5836
+ border-radius: var(--cl-radius-sm, 4px);
5837
+ font-family: var(--cl-font-mono);
5838
+ font-size: var(--cl-text-xs, 0.75rem);
5660
5839
  outline: none;
5661
5840
  }
5662
5841
  .codelab-modal-input:focus {
5663
- border-color: var(--cl-accent, #007acc);
5842
+ border-color: var(--cl-focus-border);
5664
5843
  }
5665
5844
  .codelab-search-match:hover,
5666
5845
  .codelab-problem-entry:hover,
5667
5846
  .codelab-scm-entry:hover {
5668
- background: var(--cl-tree-hover, rgba(255, 255, 255, 0.06));
5847
+ background: var(--cl-bg-hover);
5669
5848
  }
5670
5849
  .codelab-terminal-sessions {
5671
5850
  display: inline-flex;
@@ -5677,18 +5856,18 @@ code-lab,
5677
5856
  align-items: center;
5678
5857
  gap: 4px;
5679
5858
  padding: 1px 7px;
5680
- font-size: 11px;
5681
- font-family: var(--cl-font-mono, monospace);
5682
- border-radius: 4px;
5683
- border: 1px solid var(--cl-border, #3c3c3c);
5859
+ font-size: var(--cl-text-2xs, 0.6875rem);
5860
+ font-family: var(--cl-font-mono);
5861
+ border-radius: var(--cl-radius-sm, 4px);
5862
+ border: 1px solid var(--cl-border);
5684
5863
  background: transparent;
5685
- color: var(--cl-fg-muted, #858585);
5864
+ color: var(--cl-fg-muted);
5686
5865
  cursor: pointer;
5687
5866
  }
5688
5867
  .codelab-session-pill.active {
5689
- background: var(--cl-hud-bg, rgba(0, 122, 204, 0.18));
5690
- border-color: var(--cl-accent, #007acc);
5691
- color: var(--cl-fg, #ffffff);
5868
+ background: var(--cl-bg-active);
5869
+ border-color: var(--cl-border-strong);
5870
+ color: var(--cl-fg);
5692
5871
  }
5693
5872
 
5694
5873
  /* ── Monaco Side-by-Side Diff Editor ── */
@@ -5722,28 +5901,35 @@ code-lab,
5722
5901
  .codelab-workbench--high-contrast {
5723
5902
  color-scheme: dark;
5724
5903
  --cl-bg: #000000;
5725
- --cl-bg-elevated: #000000;
5726
- --cl-bg-panel: #0a0a0a;
5727
- --cl-bg-hover: #1a1a1a;
5728
- --cl-bg-active: #262626;
5729
- --cl-border-subtle: #6fc3df;
5730
- --cl-border: #6fc3df;
5904
+ --cl-bg-editor: #000000;
5905
+ --cl-bg-elevated: #09090b;
5906
+ --cl-bg-panel: #121215;
5907
+ --cl-bg-hover: #1e1e22;
5908
+ --cl-bg-active: #2c2c31;
5909
+ --cl-list-active: #2c2c31;
5910
+ --cl-list-active-fg: #ffffff;
5911
+ --cl-border-subtle: #a1a1aa;
5912
+ --cl-border: #d4d4d8;
5731
5913
  --cl-border-strong: #ffffff;
5914
+ --cl-focus-border: #ffffff;
5732
5915
  --cl-fg: #ffffff;
5733
- --cl-fg-muted: #e5e5e5;
5734
- --cl-fg-faint: #d4d4d4;
5735
- --cl-accent: #f38518;
5916
+ --cl-fg-muted: #e4e4e7;
5917
+ --cl-fg-faint: #d4d4d8;
5918
+ --cl-accent: #ffffff;
5736
5919
  --cl-accent-fg: #000000;
5737
- --cl-blue: #75beff;
5738
- --cl-green: #89d185;
5739
- --cl-amber: #ffd370;
5740
- --cl-red: #f48771;
5741
- --cl-tok-comment: #7ca668;
5742
- --cl-tok-keyword: #569cd6;
5743
- --cl-tok-string: #ce9178;
5744
- --cl-tok-number: #b5cea8;
5745
- --cl-tok-type: #4ec9b0;
5746
- --cl-tok-function: #dcdcaa;
5920
+ --cl-btn-primary-bg: #ffffff;
5921
+ --cl-btn-primary-fg: #000000;
5922
+ --cl-btn-primary-hover: #e4e4e7;
5923
+ --cl-blue: #ffffff;
5924
+ --cl-green: #6ee7b7;
5925
+ --cl-amber: #fde047;
5926
+ --cl-red: #fca5a5;
5927
+ --cl-tok-comment: #a1a1aa;
5928
+ --cl-tok-keyword: #fca5a5;
5929
+ --cl-tok-string: #86efac;
5930
+ --cl-tok-number: #fdba74;
5931
+ --cl-tok-type: #d8b4fe;
5932
+ --cl-tok-function: #fde047;
5747
5933
  --cl-tok-punctuation: #ffffff;
5748
5934
  color: var(--cl-fg);
5749
5935
  background-color: var(--cl-bg);
@@ -5797,15 +5983,15 @@ dialog.codelab-dialog::backdrop {
5797
5983
  dialog.cl-settings-dialog {
5798
5984
  padding: 0;
5799
5985
  margin: auto;
5800
- width: min(760px, 94vw);
5986
+ width: min(780px, 94vw);
5801
5987
  max-height: 85vh;
5802
- border: 1px solid var(--cl-border, #262626);
5803
- border-radius: 10px;
5804
- background-color: var(--cl-bg-elevated, #121212);
5805
- color: var(--cl-fg, #f5f5f5);
5806
- accent-color: var(--cl-accent, #0284c7);
5988
+ border: 1px solid var(--cl-border, #27272a);
5989
+ border-radius: var(--cl-radius-lg, 8px);
5990
+ background-color: var(--cl-bg-elevated, #141415);
5991
+ color: var(--cl-fg, #f4f4f5);
5992
+ accent-color: var(--cl-accent, #f4f4f5);
5807
5993
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
5808
- font-family: var(--cl-font-sans, system-ui, sans-serif);
5994
+ font-family: var(--cl-font-sans);
5809
5995
  }
5810
5996
 
5811
5997
  /* Single-file SQL Guided Lab / Workbench mode hides irrelevant multi-file chrome */
@@ -5938,14 +6124,19 @@ dialog.cl-settings-dialog {
5938
6124
  content: "";
5939
6125
  position: absolute;
5940
6126
  inset: auto 0 0;
5941
- border-block-end: 2px solid var(--cl-accent, #0284c7);
6127
+ border-block-end: 2px solid var(--cl-fg);
5942
6128
  }
5943
6129
 
5944
- .codelab-workbench :where(button, a[href], select, input, textarea, [tabindex]):focus-visible {
5945
- outline: 2px solid var(--cl-blue, #54a2ff);
6130
+ .codelab-workbench :where(button, a[href], input[type="checkbox"], input[type="radio"], [tabindex]):focus-visible {
6131
+ outline: 1.5px solid var(--cl-focus-border);
5946
6132
  outline-offset: 2px;
5947
6133
  }
5948
6134
 
6135
+ .codelab-workbench :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
6136
+ outline: none;
6137
+ border-color: var(--cl-focus-border);
6138
+ }
6139
+
5949
6140
  @media (prefers-reduced-motion: reduce) {
5950
6141
  .codelab *,
5951
6142
  .codelab *::before,
@@ -5981,7 +6172,7 @@ dialog.cl-settings-dialog {
5981
6172
  align-items: center;
5982
6173
  justify-content: center;
5983
6174
  height: 26px;
5984
- padding: 0 7px;
6175
+ padding: 0 5px;
5985
6176
  border: 1px solid transparent;
5986
6177
  border-radius: 4px;
5987
6178
  background: transparent;
@@ -6041,14 +6232,14 @@ dialog.cl-settings-dialog {
6041
6232
  justify-content: space-between;
6042
6233
  gap: 10px;
6043
6234
  width: 100%;
6044
- min-height: 26px;
6045
- padding: 4px 8px;
6235
+ min-height: 24px;
6236
+ padding: 3px 10px;
6046
6237
  border: none;
6047
- border-radius: 4px;
6238
+ border-radius: 3px;
6048
6239
  background: transparent;
6049
6240
  color: var(--cl-fg);
6050
6241
  font-family: var(--cl-font-sans);
6051
- font-size: 11.5px;
6242
+ font-size: 12px;
6052
6243
  text-align: left;
6053
6244
  cursor: pointer;
6054
6245
  }
@@ -6056,8 +6247,8 @@ dialog.cl-settings-dialog {
6056
6247
  .codelab-topbar-menu__item:hover,
6057
6248
  .codelab-topbar-menu__item:focus-visible,
6058
6249
  .codelab-topbar-menu__item.is-active {
6059
- background: var(--cl-accent);
6060
- color: var(--cl-accent-fg);
6250
+ background: var(--cl-list-active);
6251
+ color: var(--cl-list-active-fg);
6061
6252
  outline: none;
6062
6253
  }
6063
6254
 
@@ -6087,18 +6278,18 @@ dialog.cl-settings-dialog {
6087
6278
  }
6088
6279
 
6089
6280
  .codelab-topbar-menu__kbd {
6090
- font-family: var(--cl-font-mono);
6091
- font-size: 10.5px;
6281
+ font-family: var(--cl-font-sans);
6282
+ font-size: 11px;
6092
6283
  color: var(--cl-fg-muted);
6093
6284
  margin-left: auto;
6094
- padding-left: 12px;
6285
+ padding-left: 16px;
6095
6286
  flex-shrink: 0;
6096
6287
  }
6097
6288
 
6098
6289
  .codelab-topbar-menu__item:hover .codelab-topbar-menu__kbd,
6099
6290
  .codelab-topbar-menu__item:focus-visible .codelab-topbar-menu__kbd,
6100
6291
  .codelab-topbar-menu__item.is-active .codelab-topbar-menu__kbd {
6101
- color: var(--cl-accent-fg);
6292
+ color: var(--cl-list-active-fg, #ffffff);
6102
6293
  opacity: 0.9;
6103
6294
  }
6104
6295
 
@@ -6121,7 +6312,7 @@ dialog.cl-settings-dialog {
6121
6312
  padding: 4px;
6122
6313
  background: var(--cl-bg-elevated);
6123
6314
  border: 1px solid var(--cl-border-strong);
6124
- border-radius: 6px;
6315
+ border-radius: 5px;
6125
6316
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
6126
6317
  display: none;
6127
6318
  flex-direction: column;
@@ -6142,7 +6333,7 @@ dialog.cl-settings-dialog {
6142
6333
  max-width: 48px;
6143
6334
  flex: 0 0 48px;
6144
6335
  height: 100%;
6145
- padding: 4px 0;
6336
+ padding: 0;
6146
6337
  background: var(--cl-bg-elevated);
6147
6338
  border-right: 1px solid var(--cl-border);
6148
6339
  user-select: none;
@@ -6156,7 +6347,7 @@ dialog.cl-settings-dialog {
6156
6347
  display: flex;
6157
6348
  flex-direction: column;
6158
6349
  align-items: center;
6159
- gap: 2px;
6350
+ gap: 0;
6160
6351
  width: 100%;
6161
6352
  }
6162
6353
 
@@ -6167,13 +6358,13 @@ dialog.cl-settings-dialog {
6167
6358
  align-items: center;
6168
6359
  justify-content: center;
6169
6360
  width: 48px;
6170
- height: 44px;
6361
+ height: 48px;
6171
6362
  padding: 0;
6172
6363
  border: none;
6173
6364
  background: transparent;
6174
6365
  color: var(--cl-fg-muted);
6175
6366
  cursor: pointer;
6176
- transition: color 100ms ease, background 100ms ease;
6367
+ transition: color 80ms ease;
6177
6368
  }
6178
6369
 
6179
6370
  .codelab-activitybar__btn:hover,
@@ -6181,7 +6372,6 @@ dialog.cl-settings-dialog {
6181
6372
  .codelab-activitybar__item:hover,
6182
6373
  .codelab-activitybar__item:focus-visible {
6183
6374
  color: var(--cl-fg);
6184
- background: var(--cl-bg-hover);
6185
6375
  }
6186
6376
 
6187
6377
  .codelab-activitybar__btn.active,
@@ -6189,29 +6379,30 @@ dialog.cl-settings-dialog {
6189
6379
  .codelab-activitybar__item.active,
6190
6380
  .codelab-activitybar__item[aria-pressed="true"] {
6191
6381
  color: var(--cl-fg);
6192
- box-shadow: inset 2px 0 0 var(--cl-accent);
6382
+ box-shadow: inset 2px 0 0 var(--cl-fg);
6193
6383
  }
6194
6384
 
6195
6385
  .codelab.sidebar-right .codelab-activitybar__btn.active,
6196
6386
  .codelab.sidebar-right .codelab-activitybar__btn[aria-pressed="true"],
6197
6387
  .codelab.sidebar-right .codelab-activitybar__item.active,
6198
6388
  .codelab.sidebar-right .codelab-activitybar__item[aria-pressed="true"] {
6199
- box-shadow: inset -2px 0 0 var(--cl-accent);
6389
+ box-shadow: inset -2px 0 0 var(--cl-fg);
6200
6390
  }
6201
6391
 
6202
6392
  .codelab-activitybar__badge {
6203
6393
  position: absolute;
6204
- right: 6px;
6205
- bottom: 6px;
6394
+ right: 7px;
6395
+ bottom: 7px;
6206
6396
  min-width: 16px;
6207
6397
  height: 16px;
6208
6398
  padding: 0 4px;
6209
6399
  border-radius: 999px;
6210
- background: var(--cl-accent);
6211
- color: var(--cl-accent-fg);
6212
- font-family: var(--cl-font-mono);
6400
+ background: var(--cl-btn-primary-bg);
6401
+ color: var(--cl-btn-primary-fg);
6402
+ font-family: var(--cl-font-sans);
6403
+ font-variant-numeric: tabular-nums;
6213
6404
  font-size: 9.5px;
6214
- font-weight: 700;
6405
+ font-weight: 600;
6215
6406
  line-height: 16px;
6216
6407
  text-align: center;
6217
6408
  pointer-events: none;
@@ -6255,7 +6446,7 @@ dialog.cl-settings-dialog {
6255
6446
  flex: 1 1 auto;
6256
6447
  min-height: 0;
6257
6448
  overflow-y: auto;
6258
- padding: 10px;
6449
+ padding: 8px 10px;
6259
6450
  gap: 8px;
6260
6451
  }
6261
6452
 
@@ -6264,42 +6455,45 @@ dialog.cl-settings-dialog {
6264
6455
  align-items: center;
6265
6456
  gap: 4px;
6266
6457
  width: 100%;
6458
+ min-width: 0;
6267
6459
  }
6268
6460
 
6269
6461
  .codelab-sidebar-input {
6270
6462
  flex: 1 1 auto;
6463
+ width: 100%;
6271
6464
  min-width: 0;
6272
6465
  height: 28px;
6273
6466
  padding: 0 8px;
6274
- border-radius: 4px;
6275
- border: 1px solid var(--cl-border-strong);
6276
- background: var(--cl-bg);
6467
+ border-radius: var(--cl-radius-sm, 4px);
6468
+ border: 1px solid var(--cl-input-border, var(--cl-border));
6469
+ background: var(--cl-input-bg);
6277
6470
  color: var(--cl-fg);
6278
- font-family: var(--cl-font-mono);
6279
- font-size: 12px;
6471
+ font-family: var(--cl-font-sans);
6472
+ font-size: var(--cl-text-xs, 0.75rem);
6280
6473
  outline: none;
6281
6474
  }
6282
6475
 
6283
6476
  .codelab-sidebar-input:focus {
6284
- border-color: var(--cl-accent);
6477
+ border-color: var(--cl-focus-border);
6285
6478
  }
6286
6479
 
6287
6480
  .codelab-search-toggles {
6288
6481
  display: inline-flex;
6289
6482
  align-items: center;
6290
- gap: 3px;
6483
+ gap: 2px;
6484
+ flex-shrink: 0;
6291
6485
  }
6292
6486
 
6293
6487
  .codelab-search-toggle {
6294
6488
  display: inline-flex;
6295
6489
  align-items: center;
6296
6490
  justify-content: center;
6297
- min-width: 24px;
6298
- height: 24px;
6299
- padding: 0 5px;
6300
- border-radius: 4px;
6301
- border: 1px solid var(--cl-border);
6302
- background: var(--cl-bg);
6491
+ min-width: 22px;
6492
+ height: 22px;
6493
+ padding: 0 4px;
6494
+ border-radius: 3px;
6495
+ border: 1px solid transparent;
6496
+ background: transparent;
6303
6497
  color: var(--cl-fg-muted);
6304
6498
  font-family: var(--cl-font-mono);
6305
6499
  font-size: 10.5px;
@@ -6314,26 +6508,33 @@ dialog.cl-settings-dialog {
6314
6508
 
6315
6509
  .codelab-search-toggle.active,
6316
6510
  .codelab-search-toggle[aria-pressed="true"] {
6317
- background: var(--cl-accent);
6318
- color: var(--cl-accent-fg);
6319
- border-color: var(--cl-accent);
6511
+ background: var(--cl-bg-active);
6512
+ color: var(--cl-fg);
6513
+ border-color: var(--cl-border-strong);
6514
+ }
6515
+
6516
+ [data-cl-theme="light"] .codelab-search-toggle.active,
6517
+ [data-theme="light"] .codelab-search-toggle.active {
6518
+ background: var(--cl-bg-active);
6519
+ color: var(--cl-fg);
6320
6520
  }
6321
6521
 
6322
6522
  .codelab-search-results {
6323
6523
  display: flex;
6324
6524
  flex-direction: column;
6325
- gap: 6px;
6525
+ gap: 2px;
6326
6526
  flex: 1 1 auto;
6327
6527
  min-height: 0;
6328
6528
  overflow-y: auto;
6529
+ margin: 0 -10px;
6329
6530
  }
6330
6531
 
6331
6532
  .codelab-search-group {
6332
6533
  display: flex;
6333
6534
  flex-direction: column;
6334
- border: 1px solid var(--cl-border);
6335
- border-radius: 5px;
6336
- background: var(--cl-bg);
6535
+ border: none;
6536
+ border-radius: 0;
6537
+ background: transparent;
6337
6538
  overflow: hidden;
6338
6539
  }
6339
6540
 
@@ -6341,21 +6542,21 @@ dialog.cl-settings-dialog {
6341
6542
  display: flex;
6342
6543
  align-items: center;
6343
6544
  justify-content: space-between;
6344
- padding: 5px 8px;
6345
- background: var(--cl-bg-panel);
6346
- border-bottom: 1px solid var(--cl-border);
6347
- font-family: var(--cl-font-mono);
6348
- font-size: 11px;
6349
- font-weight: 600;
6545
+ padding: 3px 10px;
6546
+ background: transparent;
6547
+ border-bottom: none;
6548
+ font-family: var(--cl-font-sans);
6549
+ font-size: 12.5px;
6550
+ font-weight: 500;
6350
6551
  color: var(--cl-fg);
6351
6552
  }
6352
6553
 
6353
6554
  .codelab-search-match {
6354
6555
  display: flex;
6355
6556
  align-items: baseline;
6356
- gap: 8px;
6557
+ gap: 6px;
6357
6558
  width: 100%;
6358
- padding: 4px 8px;
6559
+ padding: 2px 10px 2px 22px;
6359
6560
  border: none;
6360
6561
  background: transparent;
6361
6562
  color: var(--cl-fg-muted);
@@ -6375,7 +6576,7 @@ dialog.cl-settings-dialog {
6375
6576
  color: var(--cl-fg-faint);
6376
6577
  font-size: 10.5px;
6377
6578
  flex-shrink: 0;
6378
- min-width: 28px;
6579
+ min-width: 24px;
6379
6580
  }
6380
6581
 
6381
6582
  .codelab-search-match__text {
@@ -6387,18 +6588,18 @@ dialog.cl-settings-dialog {
6387
6588
  .codelab-scm-section {
6388
6589
  display: flex;
6389
6590
  flex-direction: column;
6390
- gap: 4px;
6591
+ gap: 2px;
6391
6592
  }
6392
6593
 
6393
6594
  .codelab-scm-section__head {
6394
6595
  display: flex;
6395
6596
  align-items: center;
6396
6597
  justify-content: space-between;
6397
- font-family: var(--cl-font-mono);
6398
- font-size: 10.5px;
6598
+ font-family: var(--cl-font-sans);
6599
+ font-size: 11px;
6399
6600
  font-weight: 600;
6400
6601
  text-transform: uppercase;
6401
- letter-spacing: 0.05em;
6602
+ letter-spacing: 0.04em;
6402
6603
  color: var(--cl-fg-muted);
6403
6604
  padding: 4px 2px;
6404
6605
  }
@@ -6820,9 +7021,9 @@ dialog.cl-settings-dialog {
6820
7021
 
6821
7022
  .codelab-problems-sev-btn.active,
6822
7023
  .codelab-problems-sev-btn[aria-pressed="true"] {
6823
- background: var(--cl-accent);
6824
- color: var(--cl-accent-fg, #ffffff);
6825
- border-color: var(--cl-accent);
7024
+ background: var(--cl-btn-primary-bg);
7025
+ color: var(--cl-btn-primary-fg);
7026
+ border-color: var(--cl-btn-primary-bg);
6826
7027
  }
6827
7028
 
6828
7029
  .codelab-problems-group {
@@ -6835,13 +7036,13 @@ dialog.cl-settings-dialog {
6835
7036
  align-items: center;
6836
7037
  gap: 6px;
6837
7038
  width: 100%;
6838
- padding: 5px 10px;
7039
+ padding: 4px 10px;
6839
7040
  border: none;
6840
7041
  border-bottom: 1px solid var(--cl-border);
6841
7042
  background: var(--cl-bg-panel);
6842
7043
  color: var(--cl-fg);
6843
- font-family: var(--cl-font-mono);
6844
- font-size: 11.5px;
7044
+ font-family: var(--cl-font-sans);
7045
+ font-size: 12px;
6845
7046
  font-weight: 600;
6846
7047
  text-align: left;
6847
7048
  cursor: pointer;
@@ -6897,6 +7098,7 @@ dialog.cl-settings-dialog {
6897
7098
  display: flex;
6898
7099
  flex-direction: column;
6899
7100
  gap: 6px;
7101
+ width: 100%;
6900
7102
  }
6901
7103
 
6902
7104
  .codelab-search-replace-actions {
@@ -6908,24 +7110,25 @@ dialog.cl-settings-dialog {
6908
7110
  flex: 1 1 0;
6909
7111
  justify-content: center;
6910
7112
  font-size: 11.5px;
6911
- height: 26px;
7113
+ height: 24px;
6912
7114
  }
6913
7115
 
6914
7116
  .codelab-search-glob-fields {
6915
7117
  display: flex;
6916
7118
  flex-direction: column;
6917
7119
  gap: 4px;
7120
+ width: 100%;
6918
7121
  }
6919
7122
 
6920
7123
  .codelab-sidebar-input--compact {
6921
- height: 26px;
7124
+ height: 24px;
6922
7125
  padding: 0 8px;
6923
- font-size: 11px;
7126
+ font-size: 11.5px;
6924
7127
  }
6925
7128
 
6926
7129
  .codelab-search-error {
6927
7130
  padding: 6px 8px;
6928
- border-radius: var(--cl-radius-sm, 4px);
7131
+ border-radius: var(--cl-radius-sm, 3px);
6929
7132
  font-size: 11.5px;
6930
7133
  line-height: 1.4;
6931
7134
  background: #450a0a;
@@ -6962,15 +7165,19 @@ dialog.cl-settings-dialog {
6962
7165
  align-items: center;
6963
7166
  justify-content: space-between;
6964
7167
  gap: 6px;
6965
- padding: 5px 8px;
6966
- background: var(--cl-bg-panel);
6967
- border-bottom: 1px solid var(--cl-border);
6968
- font-family: var(--cl-font-mono);
6969
- font-size: 11px;
6970
- font-weight: 600;
7168
+ padding: 3px 10px;
7169
+ background: transparent;
7170
+ border-bottom: none;
7171
+ font-family: var(--cl-font-sans);
7172
+ font-size: 12.5px;
7173
+ font-weight: 500;
6971
7174
  color: var(--cl-fg);
6972
7175
  }
6973
7176
 
7177
+ .codelab-search-group__header:hover {
7178
+ background: var(--cl-bg-hover);
7179
+ }
7180
+
6974
7181
  .codelab-search-group__file {
6975
7182
  flex: 1 1 auto;
6976
7183
  min-width: 0;
@@ -6991,7 +7198,7 @@ dialog.cl-settings-dialog {
6991
7198
  align-items: center;
6992
7199
  gap: 4px;
6993
7200
  width: 100%;
6994
- padding: 2px 6px;
7201
+ padding: 1px 8px 1px 18px;
6995
7202
  box-sizing: border-box;
6996
7203
  }
6997
7204
 
@@ -7001,9 +7208,9 @@ dialog.cl-settings-dialog {
7001
7208
  gap: 6px;
7002
7209
  flex: 1 1 auto;
7003
7210
  min-width: 0;
7004
- padding: 3px 4px;
7211
+ padding: 2px 4px;
7005
7212
  border: none;
7006
- border-radius: 3px;
7213
+ border-radius: 2px;
7007
7214
  background: transparent;
7008
7215
  color: var(--cl-fg);
7009
7216
  font-family: var(--cl-font-mono);
@@ -7040,26 +7247,26 @@ dialog.cl-settings-dialog {
7040
7247
  .codelab-scm-branch-bar {
7041
7248
  display: flex;
7042
7249
  align-items: center;
7043
- gap: 6px;
7044
- padding: 2px 0 4px;
7250
+ gap: 4px;
7251
+ padding: 0 0 4px;
7045
7252
  }
7046
7253
 
7047
7254
  .codelab-scm-branch-select {
7048
7255
  flex: 1 1 auto;
7049
7256
  min-width: 0;
7050
- height: 26px;
7051
- padding: 0 6px;
7052
- border-radius: 4px;
7053
- border: 1px solid var(--cl-border);
7054
- background: var(--cl-bg);
7257
+ height: 28px;
7258
+ padding: 0 8px;
7259
+ border-radius: var(--cl-radius-sm, 4px);
7260
+ border: 1px solid var(--cl-input-border, var(--cl-border));
7261
+ background: var(--cl-input-bg);
7055
7262
  color: var(--cl-fg);
7056
- font-family: var(--cl-font-mono);
7057
- font-size: 11.5px;
7263
+ font-family: var(--cl-font-sans);
7264
+ font-size: var(--cl-text-xs, 0.75rem);
7058
7265
  }
7059
7266
 
7060
7267
  .codelab-scm-branch-select:focus-visible {
7061
- outline: 2px solid var(--cl-accent);
7062
- outline-offset: 1px;
7268
+ outline: 1px solid var(--cl-focus-border);
7269
+ outline-offset: 0;
7063
7270
  }
7064
7271
 
7065
7272
  .codelab-scm-new-branch-row {
@@ -7073,15 +7280,33 @@ dialog.cl-settings-dialog {
7073
7280
  display: flex;
7074
7281
  flex-direction: column;
7075
7282
  gap: 6px;
7283
+ width: 100%;
7284
+ }
7285
+
7286
+ .codelab-scm-commit-box .codelab-btn {
7287
+ width: 100%;
7288
+ justify-content: center;
7289
+ height: 28px;
7290
+ background: var(--cl-btn-primary-bg);
7291
+ border-color: var(--cl-btn-primary-bg);
7292
+ color: var(--cl-btn-primary-fg);
7293
+ font-weight: 500;
7294
+ }
7295
+
7296
+ .codelab-scm-commit-box .codelab-btn:hover:not(:disabled) {
7297
+ background: var(--cl-btn-primary-hover);
7298
+ border-color: var(--cl-btn-primary-hover);
7076
7299
  }
7077
7300
 
7078
7301
  .codelab-scm-commit-textarea {
7079
- min-height: 52px;
7302
+ width: 100%;
7303
+ min-height: 54px;
7080
7304
  height: auto;
7081
7305
  padding: 6px 8px;
7082
7306
  resize: vertical;
7083
7307
  line-height: 1.4;
7084
- font-family: var(--cl-font-sans, system-ui, sans-serif);
7308
+ font-family: var(--cl-font-sans);
7309
+ font-size: 12.5px;
7085
7310
  }
7086
7311
 
7087
7312
  .codelab-scm-section__header {
@@ -7089,16 +7314,20 @@ dialog.cl-settings-dialog {
7089
7314
  align-items: center;
7090
7315
  justify-content: space-between;
7091
7316
  gap: 6px;
7317
+ font-family: var(--cl-font-sans);
7092
7318
  font-size: 11px;
7093
7319
  font-weight: 600;
7320
+ text-transform: uppercase;
7321
+ letter-spacing: 0.04em;
7094
7322
  color: var(--cl-fg-muted);
7095
- padding: 4px 2px;
7323
+ padding: 6px 2px 2px;
7096
7324
  }
7097
7325
 
7098
7326
  .codelab-scm-list {
7099
7327
  display: flex;
7100
7328
  flex-direction: column;
7101
- gap: 3px;
7329
+ gap: 1px;
7330
+ margin: 0 -6px;
7102
7331
  }
7103
7332
 
7104
7333
  .codelab-scm-entry {
@@ -7106,10 +7335,11 @@ dialog.cl-settings-dialog {
7106
7335
  align-items: center;
7107
7336
  justify-content: space-between;
7108
7337
  gap: 6px;
7109
- padding: 4px 6px;
7110
- border-radius: 4px;
7111
- background: var(--cl-bg);
7112
- border: 1px solid var(--cl-border);
7338
+ min-height: 22px;
7339
+ padding: 2px 6px;
7340
+ border-radius: 3px;
7341
+ background: transparent;
7342
+ border: none;
7113
7343
  cursor: pointer;
7114
7344
  }
7115
7345
 
@@ -7126,26 +7356,27 @@ dialog.cl-settings-dialog {
7126
7356
  background: transparent;
7127
7357
  border: none;
7128
7358
  color: var(--cl-fg);
7129
- font-family: var(--cl-font-mono);
7130
- font-size: 11.5px;
7359
+ font-family: var(--cl-font-sans);
7360
+ font-size: 13px;
7131
7361
  text-align: left;
7132
7362
  cursor: pointer;
7133
7363
  padding: 0;
7134
7364
  }
7135
7365
 
7136
- .codelab-scm-entry__file:hover {
7137
- text-decoration: underline;
7138
- }
7139
-
7140
7366
  .codelab-scm-entry__actions {
7141
7367
  display: inline-flex;
7142
7368
  align-items: center;
7143
- gap: 4px;
7369
+ gap: 2px;
7144
7370
  flex-shrink: 0;
7371
+ opacity: 0.72;
7372
+ }
7373
+
7374
+ .codelab-scm-entry:hover .codelab-scm-entry__actions {
7375
+ opacity: 1;
7145
7376
  }
7146
7377
 
7147
7378
  .codelab-scm-entry__status {
7148
- font-family: var(--cl-font-mono);
7379
+ font-family: var(--cl-font-sans);
7149
7380
  font-size: 11px;
7150
7381
  font-weight: 700;
7151
7382
  color: var(--cl-fg-muted);
@@ -7153,24 +7384,34 @@ dialog.cl-settings-dialog {
7153
7384
  text-align: center;
7154
7385
  }
7155
7386
 
7387
+ .codelab-scm-entry__status[data-status="M"] { color: var(--cl-git-modified, #e2c08d); }
7388
+ .codelab-scm-entry__status[data-status="A"],
7389
+ .codelab-scm-entry__status[data-status="U"] { color: var(--cl-git-added, #73c991); }
7390
+ .codelab-scm-entry__status[data-status="D"] { color: var(--cl-git-deleted, #c74e39); }
7391
+
7156
7392
  .codelab-scm-commits {
7157
7393
  display: flex;
7158
7394
  flex-direction: column;
7159
- gap: 4px;
7395
+ gap: 2px;
7160
7396
  }
7161
7397
 
7162
7398
  .codelab-scm-commit-row {
7163
7399
  display: flex;
7164
7400
  align-items: baseline;
7165
7401
  gap: 8px;
7166
- padding: 4px 6px;
7167
- border-radius: 4px;
7168
- background: var(--cl-bg);
7169
- border: 1px solid var(--cl-border);
7170
- font-size: 11.5px;
7402
+ padding: 3px 6px;
7403
+ border-radius: 3px;
7404
+ background: transparent;
7405
+ border: none;
7406
+ font-family: var(--cl-font-sans);
7407
+ font-size: 12px;
7171
7408
  color: var(--cl-fg);
7172
7409
  }
7173
7410
 
7411
+ .codelab-scm-commit-row:hover {
7412
+ background: var(--cl-bg-hover);
7413
+ }
7414
+
7174
7415
  .codelab-scm-commit-row code {
7175
7416
  font-family: var(--cl-font-mono);
7176
7417
  font-size: 11px;
@@ -7202,7 +7443,7 @@ dialog.cl-settings-dialog {
7202
7443
  align-items: center;
7203
7444
  justify-content: space-between;
7204
7445
  gap: 12px;
7205
- padding: 8px 14px;
7446
+ padding: 6px 12px;
7206
7447
  background: var(--cl-bg-panel);
7207
7448
  border-bottom: 1px solid var(--cl-border);
7208
7449
  flex-shrink: 0;
@@ -7213,6 +7454,7 @@ dialog.cl-settings-dialog {
7213
7454
  display: flex;
7214
7455
  align-items: center;
7215
7456
  gap: 10px;
7457
+ font-family: var(--cl-font-sans);
7216
7458
  font-size: 12.5px;
7217
7459
  min-width: 0;
7218
7460
  flex-wrap: wrap;
@@ -7234,23 +7476,14 @@ dialog.cl-settings-dialog {
7234
7476
  font-variant-numeric: tabular-nums;
7235
7477
  }
7236
7478
 
7237
- .codelab-scm-diff-stats__add {
7238
- color: #4ade80;
7239
- }
7240
-
7241
- .codelab-scm-diff-stats__del {
7242
- color: #f87171;
7243
- }
7479
+ .codelab-scm-diff-stats__add { color: #4ade80; }
7480
+ .codelab-scm-diff-stats__del { color: #f87171; }
7244
7481
 
7245
7482
  [data-theme="light"] .codelab-scm-diff-stats__add,
7246
- [data-cl-theme="light"] .codelab-scm-diff-stats__add {
7247
- color: #15803d;
7248
- }
7483
+ [data-cl-theme="light"] .codelab-scm-diff-stats__add { color: #15803d; }
7249
7484
 
7250
7485
  [data-theme="light"] .codelab-scm-diff-stats__del,
7251
- [data-cl-theme="light"] .codelab-scm-diff-stats__del {
7252
- color: #b91c1c;
7253
- }
7486
+ [data-cl-theme="light"] .codelab-scm-diff-stats__del { color: #b91c1c; }
7254
7487
 
7255
7488
  .codelab-scm-diff-header__actions {
7256
7489
  display: inline-flex;
@@ -7267,7 +7500,1079 @@ dialog.cl-settings-dialog {
7267
7500
  font-size: 12px;
7268
7501
  }
7269
7502
 
7503
+ /* ═══════════════════════════════════════════════════════════════════════════
7504
+ VS Code Deep Parity: Command Center, Welcome Tab, Explorer Outline/Timeline,
7505
+ Monaco Git Gutter, Split Terminal Panes, xterm.js & Native Modal Dialogs
7506
+ ═══════════════════════════════════════════════════════════════════════════ */
7507
+
7508
+ .codelab-cmd-trigger {
7509
+ height: 24px;
7510
+ width: min(360px, 100%);
7511
+ min-width: 0;
7512
+ max-width: 100%;
7513
+ padding: 0 10px;
7514
+ border-radius: 6px;
7515
+ background: var(--cl-bg-panel);
7516
+ border: 1px solid var(--cl-border);
7517
+ color: var(--cl-fg-muted);
7518
+ font-family: var(--cl-font-sans);
7519
+ font-size: 12px;
7520
+ overflow: hidden;
7521
+ }
7270
7522
 
7523
+ .codelab-cmd-trigger > span {
7524
+ overflow: hidden;
7525
+ text-overflow: ellipsis;
7526
+ white-space: nowrap;
7527
+ min-width: 0;
7528
+ }
7271
7529
 
7530
+ .codelab-cmd-trigger:hover,
7531
+ .codelab-cmd-trigger:focus-visible {
7532
+ background: var(--cl-bg-hover);
7533
+ color: var(--cl-fg);
7534
+ border-color: var(--cl-border-strong);
7535
+ }
7536
+
7537
+ .codelab-palette-hl {
7538
+ background: transparent;
7539
+ color: var(--cl-fg);
7540
+ font-weight: 700;
7541
+ text-decoration: underline;
7542
+ text-underline-offset: 2px;
7543
+ }
7544
+
7545
+ .codelab-palette__item:hover,
7546
+ .codelab-palette__item.is-selected {
7547
+ background: var(--cl-list-active);
7548
+ color: var(--cl-list-active-fg);
7549
+ }
7550
+
7551
+ .codelab-palette__item:hover .codelab-palette-hl,
7552
+ .codelab-palette__item.is-selected .codelab-palette-hl {
7553
+ color: var(--cl-list-active-fg);
7554
+ }
7555
+
7556
+ [data-cl-theme="light"] .codelab-palette__item:hover .codelab-palette-hl,
7557
+ [data-cl-theme="light"] .codelab-palette__item.is-selected .codelab-palette-hl {
7558
+ color: var(--cl-list-active-fg);
7559
+ }
7560
+
7561
+ /* VS Code Welcome Tab (#cl-welcome-host) */
7562
+ .codelab-welcome-host {
7563
+ position: absolute;
7564
+ inset: 0;
7565
+ z-index: 3;
7566
+ overflow-y: auto;
7567
+ background: var(--cl-bg);
7568
+ color: var(--cl-fg);
7569
+ font-family: var(--cl-font-sans);
7570
+ }
7571
+
7572
+ .codelab-welcome-host[hidden] {
7573
+ display: none !important;
7574
+ }
7575
+
7576
+ .codelab-welcome {
7577
+ max-width: 920px;
7578
+ margin: 0 auto;
7579
+ padding: 40px 36px 48px;
7580
+ display: flex;
7581
+ flex-direction: column;
7582
+ gap: 28px;
7583
+ }
7584
+
7585
+ .codelab-welcome__hero {
7586
+ display: flex;
7587
+ flex-direction: column;
7588
+ gap: 4px;
7589
+ }
7590
+
7591
+ .codelab-welcome__title {
7592
+ margin: 0;
7593
+ font-size: 26px;
7594
+ font-weight: 400;
7595
+ letter-spacing: -0.02em;
7596
+ color: var(--cl-fg);
7597
+ }
7598
+
7599
+ .codelab-welcome__subtitle {
7600
+ margin: 0;
7601
+ font-size: 15px;
7602
+ font-weight: 400;
7603
+ color: var(--cl-fg-muted);
7604
+ }
7605
+
7606
+ .codelab-welcome__grid {
7607
+ display: grid;
7608
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
7609
+ gap: 36px;
7610
+ align-items: start;
7611
+ }
7612
+
7613
+ @media (max-width: 760px) {
7614
+ .codelab-welcome__grid {
7615
+ grid-template-columns: 1fr;
7616
+ gap: 24px;
7617
+ }
7618
+ .codelab-welcome {
7619
+ padding: 24px 20px;
7620
+ }
7621
+ }
7622
+
7623
+ .codelab-welcome__col {
7624
+ display: flex;
7625
+ flex-direction: column;
7626
+ gap: 18px;
7627
+ }
7628
+
7629
+ .codelab-welcome__heading {
7630
+ margin: 0 0 6px;
7631
+ font-size: 13px;
7632
+ font-weight: 600;
7633
+ color: var(--cl-fg);
7634
+ }
7635
+
7636
+ .codelab-welcome__links {
7637
+ display: flex;
7638
+ flex-direction: column;
7639
+ gap: 6px;
7640
+ }
7641
+
7642
+ .codelab-welcome__link {
7643
+ display: inline-flex;
7644
+ align-items: center;
7645
+ gap: 8px;
7646
+ padding: 4px 0;
7647
+ background: transparent;
7648
+ border: none;
7649
+ color: var(--cl-accent);
7650
+ font-family: var(--cl-font-sans);
7651
+ font-size: 13px;
7652
+ text-align: left;
7653
+ cursor: pointer;
7654
+ width: fit-content;
7655
+ }
7656
+
7657
+ .codelab-welcome__link:hover {
7658
+ text-decoration: underline;
7659
+ }
7660
+
7661
+ .codelab-welcome__clone-card {
7662
+ display: flex;
7663
+ flex-direction: column;
7664
+ gap: 8px;
7665
+ padding: 12px 14px;
7666
+ background: var(--cl-bg-elevated);
7667
+ border: 1px solid var(--cl-border);
7668
+ border-radius: 4px;
7669
+ }
7670
+
7671
+ .codelab-welcome__clone-row {
7672
+ display: flex;
7673
+ align-items: center;
7674
+ gap: 6px;
7675
+ }
7676
+
7677
+ .codelab-welcome__clone-input {
7678
+ flex: 1 1 auto;
7679
+ min-width: 0;
7680
+ height: 30px;
7681
+ padding: 0 10px;
7682
+ background: var(--cl-input-bg);
7683
+ border: 1px solid var(--cl-input-border, var(--cl-border));
7684
+ border-radius: var(--cl-radius-sm, 4px);
7685
+ color: var(--cl-fg);
7686
+ font-family: var(--cl-font-mono);
7687
+ font-size: var(--cl-text-xs, 0.75rem);
7688
+ outline: none;
7689
+ }
7690
+
7691
+ .codelab-welcome__clone-input:focus {
7692
+ border-color: var(--cl-focus-border);
7693
+ }
7694
+
7695
+ .codelab-welcome__templates {
7696
+ display: grid;
7697
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
7698
+ gap: 8px;
7699
+ }
7700
+
7701
+ .codelab-welcome__template {
7702
+ display: flex;
7703
+ flex-direction: column;
7704
+ align-items: flex-start;
7705
+ gap: 4px;
7706
+ padding: 10px 12px;
7707
+ border-radius: var(--cl-radius-md, 6px);
7708
+ border: 1px solid var(--cl-border);
7709
+ background: var(--cl-bg-elevated);
7710
+ color: var(--cl-fg);
7711
+ font-family: var(--cl-font-sans);
7712
+ text-align: left;
7713
+ cursor: pointer;
7714
+ transition: background 80ms ease, border-color 80ms ease;
7715
+ }
7716
+
7717
+ .codelab-welcome__template:hover {
7718
+ background: var(--cl-bg-hover);
7719
+ border-color: var(--cl-border-strong);
7720
+ }
7721
+
7722
+ .codelab-welcome__template-title {
7723
+ font-size: 12.5px;
7724
+ font-weight: 600;
7725
+ color: var(--cl-fg);
7726
+ }
7727
+
7728
+ .codelab-welcome__template-desc {
7729
+ font-size: 11.5px;
7730
+ color: var(--cl-fg-muted);
7731
+ line-height: 1.35;
7732
+ }
7733
+
7734
+ /* Explorer Collapsible Sections (OUTLINE & TIMELINE) */
7735
+ .codelab-explorer-sections {
7736
+ display: flex;
7737
+ flex-direction: column;
7738
+ border-top: 1px solid var(--cl-border);
7739
+ flex-shrink: 0;
7740
+ max-height: 45%;
7741
+ overflow-y: auto;
7742
+ }
7743
+
7744
+ .codelab-explorer-section {
7745
+ border-bottom: 1px solid var(--cl-border);
7746
+ }
7747
+
7748
+ .codelab-explorer-section:last-child {
7749
+ border-bottom: none;
7750
+ }
7751
+
7752
+ .codelab-explorer-section > summary {
7753
+ display: flex;
7754
+ align-items: center;
7755
+ gap: 6px;
7756
+ height: 22px;
7757
+ padding: 0 8px;
7758
+ font-family: var(--cl-font-sans);
7759
+ font-size: 11px;
7760
+ font-weight: 700;
7761
+ text-transform: uppercase;
7762
+ letter-spacing: 0.04em;
7763
+ color: var(--cl-fg);
7764
+ background: var(--cl-bg-elevated);
7765
+ cursor: pointer;
7766
+ list-style: none;
7767
+ user-select: none;
7768
+ }
7769
+
7770
+ .codelab-explorer-section > summary::-webkit-details-marker {
7771
+ display: none;
7772
+ }
7773
+
7774
+ .codelab-explorer-section > summary:hover {
7775
+ background: var(--cl-bg-hover);
7776
+ }
7777
+
7778
+ .codelab-explorer-section__chev {
7779
+ display: inline-block;
7780
+ font-size: 10px;
7781
+ transition: transform 100ms ease;
7782
+ color: var(--cl-fg-muted);
7783
+ }
7784
+
7785
+ .codelab-explorer-section[open] .codelab-explorer-section__chev {
7786
+ transform: rotate(90deg);
7787
+ }
7788
+
7789
+ .codelab-explorer-section__body {
7790
+ display: flex;
7791
+ flex-direction: column;
7792
+ max-height: 150px;
7793
+ overflow-y: auto;
7794
+ padding: 2px 0 4px;
7795
+ }
7796
+
7797
+ .codelab-outline-item {
7798
+ display: flex;
7799
+ align-items: center;
7800
+ gap: 6px;
7801
+ width: 100%;
7802
+ min-height: 22px;
7803
+ padding: 1px 10px 1px 18px;
7804
+ background: transparent;
7805
+ border: none;
7806
+ color: var(--cl-fg);
7807
+ font-family: var(--cl-font-sans);
7808
+ font-size: 12.5px;
7809
+ text-align: left;
7810
+ cursor: pointer;
7811
+ }
7812
+
7813
+ .codelab-outline-item:hover {
7814
+ background: var(--cl-bg-hover);
7815
+ }
7816
+
7817
+ .codelab-outline-item__kind {
7818
+ font-family: var(--cl-font-mono);
7819
+ font-size: 10px;
7820
+ font-weight: 700;
7821
+ color: var(--cl-accent);
7822
+ width: 14px;
7823
+ text-align: center;
7824
+ flex-shrink: 0;
7825
+ }
7826
+
7827
+ .codelab-outline-empty {
7828
+ padding: 6px 14px;
7829
+ font-size: 11.5px;
7830
+ color: var(--cl-fg-muted);
7831
+ }
7832
+
7833
+ /* Monaco Live Git Gutter Decorations (Inset Hairlines — Zero Side-Stripes) */
7834
+ .codelab-git-gutter-added {
7835
+ box-shadow: inset 2px 0 0 var(--cl-git-added, #34d399) !important;
7836
+ margin-left: 3px;
7837
+ }
7838
+
7839
+ .codelab-git-gutter-modified {
7840
+ box-shadow: inset 2px 0 0 var(--cl-git-modified, #fbbf24) !important;
7841
+ margin-left: 3px;
7842
+ }
7843
+
7844
+ .codelab-git-gutter-deleted {
7845
+ box-shadow: inset 2px 0 0 var(--cl-git-deleted, #f87171) !important;
7846
+ margin-left: 3px;
7847
+ }
7848
+
7849
+ /* Native <dialog> Modals (Clone Repo, Confirmations) */
7850
+ dialog.codelab-dialog {
7851
+ padding: 0;
7852
+ margin: auto;
7853
+ border: 1px solid var(--cl-border-strong);
7854
+ border-radius: var(--cl-radius-md, 5px);
7855
+ background: var(--cl-bg-elevated);
7856
+ color: var(--cl-fg);
7857
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
7858
+ max-width: min(520px, 92vw);
7859
+ width: 100%;
7860
+ font-family: var(--cl-font-sans);
7861
+ }
7862
+
7863
+ dialog.codelab-dialog:not([open]) {
7864
+ display: none !important;
7865
+ }
7866
+
7867
+ dialog.codelab-dialog .codelab-modal {
7868
+ border: none;
7869
+ box-shadow: none;
7870
+ border-radius: 0;
7871
+ max-height: 85vh;
7872
+ }
7873
+
7874
+ /* Full-Bleed xterm.js Core Structural Styles (100% Scoped to .codelab) */
7875
+ .codelab .xterm {
7876
+ cursor: text;
7877
+ position: relative;
7878
+ user-select: none;
7879
+ -webkit-user-select: none;
7880
+ }
7881
+
7882
+ .codelab .xterm.focus,
7883
+ .codelab .xterm:focus {
7884
+ outline: none;
7885
+ }
7886
+
7887
+ .codelab .xterm .xterm-helpers {
7888
+ position: absolute;
7889
+ top: 0;
7890
+ z-index: 5;
7891
+ }
7892
+
7893
+ .codelab .xterm .xterm-helper-textarea {
7894
+ padding: 0;
7895
+ border: 0;
7896
+ margin: 0;
7897
+ position: absolute;
7898
+ opacity: 0;
7899
+ left: -9999em;
7900
+ top: 0;
7901
+ width: 0;
7902
+ height: 0;
7903
+ z-index: -5;
7904
+ white-space: nowrap;
7905
+ overflow: hidden;
7906
+ resize: none;
7907
+ }
7908
+
7909
+ .codelab .xterm .composition-view {
7910
+ background: #000;
7911
+ color: #fff;
7912
+ display: none;
7913
+ position: absolute;
7914
+ white-space: nowrap;
7915
+ z-index: 1;
7916
+ }
7917
+
7918
+ .codelab .xterm .composition-view.active {
7919
+ display: block;
7920
+ }
7921
+
7922
+ .codelab .xterm .xterm-viewport {
7923
+ background-color: transparent !important;
7924
+ overflow-y: auto;
7925
+ cursor: default;
7926
+ position: absolute;
7927
+ right: 0;
7928
+ left: 0;
7929
+ top: 0;
7930
+ bottom: 0;
7931
+ }
7932
+
7933
+ .codelab .xterm .xterm-screen {
7934
+ position: relative;
7935
+ }
7936
+
7937
+ .codelab .xterm .xterm-screen canvas {
7938
+ position: absolute;
7939
+ left: 0;
7940
+ top: 0;
7941
+ }
7942
+
7943
+ .codelab .xterm-char-measure-element {
7944
+ display: inline-block;
7945
+ visibility: hidden;
7946
+ position: absolute;
7947
+ top: 0;
7948
+ left: -9999em;
7949
+ line-height: normal;
7950
+ }
7951
+
7952
+ .codelab .xterm.enable-mouse-events {
7953
+ cursor: default;
7954
+ }
7955
+
7956
+ .codelab .xterm.xterm-cursor-pointer,
7957
+ .codelab .xterm .xterm-cursor-pointer {
7958
+ cursor: pointer;
7959
+ }
7960
+
7961
+ .codelab .xterm.column-select.focus {
7962
+ cursor: crosshair;
7963
+ }
7964
+
7965
+ .codelab .xterm .xterm-accessibility:not(.debug),
7966
+ .codelab .xterm .xterm-message {
7967
+ position: absolute;
7968
+ left: 0;
7969
+ top: 0;
7970
+ bottom: 0;
7971
+ right: 0;
7972
+ z-index: 10;
7973
+ color: transparent;
7974
+ pointer-events: none;
7975
+ }
7976
+
7977
+ .codelab .xterm .xterm-accessibility-tree:not(.debug) *::selection {
7978
+ color: transparent;
7979
+ }
7980
+
7981
+ .codelab .xterm .xterm-accessibility-tree {
7982
+ font-family: var(--cl-font-mono);
7983
+ user-select: text;
7984
+ white-space: pre;
7985
+ }
7986
+
7987
+ .codelab .xterm .xterm-accessibility-tree > div {
7988
+ transform-origin: left;
7989
+ width: fit-content;
7990
+ }
7991
+
7992
+ .codelab .xterm .live-region {
7993
+ position: absolute;
7994
+ left: -9999px;
7995
+ width: 1px;
7996
+ height: 1px;
7997
+ overflow: hidden;
7998
+ }
7999
+
8000
+ .codelab .xterm-dim {
8001
+ opacity: 1 !important;
8002
+ }
8003
+
8004
+ .codelab .xterm-underline-1 { text-decoration: underline; }
8005
+ .codelab .xterm-underline-2 { text-decoration: double underline; }
8006
+ .codelab .xterm-underline-3 { text-decoration: wavy underline; }
8007
+ .codelab .xterm-underline-4 { text-decoration: dotted underline; }
8008
+ .codelab .xterm-underline-5 { text-decoration: dashed underline; }
8009
+ .codelab .xterm-overline { text-decoration: overline; }
8010
+ .codelab .xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
8011
+ .codelab .xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
8012
+ .codelab .xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
8013
+ .codelab .xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
8014
+ .codelab .xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }
8015
+ .codelab .xterm-strikethrough { text-decoration: line-through; }
8016
+
8017
+ .codelab .xterm-screen .xterm-decoration-container .xterm-decoration {
8018
+ z-index: 6;
8019
+ position: absolute;
8020
+ }
8021
+
8022
+ .codelab .xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
8023
+ z-index: 7;
8024
+ }
8025
+
8026
+ .codelab .xterm-decoration-overview-ruler {
8027
+ z-index: 8;
8028
+ position: absolute;
8029
+ top: 0;
8030
+ right: 0;
8031
+ pointer-events: none;
8032
+ }
8033
+
8034
+ .codelab .xterm-decoration-top {
8035
+ z-index: 2;
8036
+ position: relative;
8037
+ }
8038
+
8039
+ .codelab .xterm .xterm-scrollable-element > .scrollbar {
8040
+ cursor: default;
8041
+ }
8042
+
8043
+ .codelab .xterm .xterm-scrollable-element > .scrollbar > .scra {
8044
+ cursor: pointer;
8045
+ font-size: 11px !important;
8046
+ }
8047
+
8048
+ .codelab .xterm .xterm-scrollable-element > .visible {
8049
+ opacity: 1;
8050
+ background: rgba(0, 0, 0, 0);
8051
+ transition: opacity 100ms linear;
8052
+ z-index: 11;
8053
+ }
8054
+
8055
+ .codelab .xterm .xterm-scrollable-element > .invisible {
8056
+ opacity: 0;
8057
+ pointer-events: none;
8058
+ }
8059
+
8060
+ .codelab .xterm .xterm-scrollable-element > .invisible.fade {
8061
+ transition: opacity 800ms linear;
8062
+ }
8063
+
8064
+ .codelab .xterm .xterm-scrollable-element > .shadow {
8065
+ position: absolute;
8066
+ display: none;
8067
+ }
8068
+
8069
+ /* Full-Bleed xterm.js & Split Terminal Panes */
8070
+ .codelab-terminal-split-wrap,
8071
+ .codelab-terminal-split-grid,
8072
+ .codelab-terminal-panes {
8073
+ display: flex;
8074
+ flex-direction: row;
8075
+ align-items: stretch;
8076
+ width: 100%;
8077
+ height: 100%;
8078
+ min-height: 0;
8079
+ flex: 1 1 auto;
8080
+ overflow: hidden;
8081
+ background: var(--cl-bg);
8082
+ }
8083
+
8084
+ .codelab-terminal-pane {
8085
+ display: flex;
8086
+ flex-direction: column;
8087
+ flex: 1 1 0;
8088
+ min-width: 0;
8089
+ min-height: 0;
8090
+ height: 100%;
8091
+ overflow: hidden;
8092
+ position: relative;
8093
+ border-right: 1px solid var(--cl-border);
8094
+ }
8095
+
8096
+ .codelab-terminal-pane:last-child {
8097
+ border-right: none;
8098
+ }
8099
+
8100
+ .codelab-terminal-pane.is-focused::before,
8101
+ .codelab-terminal-pane.is-focused-pane::before {
8102
+ content: "";
8103
+ position: absolute;
8104
+ inset: 0 auto auto 0;
8105
+ width: 100%;
8106
+ height: 1px;
8107
+ background: var(--cl-fg-muted);
8108
+ z-index: 4;
8109
+ pointer-events: none;
8110
+ }
8111
+
8112
+ .codelab-terminal--xterm {
8113
+ display: flex;
8114
+ flex-direction: column;
8115
+ width: 100%;
8116
+ height: 100%;
8117
+ min-height: 0;
8118
+ flex: 1 1 auto;
8119
+ padding: 4px 6px 2px 10px;
8120
+ background: var(--cl-bg);
8121
+ overflow: hidden;
8122
+ position: relative;
8123
+ }
8124
+
8125
+ .codelab-xterm-mount {
8126
+ width: 100%;
8127
+ height: 100%;
8128
+ flex: 1 1 auto;
8129
+ min-height: 0;
8130
+ overflow: hidden;
8131
+ }
8132
+
8133
+ .codelab-xterm-mount .xterm {
8134
+ height: 100%;
8135
+ padding: 2px 0;
8136
+ }
8137
+
8138
+ .codelab-terminal__mirror {
8139
+ position: absolute;
8140
+ left: 0;
8141
+ top: 0;
8142
+ width: 1px;
8143
+ height: 1px;
8144
+ overflow: hidden;
8145
+ opacity: 0.001;
8146
+ pointer-events: none;
8147
+ }
8148
+
8149
+ .codelab-xterm-mount .xterm-viewport {
8150
+ background-color: transparent !important;
8151
+ }
8152
+
8153
+ /* Visually hidden DOM mirror inside xterm mode so Playwright / screen-reader locators stay 100% live */
8154
+ .codelab-terminal-a11y-mirror {
8155
+ position: absolute !important;
8156
+ left: 0 !important;
8157
+ bottom: 0 !important;
8158
+ width: 1px !important;
8159
+ height: 1px !important;
8160
+ overflow: hidden !important;
8161
+ clip-path: inset(50%) !important;
8162
+ white-space: pre !important;
8163
+ opacity: 0.01 !important;
8164
+ pointer-events: none !important;
8165
+ }
8166
+
8167
+ /* ═══════════════════════════════════════════════════════════════════════════
8168
+ Unified Design System Primitives & Reusable UI Component Classes
8169
+ Shared across Workbench Panels, Modals, Observability & Settings
8170
+ ═══════════════════════════════════════════════════════════════════════════ */
8171
+
8172
+ .codelab ::selection,
8173
+ .codelab-workbench ::selection,
8174
+ dialog.codelab-dialog ::selection {
8175
+ background: rgba(244, 244, 245, 0.2);
8176
+ color: var(--cl-fg);
8177
+ }
8178
+
8179
+ [data-theme="light"] .codelab ::selection,
8180
+ [data-cl-theme="light"] ::selection,
8181
+ .codelab[data-theme="light"] ::selection {
8182
+ background: rgba(24, 24, 27, 0.14);
8183
+ color: var(--cl-fg);
8184
+ }
8185
+
8186
+ .codelab ::-webkit-scrollbar,
8187
+ .codelab-workbench ::-webkit-scrollbar,
8188
+ dialog.codelab-dialog ::-webkit-scrollbar {
8189
+ width: 7px;
8190
+ height: 7px;
8191
+ }
8192
+
8193
+ .codelab ::-webkit-scrollbar-track,
8194
+ .codelab-workbench ::-webkit-scrollbar-track,
8195
+ dialog.codelab-dialog ::-webkit-scrollbar-track {
8196
+ background: transparent;
8197
+ }
8198
+
8199
+ .codelab ::-webkit-scrollbar-thumb,
8200
+ .codelab-workbench ::-webkit-scrollbar-thumb,
8201
+ dialog.codelab-dialog ::-webkit-scrollbar-thumb {
8202
+ background: var(--cl-border);
8203
+ border-radius: 999px;
8204
+ }
8205
+
8206
+ .codelab ::-webkit-scrollbar-thumb:hover,
8207
+ .codelab-workbench ::-webkit-scrollbar-thumb:hover,
8208
+ dialog.codelab-dialog ::-webkit-scrollbar-thumb:hover {
8209
+ background: var(--cl-border-strong);
8210
+ }
8211
+
8212
+ /* Typography & Layout Tokens */
8213
+ .cl-ui-sans { font-family: var(--cl-font-sans); }
8214
+ .cl-ui-mono { font-family: var(--cl-font-mono); }
8215
+ .cl-ui-text-2xs { font-size: var(--cl-text-2xs, 0.6875rem); }
8216
+ .cl-ui-text-xs { font-size: var(--cl-text-xs, 0.75rem); }
8217
+ .cl-ui-text-sm { font-size: var(--cl-text-sm, 0.8125rem); }
8218
+ .cl-ui-text-base { font-size: var(--cl-text-base, 0.875rem); }
8219
+
8220
+ .cl-ui-meta-inline {
8221
+ font-family: var(--cl-font-sans);
8222
+ font-size: var(--cl-text-2xs, 0.6875rem);
8223
+ color: var(--cl-fg-muted);
8224
+ margin-left: 8px;
8225
+ }
8226
+
8227
+ .cl-ui-metric {
8228
+ font-family: var(--cl-font-mono);
8229
+ font-variant-numeric: tabular-nums;
8230
+ font-size: var(--cl-text-xs, 0.75rem);
8231
+ color: var(--cl-fg-muted);
8232
+ }
8233
+
8234
+ .cl-ui-metric-cell {
8235
+ font-family: var(--cl-font-mono);
8236
+ font-variant-numeric: tabular-nums;
8237
+ font-size: var(--cl-text-xs, 0.75rem);
8238
+ color: var(--cl-fg);
8239
+ }
8240
+
8241
+ .cl-ui-muted-note {
8242
+ font-family: var(--cl-font-sans);
8243
+ font-size: var(--cl-text-xs, 0.75rem);
8244
+ color: var(--cl-fg-muted);
8245
+ line-height: 1.5;
8246
+ }
8247
+
8248
+ .cl-ui-muted-xs {
8249
+ font-family: var(--cl-font-sans);
8250
+ font-size: var(--cl-text-2xs, 0.6875rem);
8251
+ color: var(--cl-fg-faint);
8252
+ }
8253
+
8254
+ .cl-ui-empty-center {
8255
+ padding: 20px 14px;
8256
+ text-align: center;
8257
+ font-family: var(--cl-font-sans);
8258
+ font-size: var(--cl-text-xs, 0.75rem);
8259
+ color: var(--cl-fg-muted);
8260
+ }
8261
+
8262
+ .cl-ui-alert-error {
8263
+ padding: 8px 12px;
8264
+ border-radius: var(--cl-radius-md, 6px);
8265
+ background: var(--cl-red-muted);
8266
+ border: 1px solid color-mix(in srgb, var(--cl-red) 35%, var(--cl-border));
8267
+ color: var(--cl-red);
8268
+ font-family: var(--cl-font-mono);
8269
+ font-size: var(--cl-text-xs, 0.75rem);
8270
+ line-height: 1.45;
8271
+ white-space: pre-wrap;
8272
+ }
8273
+
8274
+ .cl-ui-section-label {
8275
+ font-family: var(--cl-font-mono);
8276
+ font-size: var(--cl-text-2xs, 0.6875rem);
8277
+ font-weight: 600;
8278
+ text-transform: uppercase;
8279
+ letter-spacing: 0.05em;
8280
+ color: var(--cl-fg-muted);
8281
+ margin: 0 0 8px;
8282
+ }
8283
+
8284
+ .cl-ui-code-box {
8285
+ margin: 0;
8286
+ padding: 10px 12px;
8287
+ border-radius: var(--cl-radius-md, 6px);
8288
+ background: var(--cl-bg-elevated);
8289
+ border: 1px solid var(--cl-border);
8290
+ color: var(--cl-fg);
8291
+ font-family: var(--cl-font-mono);
8292
+ font-size: var(--cl-text-xs, 0.75rem);
8293
+ line-height: 1.5;
8294
+ overflow-x: auto;
8295
+ white-space: pre-wrap;
8296
+ }
8297
+
8298
+ .cl-ui-form-row {
8299
+ display: flex;
8300
+ align-items: center;
8301
+ gap: 8px;
8302
+ margin-bottom: 12px;
8303
+ }
8304
+
8305
+ .cl-ui-input {
8306
+ flex: 1 1 auto;
8307
+ min-width: 0;
8308
+ height: 32px;
8309
+ padding: 0 10px;
8310
+ border-radius: var(--cl-radius-md, 6px);
8311
+ border: 1px solid var(--cl-input-border, var(--cl-border));
8312
+ background: var(--cl-input-bg);
8313
+ color: var(--cl-fg);
8314
+ font-family: var(--cl-font-sans);
8315
+ font-size: var(--cl-text-sm, 0.8125rem);
8316
+ outline: none;
8317
+ }
8318
+
8319
+ .cl-ui-input--mono {
8320
+ font-family: var(--cl-font-mono);
8321
+ font-size: var(--cl-text-xs, 0.75rem);
8322
+ }
8323
+
8324
+ .cl-ui-input:focus {
8325
+ border-color: var(--cl-focus-border);
8326
+ }
8327
+
8328
+ .cl-ui-card-note {
8329
+ padding: 10px 12px;
8330
+ border-radius: var(--cl-radius-md, 6px);
8331
+ background: var(--cl-bg);
8332
+ border: 1px solid var(--cl-border);
8333
+ font-family: var(--cl-font-sans);
8334
+ font-size: var(--cl-text-xs, 0.75rem);
8335
+ color: var(--cl-fg-muted);
8336
+ line-height: 1.5;
8337
+ }
8338
+
8339
+ .cl-ui-stack-xs {
8340
+ display: flex;
8341
+ flex-direction: column;
8342
+ gap: 6px;
8343
+ }
8344
+
8345
+ .cl-ui-pkg-row {
8346
+ display: flex;
8347
+ align-items: center;
8348
+ justify-content: space-between;
8349
+ gap: 8px;
8350
+ padding: 7px 10px;
8351
+ border-radius: var(--cl-radius-md, 6px);
8352
+ background: var(--cl-bg);
8353
+ border: 1px solid var(--cl-border);
8354
+ }
8355
+
8356
+ .cl-ui-pkg-row__name {
8357
+ font-family: var(--cl-font-mono);
8358
+ font-size: var(--cl-text-xs, 0.75rem);
8359
+ font-weight: 500;
8360
+ color: var(--cl-fg);
8361
+ }
8362
+
8363
+ .cl-ui-pkg-row__meta {
8364
+ font-family: var(--cl-font-mono);
8365
+ font-variant-numeric: tabular-nums;
8366
+ font-size: var(--cl-text-2xs, 0.6875rem);
8367
+ color: var(--cl-fg-faint);
8368
+ }
8369
+
8370
+ .cl-ui-chip-wrap {
8371
+ display: flex;
8372
+ flex-wrap: wrap;
8373
+ gap: 6px;
8374
+ margin-top: 8px;
8375
+ }
8376
+
8377
+ .cl-ui-chip {
8378
+ display: inline-flex;
8379
+ align-items: center;
8380
+ gap: 4px;
8381
+ padding: 3px 8px;
8382
+ border-radius: var(--cl-radius-sm, 4px);
8383
+ border: 1px solid var(--cl-border);
8384
+ background: var(--cl-bg-panel);
8385
+ color: var(--cl-fg-muted);
8386
+ font-family: var(--cl-font-mono);
8387
+ font-size: var(--cl-text-2xs, 0.6875rem);
8388
+ cursor: pointer;
8389
+ transition: color 100ms ease, border-color 100ms ease, background 100ms ease;
8390
+ }
8391
+
8392
+ .cl-ui-chip:hover {
8393
+ color: var(--cl-fg);
8394
+ background: var(--cl-bg-hover);
8395
+ border-color: var(--cl-border-strong);
8396
+ }
8397
+
8398
+ .cl-ui-shortcuts-grid {
8399
+ display: grid;
8400
+ grid-template-columns: 1fr auto;
8401
+ gap: 8px 16px;
8402
+ align-items: center;
8403
+ font-family: var(--cl-font-sans);
8404
+ font-size: var(--cl-text-sm, 0.8125rem);
8405
+ }
8406
+
8407
+ .cl-ui-kbd {
8408
+ display: inline-flex;
8409
+ align-items: center;
8410
+ padding: 2px 6px;
8411
+ border-radius: var(--cl-radius-sm, 4px);
8412
+ border: 1px solid var(--cl-border-strong);
8413
+ background: var(--cl-bg);
8414
+ color: var(--cl-fg);
8415
+ font-family: var(--cl-font-mono);
8416
+ font-size: var(--cl-text-2xs, 0.6875rem);
8417
+ font-variant-numeric: tabular-nums;
8418
+ }
8419
+
8420
+ .cl-ui-body-p {
8421
+ margin: 0 0 10px;
8422
+ font-family: var(--cl-font-sans);
8423
+ font-size: var(--cl-text-sm, 0.8125rem);
8424
+ color: var(--cl-fg);
8425
+ line-height: 1.55;
8426
+ }
8427
+
8428
+ .cl-ui-modal-desc {
8429
+ margin: 0 0 12px;
8430
+ font-family: var(--cl-font-sans);
8431
+ font-size: var(--cl-text-xs, 0.75rem);
8432
+ color: var(--cl-fg-muted);
8433
+ line-height: 1.5;
8434
+ }
8435
+
8436
+ .cl-ui-net-count {
8437
+ font-family: var(--cl-font-mono);
8438
+ font-variant-numeric: tabular-nums;
8439
+ font-size: var(--cl-text-2xs, 0.6875rem);
8440
+ color: var(--cl-fg-muted);
8441
+ }
8442
+
8443
+ .cl-ui-palette-sub {
8444
+ margin-left: 6px;
8445
+ font-family: var(--cl-font-sans);
8446
+ font-size: var(--cl-text-2xs, 0.6875rem);
8447
+ color: var(--cl-fg-muted);
8448
+ }
8449
+
8450
+ .codelab-recent-ws-item {
8451
+ display: flex;
8452
+ align-items: center;
8453
+ justify-content: space-between;
8454
+ gap: 10px;
8455
+ width: 100%;
8456
+ padding: 8px 10px;
8457
+ border-radius: var(--cl-radius-md, 6px);
8458
+ border: 1px solid var(--cl-border);
8459
+ background: var(--cl-bg);
8460
+ color: var(--cl-fg);
8461
+ font-family: var(--cl-font-sans);
8462
+ font-size: var(--cl-text-sm, 0.8125rem);
8463
+ text-align: left;
8464
+ cursor: pointer;
8465
+ transition: background 100ms ease, border-color 100ms ease;
8466
+ }
8467
+
8468
+ .codelab-recent-ws-item:hover {
8469
+ background: var(--cl-bg-hover);
8470
+ border-color: var(--cl-border-strong);
8471
+ }
8472
+
8473
+ .codelab-port-badge {
8474
+ display: inline-flex;
8475
+ align-items: center;
8476
+ gap: 4px;
8477
+ height: 22px;
8478
+ padding: 0 7px;
8479
+ border-radius: var(--cl-radius-sm, 4px);
8480
+ border: 1px solid var(--cl-border);
8481
+ background: var(--cl-bg-panel);
8482
+ color: var(--cl-fg);
8483
+ font-family: var(--cl-font-mono);
8484
+ font-variant-numeric: tabular-nums;
8485
+ font-size: var(--cl-text-2xs, 0.6875rem);
8486
+ cursor: pointer;
8487
+ }
8488
+
8489
+ .codelab-port-badge:hover {
8490
+ background: var(--cl-bg-hover);
8491
+ border-color: var(--cl-border-strong);
8492
+ }
8493
+
8494
+ .codelab-badge--warn {
8495
+ color: var(--cl-amber);
8496
+ }
8497
+
8498
+ /* Observability & Error Boundary Components (@code-lab/ui) */
8499
+ .cl-observability-panel {
8500
+ display: flex;
8501
+ flex-direction: column;
8502
+ gap: 10px;
8503
+ font-family: var(--cl-font-sans);
8504
+ }
8505
+
8506
+ .cl-observability-card {
8507
+ padding: 10px 12px;
8508
+ border-radius: var(--cl-radius-md, 6px);
8509
+ border: 1px solid var(--cl-border);
8510
+ background: var(--cl-bg-elevated);
8511
+ }
8512
+
8513
+ .cl-observability-meta {
8514
+ display: flex;
8515
+ flex-wrap: wrap;
8516
+ gap: 12px;
8517
+ font-family: var(--cl-font-mono);
8518
+ font-variant-numeric: tabular-nums;
8519
+ font-size: var(--cl-text-xs, 0.75rem);
8520
+ color: var(--cl-fg-muted);
8521
+ }
8522
+
8523
+ .cl-observability-list {
8524
+ margin: 6px 0 0;
8525
+ padding-left: 16px;
8526
+ font-family: var(--cl-font-mono);
8527
+ font-size: var(--cl-text-xs, 0.75rem);
8528
+ color: var(--cl-fg);
8529
+ line-height: 1.5;
8530
+ }
8531
+
8532
+ .cl-observability-list--scroll {
8533
+ max-height: 160px;
8534
+ overflow-y: auto;
8535
+ }
8536
+
8537
+ .cl-observability-warn {
8538
+ color: var(--cl-amber);
8539
+ }
8540
+
8541
+ .cl-error-boundary-banner {
8542
+ display: flex;
8543
+ align-items: center;
8544
+ justify-content: space-between;
8545
+ gap: 12px;
8546
+ padding: 10px 14px;
8547
+ border-radius: var(--cl-radius-md, 6px);
8548
+ border: 1px solid color-mix(in srgb, var(--cl-red) 40%, var(--cl-border));
8549
+ background: var(--cl-red-muted);
8550
+ color: var(--cl-fg);
8551
+ font-family: var(--cl-font-sans);
8552
+ font-size: var(--cl-text-sm, 0.8125rem);
8553
+ }
8554
+
8555
+ .cl-ui-btn {
8556
+ display: inline-flex;
8557
+ align-items: center;
8558
+ justify-content: center;
8559
+ gap: 6px;
8560
+ height: 28px;
8561
+ padding: 0 10px;
8562
+ border-radius: var(--cl-radius-md, 6px);
8563
+ border: 1px solid var(--cl-border);
8564
+ background: var(--cl-bg-panel);
8565
+ color: var(--cl-fg);
8566
+ font-family: var(--cl-font-sans);
8567
+ font-size: var(--cl-text-xs, 0.75rem);
8568
+ font-weight: 500;
8569
+ cursor: pointer;
8570
+ transition: background 100ms ease, border-color 100ms ease;
8571
+ }
8572
+
8573
+ .cl-ui-btn:hover {
8574
+ background: var(--cl-bg-hover);
8575
+ border-color: var(--cl-border-strong);
8576
+ }
7272
8577
 
7273
8578