@kriya-ai/harness 0.2.5 → 2.0.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 (134) hide show
  1. package/RELEASE_NOTES.md +121 -0
  2. package/SAFETY.md +181 -0
  3. package/THIRD_PARTY_NOTICES.md +113 -0
  4. package/bin/kriya.js +188 -2
  5. package/bundle/cordis.patch.yml +60 -5
  6. package/contract/SOURCE.md +3 -3
  7. package/contract/contract.json +498 -3
  8. package/contract/schemas/api.json +64 -0
  9. package/contract/schemas/auth_matrix.json +44 -0
  10. package/contract/schemas/component_states.json +33 -0
  11. package/contract/schemas/design_tokens.json +34 -0
  12. package/contract/schemas/scene_direction.json +82 -0
  13. package/contract/schemas/threat_model.json +44 -0
  14. package/package.json +2 -1
  15. package/plugins/changes/client.js +5 -3
  16. package/plugins/deploy/index.js +215 -0
  17. package/plugins/deploy/package.json +13 -0
  18. package/plugins/grounding/index.js +81 -0
  19. package/plugins/grounding/lookup.js +373 -0
  20. package/plugins/grounding/package.json +13 -0
  21. package/plugins/kriya-tools/index.js +2 -1
  22. package/plugins/loop/index.js +381 -10
  23. package/plugins/mcp/index.js +79 -0
  24. package/plugins/mcp/package.json +13 -0
  25. package/plugins/mirror/index.js +17 -0
  26. package/plugins/overview/client.js +5 -2
  27. package/plugins/preview/client.js +12 -6
  28. package/plugins/progress/client.js +7 -4
  29. package/plugins/repo/index.js +230 -0
  30. package/plugins/repo/package.json +13 -0
  31. package/plugins/repo/repo.js +348 -0
  32. package/plugins/runstrip/client.js +436 -0
  33. package/plugins/runstrip/index.js +312 -0
  34. package/plugins/runstrip/package.json +23 -0
  35. package/src/cartridges.js +133 -0
  36. package/src/contracts.js +130 -0
  37. package/src/critic.js +78 -0
  38. package/src/daemon.js +7 -1
  39. package/src/doctor.js +67 -0
  40. package/src/edit/core/effects.js +185 -0
  41. package/src/edit/core/ffmpeg.js +65 -6
  42. package/src/edit/core/layout.js +46 -1
  43. package/src/edit/core/ops.js +169 -2
  44. package/src/edit/core/plan.js +65 -9
  45. package/src/edit/core/project.d.ts +24 -0
  46. package/src/edit/core/project.js +64 -0
  47. package/src/edit/core/solver.js +34 -6
  48. package/src/edit/core/style-brief.js +211 -0
  49. package/src/edit/core/style-packs.js +57 -0
  50. package/src/edit/core/type-kit.js +173 -0
  51. package/src/edit/director/ask.js +37 -3
  52. package/src/edit/director/assembly.js +829 -0
  53. package/src/edit/director/continuity.js +9 -1
  54. package/src/edit/director/custom-motion.js +88 -0
  55. package/src/edit/director/graphics.js +44 -10
  56. package/src/edit/director/intent.js +125 -0
  57. package/src/edit/director/mentions.js +52 -0
  58. package/src/edit/director/plan.js +43 -11
  59. package/src/edit/director/revise.js +132 -9
  60. package/src/edit/director/viewer.js +136 -0
  61. package/src/edit/director/watch-fix.js +119 -0
  62. package/src/edit/engine/captions.js +110 -5
  63. package/src/edit/engine/confine.js +81 -4
  64. package/src/edit/engine/custom.js +243 -0
  65. package/src/edit/engine/dna2.js +893 -0
  66. package/src/edit/engine/fonts.js +218 -0
  67. package/src/edit/engine/graphics.js +271 -10
  68. package/src/edit/engine/index.js +14 -5
  69. package/src/edit/engine/motion.js +148 -13
  70. package/src/edit/engine/music-bed.js +59 -1
  71. package/src/edit/engine/packs.js +11 -0
  72. package/src/edit/engine/reference2.js +26 -0
  73. package/src/edit/engine/sfx.js +56 -1
  74. package/src/edit/engine/tool.js +21 -5
  75. package/src/edit/gates/assembly.js +194 -0
  76. package/src/edit/gates/copy.js +7 -4
  77. package/src/edit/gates/index.js +72 -7
  78. package/src/edit/gates/reference.js +115 -0
  79. package/src/edit/gates/tile.js +96 -0
  80. package/src/edit/host/client.js +8 -3
  81. package/src/edit/host/clips.js +33 -0
  82. package/src/edit/host/jobs.js +9 -3
  83. package/src/edit/host/layers.js +134 -0
  84. package/src/edit/host/main.js +10 -3
  85. package/src/edit/host/paths.js +21 -3
  86. package/src/edit/host/preview.js +108 -0
  87. package/src/edit/host/projects.js +443 -34
  88. package/src/edit/host/server.js +235 -20
  89. package/src/edit/host/tavi.js +77 -0
  90. package/src/edit/index/index.js +3 -2
  91. package/src/edit/loop/make.js +28 -3
  92. package/src/edit/recipes/assembly.js +352 -0
  93. package/src/edit/recipes/graphic-clips.js +4 -2
  94. package/src/edit/recipes/openings.js +36 -0
  95. package/src/edit/recipes/reel.js +104 -14
  96. package/src/edit/recipes/reference-look.js +29 -0
  97. package/src/edit/recipes/short-from-long.js +3 -3
  98. package/src/edit/recipes/sound.js +71 -0
  99. package/src/edit/runtime/cli.js +26 -5
  100. package/src/edit/runtime/fetch.js +4 -4
  101. package/src/edit/runtime/licences.js +7 -1
  102. package/src/explore.js +103 -0
  103. package/src/failure.js +1 -1
  104. package/src/gate-commands.js +114 -0
  105. package/src/gates/api.js +127 -0
  106. package/src/gates/commands.js +111 -0
  107. package/src/gates/detectors.js +370 -0
  108. package/src/gates/http.js +62 -0
  109. package/src/gates/index.js +196 -0
  110. package/src/gates/page.js +264 -0
  111. package/src/gates/sast.js +64 -0
  112. package/src/gates/stack.js +110 -0
  113. package/src/gates/tenant.js +162 -0
  114. package/src/gates/three.js +431 -0
  115. package/src/gates/ui.js +111 -0
  116. package/src/gateway-proxy.js +20 -2
  117. package/src/launch.js +39 -5
  118. package/src/loop.js +199 -7
  119. package/src/mcp.js +126 -0
  120. package/src/milestones.js +188 -0
  121. package/src/modes.js +67 -0
  122. package/src/orchestra.js +50 -0
  123. package/src/outcomes.js +88 -0
  124. package/src/profiles.js +5 -0
  125. package/src/receipts.js +238 -0
  126. package/src/release.js +356 -0
  127. package/src/runstrip.js +122 -0
  128. package/src/stack.js +120 -0
  129. package/src/verify.js +67 -20
  130. package/studio/dist/fonts/fraunces.woff2 +0 -0
  131. package/studio/dist/fonts/geist.woff2 +0 -0
  132. package/studio/dist/fonts/jetbrains-mono.woff2 +0 -0
  133. package/studio/dist/studio.css +449 -1
  134. package/studio/dist/studio.js +3 -3
@@ -88,7 +88,9 @@ a { color: var(--teal); }
88
88
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
89
89
  .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
90
90
  .inline { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
91
- .inline input[type="checkbox"] { width: 22px; height: 22px; }
91
+ .inline input[type="checkbox"], .inline input[type="radio"] { width: 22px; height: 22px; }
92
+ /* TP7: a brand colour, a 44 px target */
93
+ .swatch { width: 44px; height: 44px; padding: 2px; border: 0; border-radius: 10px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; }
92
94
  .zoom { width: 110px; min-height: 44px; }
93
95
  .chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
94
96
 
@@ -134,6 +136,11 @@ a { color: var(--teal); }
134
136
  .workspace[data-mode="finish"] :is(.area-bin, .area-kriya, .area-transcript, .area-strip, .area-timeline) { display: none; }
135
137
 
136
138
  .monitor-frame { display: flex; justify-content: center; align-items: center; min-height: 200px; }
139
+ /* The live preview's tiles (TP3): the renderer's own documents over the canvas, never a target.
140
+ color-scheme normal on the frames, so Chrome draws them transparent in the dark theme too */
141
+ .monitor-frame:has(.tile-layer) { position: relative; }
142
+ .tile-layer { position: absolute; overflow: hidden; pointer-events: none; color-scheme: normal; }
143
+ .tile-layer .tile { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: transparent; pointer-events: none; color-scheme: normal; }
137
144
  .monitor { max-width: 100%; max-height: 62vh; background: #000; display: block; }
138
145
  .transport { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
139
146
  .area-monitor .chip { background: rgb(255 255 255 / 0.12); color: #ddd; }
@@ -232,6 +239,13 @@ a { color: var(--teal); }
232
239
  .scene-head .field { width: auto; }
233
240
  .scene-info .field { width: auto; flex: 1 1 140px; min-width: 0; }
234
241
  .scene-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
242
+ /* The Plan Card's Order (TP2): the film's parts, small; each move is a 44 px target, and a row wraps at 360 px */
243
+ .order-strip { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
244
+ .order-part { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line, rgba(127, 127, 127, 0.25)); }
245
+ .order-n { flex: none; min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; opacity: 0.7; }
246
+ .order-what { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
247
+ .order-moves { display: inline-flex; gap: 6px; flex: none; }
248
+ .order-move { min-width: 44px; min-height: 44px; padding: 0; }
235
249
  /* A wide (16:9) preview and its controls don't fit side by side on a phone: the controls drop under it */
236
250
  .proposal .scene-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: flex-start; }
237
251
  .found-thumb { flex: none; width: 120px; height: 90px; object-fit: cover; border-radius: 6px; background: #000; }
@@ -247,4 +261,438 @@ a { color: var(--teal); }
247
261
  .ref .ref-lines { list-style: none; padding: 0; margin: 2px 0; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }
248
262
  .area-monitor .marks .btn { background: #2a2a2a; color: #eee; }
249
263
 
264
+ /* TP1 (ASSEMBLY_AND_INTENT §2, §4): clip handles, the bin's tools, the storyboard and mentions.
265
+ All of it is drawn only with editing.assembly on; off, no rule here matches anything */
266
+ .badge { flex: none; display: inline-block; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: var(--on-teal); font: 600 12px/24px ui-monospace, "JetBrains Mono", monospace; text-align: center; }
267
+ .thumb { flex: none; width: 64px; height: 36px; border-radius: 6px; background: var(--hover) center / cover no-repeat; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
268
+ /* A video's thumbnails are one sheet of ten by ten: the first tile */
269
+ .thumb.sheet { background-size: 1000% 1000%; background-position: 0 0; }
270
+ .bin-tools { display: grid; gap: 8px; margin-bottom: 10px; }
271
+ .asset-head { display: flex; gap: 8px; align-items: center; min-width: 0; }
272
+ .asset-head .btn { flex: 1; min-width: 0; justify-content: flex-start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
273
+ .asset.handle { cursor: grab; }
274
+ .bin-group { color: var(--ink-2); padding-top: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
275
+ /* A long bin scrolls in place and draws only the rows in view, each the same height (main.js BIN_ROW) */
276
+ .bin.virtual { max-height: 62vh; overflow: auto; gap: 0; }
277
+ .bin.virtual > .asset { height: 236px; overflow: hidden; align-content: start; }
278
+ .bin.virtual > .bin-group { height: 36px; }
279
+
280
+ .area-story { grid-area: story; display: none; }
281
+ .workspace.has-story[data-mode="direct"] .area-story { display: block; }
282
+ .workspace.has-story[data-mode="direct"] .grid { grid-template-areas: "monitor kriya" "story story" "transcript transcript" "strip strip"; }
283
+ .sb-cards { list-style: none; padding: 0 0 4px; margin: 0 0 8px; display: flex; gap: 8px; overflow-x: auto; }
284
+ .sb-cards:empty { display: none; }
285
+ .sb-cards > li { flex: none; width: 184px; }
286
+ .sb-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); cursor: grab; }
287
+ .sb-card .thumb { grid-column: 1 / -1; width: 100%; height: 94px; }
288
+ .sb-card .name, .sb-add .name, .mention-option .name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
289
+ .sb-card .name { font-weight: 500; }
290
+ .sb-card .stretch, .sb-card .field, .sb-moves { grid-column: 1 / -1; }
291
+ .sb-card .stretch { color: var(--ink-2); }
292
+ .sb-moves { display: flex; gap: 6px; flex-wrap: wrap; }
293
+ .sb-moves .btn { flex: 1; }
294
+ /* With a pointer or a keyboard the order changes by drag or Alt+arrows; the buttons are for a phone */
295
+ .sb-moves .move { display: none; }
296
+ .sb-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin: 8px 0 6px; }
297
+ .sb-unused { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
298
+ .sb-unused > li { min-width: 0; max-width: 100%; }
299
+ .sb-add { gap: 6px; max-width: 100%; cursor: grab; }
300
+ .sb-add .name { max-width: 200px; }
301
+ .mention-list { list-style: none; margin: 0 0 6px; padding: 4px; border-radius: 10px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--edge), 0 6px 20px rgb(0 0 0 / 0.18); max-height: 280px; overflow: auto; }
302
+ .mention-list[hidden] { display: none; }
303
+ .mention-option { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
304
+ .mention-option[aria-selected="true"] { background: color-mix(in srgb, var(--teal) 16%, transparent); }
305
+ .chip.mention { font-family: ui-monospace, "JetBrains Mono", monospace; background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--ink); }
306
+ .word[draggable="true"] { cursor: grab; }
307
+ /* .btn sets display, which would show a hidden button */
308
+ .area-kriya > .btn[hidden] { display: none; }
309
+ @media (max-width: 760px) {
310
+ .workspace.has-story[data-mode="direct"] .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "final" "monitor" "story" "kriya" "transcript" "finish"; }
311
+ /* At a phone's width the strip is a list, and each row has Move up and Move down */
312
+ .sb-cards { flex-direction: column; overflow: visible; }
313
+ .sb-cards > li { width: auto; }
314
+ .sb-card { grid-template-columns: auto auto minmax(0, 1fr); }
315
+ .sb-card .thumb { grid-column: auto; width: 64px; height: 36px; }
316
+ .sb-moves .move { display: inline-flex; }
317
+ }
318
+
250
319
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
320
+ /* The intent frame on the Plan Card (TP4): what was understood, what isn't in this cut, open choices */
321
+ .intent ul { margin: 4px 0 8px; padding-left: 20px; }
322
+ .question { border: 0; margin: 8px 0; padding: 0; }
323
+ .question legend { font-weight: 600; padding: 0; }
324
+ .choice { display: flex; align-items: center; gap: 8px; min-height: 44px; }
325
+ .btn.talk[aria-pressed="true"] { background: color-mix(in srgb, var(--teal) 22%, transparent); }
326
+
327
+ /* TP6 (CRAFT_UPGRADE §4.2): the style brief's card under a reference. Rows are whole-width labels, 44 px or more. */
328
+ .style-brief { display: grid; gap: 6px; margin: 6px 0 2px; min-width: 0; }
329
+ .style-brief progress { width: 100%; height: 8px; }
330
+ .style-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin: 2px 0 0; }
331
+ .style-rows { list-style: none; margin: 0; padding: 0; display: grid; }
332
+ .style-row { border-top: 1px solid var(--edge); }
333
+ .style-label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; padding: 6px 0; cursor: default; }
334
+ label.style-label { cursor: pointer; }
335
+ .style-label input[type="checkbox"] { width: 22px; height: 22px; margin: 0; }
336
+ .style-body { display: grid; gap: 2px; min-width: 0; }
337
+ .style-text { font-size: 14px; overflow-wrap: anywhere; }
338
+ .style-why { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
339
+ .style-mark { display: inline-block; width: 1.3em; font-weight: 700; }
340
+ .style-mark.matched { color: var(--teal); }
341
+ .style-mark.cannot, .style-row.cannot .style-text { color: var(--ink-2); }
342
+ .style-gate { margin-left: 6px; white-space: nowrap; }
343
+
344
+ /* The Variations wall (TP8, editing.directorLoop): three openings side by side, one column on a phone */
345
+ .openings { display: grid; gap: 8px; min-width: 0; }
346
+ .openings progress { width: 100%; height: 8px; }
347
+ .openings-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin: 2px 0 0; }
348
+ .openings-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
349
+ .opening { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 8px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--edge); }
350
+ .opening.chosen { box-shadow: inset 0 0 0 2px var(--teal); }
351
+ .opening-film { width: 100%; aspect-ratio: 9 / 16; max-height: 320px; object-fit: contain; background: #000; border-radius: 8px; }
352
+ .opening-words { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
353
+ .opening-tag { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
354
+ .opening .btn { width: 100%; }
355
+
356
+ /* TP9: drawing on the frame (editing.customMotion). The layer lies exactly over the picture; it takes the
357
+ pointer only while a tool is chosen, so scrubbing and the monitor's own controls are untouched otherwise */
358
+ /* It clips its layer: between a resize and the layer's next placement, a stale size can't widen the page */
359
+ .monitor-frame.drawable { position: relative; overflow: hidden; }
360
+ .draw-layer { position: absolute; pointer-events: none; overflow: visible; }
361
+ .draw-layer.active { pointer-events: auto; cursor: crosshair; touch-action: none; }
362
+ .draw-mark { fill: none; stroke: #ffb347; stroke-width: 3; }
363
+ .draw-mark.draft { stroke-dasharray: 8 6; }
364
+ .draw-mark.faint { stroke-opacity: 0.45; stroke-dasharray: 4 6; }
365
+ .draw-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
366
+ /* The monitor's surround is neutral grey in both themes, so the note reads light on it (about 8:1) */
367
+ .draw-note { flex: 1 1 100%; margin: 0; min-height: 1.2em; }
368
+ .area-monitor .draw-note { color: #d4d4d4; }
369
+ .custom-motion { margin: 8px 0; }
370
+
371
+ /* ───────────── Redesign 2026-11-12: a docked Kriya panel, the Brief in groups, a Plan Card in parts ─────────────
372
+ Same palette and type; what changed is where things sit. The picture keeps its own height; the Kriya panel
373
+ is one docked column whose tabs scroll on their own; the Plan Card shows one part at a time. */
374
+
375
+ .area-monitor { align-self: start; }
376
+ .tab-panel[hidden] { display: none !important; }
377
+
378
+ /* Tabs: a segmented strip, one raised button for what shows */
379
+ .tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--hover); overflow-x: auto; scrollbar-width: none; flex: none; }
380
+ .tabs::-webkit-scrollbar { display: none; }
381
+ .tab { flex: 1 0 auto; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; }
382
+ .tab:hover { color: var(--ink); }
383
+ .tab[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.14), inset 0 0 0 1px var(--edge); }
384
+ .tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
385
+ .tab-count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
386
+ .tab-count:empty { display: none; }
387
+ .tab-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--teal); color: var(--on-teal); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
388
+ .tab-badge[hidden] { display: none; }
389
+
390
+ /* The Kriya panel: docked beside the picture at the window's height, its tabs below a handle you can drag */
391
+ .inspector { display: flex; flex-direction: column; padding: 0; gap: 0; }
392
+ .inspector-tabs { margin: 12px 12px 0; }
393
+ .inspector > .tab-panel { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
394
+ @media (min-width: 761px) {
395
+ .area-kriya.inspector { align-self: start; height: max(560px, calc(100dvh - 96px)); }
396
+ }
397
+
398
+ /* Brief: groups of what each choice decides, two to a row where the panel is wide, Make it always in reach */
399
+ .make { gap: 18px; margin-bottom: 0; }
400
+ .brief-group { display: grid; gap: 8px; min-width: 0; }
401
+ .group-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
402
+ .brief-pair { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
403
+ .brief-pair > div { min-width: 0; }
404
+ .extras.toggles { gap: 8px; }
405
+ .toggles .inline { min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; }
406
+ .toggles .inline:has(input:checked) { background: color-mix(in srgb, var(--teal) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 55%, transparent); }
407
+ .toggles .inline:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
408
+ .make-footer { position: sticky; bottom: -14px; z-index: 1; display: grid; gap: 8px; margin: 0 -14px -14px; padding: 12px 14px 14px; background: var(--sheet); box-shadow: 0 -1px 0 var(--edge); }
409
+
410
+ /* Chat: the conversation scrolls, the box to write in stays at the bottom */
411
+ .inspector > .chat-panel { display: flex; flex-direction: column; padding: 0; }
412
+ .chat-scroll { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
413
+ .inspector .chat { max-height: none; overflow: visible; margin: 0; gap: 10px; }
414
+ .composer { flex: none; display: grid; gap: 6px; padding: 10px 14px 12px; box-shadow: 0 -1px 0 var(--edge); background: var(--sheet); border-radius: 0 0 14px 14px; }
415
+ .composer .hint { margin: 0; }
416
+ .chat-empty { display: grid; gap: 10px; padding: 6px 2px; }
417
+ .chat-empty[hidden] { display: none; }
418
+ .empty-title { margin: 0; font-size: 17px; font-weight: 600; }
419
+ .chat-empty .note { margin: 0; }
420
+ .suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
421
+ .btn.suggestion { border-radius: 999px; font-weight: 500; white-space: normal; text-align: left; line-height: 1.3; padding: 6px 14px; }
422
+
423
+ /* Activity: what was done, newest first */
424
+ .activity-empty { margin: 0 0 10px; }
425
+ .activity-empty:has(+ .did li) { display: none; }
426
+ .activity-panel .did li { padding: 10px 12px; border-radius: 10px; background: var(--hover); }
427
+
428
+ /* The Plan Card: what it is and a summary on top, its parts as tabs, Approve pinned at its foot */
429
+ .proposal.plan { gap: 10px; }
430
+ .plan-head { display: grid; gap: 2px; }
431
+ .plan-head .plan-summary { margin: 0; }
432
+ .plan-tabs .tab { flex: 0 0 auto; padding: 0 12px; }
433
+ .plan-section { display: grid; gap: 10px; min-width: 0; }
434
+ .plan-section > .scenes { gap: 10px; }
435
+ .plan-actions { position: sticky; bottom: -14px; z-index: 1; margin: 2px -10px -8px; padding: 10px; border-radius: 0 0 10px 10px; background: var(--sheet); box-shadow: 0 -1px 0 var(--edge); }
436
+
437
+ /* A phone: one column, the panel as tall as its content, the picture first */
438
+ @media (max-width: 760px) {
439
+ .inspector > .tab-panel, .chat-scroll { overflow: visible; }
440
+ .inspector > .chat-panel { display: flex; }
441
+ .composer { border-radius: 0 0 14px 14px; }
442
+ .make-footer, .plan-actions { position: static; margin: 0; }
443
+ }
444
+ /* The box to write in: the whole width, its actions in one row under it (Hold to talk on the left) */
445
+ .composer .btn[hidden] { display: none; }
446
+ .composer .prompt { display: grid; gap: 8px; }
447
+ .composer .chat-input { width: 100%; min-height: 72px; }
448
+ .composer .send { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
449
+ .composer .send .talk { margin-right: auto; }
450
+ .composer .send .talk { order: -1; }
451
+ .composer .send .btn.primary { order: 2; min-width: 88px; }
452
+ /* The transport: groups that wrap whole, never a control alone on a line */
453
+ .transport { gap: 10px 18px; }
454
+ .tgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
455
+ .draw-tools { padding-top: 10px; margin-top: 10px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1); }
456
+ /* The Plan Card's title row, and the card expanded into a sheet over the workspace */
457
+ .plan-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
458
+ .plan-title .lead { margin: 0; }
459
+ .btn.plan-expand { flex: none; font-size: 13px; }
460
+ .plan-backdrop { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.5); }
461
+ .plan-backdrop[hidden] { display: none; }
462
+ .proposal.plan.expanded { position: fixed; z-index: 41; top: 4vh; bottom: auto; left: max(16px, calc(50vw - 560px)); right: max(16px, calc(50vw - 560px)); max-height: 92vh; margin: 0; padding: 20px 22px 0; overflow: auto; border-radius: 16px; background: var(--sheet); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 0.45), inset 0 0 0 1px var(--edge); align-content: start; }
463
+ .proposal.plan.expanded .lead { font-size: 15px; }
464
+ .proposal.plan.expanded .plan-tabs .tab { flex: 1 0 auto; }
465
+ .proposal.plan.expanded .plan-actions { bottom: 0; margin: 4px -22px 0; padding: 12px 22px 16px; border-radius: 0; }
466
+ /* A shorter box to write in, so a plan has room above it */
467
+ .composer .chat-input { min-height: 56px; }
468
+
469
+ /* "Watch the Director edit" and the craft upgrades (editing.livePreview): none of these elements exist with it off */
470
+ .btn.small { font-size: 13px; padding: 0 12px; }
471
+ .make-row { display: flex; gap: 8px; align-items: stretch; }
472
+ .make-row > .btn.primary { flex: 1 1 auto; }
473
+ .btn.replay-open { flex: 0 1 auto; font-size: 13px; white-space: normal; line-height: 1.2; text-align: center; padding: 4px 12px; }
474
+ .director-strip { display: grid; gap: 8px; min-width: 0; }
475
+ .director-strip .stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
476
+ .director-strip .stage { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px 3px 7px; border-radius: 999px; color: var(--ink-2); background: var(--hover); transition: background-color 0.25s, color 0.25s; }
477
+ .director-strip .stage .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--edge); flex: none; }
478
+ .director-strip .stage[data-state="done"] { color: var(--ink); }
479
+ .director-strip .stage[data-state="done"] .dot { background: var(--teal); }
480
+ .director-strip .stage[data-state="active"] { color: var(--on-teal); background: var(--teal); font-weight: 600; }
481
+ .director-strip .stage[data-state="active"] .dot { background: var(--on-teal); animation: kriya-pulse 1.1s ease-in-out infinite; }
482
+ @keyframes kriya-pulse { 50% { opacity: 0.35; transform: scale(0.75); } }
483
+ .director-strip .stage-line { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
484
+ .director-strip .stage-changes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; overflow-wrap: anywhere; }
485
+ .director-strip .stage-changes:empty, .director-strip .stage-gates:empty { display: none; }
486
+ .director-strip .stage-gates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
487
+ .director-strip .gate { font: 11px/1 ui-monospace, "JetBrains Mono", monospace; padding: 4px 6px; border-radius: 6px; background: var(--hover); color: var(--ink-2); }
488
+ .director-strip .gate.passed { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--ink); }
489
+ .director-strip .gate.failed { background: color-mix(in srgb, var(--error) 20%, transparent); color: var(--ink); }
490
+ .director-strip .gate.note { background: color-mix(in srgb, var(--saffron) 18%, transparent); color: var(--ink); }
491
+ .director-strip .follow { justify-self: start; }
492
+ .director-strip [hidden] { display: none; }
493
+
494
+ .monitor-frame.live { position: relative; }
495
+ .director-badge { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; background: var(--saffron); color: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 0.35); pointer-events: none; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
496
+ .director-badge[hidden] { display: none; }
497
+ .wipe { position: absolute; z-index: 2; pointer-events: none; }
498
+ .wipe[hidden] { display: none; }
499
+ .wipe-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35); }
500
+ .wipe-grip { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgb(255 255 255 / 0.92); box-shadow: 0 2px 12px rgb(0 0 0 / 0.45); cursor: ew-resize; pointer-events: auto; touch-action: none; }
501
+ .wipe-grip::before, .wipe-grip::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
502
+ .wipe-grip::before { left: 7px; border-right-color: #1f2a2b; }
503
+ .wipe-grip::after { right: 7px; border-left-color: #1f2a2b; }
504
+ .wipe-grip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
505
+ .wipe-tag { position: absolute; bottom: 10px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; background: rgb(0 0 0 / 0.55); color: #fff; }
506
+ .wipe-tag.raw { left: 10px; }
507
+ .wipe-tag.cut { right: 10px; }
508
+ .level { display: inline-block; width: 52px; height: 10px; border-radius: 5px; background: rgb(255 255 255 / 0.16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); overflow: hidden; }
509
+ .level-fill { display: block; height: 100%; width: 0; background: #6cc0b8; transition: width 0.08s linear; }
510
+ .level.hot .level-fill { background: #e7a46d; }
511
+
512
+ .replay { display: grid; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
513
+ .replay[hidden], .replay [hidden] { display: none; }
514
+ .replay-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
515
+ .replay-title { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
516
+ .replay-actions { display: flex; flex-wrap: wrap; gap: 8px; }
517
+ .replay-steps { display: flex; flex-wrap: wrap; gap: 6px; }
518
+ .replay-steps .step { flex: 1 1 auto; }
519
+ .replay-detail { margin: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
520
+
521
+ .look-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
522
+ .look-card { display: grid; gap: 4px; padding: 4px 4px 6px; min-height: 44px; min-width: 44px; border: 0; border-radius: 10px; background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); font: inherit; font-size: 12px; cursor: pointer; text-align: center; }
523
+ .look-card[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--teal); background: color-mix(in srgb, var(--teal) 10%, var(--sheet)); }
524
+ .look-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
525
+ .look-sketch { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; display: block; background: #22302f; }
526
+
527
+ .scorecard summary { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; }
528
+ .score-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
529
+ .score-sum { font-size: 14px; color: var(--ink); }
530
+ .score-body { display: grid; gap: 8px; padding-top: 6px; }
531
+ .score-gates, .score-repairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
532
+ .score-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: var(--hover); }
533
+ .score-row .score-msg { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
534
+ .score-row .score-status { font-size: 12px; font-weight: 600; }
535
+ .score-row.passed .score-status { color: var(--teal); }
536
+ .score-row.failed .score-status { color: var(--error); }
537
+ .score-row.note .score-status { color: var(--saffron); }
538
+ .score-head { margin: 4px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
539
+ .score-repairs li { font-size: 13px; overflow-wrap: anywhere; }
540
+
541
+ .timeline.rich .lanes-wrap { position: relative; }
542
+ .tl-tip { position: absolute; top: 4px; display: grid; justify-items: center; gap: 2px; min-width: 70px; padding: 3px; border-radius: 8px; font: 11px/1.3 ui-monospace, "JetBrains Mono", monospace; background: var(--ink); color: var(--paper); box-shadow: 0 4px 14px rgb(0 0 0 / 0.3); pointer-events: none; z-index: 2; }
543
+ .tl-frame { display: block; width: 96px; height: 54px; border-radius: 5px; background: #000; }
544
+ .tl-frame[hidden] { display: none; }
545
+ .tl-tip[hidden] { display: none; }
546
+
547
+ /* The keyboard shortcuts sheet and the scorecard's "show me" (editing.livePreview) */
548
+ .picker.shortcuts:not([open]) { display: none; }
549
+ .shortcuts .keys-group { display: grid; gap: 4px; }
550
+ .shortcuts .keys-head { margin: 4px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
551
+ .shortcuts .keys { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 6px 14px; margin: 0; align-items: baseline; }
552
+ .shortcuts dd { margin: 0; font-size: 14px; }
553
+ .shortcuts kbd { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 6px; font: 12px/1.6 ui-monospace, "JetBrains Mono", monospace; text-align: center; background: var(--hover); box-shadow: inset 0 -1px 0 var(--edge), inset 0 0 0 1px var(--edge); }
554
+ .score-row .score-show { grid-column: 1 / -1; justify-self: start; }
555
+ .btn.keys-open { padding: 0; width: 44px; font-weight: 700; }
556
+
557
+
558
+ /* ════════════ The Studio's material (2026-11-12, owner in chat): glass over cloth, the harness's own (plugins/brand/DESIGN.md) ════════════
559
+ Panes of tinted glass over a lit, grained ground, in the same colours. Not everything is glass: the monitor is a solid, neutral
560
+ grey bay, because a tinted or blurred surround shifts how a person judges colour; the timeline's lanes stay flat for reading.
561
+ Glass is drawn on a ::before behind each pane, never on the pane, so the Plan Card's fixed sheet keeps working.
562
+ Rules: no gradient but the ground's light; no all-caps labels; monospace only for data (timecodes, ids, keys). */
563
+ @font-face { font-family: "KS Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist.woff2") format("woff2"); }
564
+ @font-face { font-family: "KS Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/fraunces.woff2") format("woff2"); }
565
+ @font-face { font-family: "KS JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); }
566
+ :root {
567
+ --font-ui: "KS Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
568
+ --font-display: "KS Fraunces", "Iowan Old Style", Georgia, serif;
569
+ --font-mono: "KS JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
570
+ --radius: 16px;
571
+ --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
572
+ --glass: rgb(251 248 243 / 0.55);
573
+ --glass-thick: rgb(253 251 247 / 0.76);
574
+ --blur: blur(28px) saturate(170%);
575
+ --rim: inset 0 1px 0 0 rgb(255 255 255 / 0.9), inset 0 0 0 0.5px rgb(19 41 43 / 0.1);
576
+ --well: rgb(19 41 43 / 0.045);
577
+ --chip: rgb(255 255 255 / 0.7);
578
+ --chip-hover: rgb(255 255 255 / 0.92);
579
+ --shade: rgb(19 41 43 / 0.08);
580
+ --lift: 0 1px 1px rgb(19 41 43 / 0.03), 0 6px 16px -4px rgb(19 41 43 / 0.08), 0 22px 44px -18px rgb(19 41 43 / 0.14);
581
+ --lift-high: 0 2px 4px rgb(19 41 43 / 0.05), 0 18px 40px -10px rgb(19 41 43 / 0.2), 0 44px 88px -30px rgb(19 41 43 / 0.28);
582
+ --ground-a: rgb(31 99 98 / 0.12);
583
+ --ground-b: rgb(180 98 47 / 0.09);
584
+ --bay: #262626; /* the monitor's surround: neutral grey, no hue */
585
+ }
586
+ @media (prefers-color-scheme: dark) {
587
+ :root {
588
+ --glass: rgb(18 32 33 / 0.5);
589
+ --glass-thick: rgb(21 37 38 / 0.74);
590
+ --blur: blur(28px) saturate(140%);
591
+ --rim: inset 0 1px 0 0 rgb(255 255 255 / 0.075), inset 0 0 0 0.5px rgb(242 234 223 / 0.1);
592
+ --well: rgb(242 234 223 / 0.05);
593
+ --chip: rgb(242 234 223 / 0.075);
594
+ --chip-hover: rgb(242 234 223 / 0.11);
595
+ --shade: rgb(0 0 0 / 0.35);
596
+ --lift: 0 1px 1px rgb(0 0 0 / 0.25), 0 10px 28px -6px rgb(0 0 0 / 0.42), 0 28px 56px -22px rgb(0 0 0 / 0.5);
597
+ --lift-high: 0 2px 4px rgb(0 0 0 / 0.3), 0 20px 48px -10px rgb(0 0 0 / 0.55), 0 48px 96px -30px rgb(0 0 0 / 0.6);
598
+ --ground-a: rgb(108 192 184 / 0.1);
599
+ --ground-b: rgb(231 164 109 / 0.06);
600
+ --bay: #1f1f1f;
601
+ }
602
+ }
603
+ /* Where glass can't be drawn or isn't wanted, panes are solid; with more contrast, every pane gets a solid edge */
604
+ @media (prefers-reduced-transparency: reduce) { :root { --glass: var(--sheet); --glass-thick: var(--sheet); --blur: none; } }
605
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root { --glass: var(--sheet); --glass-thick: var(--sheet); } }
606
+ @media (prefers-contrast: more) { :root { --rim: inset 0 0 0 1px var(--ink-2); --glass: var(--sheet); --glass-thick: var(--sheet); } }
607
+
608
+ /* The ground: paper, a fine grain, a teal light from the top and saffron warmth from the bottom right */
609
+ body {
610
+ font-family: var(--font-ui);
611
+ font-size: 15px;
612
+ letter-spacing: -0.003em;
613
+ -webkit-font-smoothing: antialiased;
614
+ text-rendering: optimizeLegibility;
615
+ background-color: var(--paper);
616
+ background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cfilter%20id%3D%27g%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.85%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.5%200%200%200%200%20.5%200%200%200%200%20.5%20.09%200%200%200%200%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23g%29%27%2F%3E%3C%2Fsvg%3E"), radial-gradient(80vmax 60vmax at 30% -10%, var(--ground-a), transparent 62%), radial-gradient(70vmax 55vmax at 100% 100%, var(--ground-b), transparent 60%);
617
+ background-attachment: fixed;
618
+ }
619
+ h1 { font-family: var(--font-display); font-weight: 520; font-size: 34px; line-height: 1.15; letter-spacing: -0.022em; font-variation-settings: "opsz" 72, "SOFT" 50; }
620
+ h2 { font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
621
+ :is(.sb-head, .style-head, .openings-head, .opening-tag, .replay-title, .score-title, .score-head, .keys-head, .msg .who, .sentence .tag, .wipe-tag) { text-transform: none; letter-spacing: 0.005em; }
622
+ :is(.label-mono, .time, .time-link, .scene-time, .badge, .chip.mention, .director-strip .gate, .tl-tip, .shortcuts kbd, .score-id, .order-n) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
623
+ :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
624
+
625
+ /* The bar: a thin pane along the top, the name in Kriya's display face */
626
+ .bar { position: sticky; top: 0; z-index: 20; background: transparent; border-bottom: 0; padding: 10px 16px; gap: 14px; }
627
+ .bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 -0.5px 0 var(--edge); pointer-events: none; }
628
+ .bar .brand { font-family: var(--font-display); font-weight: 640; font-size: 19px; letter-spacing: -0.015em; font-variation-settings: "opsz" 36, "SOFT" 100; }
629
+ .bar .title { font-weight: 600; letter-spacing: -0.01em; }
630
+ .bar .project-name { padding-left: 14px; box-shadow: inset 1px 0 0 var(--edge); }
631
+ /* Modes and tabs: a well, the chosen one a raised chip on it */
632
+ .modes, .tabs { gap: 2px; padding: 3px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 0.5px var(--edge); }
633
+ .modes .btn, .tab { border-radius: 11px; background: transparent; box-shadow: none; color: var(--ink-2); font-weight: 600; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
634
+ .modes .btn { min-width: 84px; }
635
+ .modes .btn:hover, .tab:hover { background: var(--chip); color: var(--ink); }
636
+ .modes .btn[aria-pressed="true"], .tab[aria-selected="true"] { background: var(--chip-hover); color: var(--ink); box-shadow: var(--rim), 0 1px 2px var(--shade), 0 6px 14px -8px var(--shade); }
637
+
638
+ /* Panes */
639
+ .panel { position: relative; background: transparent; box-shadow: none; border-radius: var(--radius); }
640
+ .panel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim), var(--lift); pointer-events: none; }
641
+ .grid { gap: 14px; padding: 14px; }
642
+ .banner { padding: 14px 14px 0; }
643
+ .banner > .note { border-radius: 14px; padding: 11px 16px; background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim), inset 3px 0 0 var(--teal), var(--lift); }
644
+ /* The monitor's bay: solid neutral grey, never glass; the picture sits on it with a soft shadow, its corners whole */
645
+ .panel.area-monitor { background: var(--bay); color: #ececec; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), inset 0 0 0 0.5px rgb(255 255 255 / 0.06), var(--lift); }
646
+ .panel.area-monitor::before { content: none; }
647
+ .monitor { border-radius: 2px; box-shadow: 0 0 0 0.5px rgb(255 255 255 / 0.1), 0 24px 48px -20px rgb(0 0 0 / 0.8); }
648
+ .transport { margin-top: 14px; padding: 8px; border-radius: 14px; background: rgb(255 255 255 / 0.035); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.08); }
649
+ .area-monitor .time { font-size: 13px; color: #f2f2f2; letter-spacing: 0.01em; }
650
+ .area-monitor .chip { background: rgb(255 255 255 / 0.1); color: #d8d8d8; }
651
+ .area-monitor :is(.btn:not(.primary), .marks .btn) { background: rgb(255 255 255 / 0.07); color: #efefef; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), inset 0 0 0 0.5px rgb(255 255 255 / 0.14); }
652
+ .area-monitor :is(.btn:not(.primary), .marks .btn):hover { background: rgb(255 255 255 / 0.13); }
653
+ .area-monitor .btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #6cc0b8, 0 0 0 3px rgb(108 192 184 / 0.22); }
654
+ .area-monitor .field { background-color: rgb(255 255 255 / 0.07); color: #efefef; box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14); }
655
+ .area-monitor .inline { color: #dcdcdc; }
656
+
657
+ /* Controls: chips with a rim; teal is action; a press gives a little */
658
+ .btn { border-radius: 12px; background: var(--chip); box-shadow: var(--rim), 0 1px 2px var(--shade); font-weight: 560; letter-spacing: -0.005em; transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), transform 0.14s var(--ease); }
659
+ .btn:hover { background: var(--chip-hover); }
660
+ .btn:active:not(:disabled) { transform: translateY(0.5px) scale(0.985); }
661
+ .btn.primary { background: var(--teal); color: var(--on-teal); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 2px var(--shade), 0 10px 22px -12px var(--teal); }
662
+ .btn.primary:hover { background: color-mix(in srgb, var(--teal) 88%, var(--on-teal)); }
663
+ .btn.primary:disabled { box-shadow: none; }
664
+ .btn.ghost { background: transparent; box-shadow: none; }
665
+ .btn[aria-pressed="true"] { box-shadow: var(--rim), inset 0 0 0 1.5px var(--teal), 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent); }
666
+ .field { border-radius: 12px; background-color: var(--well); box-shadow: inset 0 0 0 0.5px var(--edge), inset 0 1px 2px var(--shade); transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
667
+ .field:hover { background-color: var(--chip); }
668
+ .field:focus, .field:focus-visible { outline: none; background-color: var(--chip-hover); box-shadow: inset 0 0 0 1px var(--teal), 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
669
+ .chip { font-weight: 560; }
670
+ .progress { background: var(--well); }
671
+
672
+ /* The Kriya panel: its footer and the box to write in are thicker glass over what scrolls under them */
673
+ .make-footer, .composer, .plan-actions { background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0.5px 0 var(--edge); }
674
+ .make-footer { border-radius: 0 0 var(--radius) var(--radius); }
675
+ .composer { border-radius: 0 0 var(--radius) var(--radius); }
676
+ .msg { border-radius: 14px; background: var(--chip); box-shadow: var(--rim); padding: 10px 12px; }
677
+ .msg.you { background: color-mix(in srgb, var(--teal) 15%, var(--chip)); border-bottom-right-radius: 4px; }
678
+ .toggles .inline { background: var(--chip); box-shadow: var(--rim), 0 1px 2px var(--shade); }
679
+ .look-card, .clip-list button, .sb-card { background: var(--chip); box-shadow: var(--rim), 0 1px 2px var(--shade); border-radius: 12px; transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
680
+ .look-card:hover, .clip-list button:hover { background: var(--chip-hover); }
681
+ .look-card[aria-pressed="true"], .clip-list button[aria-pressed="true"] { box-shadow: var(--rim), inset 0 0 0 1.5px var(--teal), 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent); }
682
+ .director-strip .stage { background: var(--well); }
683
+ .score-row { background: var(--well); border-radius: 10px; }
684
+ .replay { background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim), var(--lift); border-radius: 14px; }
685
+ .picker { border-radius: 20px; background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim), var(--lift-high); padding: 22px; }
686
+ .picker::backdrop { background: rgb(10 18 19 / 0.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
687
+ .mention-list { background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim), var(--lift); }
688
+ .scope { background: #141414; border-radius: 10px; }
689
+ .final-film { border-radius: 10px; }
690
+ /* The timeline: flat lanes inside the pane, rounded so they sit in it */
691
+ .lanes { border-radius: 8px; }
692
+ .lane-labels { font-weight: 550; }
693
+ .home h1 { margin-top: 24px; }
694
+ /* Edit mode: the bay fills its row beside the bin and transcript, the picture centred in it, the transport at its foot */
695
+ @media (min-width: 761px) {
696
+ .workspace[data-mode="edit"] .area-monitor { align-self: stretch; display: flex; flex-direction: column; }
697
+ .workspace[data-mode="edit"] .area-monitor > .monitor-frame { flex: 1 1 auto; }
698
+ }