@voltro/devtools 0.71.1 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -10,10 +10,14 @@
10
10
  *
11
11
  * Tokens (--background, --foreground, --border, …) are NOT defined
12
12
  * against `:root`. They live under `.vdt-scope` instead, so the host
13
- * page's token values aren't shadowed by the devtools'. The devtools
14
- * root element carries `class="vdt-scope vdt:dark"` — every descendant
13
+ * page's token values aren't shadowed by the devtools'. Every descendant
15
14
  * resolves tokens from this layer; the host's tree is untouched.
16
15
  *
16
+ * The other direction — the host's styles reaching the overlay — is closed
17
+ * by rendering into a shadow root (`shadowHost.tsx`), which copies exactly
18
+ * the rules mentioning `vdt` out of the document's sheets. Keep that
19
+ * marker in every selector, keyframe name and container name here.
20
+ *
17
21
  * Visual identity: always dark, brand-violet accent. The host page's
18
22
  * theme (light / dark / system) has zero influence — devtools is its
19
23
  * own surface. */
@@ -99,32 +103,63 @@
99
103
 
100
104
  /* ---- Reset (scoped — never bleeds into host) ---- */
101
105
 
102
- .vdt-scope,
103
- .vdt-scope *,
104
- .vdt-scope *::before,
105
- .vdt-scope *::after {
106
- box-sizing: border-box;
107
- }
108
-
109
- /* Reset attributes Tailwind utilities will override; touch nothing
110
- * Tailwind owns. Using `all: revert` for the bg/border/padding triple
111
- * would also work, but the explicit form is easier to reason about.
106
+ /* The overlay renders inside a SHADOW ROOT (shadowHost.tsx): the host's
107
+ * stylesheet does not reach these elements, and only the rules of ours that
108
+ * mention `vdt` are copied in. That includes the host's Tailwind PREFLIGHT —
109
+ * so the user-agent defaults are ours to clear. Measured before this block
110
+ * existed: every `<button>` in a panel wore Chrome's grey bevel, and a
111
+ * `vdt:border-b-2` drew nothing because the UA border-style is `none`.
112
112
  *
113
- * `background-color`/`border`/`padding` are deliberately NOT reset
114
- * here — Tailwind's `vdt:bg-*`, `vdt:border-*`, `vdt:p-*` utilities
115
- * use single-class selectors which a `.vdt-scope button` reset would
116
- * out-specify, leaving every button visually transparent. */
117
- .vdt-scope button {
118
- font: inherit;
119
- color: inherit;
120
- cursor: pointer;
121
- }
122
-
123
- .vdt-scope kbd,
124
- .vdt-scope code,
125
- .vdt-scope pre {
126
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
127
- 'Liberation Mono', 'Courier New', monospace;
113
+ * It sits in `@layer base` (declared by `@import "tailwindcss"`, and the
114
+ * statement is copied into the shadow sheet with it) and every selector is
115
+ * wrapped in `:where()`, so it has ZERO specificity and loses to any
116
+ * `vdt:*` utility on both counts. A bare `.vdt-scope button { padding: 0 }`
117
+ * would beat every `vdt:p-*`. */
118
+ @layer base {
119
+ /* Pseudo-elements are not allowed inside `:where()`; they get their own
120
+ * (still layered) selector. */
121
+ :where(.vdt-scope, .vdt-scope *),
122
+ :where(.vdt-scope) ::before,
123
+ :where(.vdt-scope) ::after {
124
+ box-sizing: border-box;
125
+ margin: 0;
126
+ padding: 0;
127
+ border: 0 solid var(--border);
128
+ }
129
+ :where(.vdt-scope) :where(button, input, select, textarea) {
130
+ font: inherit;
131
+ font-feature-settings: inherit;
132
+ font-variation-settings: inherit;
133
+ letter-spacing: inherit;
134
+ color: inherit;
135
+ background-color: transparent;
136
+ border-radius: 0;
137
+ }
138
+ /* `appearance: none` on a checkbox is a 0×0 box (measured: the dock menu's
139
+ * push switch vanished); native controls keep their appearance and get a
140
+ * size. */
141
+ :where(.vdt-scope) :where(button, input[type="submit"], input[type="button"]) { appearance: none; }
142
+ :where(.vdt-scope) :where(input[type="checkbox"], input[type="radio"]) { width: 14px; height: 14px; accent-color: var(--accent); }
143
+ :where(.vdt-scope) :where(button, [role="button"]) { cursor: pointer; }
144
+ :where(.vdt-scope) :where(button:disabled) { cursor: not-allowed; }
145
+ :where(.vdt-scope) :where(input[type="search"])::-webkit-search-decoration,
146
+ :where(.vdt-scope) :where(input[type="search"])::-webkit-search-cancel-button { -webkit-appearance: none; }
147
+ :where(.vdt-scope) :where(input)::placeholder { color: var(--foreground-subtle); opacity: 1; }
148
+ :where(.vdt-scope) :where(a) { color: inherit; text-decoration: inherit; }
149
+ :where(.vdt-scope) :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; }
150
+ :where(.vdt-scope) :where(ul, ol) { list-style: none; }
151
+ :where(.vdt-scope) :where(table) { border-collapse: collapse; border-color: inherit; text-indent: 0; }
152
+ :where(.vdt-scope) :where(hr) { height: 0; border-top-width: 1px; }
153
+ :where(.vdt-scope) :where(img, svg, video, canvas) { display: block; vertical-align: middle; }
154
+ :where(.vdt-scope) :where(svg) { flex: none; }
155
+ :where(.vdt-scope) :where(kbd, code, pre, samp) {
156
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
157
+ 'Liberation Mono', 'Courier New', monospace;
158
+ font-size: 1em;
159
+ }
160
+ :where(.vdt-scope) :where(pre) { white-space: pre-wrap; overflow-wrap: anywhere; }
161
+ :where(.vdt-scope) :where(summary) { display: list-item; }
162
+ :where(.vdt-scope) :where([hidden]:not([hidden="until-found"])) { display: none !important; }
128
163
  }
129
164
 
130
165
  /* Custom scrollbar for any scrollable surface inside the scope. Thin,
@@ -149,506 +184,518 @@
149
184
  background-clip: padding-box;
150
185
  }
151
186
 
152
- /* Tab bar scrolls horizontally when there are too many tabs to fit
153
- * the panel width, but we hide the scrollbar chrome — a permanent
154
- * 8px-tall scroller below the tab row looks like a UI bug. The row
155
- * stays draggable + wheel-scrollable; the visible affordance is the
156
- * cut-off-on-the-right last tab. */
187
+ /* The scope row scrolls horizontally when the console is narrower than the
188
+ * sum of its chips, but we hide the scrollbar chrome — a permanent 8px-tall
189
+ * scroller below the row looks like a UI bug. The row stays draggable +
190
+ * wheel-scrollable; the visible affordance is the cut-off last chip plus a
191
+ * fade mask on both edges. */
157
192
  .vdt-scope .vdt-tablist {
158
193
  scrollbar-width: none;
159
- /* Fade-mask on both horizontal edges so the user gets a visual hint
160
- * that the row is scrollable when a tab is partially hidden. Symmetric
161
- * so it stays looking intentional even when content fits without
162
- * overflow (the fade barely registers at the inner edge of the first
163
- * / last tab in that case). 18px is wide enough to clip the last
164
- * character of a tab label cleanly without smearing the badge pill. */
165
- -webkit-mask-image: linear-gradient(
166
- to right,
167
- transparent 0,
168
- black 18px,
169
- black calc(100% - 18px),
170
- transparent 100%
171
- );
172
- mask-image: linear-gradient(
173
- to right,
174
- transparent 0,
175
- black 18px,
176
- black calc(100% - 18px),
177
- transparent 100%
178
- );
179
- }
180
- .vdt-scope .vdt-tablist::-webkit-scrollbar {
181
- display: none;
182
- }
183
-
184
- /* The fixed-position host element sits above EVERYTHING on the host
185
- * page. 2^31 - 1 is the maximum 32-bit signed int — defensive against
186
- * host pages that use absurd z-index values for their own modals. */
194
+ -webkit-mask-image: linear-gradient(to right, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
195
+ mask-image: linear-gradient(to right, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
196
+ }
197
+ .vdt-scope .vdt-tablist::-webkit-scrollbar { display: none; }
198
+
199
+ /* The fixed-position host element sits above EVERYTHING on the host page.
200
+ * 2^31 - 1 is the maximum 32-bit signed int — defensive against host pages
201
+ * that use absurd z-index values for their own modals. The host itself is
202
+ * inert; only the capsule / console below it take pointer events. */
187
203
  .vdt-host {
188
204
  position: fixed;
205
+ inset: 0;
189
206
  z-index: 2147483647;
190
207
  pointer-events: none;
191
208
  }
192
- .vdt-host > * {
193
- pointer-events: auto;
194
- }
209
+ .vdt-host > .vdt-scope { display: contents; }
210
+ .vdt-scope .vdt-capsule,
211
+ .vdt-scope .vdt-console { pointer-events: auto; }
195
212
 
196
- /* Accent text shadow used on the floating button. */
197
- .vdt-glow {
198
- box-shadow: var(--shadow-button);
213
+ /* Selection and focus inside the overlay come from the palette, not the UA. */
214
+ .vdt-scope ::selection { background: #6530ba; color: #fff; }
215
+ .vdt-scope :where(button, input, [tabindex]):focus-visible {
216
+ outline: 2px solid var(--accent);
217
+ outline-offset: 2px;
199
218
  }
200
- .vdt-panel-shadow {
201
- box-shadow: var(--shadow-panel);
219
+ .vdt-scope input { caret-color: var(--accent); }
220
+
221
+ /* Motion. One authored moment: the console arrives from its edge, the capsule
222
+ * pops. Everything else is a 150–200ms state change. */
223
+ @keyframes vdt-pop {
224
+ from { opacity: 0; transform: translateX(-50%) scale(0.94); }
225
+ to { opacity: 1; transform: translateX(-50%) scale(1); }
226
+ }
227
+ @keyframes vdt-from-bottom { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
228
+ @keyframes vdt-from-top { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
229
+ @keyframes vdt-from-left { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
230
+ @keyframes vdt-from-right { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
231
+ @keyframes vdt-window-in { from { transform: scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
232
+ @keyframes vdt-spin { to { transform: rotate(360deg); } }
233
+ .vdt-scope .vdt-spinner { animation: vdt-spin 900ms linear infinite; }
234
+
235
+ /* ---- Capsule (closed) --------------------------------------------------- */
236
+ .vdt-scope .vdt-capsule {
237
+ position: absolute;
238
+ left: 50%;
239
+ bottom: 18px;
240
+ transform: translateX(-50%);
241
+ height: 40px;
242
+ padding: 0 14px 0 10px;
243
+ display: inline-flex;
244
+ align-items: center;
245
+ gap: 12px;
246
+ background: var(--card);
247
+ border: 1px solid var(--border);
248
+ border-radius: 999px;
249
+ color: var(--foreground-muted);
250
+ font-size: 12px;
251
+ white-space: nowrap;
252
+ --pill-glow: var(--accent);
253
+ box-shadow:
254
+ 0 12px 32px -10px oklch(0 0 0 / 60%),
255
+ 0 0 0 1px color-mix(in oklch, var(--pill-glow) 18%, transparent);
256
+ animation: vdt-pop 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
257
+ transition: box-shadow 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
258
+ }
259
+ .vdt-scope .vdt-capsule:hover {
260
+ transform: translateX(-50%) translateY(-1px);
261
+ box-shadow:
262
+ 0 14px 36px -10px oklch(0 0 0 / 65%),
263
+ 0 0 0 1px color-mix(in oklch, var(--pill-glow) 45%, transparent);
264
+ }
265
+ .vdt-scope .vdt-capsule:active { transform: translateX(-50%) scale(0.98); }
266
+ .vdt-scope .vdt-capsule-mark { width: 20px; height: 20px; flex: none; color: var(--accent); }
267
+ .vdt-scope .vdt-capsule-chips { display: inline-flex; align-items: center; gap: 12px; }
268
+ .vdt-scope .vdt-capsule-chips > .vdt-chip + .vdt-chip { position: relative; padding-left: 12px; }
269
+ .vdt-scope .vdt-capsule-chips > .vdt-chip + .vdt-chip::before {
270
+ content: '';
271
+ position: absolute;
272
+ left: 0;
273
+ top: 50%;
274
+ width: 1px;
275
+ height: 14px;
276
+ transform: translateY(-50%);
277
+ background: var(--border);
278
+ }
279
+ .vdt-scope .vdt-capsule-status {
280
+ display: inline-flex;
281
+ align-items: baseline;
282
+ gap: 1px;
283
+ font-weight: 600;
284
+ color: var(--foreground);
202
285
  }
203
286
 
204
- /* Animations — small library so we don't have to pull a motion lib. */
205
- @keyframes vdt-fade-in {
206
- from { opacity: 0; transform: scale(0.96); }
207
- to { opacity: 1; transform: scale(1); }
287
+ /* Busy kinds re-colour the ring + mark so the capsule reads as one state. */
288
+ .vdt-scope .vdt-capsule[data-kind="reconnecting"] { --pill-glow: var(--warning); }
289
+ .vdt-scope .vdt-capsule[data-kind="error"] { --pill-glow: var(--danger); }
290
+ .vdt-scope .vdt-capsule[data-kind="reconnecting"] .vdt-capsule-mark { color: var(--warning); }
291
+ .vdt-scope .vdt-capsule[data-kind="error"] .vdt-capsule-mark { color: var(--danger); }
292
+ @keyframes vdt-pill-pulse {
293
+ 0%, 100% { box-shadow: 0 12px 32px -10px oklch(0 0 0 / 60%), 0 0 0 1px color-mix(in oklch, var(--pill-glow) 25%, transparent), 0 0 14px color-mix(in oklch, var(--pill-glow) 25%, transparent); }
294
+ 50% { box-shadow: 0 12px 32px -10px oklch(0 0 0 / 60%), 0 0 0 1.5px color-mix(in oklch, var(--pill-glow) 60%, transparent), 0 0 28px color-mix(in oklch, var(--pill-glow) 60%, transparent); }
208
295
  }
209
- @keyframes vdt-slide-up {
210
- from { opacity: 0; transform: translateY(8px); }
211
- to { opacity: 1; transform: translateY(0); }
296
+ .vdt-scope .vdt-capsule[data-busy="true"] { animation: vdt-pill-pulse 2400ms ease-in-out infinite; }
297
+
298
+ /* Three staggered fading dots after "Compiling" / "Reconnecting". */
299
+ .vdt-scope .vdt-dots { display: inline-flex; align-items: baseline; gap: 1px; margin-left: 1px; }
300
+ .vdt-scope .vdt-dots > span {
301
+ display: inline-block; width: 3px; height: 3px; border-radius: 50%;
302
+ background: currentColor; opacity: 0.25;
303
+ animation: vdt-dot-tick 1400ms ease-in-out infinite;
212
304
  }
213
- /* Ambient halo on the floating button.
214
- *
215
- * Strategy: a pseudo-element behind the button carries a CONIC
216
- * gradient of brand violet — bright at one slice, fading through
217
- * dim at others — that rotates slowly. The asymmetry rotating
218
- * creates the "music visualizer / lighthouse beam" feel; a SECOND
219
- * animation breathes the pseudo's opacity for the intensity pulse.
220
- *
221
- * Two timings on different cycles (rotation 7s, breath 4.2s) means
222
- * the two motions desync — the glow never lands at the same shape
223
- * twice in a row, which is what makes it read as "alive" instead of
224
- * a metronome. */
225
- @keyframes vdt-glow-rotate {
226
- to { transform: rotate(360deg); }
305
+ .vdt-scope .vdt-dots > span:nth-child(2) { animation-delay: 180ms; }
306
+ .vdt-scope .vdt-dots > span:nth-child(3) { animation-delay: 360ms; }
307
+ @keyframes vdt-dot-tick {
308
+ 0%, 100% { opacity: 0.25; transform: translateY(0); }
309
+ 35% { opacity: 1; transform: translateY(-1px); }
310
+ 60% { opacity: 0.4; transform: translateY(0); }
227
311
  }
228
- @keyframes vdt-glow-breathe {
229
- 0%, 100% { opacity: 0.35; }
230
- 50% { opacity: 1; }
312
+
313
+ /* ---- Shared atoms ------------------------------------------------------- */
314
+ .vdt-scope .vdt-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
315
+ .vdt-scope .vdt-chip b { color: var(--foreground); font-weight: 600; }
316
+ .vdt-scope .vdt-chip-err { color: var(--danger); }
317
+ .vdt-scope .vdt-chip-err b { color: var(--danger); }
318
+ .vdt-scope .vdt-chip-warn { color: var(--warning); }
319
+ .vdt-scope .vdt-chip-warn b { color: var(--warning); }
320
+ .vdt-scope .vdt-chip-info { color: var(--info); }
321
+ .vdt-scope .vdt-chip-info b { color: var(--info); }
322
+
323
+ .vdt-scope .vdt-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: var(--border-strong); }
324
+ .vdt-scope .vdt-dot-ok { background: var(--success); box-shadow: 0 0 0 3px color-mix(in oklch, var(--success) 18%, transparent); }
325
+ .vdt-scope .vdt-dot-warn { background: var(--warning); box-shadow: 0 0 0 3px color-mix(in oklch, var(--warning) 18%, transparent); }
326
+ .vdt-scope .vdt-dot-err { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in oklch, var(--danger) 18%, transparent); }
327
+ .vdt-scope .vdt-dot-info { background: var(--info); box-shadow: 0 0 0 3px color-mix(in oklch, var(--info) 18%, transparent); }
328
+ .vdt-scope .vdt-dot-idle { background: var(--border-strong); }
329
+
330
+ .vdt-scope .vdt-tag {
331
+ display: inline-flex; align-items: center; gap: 4px;
332
+ padding: 1px 6px; border-radius: 4px;
333
+ font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
334
+ border: 1px solid var(--border); color: var(--foreground-muted); background: var(--muted);
335
+ white-space: nowrap;
231
336
  }
232
- @media (prefers-reduced-motion: reduce) {
233
- @keyframes vdt-glow-rotate { to { transform: rotate(0deg); } }
234
- @keyframes vdt-glow-breathe { 0%, 100% { opacity: 0.5; } }
337
+ .vdt-scope .vdt-tag-ok { color: var(--success); border-color: color-mix(in oklch, var(--success) 35%, transparent); background: color-mix(in oklch, var(--success) 14%, transparent); }
338
+ .vdt-scope .vdt-tag-err { color: var(--danger); border-color: color-mix(in oklch, var(--danger) 35%, transparent); background: color-mix(in oklch, var(--danger) 14%, transparent); }
339
+ .vdt-scope .vdt-tag-warn { color: var(--warning); border-color: color-mix(in oklch, var(--warning) 35%, transparent); background: color-mix(in oklch, var(--warning) 14%, transparent); }
340
+ .vdt-scope .vdt-tag-info { color: var(--info); border-color: color-mix(in oklch, var(--info) 35%, transparent); background: color-mix(in oklch, var(--info) 14%, transparent); }
341
+
342
+ .vdt-scope .vdt-badge {
343
+ display: inline-flex; align-items: center; justify-content: center;
344
+ min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
345
+ font-size: 10.5px; font-weight: 600; background: var(--muted); color: var(--foreground-muted);
235
346
  }
236
- .vdt-scope .vdt-anim-pop {
237
- animation: vdt-fade-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
347
+ .vdt-scope .vdt-badge-acc { background: var(--accent); color: var(--accent-foreground); }
348
+ .vdt-scope .vdt-badge-err { background: color-mix(in oklch, var(--danger) 22%, transparent); color: var(--danger); }
349
+
350
+ .vdt-scope .vdt-kbd {
351
+ display: inline-block; padding: 1px 5px; border-radius: 4px;
352
+ border: 1px solid var(--border-strong); background: var(--background-elevated);
353
+ font-size: 10.5px; color: var(--foreground-muted); font-family: inherit; line-height: 1.3;
354
+ }
355
+ .vdt-scope .vdt-iconbtn {
356
+ width: 26px; height: 26px; border-radius: 6px; flex: none;
357
+ display: inline-flex; align-items: center; justify-content: center;
358
+ color: var(--foreground-muted); background: transparent; border: 0;
359
+ transition: background-color 150ms ease, color 150ms ease;
360
+ }
361
+ .vdt-scope .vdt-iconbtn:hover { background: var(--muted); color: var(--foreground); }
362
+ .vdt-scope .vdt-iconbtn-on { background: var(--accent); color: var(--accent-foreground); }
363
+ .vdt-scope .vdt-iconbtn-on:hover { background: var(--accent-dim); color: #fff; }
364
+ .vdt-scope .vdt-sp { flex: 1; }
365
+
366
+ /* ---- Console (open) ----------------------------------------------------- */
367
+ .vdt-scope .vdt-console {
368
+ position: absolute;
369
+ display: flex;
370
+ flex-direction: column;
371
+ background: var(--background);
372
+ color: var(--foreground);
373
+ container-type: inline-size;
374
+ container-name: vdt-console;
375
+ overflow: hidden;
238
376
  }
239
- .vdt-scope .vdt-anim-slide {
240
- animation: vdt-slide-up 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
377
+ .vdt-scope .vdt-console[data-dock="bottom"] { left: 0; right: 0; bottom: 0; border-top: 1px solid var(--border); box-shadow: 0 -24px 60px -20px oklch(0 0 0 / 65%); animation: vdt-from-bottom 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
378
+ .vdt-scope .vdt-console[data-dock="top"] { left: 0; right: 0; top: 0; border-bottom: 1px solid var(--border); box-shadow: 0 24px 60px -20px oklch(0 0 0 / 65%); animation: vdt-from-top 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
379
+ .vdt-scope .vdt-console[data-dock="left"] { top: 0; bottom: 0; left: 0; border-right: 1px solid var(--border); box-shadow: 24px 0 60px -20px oklch(0 0 0 / 65%); animation: vdt-from-left 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
380
+ .vdt-scope .vdt-console[data-dock="right"] { top: 0; bottom: 0; right: 0; border-left: 1px solid var(--border); box-shadow: -24px 0 60px -20px oklch(0 0 0 / 65%); animation: vdt-from-right 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
381
+ .vdt-scope .vdt-console[data-dock="window"] {
382
+ border: 1px solid var(--border-strong);
383
+ border-radius: 12px;
384
+ box-shadow: var(--shadow-panel);
385
+ animation: vdt-window-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
241
386
  }
242
- /* Halo carrier — applied via the `.vdt-pulse` class on the button.
243
- *
244
- * Implemented as a thin ring HUGGING the button rim, not a blooming
245
- * cloud floating outside it. Two layered pseudo-elements:
246
- *
247
- * ::before — the "outer glow" — a soft, slightly larger ring that
248
- * bleeds 5px past the rim. Carries the conic gradient
249
- * + rotation so the asymmetry travels around the edge.
250
- * ::after — the "inner contact" — a sharper ring tight to the
251
- * rim. Picks up the same conic gradient + rotation so
252
- * the rotating bright slice is visible at the actual
253
- * border, not just in the soft outer aura.
254
- *
255
- * Each pseudo uses a `mask: radial-gradient(...)` cut-out so only an
256
- * annulus (donut) of the conic gradient is visible — the inner area
257
- * of the pseudo never paints, and the button's dark card background
258
- * stays uniform behind the icon. Without the mask the gradient would
259
- * fill the whole circle (including the area BEHIND the icon), making
260
- * the halo read as a floating coloured disc instead of a rim glow.
261
- *
262
- * `isolation: isolate` pins both pseudos in the button's stacking
263
- * context so the `z-index: -1` halos can't bleed behind host-page
264
- * positioned content. */
265
- .vdt-scope .vdt-pulse {
266
- position: relative;
267
- isolation: isolate;
268
- }
269
- .vdt-scope .vdt-pulse::before,
270
- .vdt-scope .vdt-pulse::after {
387
+ .vdt-scope .vdt-console[data-dock="window"] .vdt-bar { cursor: grab; }
388
+ .vdt-scope .vdt-console[data-dock="window"] .vdt-bar:active { cursor: grabbing; }
389
+
390
+ /* Resize grip on the inner edge. The hit area is 10px; the visible bar is a
391
+ * 4px pill that brightens on hover, like a browser's devtools splitter. */
392
+ .vdt-scope .vdt-grip { position: absolute; z-index: 2; touch-action: none; }
393
+ .vdt-scope .vdt-grip::after {
271
394
  content: '';
272
395
  position: absolute;
273
- border-radius: inherit;
274
- background: conic-gradient(
275
- from 0deg,
276
- oklch(0.7 0.18 290 / 0%) 0deg,
277
- oklch(0.7 0.18 290 / 90%) 55deg,
278
- oklch(0.7 0.18 290 / 15%) 170deg,
279
- oklch(0.7 0.18 290 / 70%) 240deg,
280
- oklch(0.7 0.18 290 / 0%) 360deg
281
- );
282
- z-index: -1;
283
- pointer-events: none;
284
- animation:
285
- vdt-glow-rotate 7000ms linear infinite,
286
- vdt-glow-breathe 4200ms ease-in-out infinite;
287
- /* Transition picks up when the animation is removed (see the
288
- * `[data-open="true"]` override on .vdt-surface). The animated
289
- * opacity controls the value while the animation is active; when
290
- * the animation is dropped, this transition interpolates from
291
- * whatever value the animation left to the static rule's value. */
292
- transition: opacity 200ms ease;
293
- }
294
- /* Outer soft aura — bleeds just past the rim. The mask keeps the
295
- * INNER 60% transparent, so paint exists only as a soft ring around
296
- * the button's silhouette. Blur turns it into a glow. */
297
- .vdt-scope .vdt-pulse::before {
298
- inset: -5px;
299
- -webkit-mask: radial-gradient(closest-side, transparent 60%, black 100%);
300
- mask: radial-gradient(closest-side, transparent 60%, black 100%);
301
- filter: blur(6px);
302
- }
303
- /* Inner sharp ring — sits exactly on the rim. The narrower mask
304
- * window (70–90%) gives a 1–2px coloured edge that traces the
305
- * border itself. This is what makes the rotation read as "the rim
306
- * is pulsing/wabbering" rather than as a separate aura. */
307
- .vdt-scope .vdt-pulse::after {
308
- inset: 0;
309
- -webkit-mask: radial-gradient(closest-side, transparent 70%, black 90%, transparent 100%);
310
- mask: radial-gradient(closest-side, transparent 70%, black 90%, transparent 100%);
311
- filter: blur(1px);
312
- }
396
+ border-radius: 4px;
397
+ background: var(--border-strong);
398
+ transition: background-color 150ms ease, transform 150ms ease;
399
+ }
400
+ .vdt-scope .vdt-console[data-dock="bottom"] .vdt-grip,
401
+ .vdt-scope .vdt-console[data-dock="top"] .vdt-grip { left: 0; right: 0; height: 10px; cursor: row-resize; }
402
+ .vdt-scope .vdt-console[data-dock="bottom"] .vdt-grip { top: 0; }
403
+ .vdt-scope .vdt-console[data-dock="top"] .vdt-grip { bottom: 0; }
404
+ .vdt-scope .vdt-console[data-dock="bottom"] .vdt-grip::after,
405
+ .vdt-scope .vdt-console[data-dock="top"] .vdt-grip::after { left: 50%; top: 3px; width: 44px; height: 4px; transform: translateX(-50%); }
406
+ .vdt-scope .vdt-console[data-dock="left"] .vdt-grip,
407
+ .vdt-scope .vdt-console[data-dock="right"] .vdt-grip { top: 0; bottom: 0; width: 10px; cursor: col-resize; }
408
+ .vdt-scope .vdt-console[data-dock="left"] .vdt-grip { right: 0; }
409
+ .vdt-scope .vdt-console[data-dock="right"] .vdt-grip { left: 0; }
410
+ .vdt-scope .vdt-console[data-dock="left"] .vdt-grip::after,
411
+ .vdt-scope .vdt-console[data-dock="right"] .vdt-grip::after { top: 50%; left: 3px; width: 4px; height: 44px; transform: translateY(-50%); }
412
+ .vdt-scope .vdt-grip:hover::after { background: var(--accent); }
313
413
 
314
- /* Continuous rotation for the spinner icon. */
315
- @keyframes vdt-spin {
316
- to { transform: rotate(360deg); }
414
+ .vdt-scope .vdt-win-resize {
415
+ position: absolute; right: 0; bottom: 0; width: 18px; height: 18px;
416
+ cursor: nwse-resize; touch-action: none;
317
417
  }
318
- .vdt-scope .vdt-spinner {
319
- animation: vdt-spin 900ms linear infinite;
418
+ .vdt-scope .vdt-win-resize::after {
419
+ content: '';
420
+ position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px;
421
+ border-right: 2px solid var(--border-strong); border-bottom: 2px solid var(--border-strong);
422
+ border-radius: 0 0 3px 0;
320
423
  }
424
+ .vdt-scope .vdt-win-resize:hover::after { border-color: var(--accent); }
321
425
 
322
- /* ---- Morphing floating button ----------------------------------------
323
- * Idle: 48×48 circle, brand-violet glow (the `vdt-pulse` keyframes
324
- * above own this).
325
- * Busy: pill, ~ICON + LABEL wide, faster pulse cadence so users
326
- * perceive movement. The width transition is what makes the
327
- * Next.js-style morph feel.
328
- *
329
- * We animate width via `width: auto` indirection: use a CSS variable
330
- * `--vdt-fab-width` set to either `48px` (idle) or `auto` won't
331
- * transition; so we set explicit `min-width: 48px` + use a content-
332
- * aware approach with `width: max-content` and a tracked `--vdt-fab-w`
333
- * the JS reads. Simpler approach for now: use `width: max-content` +
334
- * `transition` on `min-width` + `border-radius` + `padding`.
335
- *
336
- * The transition timing is calibrated to feel like the Next dev
337
- * indicator — fast enough to feel snappy, slow enough that the eye
338
- * tracks the morph. */
339
- /* ---- Morphing surface -------------------------------------------------
340
- *
341
- * Single DOM element that holds both the FAB icon and the full panel
342
- * content as absolutely-positioned layers. The `data-open` attribute
343
- * drives the morph: width, height, and border-radius transition
344
- * together. The two inner layers crossfade via opacity + pointer-
345
- * events so clicks land on the right surface at the right time.
346
- *
347
- * State table:
348
- *
349
- * data-open data-busy → size shape layer
350
- * false false → 48px × 48px circle FAB visible
351
- * false true → 140px × 48px pill FAB visible (busy)
352
- * true * → 420px × 60vh rounded panel visible
353
- *
354
- * The busy + open combination falls through to "open" — once the
355
- * panel is showing, the busy pill shape isn't relevant. The status
356
- * still shows as a small chip inside the panel header (TODO).
357
- *
358
- * Width / height / border-radius all use the same cubic-bezier curve
359
- * so the morph reads as one coordinated motion. Transform is on its
360
- * own (slightly shorter) timing for the hover/active scale because
361
- * the curve overlap is intentional — the press-down lands a beat
362
- * before the morph completes, making clicks feel responsive. */
363
- .vdt-scope .vdt-surface {
364
- position: relative;
365
- isolation: isolate;
366
- display: block;
367
- width: 48px;
368
- height: 48px;
369
- background: var(--card);
370
- border-radius: 999px;
371
- /* Hover-only baseline. Overridden by :hover / :active below. */
372
- transform: scale(1);
373
- transform-origin: center;
374
- will-change: transform, width, height, border-radius;
375
- /* Curves picked to feel like one surface morphing — same cubic-
376
- * bezier on every layout property, transform faster so it doesn't
377
- * lag. */
378
- transition:
379
- transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
380
- width 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
381
- height 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
382
- border-radius 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
383
- background 180ms ease;
384
- }
385
-
386
- /* Closed + busy = pill (compile / loading / reconnecting indicator).
387
- * Width is content-driven via max-content so short labels ("Loading",
388
- * "Build error") sit in a tight pill and longer ones ("Reconnecting"
389
- * + animated dots) get exactly the room they need. Width transition
390
- * between 48px circle and intrinsic pill width does not smoothly
391
- * interpolate via CSS — that's the trade-off for content sizing.
392
- * The other morph properties (height, border-radius, background)
393
- * still animate, so the change reads as one coordinated motion. */
394
- .vdt-scope .vdt-surface[data-busy="true"]:not([data-open="true"]) {
395
- width: max-content;
396
- }
397
-
398
- /* Open = full panel. The container clamps to the viewport on small
399
- * screens (max-width calc keeps it from overflowing the host edge).
400
- * 560px is the smallest width that fits all six tabs + their badges
401
- * on one row without the tablist needing to scroll in the common
402
- * case; tablist itself is overflow-x:auto so narrower viewports
403
- * (max-width clamp triggers) still get all tabs, just behind a
404
- * horizontal scroll. */
405
- .vdt-scope .vdt-surface[data-open="true"] {
406
- width: 560px;
407
- max-width: calc(100vw - 32px);
408
- height: 60vh;
409
- max-height: 720px;
410
- min-height: 400px;
411
- border-radius: 8px;
412
- /* Box-shadow gives the open panel a clear lift off the page; the
413
- * rotating halo fades out via the pseudo's opacity below. */
414
- box-shadow: var(--shadow-panel);
415
- }
426
+ /* Header: mark · search (or title) · scopes · dock menu · close. */
427
+ .vdt-scope .vdt-bar {
428
+ display: flex;
429
+ align-items: center;
430
+ gap: 10px;
431
+ padding: 12px 10px 8px 14px;
432
+ flex: none;
433
+ min-width: 0;
434
+ }
435
+ .vdt-scope .vdt-console[data-dock="bottom"] .vdt-bar { padding-top: 14px; }
436
+ .vdt-scope .vdt-bar-mark { width: 20px; height: 20px; flex: none; }
437
+ .vdt-scope .vdt-bar-title { display: inline-flex; align-items: baseline; gap: 6px; flex: none; }
438
+ .vdt-scope .vdt-bar-brand { font-size: 13px; font-weight: 600; color: var(--foreground); }
439
+ .vdt-scope .vdt-bar-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--foreground-muted); }
416
440
 
417
- /* Hover / active scale — closed state only. The panel is too big to
418
- * usefully scale; doing so would feel noisy. */
419
- .vdt-scope .vdt-surface:not([data-open="true"]):hover {
420
- transform: scale(1.08);
441
+ .vdt-scope .vdt-search {
442
+ flex: 0 1 360px;
443
+ min-width: 160px;
444
+ height: 32px;
445
+ display: flex;
446
+ align-items: center;
447
+ gap: 8px;
448
+ padding: 0 10px;
449
+ border-radius: 8px;
450
+ border: 1px solid var(--border-strong);
451
+ background: var(--card);
452
+ color: var(--foreground-subtle);
453
+ transition: border-color 150ms ease, box-shadow 150ms ease;
421
454
  }
422
- .vdt-scope .vdt-surface:not([data-open="true"]):active {
423
- transform: scale(0.96);
424
- transition-duration: 80ms, 320ms, 320ms, 320ms, 180ms;
455
+ .vdt-scope .vdt-search:focus-within {
456
+ border-color: var(--accent);
457
+ box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
425
458
  }
426
- @media (prefers-reduced-motion: reduce) {
427
- .vdt-scope .vdt-surface,
428
- .vdt-scope .vdt-surface:hover,
429
- .vdt-scope .vdt-surface:active {
430
- transform: scale(1);
431
- }
459
+ .vdt-scope .vdt-search input {
460
+ flex: 1;
461
+ min-width: 0;
462
+ background: transparent;
463
+ border: 0;
464
+ outline: 0;
465
+ color: var(--foreground);
466
+ font: inherit;
467
+ font-size: 12.5px;
432
468
  }
469
+ .vdt-scope .vdt-search input::placeholder { color: var(--foreground-subtle); }
470
+ .vdt-scope .vdt-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
433
471
 
434
- /* Halo on the surface — the rotating conic-gradient + radial-mask
435
- * combination is designed for a CIRCULAR surface. Both the masked
436
- * region (`closest-side` radial → circle) and the gradient's visual
437
- * weight assume a square aspect.
438
- *
439
- * When the surface stops being square (busy pill = 140×48; open
440
- * panel = 420×60vh) the mask cuts a circular hole through a
441
- * rectangle, leaving visible "lobes" of conic colour at the long
442
- * ends that don't match the pill / panel outline. Hide it entirely
443
- * in those states. The pill state gets its own shape-appropriate
444
- * pulse below; the panel state is just clean (the box-shadow lift
445
- * carries the visual hierarchy).
446
- *
447
- * `animation: none` (not `play-state: paused`) so the animated
448
- * opacity stops controlling the pseudo — the static `opacity: 0`
449
- * + the transition on the base rule then fade the halo out cleanly. */
450
- .vdt-scope .vdt-surface[data-open="true"]::before,
451
- .vdt-scope .vdt-surface[data-open="true"]::after,
452
- .vdt-scope .vdt-surface[data-busy="true"]:not([data-open="true"])::before,
453
- .vdt-scope .vdt-surface[data-busy="true"]:not([data-open="true"])::after {
454
- opacity: 0;
455
- animation: none;
456
- }
457
-
458
- /* Busy pill: replace the rotating halo with a shape-appropriate
459
- * pulsing outline glow. `box-shadow` follows the surface's actual
460
- * `border-radius: 999px`, so the glow traces the pill perimeter
461
- * exactly — no mask shape mismatch. The pulse is shorter than the
462
- * idle halo's breath (2.4s vs 4.2s) so the "something's happening"
463
- * cadence matches the loading semantics.
464
- *
465
- * `--pill-glow` is the per-kind colour; defaults to brand violet,
466
- * overridden by the `[data-kind]` selectors below for reconnecting
467
- * (amber) and error (red). Pulling the colour through a custom prop
468
- * means the @keyframes don't need to be duplicated per kind. */
469
- .vdt-scope .vdt-surface {
470
- --pill-glow: oklch(0.7 0.18 290); /* brand violet — default */
471
- }
472
- .vdt-scope .vdt-surface[data-kind="reconnecting"] {
473
- --pill-glow: oklch(0.78 0.16 75); /* warning amber */
474
- }
475
- .vdt-scope .vdt-surface[data-kind="error"] {
476
- --pill-glow: oklch(0.68 0.22 22); /* danger red */
477
- }
478
- @keyframes vdt-pill-pulse {
479
- 0%, 100% {
480
- box-shadow:
481
- 0 0 0 1px color-mix(in oklch, var(--pill-glow) 25%, transparent),
482
- 0 0 14px color-mix(in oklch, var(--pill-glow) 25%, transparent);
483
- }
484
- 50% {
485
- box-shadow:
486
- 0 0 0 1.5px color-mix(in oklch, var(--pill-glow) 60%, transparent),
487
- 0 0 28px color-mix(in oklch, var(--pill-glow) 60%, transparent);
488
- }
472
+ .vdt-scope .vdt-scopes {
473
+ display: flex;
474
+ align-items: center;
475
+ gap: 2px;
476
+ min-width: 0;
477
+ flex: 1 1 auto;
478
+ overflow-x: auto;
479
+ scrollbar-width: none;
480
+ padding: 0 4px;
489
481
  }
490
- @media (prefers-reduced-motion: reduce) {
491
- @keyframes vdt-pill-pulse {
492
- 0%, 100% {
493
- box-shadow:
494
- 0 0 0 1px color-mix(in oklch, var(--pill-glow) 35%, transparent),
495
- 0 0 14px color-mix(in oklch, var(--pill-glow) 35%, transparent);
496
- }
497
- }
482
+ .vdt-scope .vdt-scopes::-webkit-scrollbar { display: none; }
483
+ .vdt-scope .vdt-scope {
484
+ display: inline-flex;
485
+ align-items: center;
486
+ gap: 6px;
487
+ flex: none;
488
+ padding: 5px 8px;
489
+ border-radius: 6px;
490
+ font-size: 12px;
491
+ color: var(--foreground-muted);
492
+ border: 0;
493
+ background: transparent;
494
+ transition: background-color 150ms ease, color 150ms ease;
498
495
  }
499
- .vdt-scope .vdt-surface[data-busy="true"]:not([data-open="true"]) {
500
- animation: vdt-pill-pulse 2400ms ease-in-out infinite;
496
+ .vdt-scope .vdt-scope:hover { background: var(--muted); color: var(--foreground); }
497
+ .vdt-scope .vdt-scope-on { background: var(--muted); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-strong); }
498
+ .vdt-scope .vdt-scope-sep { margin-left: 10px; position: relative; }
499
+ .vdt-scope .vdt-scope-sep::before {
500
+ content: ''; position: absolute; left: -6px; top: 50%; width: 1px; height: 16px;
501
+ transform: translateY(-50%); background: var(--border);
501
502
  }
502
503
 
503
- /* Per-kind tweaks for the FAB layer: the icon + label re-colour to
504
- * match the pill's outline-glow so the surface reads as one cohesive
505
- * state. Reconnecting = amber (warning); error = red (danger). */
506
- .vdt-scope .vdt-surface[data-kind="reconnecting"] .vdt-fab-layer {
507
- color: var(--warning);
508
- }
509
- .vdt-scope .vdt-surface[data-kind="error"] .vdt-fab-layer {
510
- color: var(--danger);
511
- }
512
- .vdt-scope .vdt-surface[data-kind="reconnecting"] .vdt-fab-label,
513
- .vdt-scope .vdt-surface[data-kind="error"] .vdt-fab-label {
514
- color: var(--foreground);
504
+ /* Body: results | detail, or one structural panel. */
505
+ .vdt-scope .vdt-body {
506
+ flex: 1;
507
+ min-height: 0;
508
+ display: grid;
509
+ grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
510
+ border-top: 1px solid var(--border);
511
+ }
512
+ .vdt-scope .vdt-body-panel { display: block; overflow: auto; }
513
+ .vdt-scope .vdt-results { overflow: auto; outline-offset: -2px; }
514
+ .vdt-scope .vdt-side {
515
+ border-left: 1px solid var(--border);
516
+ background: var(--card);
517
+ overflow: auto;
518
+ display: flex;
519
+ flex-direction: column;
520
+ min-width: 0;
515
521
  }
516
522
 
517
- /* ---- FAB layer ---------------------------------------------------------
518
- *
519
- * The button face visible in the closed state. Stays in normal flow
520
- * (NOT position:absolute) so its content contributes to the surface's
521
- * intrinsic size — that's load-bearing for the busy-pill state, which
522
- * uses `width: max-content` on the surface to size the pill to its
523
- * label. Absolutely-positioned children don't participate in the
524
- * parent's intrinsic size per CSS spec, so the original `position:
525
- * absolute; inset: 0` collapsed the busy pill to 0 width (visible only
526
- * as the outline-glow box-shadow stripe).
527
- *
528
- * The panel-layer is still absolutely positioned over this so the
529
- * crossfade morph works — when open, fab-layer is opacity:0 + sized
530
- * to fill (width/height 100%) so the surface's geometry comes from
531
- * the explicit panel dimensions, not the fab content. */
532
- .vdt-scope .vdt-fab-layer {
533
- position: relative;
534
- width: 48px;
535
- height: 48px;
536
- display: inline-flex;
523
+ .vdt-scope .vdt-row {
524
+ width: 100%;
525
+ display: grid;
526
+ grid-template-columns: 14px 92px minmax(0, 1fr) auto;
527
+ gap: 10px;
537
528
  align-items: center;
538
- justify-content: center;
539
- gap: 0;
540
- padding: 0;
529
+ padding: 8px 12px;
541
530
  border: 0;
531
+ border-bottom: 1px solid var(--border);
542
532
  background: transparent;
543
- color: var(--accent);
544
- cursor: pointer;
545
- border-radius: inherit;
546
- transition:
547
- /* Slightly faster fade-out than the morph so the FAB disappears
548
- * before the panel layer arrives — clean handoff between layers. */
549
- opacity 160ms ease,
550
- /* Inside-the-layer transitions for the busy-pill morph. */
551
- width 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
552
- padding 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
553
- gap 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
554
- }
555
- .vdt-scope .vdt-surface[data-busy="true"]:not([data-open="true"]) .vdt-fab-layer {
556
- /* Pill grows to fit content: spinner + gap + label-text + dots,
557
- * plus the asymmetric padding (12 left for the icon, 16 right for
558
- * breathing room after the label). `width: auto` is what makes the
559
- * surface's `width: max-content` actually size to the label. */
560
- width: auto;
561
- padding: 0 16px 0 12px;
562
- gap: 8px;
563
- }
564
- .vdt-scope .vdt-surface[data-open="true"] .vdt-fab-layer {
565
- /* Open state: fab-layer fades out, but it must still fill the
566
- * surface so the morph animation's geometry stays smooth. */
567
- opacity: 0;
568
- pointer-events: none;
569
- width: 100%;
570
- height: 100%;
533
+ color: inherit;
534
+ text-align: left;
535
+ transition: background-color 120ms ease;
536
+ }
537
+ .vdt-scope .vdt-row:hover { background: color-mix(in oklch, var(--muted) 60%, transparent); }
538
+ .vdt-scope .vdt-row-sel { background: color-mix(in oklch, var(--accent) 10%, transparent); }
539
+ .vdt-scope .vdt-row-sel:hover { background: color-mix(in oklch, var(--accent) 14%, transparent); }
540
+ .vdt-scope .vdt-row-src { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--foreground-subtle); }
541
+ .vdt-scope .vdt-row-sel .vdt-row-src { color: var(--accent); }
542
+ .vdt-scope .vdt-row-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
543
+ .vdt-scope .vdt-row-name { color: var(--foreground); flex: none; }
544
+ .vdt-scope .vdt-row-sel .vdt-row-name { color: var(--accent); }
545
+ .vdt-scope .vdt-row-summary {
546
+ color: var(--foreground-subtle);
547
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
548
+ font-size: 11.5px;
549
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
550
+ min-width: 0;
551
+ }
552
+ .vdt-scope .vdt-row-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground-muted); font-size: 11.5px; white-space: nowrap; }
553
+ .vdt-scope .vdt-row-api { color: var(--foreground-subtle); }
554
+ .vdt-scope .vdt-row-time { color: var(--foreground-subtle); font-variant-numeric: tabular-nums; }
555
+
556
+ .vdt-scope .vdt-detail { display: flex; flex-direction: column; min-height: 100%; }
557
+ .vdt-scope .vdt-detail-head {
558
+ display: flex; align-items: center; gap: 8px;
559
+ padding: 9px 12px; border-bottom: 1px solid var(--border);
560
+ font-size: 12px; min-width: 0;
561
+ }
562
+ .vdt-scope .vdt-detail-name { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
563
+ .vdt-scope .vdt-detail-body { overflow: auto; }
564
+
565
+ .vdt-scope .vdt-empty {
566
+ display: flex; flex-direction: column; align-items: center; justify-content: center;
567
+ gap: 4px; text-align: center; padding: 40px 24px; height: 100%;
571
568
  }
569
+ .vdt-scope .vdt-empty-title { font-size: 13px; color: var(--foreground); font-weight: 500; }
570
+ .vdt-scope .vdt-empty-hint { font-size: 12px; color: var(--foreground-subtle); max-width: 40ch; }
571
+ .vdt-scope .vdt-empty-side { padding: 24px; }
572
572
 
573
- .vdt-scope .vdt-fab-label {
574
- display: inline-block;
575
- font-size: 12px;
576
- font-weight: 600;
577
- letter-spacing: 0.01em;
578
- color: var(--foreground);
579
- white-space: nowrap;
580
- opacity: 0;
581
- max-width: 0;
573
+ /* Footer: connection chips, route, key hints. */
574
+ .vdt-scope .vdt-foot {
575
+ flex: none;
576
+ display: flex;
577
+ align-items: center;
578
+ gap: 12px;
579
+ padding: 6px 14px;
580
+ border-top: 1px solid var(--border);
581
+ background: var(--background-elevated);
582
+ font-size: 11px;
583
+ color: var(--foreground-subtle);
584
+ min-width: 0;
582
585
  overflow: hidden;
583
- transition:
584
- opacity 220ms ease,
585
- max-width 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
586
- }
587
- .vdt-scope .vdt-surface[data-busy="true"]:not([data-open="true"]) .vdt-fab-label {
588
- opacity: 1;
589
- /* No cap — pill scales to fit. Status pushers must supply short
590
- * labels ("Build error", "Reconnecting", "Loading"); long error
591
- * details belong in the console / error panel, not the pill. */
592
- max-width: max-content;
593
- }
594
-
595
- /* Animated three-dot ticker after labels like "Reconnecting" /
596
- * "Loading" / "Compiling". The dots are physical <span> elements
597
- * (one per dot) so we can stagger their fade-ins independently
598
- * — `content`-based dot animations have spotty browser support.
599
- *
600
- * Pattern: each dot fades in with a 180ms delay relative to the
601
- * previous one, then they all fade out together. Loops every 1.4s,
602
- * matching the cadence of a typewriter cursor. Width is reserved
603
- * via fixed-em sizing so the pill doesn't reflow as dots tick. */
604
- .vdt-scope .vdt-dots {
605
- display: inline-flex;
606
- align-items: baseline;
607
- gap: 1px;
608
- margin-left: 1px;
609
586
  }
610
- .vdt-scope .vdt-dots > span {
611
- display: inline-block;
612
- width: 3px;
613
- height: 3px;
614
- background: currentColor;
615
- border-radius: 50%;
616
- opacity: 0.25;
617
- animation: vdt-dot-tick 1400ms ease-in-out infinite;
587
+ .vdt-scope .vdt-foot .vdt-chip { color: var(--foreground-muted); }
588
+ .vdt-scope .vdt-foot-route code { color: var(--foreground-muted); }
589
+ .vdt-scope .vdt-hints { display: inline-flex; gap: 12px; white-space: nowrap; }
590
+ .vdt-scope .vdt-hints > span { display: inline-flex; align-items: center; gap: 4px; }
591
+
592
+ /* Dock menu popover. */
593
+ .vdt-scope .vdt-dockmenu { position: relative; flex: none; }
594
+ .vdt-scope .vdt-dockmenu-pop {
595
+ position: absolute;
596
+ right: 0;
597
+ top: calc(100% + 6px);
598
+ z-index: 3;
599
+ min-width: 260px;
600
+ padding: 8px;
601
+ border-radius: 10px;
602
+ border: 1px solid var(--border-strong);
603
+ background: var(--background-elevated);
604
+ box-shadow: var(--shadow-panel);
605
+ animation: vdt-window-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
606
+ }
607
+ .vdt-scope .vdt-console[data-dock="top"] .vdt-dockmenu-pop,
608
+ .vdt-scope .vdt-console[data-dock="left"] .vdt-dockmenu-pop,
609
+ .vdt-scope .vdt-console[data-dock="right"] .vdt-dockmenu-pop,
610
+ .vdt-scope .vdt-console[data-dock="bottom"] .vdt-dockmenu-pop { top: calc(100% + 6px); }
611
+ .vdt-scope .vdt-dockmenu-row { display: flex; gap: 4px; }
612
+ .vdt-scope .vdt-dockmenu-item {
613
+ flex: 1; height: 34px; border-radius: 7px; border: 1px solid transparent;
614
+ display: inline-flex; align-items: center; justify-content: center;
615
+ color: var(--foreground-muted); background: transparent;
616
+ transition: background-color 150ms ease, color 150ms ease;
617
+ }
618
+ .vdt-scope .vdt-dockmenu-item:hover { background: var(--muted); color: var(--foreground); }
619
+ .vdt-scope .vdt-dockmenu-item-on { background: color-mix(in oklch, var(--accent) 16%, transparent); color: var(--accent); border-color: color-mix(in oklch, var(--accent) 40%, transparent); }
620
+ .vdt-scope .vdt-dockmenu-push {
621
+ display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
622
+ margin-top: 8px; padding: 8px 6px 4px; border-top: 1px solid var(--border);
623
+ cursor: pointer;
618
624
  }
619
- .vdt-scope .vdt-dots > span:nth-child(2) { animation-delay: 180ms; }
620
- .vdt-scope .vdt-dots > span:nth-child(3) { animation-delay: 360ms; }
621
- @keyframes vdt-dot-tick {
622
- 0%, 100% { opacity: 0.25; transform: translateY(0); }
623
- 35% { opacity: 1; transform: translateY(-1px); }
624
- 60% { opacity: 0.4; transform: translateY(0); }
625
+ .vdt-scope .vdt-dockmenu-push-off { opacity: .5; cursor: not-allowed; }
626
+ .vdt-scope .vdt-dockmenu-push input { margin: 3px 0 0; accent-color: var(--accent); }
627
+ .vdt-scope .vdt-dockmenu-push-label { display: block; font-size: 12px; color: var(--foreground); }
628
+ .vdt-scope .vdt-dockmenu-push-hint { display: block; font-size: 11px; color: var(--foreground-subtle); line-height: 1.4; }
629
+
630
+ /* Narrow console (side dock, small window): stack list over detail and drop
631
+ * the scope labels to icons. Container queries, so a window dragged narrow
632
+ * behaves exactly like a side dock. */
633
+ @container vdt-console (max-width: 899px) {
634
+ .vdt-scope .vdt-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(160px, 45%); }
635
+ .vdt-scope .vdt-side { border-left: 0; border-top: 1px solid var(--border); }
636
+ .vdt-scope .vdt-body[data-empty="true"] { grid-template-rows: minmax(0, 1fr); }
637
+ .vdt-scope .vdt-body[data-empty="true"] .vdt-side { display: none; }
638
+ .vdt-scope .vdt-row { grid-template-columns: 14px minmax(0, 1fr) auto; }
639
+ .vdt-scope .vdt-row-src { display: none; }
640
+ .vdt-scope .vdt-hints > span:nth-child(-n + 2) { display: none; }
641
+ }
642
+ /* Below ~1240px the ten labelled chips plus the search no longer share one
643
+ * row: the chips drop to icons (All keeps its word), the badges stay. */
644
+ @container vdt-console (max-width: 1239px) {
645
+ .vdt-scope .vdt-scope-label { display: none; }
646
+ .vdt-scope .vdt-scope[data-scope="all"] .vdt-scope-label { display: inline; }
647
+ }
648
+ @container vdt-console (max-width: 640px) {
649
+ .vdt-scope .vdt-bar { flex-wrap: wrap; row-gap: 6px; }
650
+ /* handle 18 + mark 20 + dock 26 + close 26 + four 10px gaps + bar padding */
651
+ .vdt-scope .vdt-search { flex: 1 1 calc(100% - 160px); order: 1; }
652
+ .vdt-scope .vdt-bar-title { order: 1; }
653
+ .vdt-scope .vdt-dockmenu { order: 2; }
654
+ .vdt-scope .vdt-bar > .vdt-iconbtn:last-child { order: 3; }
655
+ .vdt-scope .vdt-scopes { order: 4; flex-basis: 100%; padding: 0; }
656
+ .vdt-scope .vdt-row-meta .vdt-row-api { display: none; }
657
+ .vdt-scope .vdt-hints { display: none; }
625
658
  }
659
+
626
660
  @media (prefers-reduced-motion: reduce) {
627
- .vdt-scope .vdt-dots > span {
628
- animation: none;
629
- opacity: 0.6;
630
- }
661
+ /* `[data-dock]` keeps this at the specificity of the per-dock entrance
662
+ * rules above; a bare `.vdt-console` here loses to them and the console
663
+ * still slides in (measured). */
664
+ .vdt-scope .vdt-capsule,
665
+ .vdt-scope .vdt-console[data-dock],
666
+ .vdt-scope .vdt-dockmenu-pop { animation: none; transition: none; }
667
+ .vdt-scope .vdt-capsule[data-busy="true"] { animation: none; }
668
+ .vdt-scope .vdt-dots > span { animation: none; opacity: 0.6; }
669
+ .vdt-scope .vdt-capsule:hover { transform: translateX(-50%); }
631
670
  }
632
671
 
633
- /* ---- Panel layer -------------------------------------------------------
634
- *
635
- * The panel content (header, tabs, body) visible in the open state.
636
- * `display: flex` always, so the layout is computed in the background
637
- * while invisible. The fade-in is delayed slightly so the morph
638
- * finishes its first ~180ms unobstructed, then content appears. */
639
- .vdt-scope .vdt-panel-layer {
640
- position: absolute;
641
- inset: 0;
642
- display: flex;
643
- flex-direction: column;
644
- overflow: hidden;
645
- border-radius: inherit;
646
- opacity: 0;
647
- pointer-events: none;
648
- transition:
649
- opacity 200ms ease 140ms;
650
- }
651
- .vdt-scope .vdt-surface[data-open="true"] .vdt-panel-layer {
652
- opacity: 1;
653
- pointer-events: auto;
654
- }
672
+ /* The overlay's own error state (components/boundary.tsx): inside the chrome,
673
+ * never the page's. */
674
+ .vdt-scope .vdt-crash {
675
+ display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
676
+ padding: 14px 16px; color: var(--foreground);
677
+ background: color-mix(in oklch, var(--danger) 10%, var(--background));
678
+ border: 1px solid color-mix(in oklch, var(--danger) 40%, transparent);
679
+ border-radius: 10px; margin: 12px;
680
+ }
681
+ .vdt-scope .vdt-capsule + .vdt-crash,
682
+ .vdt-host[data-open="false"] .vdt-crash {
683
+ position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
684
+ margin: 0; pointer-events: auto; max-width: min(90vw, 560px);
685
+ }
686
+ .vdt-scope .vdt-crash-title { font-size: 12.5px; font-weight: 600; }
687
+ .vdt-scope .vdt-crash-message { margin: 0; padding: 0; background: transparent; border: 0; color: var(--danger); font-size: 11.5px; white-space: pre-wrap; }
688
+ .vdt-scope .vdt-crash-reset {
689
+ padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border-strong);
690
+ background: var(--card); color: var(--foreground); font-size: 12px;
691
+ }
692
+ .vdt-scope .vdt-crash-reset:hover { border-color: var(--accent); }
693
+
694
+ /* Window drag handle — the one spot in the bar that is always "hold here". */
695
+ .vdt-scope .vdt-win-handle {
696
+ display: inline-flex; align-items: center; justify-content: center;
697
+ width: 18px; height: 26px; margin-right: -4px; border-radius: 6px;
698
+ color: var(--foreground-subtle); cursor: grab; flex: none;
699
+ }
700
+ .vdt-scope .vdt-win-handle:hover { color: var(--foreground); background: var(--muted); }
701
+ .vdt-scope .vdt-console[data-dock="window"] .vdt-bar:active .vdt-win-handle { cursor: grabbing; }