decklight 0.5.0 → 0.7.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.
Files changed (53) hide show
  1. package/README.md +20 -9
  2. package/SPEC.md +239 -17
  3. package/cli/agents.mjs +97 -2
  4. package/cli/banner.mjs +125 -0
  5. package/cli/bundle.mjs +14 -4
  6. package/cli/{rec.mjs → cast.mjs} +25 -8
  7. package/cli/comments.mjs +389 -0
  8. package/cli/commit-flow.mjs +157 -0
  9. package/cli/commit-message.mjs +475 -0
  10. package/cli/decklight.mjs +95 -25
  11. package/cli/dev.mjs +193 -25
  12. package/cli/edit.mjs +1055 -39
  13. package/cli/git-tree.mjs +87 -0
  14. package/cli/git.mjs +370 -0
  15. package/cli/history.mjs +145 -0
  16. package/cli/init.mjs +199 -7
  17. package/cli/marketplace.mjs +123 -17
  18. package/cli/port-conflict.mjs +228 -22
  19. package/cli/present.mjs +297 -12
  20. package/cli/publish.mjs +15 -40
  21. package/cli/record.mjs +154 -0
  22. package/cli/restore.mjs +120 -4
  23. package/cli/review-remote.mjs +330 -0
  24. package/cli/review-store.mjs +107 -0
  25. package/cli/review-submit.mjs +292 -0
  26. package/cli/review.mjs +361 -0
  27. package/cli/serve.mjs +60 -1
  28. package/cli/skill-content.mjs +12 -1
  29. package/cli/theme.mjs +78 -11
  30. package/cli/units.mjs +2 -2
  31. package/cli/upstream.mjs +256 -0
  32. package/cli/util.mjs +59 -0
  33. package/dist/build-info.json +1 -0
  34. package/dist/decklight.css +534 -3
  35. package/dist/decklight.js +102 -76
  36. package/dist/decklight.js.map +4 -4
  37. package/docs/architecture.svg +7 -0
  38. package/package.json +2 -1
  39. package/tools/args.mjs +20 -0
  40. package/tools/deck-html.mjs +84 -0
  41. package/tools/elevenlabs-tts.mjs +1 -1
  42. package/tools/lipsync-server.mjs +64 -2
  43. package/tools/lipsync.mjs +40 -24
  44. package/tools/local-voice.mjs +170 -16
  45. package/tools/publish-voices.mjs +78 -18
  46. package/tools/recording-impact.mjs +110 -0
  47. package/tools/review-anchor.mjs +180 -0
  48. package/tools/test-impact.mjs +259 -0
  49. package/tools/tts-engines.mjs +211 -12
  50. package/tools/tts-setup.mjs +2 -9
  51. package/tools/video.mjs +56 -12
  52. package/tools/voiceover-server.mjs +262 -11
  53. package/tools/voiceover.mjs +32 -13
@@ -471,12 +471,185 @@
471
471
  opacity: 0.75;
472
472
  }
473
473
  .decklight-restore .rs-when {
474
- float: right;
475
474
  opacity: 0.55;
476
475
  font-size: 0.85em;
477
476
  padding-left: 0.75em;
478
477
  }
479
478
 
479
+ /* The history door (H) — the same overlay as R, with two additions: a mark on
480
+ commits that exist nowhere but this machine, and the branch's standing under
481
+ the title. */
482
+ .decklight-history .hs-push {
483
+ color: #7fb2ff;
484
+ font-weight: 600;
485
+ margin: 0 6px 0 2px;
486
+ }
487
+ .decklight-restore .hs-remote,
488
+ .decklight-history .hs-remote {
489
+ padding: 6px 12px 8px;
490
+ font-size: .82em;
491
+ opacity: .62;
492
+ font-variant-numeric: tabular-nums;
493
+ border-bottom: 1px solid rgba(128, 128, 128, .18);
494
+ }
495
+
496
+ /* THE PREVIEW IS THE POINT OF THIS OVERLAY, so the rail is built never to
497
+ fight it. A row used to put four things on one line — hash, subject, badges,
498
+ age — which made the column's MIN-CONTENT width the sum of all four; and a
499
+ flex item's default `min-width: auto` forbids shrinking below that, so
500
+ `flex: 0 0 300px` was a suggestion the content could veto. It did: the pane
501
+ collapsed to 57px the moment the title bar got long.
502
+
503
+ Two lines instead. The subject owns the first, the metadata dims underneath,
504
+ and `min-width: 0` on the column means nothing in here wants to be wide —
505
+ the preview's size stops depending on how somebody worded a commit message. */
506
+ .decklight-history .tp-panel { width: min(1100px, 92vw); }
507
+ /* This bar is a static LABEL here, not the live query the picker and finder
508
+ show in it — so it may wrap. That is what finally makes the rail's width
509
+ independent of it: nowrap made the whole sentence the column's min-content
510
+ width (the 57px collapse), and clipping it to an ellipsis would have hidden
511
+ half the keys instead. Wrapping does neither. */
512
+ .decklight-history .tp-filter {
513
+ white-space: normal;
514
+ text-overflow: clip;
515
+ }
516
+ .decklight-history .tp-side {
517
+ flex: 0 0 30%;
518
+ min-width: 0;
519
+ }
520
+ .decklight-history .tp-row {
521
+ display: block;
522
+ white-space: normal;
523
+ }
524
+ .decklight-history .rs-subject {
525
+ display: -webkit-box;
526
+ -webkit-line-clamp: 2; /* two lines, then ellipsis: rows stay a knowable height */
527
+ line-clamp: 2;
528
+ -webkit-box-orient: vertical;
529
+ overflow: hidden;
530
+ }
531
+ .decklight-history .hs-meta {
532
+ display: flex;
533
+ align-items: baseline;
534
+ gap: 0.5em;
535
+ margin-top: 2px;
536
+ font-size: 0.82em;
537
+ opacity: 0.72;
538
+ }
539
+ /* the age to the far right, so the column reads as a timeline down the edge */
540
+ .decklight-history .hs-meta .rs-when {
541
+ margin-left: auto;
542
+ padding-left: 0.5em;
543
+ font-variant-numeric: tabular-nums;
544
+ }
545
+ /* The preview, shaped like the thing it shows. `aspect-ratio` rather than
546
+ `flex: 1` so a slide is never letterboxed into a portrait sliver — the
547
+ leftover height goes to the list, which can use it. */
548
+ .decklight-history .tp-preview {
549
+ /* the slide, its transport and its caption travel together: with the iframe
550
+ on an aspect ratio the column no longer fills its height, and a block
551
+ pinned to the top of a taller box reads as a rendering accident */
552
+ justify-content: center;
553
+ }
554
+ .decklight-history .tp-preview iframe {
555
+ flex: 0 0 auto;
556
+ aspect-ratio: 16 / 9;
557
+ height: auto;
558
+ }
559
+ /* One line, truncating. It spells out what the row's badges abbreviate, and it
560
+ used to wrap to eight lines when the pane collapsed — a caption that can grow
561
+ vertically is a caption that hides the collapse it is a symptom of. */
562
+ .decklight-history .tp-caption {
563
+ white-space: nowrap;
564
+ overflow: hidden;
565
+ text-overflow: ellipsis;
566
+ }
567
+ .decklight-history .hs-stat {
568
+ display: inline-flex;
569
+ align-items: baseline;
570
+ gap: 0.4em;
571
+ font-size: 0.8em;
572
+ font-variant-numeric: tabular-nums;
573
+ }
574
+ /* The slide count reads as a slide: a small landscape box with a number in it,
575
+ which is a different KIND of fact from the two line counts beside it and
576
+ should not be mistaken for a third diff number. */
577
+ .decklight-history .hs-slides {
578
+ border: 1px solid currentColor;
579
+ border-radius: 2px;
580
+ padding: 0 0.35em;
581
+ opacity: 0.5;
582
+ }
583
+ /* Green added, red removed — the colours every diff has used for forty years.
584
+ Fixed hues rather than theme tokens on purpose: a theme is free to make its
585
+ accent red, and "how much did this commit add" must not change meaning with
586
+ the wallpaper. Both are light enough to sit on the picker's dark panel. */
587
+ .decklight-history .hs-add { color: #4ec98a; }
588
+ .decklight-history .hs-del { color: #f2777a; }
589
+
590
+ /* Preview transport. The previewed version is `?embedded`, so its own chrome
591
+ is off and this row is the only way to walk it. */
592
+ .decklight-history .hs-nav {
593
+ display: flex;
594
+ align-items: center;
595
+ justify-content: center;
596
+ gap: 0.35em;
597
+ padding: 6px 0 2px;
598
+ }
599
+ .decklight-history .hs-btn {
600
+ display: inline-flex;
601
+ align-items: center;
602
+ justify-content: center;
603
+ width: 26px;
604
+ height: 26px;
605
+ padding: 0;
606
+ border: 1px solid rgba(128, 128, 128, .28);
607
+ border-radius: 4px;
608
+ background: transparent;
609
+ color: inherit;
610
+ cursor: pointer;
611
+ }
612
+ .decklight-history .hs-btn:hover:not(:disabled) { background: rgba(128, 128, 128, .18); }
613
+ .decklight-history .hs-btn:disabled { opacity: 0.3; cursor: default; }
614
+ .decklight-history .hs-pos {
615
+ min-width: 4.5em;
616
+ text-align: center;
617
+ font-size: 0.82em;
618
+ font-variant-numeric: tabular-nums;
619
+ opacity: 0.6;
620
+ }
621
+
622
+ /* The confirmation. It sits under the list rather than over it, because the
623
+ row it is asking about must stay visible while you answer. */
624
+ .decklight-history .hs-confirm {
625
+ padding: 10px 12px 12px;
626
+ border-top: 1px solid rgba(128, 128, 128, .28);
627
+ font-size: 0.85em;
628
+ white-space: normal;
629
+ }
630
+ .decklight-history .hs-q-hash { font-family: var(--font-mono, ui-monospace, monospace); }
631
+ .decklight-history .hs-q-sub { opacity: 0.7; }
632
+ .decklight-history .hs-why { opacity: 0.6; margin: 0.35em 0 0.7em; line-height: 1.35; }
633
+ .decklight-history .hs-buttons { display: flex; gap: 0.5em; }
634
+ .decklight-history .hs-buttons button {
635
+ font: inherit;
636
+ padding: 0.35em 0.8em;
637
+ border-radius: 4px;
638
+ border: 1px solid rgba(128, 128, 128, .35);
639
+ background: transparent;
640
+ color: inherit;
641
+ cursor: pointer;
642
+ }
643
+ .decklight-history .hs-buttons button.hs-yes {
644
+ background: #e8eaee;
645
+ border-color: #e8eaee;
646
+ color: #16181d;
647
+ font-weight: 600;
648
+ }
649
+ .decklight-history .hs-buttons button.hs-no:hover { background: rgba(255, 255, 255, .14); }
650
+ .decklight-history .hs-buttons button.hs-yes:hover { background: #fff; border-color: #fff; }
651
+ .decklight-history .hs-keys { opacity: 0.45; font-size: 0.9em; margin-top: 0.6em; }
652
+
480
653
  /* ---------- brand logo (SPEC PRESENTING) -------------------------------------------
481
654
  Chrome-level mark on every slide. The engine sets data-canvas="dark|light"
482
655
  on the root from the applied theme's real background luminance; the
@@ -767,7 +940,7 @@
767
940
  padding: 2px 10px;
768
941
  }
769
942
  .decklight-arrow:hover { color: var(--accent, #6af); }
770
- /* progress bar (H) — a hairline along the very bottom edge; its width is the
943
+ /* progress bar (J) — a hairline along the very bottom edge; its width is the
771
944
  position in the deck. Below the captions bar (bottom: 7%, z45), the
772
945
  character overlay (z44) and the corner chrome, so it covers nothing.
773
946
  Track is a translucent neutral (readable on any canvas, like the clock's
@@ -824,6 +997,140 @@
824
997
  user-select: none;
825
998
  }
826
999
  .decklight-clock .clk-elapsed { color: var(--accent, #6af); }
1000
+ /* The element content editor's highlighted layers (author mode). A textarea
1001
+ cannot render markup, so the colour is a <pre> BEHIND a textarea whose own
1002
+ text is transparent.
1003
+
1004
+ EVERY selector here carries `.decklight-narr` — not for tidiness, but because
1005
+ `.decklight-narr .narr-input` (0,2,0) sets this textarea's font, line-height,
1006
+ padding, border and colour, and it OUTRANKS a bare `.edit-code > textarea`
1007
+ (0,1,1). Losing that fight is not cosmetic: the two layers then disagree on
1008
+ line-height and padding, and the caret drifts away from the glyph it is
1009
+ supposed to sit in, further with every line.
1010
+
1011
+ Both layers therefore take every metric from ONE rule below. */
1012
+ .decklight-narr .edit-code {
1013
+ position: relative;
1014
+ display: block;
1015
+ width: 100%;
1016
+ }
1017
+ .decklight-narr .edit-code > pre,
1018
+ .decklight-narr .edit-code > textarea {
1019
+ margin: 0;
1020
+ border: 0;
1021
+ padding: 10px 12px;
1022
+ font: 400 13px/1.55 var(--font-mono, ui-monospace, monospace);
1023
+ letter-spacing: normal;
1024
+ tab-size: 2;
1025
+ white-space: pre-wrap; /* both wrap, or neither does */
1026
+ overflow-wrap: break-word;
1027
+ box-sizing: border-box;
1028
+ min-height: 220px;
1029
+ max-height: 46vh;
1030
+ }
1031
+ .decklight-narr .edit-code > pre {
1032
+ position: absolute;
1033
+ inset: 0;
1034
+ overflow: auto;
1035
+ pointer-events: none; /* the textarea takes every click */
1036
+ background: var(--code-bg, rgba(0, 0, 0, .35));
1037
+ border-radius: 8px;
1038
+ }
1039
+ .decklight-narr .edit-code > textarea {
1040
+ position: relative;
1041
+ display: block;
1042
+ width: 100%;
1043
+ resize: vertical;
1044
+ background: transparent;
1045
+ color: transparent; /* the <pre> paints the glyphs */
1046
+ caret-color: var(--fg, #fff);
1047
+ border-radius: 8px;
1048
+ overflow: auto;
1049
+ }
1050
+ /* The selection has to be visible against transparent text. */
1051
+ .decklight-narr .edit-code > textarea::selection { background: var(--accent, #6af); color: transparent; }
1052
+ .decklight-narr .edit-code > textarea:focus { outline: 2px solid var(--accent, #6af); outline-offset: 1px; }
1053
+ /* Still loading, or refused: there is no highlighted layer to read yet, so the
1054
+ textarea shows its own text rather than an empty-looking box. */
1055
+ .decklight-narr .edit-code > textarea:disabled { color: var(--muted, #9aa); }
1056
+
1057
+ /* "an agent is still working" — author mode only (src/core/editmode.js).
1058
+ BOTTOM CENTRE, which is the one piece of chrome nothing else claims: the
1059
+ logo takes a corner, the clock is top-right, the controls bottom-right and
1060
+ messages top-left, so this can be persistent without ever covering them.
1061
+ Quiet by construction — it reports rather than asks, and nothing about a
1062
+ background job should compete with the slide. */
1063
+ /* The commit chip (SPEC PRESENTING) — "this is not committed", said once.
1064
+ Bottom-RIGHT, not centre: the agent chip owns the centre and the two can be
1065
+ up at the same time (an agent edit is exactly what leaves work uncommitted).
1066
+ Clickable, because a statement you can act on should be actionable where it
1067
+ is, and the deck's own keyboard help is one key away. */
1068
+ .decklight-commit-chip {
1069
+ position: absolute;
1070
+ right: 16px;
1071
+ bottom: 16px;
1072
+ z-index: 42;
1073
+ background: rgba(0, 0, 0, .72);
1074
+ color: #fff;
1075
+ font: 500 13px/1 var(--font-mono, monospace);
1076
+ font-variant-numeric: tabular-nums;
1077
+ padding: 7px 12px;
1078
+ border-radius: 999px;
1079
+ cursor: pointer;
1080
+ border: 1px solid rgba(255, 255, 255, .16);
1081
+ }
1082
+ .decklight-commit-chip:hover { background: rgba(0, 0, 0, .85); }
1083
+ .decklight-commit-chip:focus-visible { outline: 2px solid var(--accent, #6af); outline-offset: 2px; }
1084
+
1085
+ /* The commit window. Shares the narration card chrome like every other
1086
+ overlay; only the composer's own rows are new. */
1087
+ .decklight-commit .narr-card { width: min(520px, 88vw); }
1088
+ .decklight-commit .cm-what { padding: 2px 12px 8px; font-size: 12px; opacity: .6; }
1089
+ .decklight-commit .cm-input { width: calc(100% - 24px); margin: 0 12px 8px; resize: vertical; }
1090
+ .decklight-commit .cm-row { display: flex; gap: 8px; padding: 0 12px 4px; }
1091
+ .decklight-commit .cm-row .narr-row { flex: 1; text-align: center; border-radius: 8px; }
1092
+ .decklight-commit .cm-go { background: rgba(122, 214, 163, .16); color: #7cd6a3; }
1093
+ .decklight-commit .cm-go:hover { background: rgba(122, 214, 163, .26); }
1094
+ .decklight-commit .cm-write { background: rgba(255, 255, 255, .08); }
1095
+ .decklight-commit .cm-write:hover { background: rgba(255, 255, 255, .16); }
1096
+
1097
+ .decklight-agent-chip {
1098
+ position: absolute;
1099
+ left: 50%;
1100
+ bottom: 16px;
1101
+ transform: translateX(-50%);
1102
+ z-index: 42;
1103
+ display: flex;
1104
+ align-items: center;
1105
+ gap: 8px;
1106
+ background: rgba(0, 0, 0, .72);
1107
+ color: #fff;
1108
+ font: 500 14px/1 var(--font-mono, monospace);
1109
+ font-variant-numeric: tabular-nums; /* a ticking clock must not jitter */
1110
+ padding: 7px 13px;
1111
+ border-radius: 999px;
1112
+ border: 1px solid rgba(255, 255, 255, .16);
1113
+ box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
1114
+ pointer-events: none; /* never in the way of a slide click */
1115
+ white-space: nowrap;
1116
+ }
1117
+ .decklight-agent-chip::before {
1118
+ content: '';
1119
+ width: 7px;
1120
+ height: 7px;
1121
+ border-radius: 50%;
1122
+ background: var(--accent, #6af);
1123
+ animation: dl-agent-pulse 1.6s ease-in-out infinite;
1124
+ }
1125
+ @keyframes dl-agent-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
1126
+ /* A pulse is the one thing here that moves. Somebody who asked for less motion
1127
+ still gets the chip and the clock — the information, without the animation. */
1128
+ @media (prefers-reduced-motion: reduce) {
1129
+ .decklight-agent-chip::before { animation: none; }
1130
+ }
1131
+ /* Printing a deck must not print a job that was running when you hit print. */
1132
+ @media print { .decklight-agent-chip { display: none; } }
1133
+
827
1134
  /* touch chrome — shown only where there's no keyboard (see engine.js) */
828
1135
  .decklight-touch-controls { position: absolute; left: 14px; top: 14px; z-index: 41; display: none; gap: 8px; }
829
1136
  .decklight-touch-btn {
@@ -979,6 +1286,9 @@
979
1286
  padding: 10px 12px 2px;
980
1287
  }
981
1288
  .decklight-narr .narr-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
1289
+ .decklight-narr .narr-group { margin: 10px 12px 2px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .68em; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
1290
+ .decklight-narr .narr-group:first-of-type { border-top: none; padding-top: 0; }
1291
+ .decklight-narr .narr-row.narr-toggle { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0 0 8px 8px; opacity: .75; }
982
1292
  .decklight-narr .narr-row-label { flex: 1 1 auto; min-width: 0; }
983
1293
  .decklight-narr .narr-prev-btn {
984
1294
  flex: none;
@@ -1000,6 +1310,21 @@
1000
1310
  .decklight-narr .narr-row.narr-sel { background: rgba(255, 255, 255, .14); }
1001
1311
  .decklight-narr .narr-row.narr-cur::after { content: ' ✓'; opacity: .7; }
1002
1312
  .decklight-narr .narr-flavor { opacity: .5; font-size: .85em; margin-left: 6px; }
1313
+ /* An engine this machine cannot use is SHOWN, dimmed, with the terminal command
1314
+ that would fix it — hiding it would answer "where did ElevenLabs go?" with
1315
+ silence. The fix wraps onto its own line (the row is a flex box) because it
1316
+ is a command to type, and a command folded into a sentence is a command
1317
+ somebody mis-copies. */
1318
+ .decklight-narr .narr-row.narr-blocked { flex-wrap: wrap; cursor: default; }
1319
+ .decklight-narr .narr-row.narr-blocked .narr-row-label { opacity: .45; }
1320
+ .decklight-narr .narr-fix {
1321
+ flex: 0 0 100%;
1322
+ margin: 2px 0 2px 1.1em;
1323
+ font-family: var(--font-mono, ui-monospace, monospace);
1324
+ font-size: .78em;
1325
+ opacity: .42;
1326
+ overflow-wrap: anywhere;
1327
+ }
1003
1328
  .decklight-narr .narr-input {
1004
1329
  width: 100%;
1005
1330
  box-sizing: border-box;
@@ -1013,7 +1338,19 @@
1013
1338
  outline: none;
1014
1339
  }
1015
1340
 
1016
- /* offline recording (⇧V) — shares .decklight-narr's card chrome */
1341
+ /* The voice filter sits above the preview sentence and holds the keyboard from
1342
+ the moment the view opens: a say roster is ~184 names, and looking for one is
1343
+ why anybody is on this screen. It is the only input here that gets focus
1344
+ without being clicked, so it is the only one that shows a focus ring — a
1345
+ caret blinking in an unmarked box is how you get somebody typing a voice name
1346
+ into the preview sentence. */
1347
+ .decklight-narr .narr-filter-row { margin-top: 2px; }
1348
+ .decklight-narr .narr-filter:focus {
1349
+ border-color: rgba(255, 255, 255, .42);
1350
+ background: rgba(255, 255, 255, .1);
1351
+ }
1352
+
1353
+ /* offline recording (V → Record… → synthesized) — shares .decklight-narr's card chrome */
1017
1354
  .decklight-record .narr-card { width: min(400px, 82vw); }
1018
1355
  .decklight-record .rec-line { padding: 4px 12px; opacity: .85; }
1019
1356
  .decklight-record .rec-hint { padding: 10px 12px 2px; opacity: .5; font-size: 12px; }
@@ -1030,6 +1367,200 @@
1030
1367
  transition: width 200ms ease;
1031
1368
  }
1032
1369
 
1370
+ /* live recording (V → Record… → your voice) — the card is a TELEPROMPTER, so it is wider than the
1371
+ synthesized one and the line you are reading is the largest thing on it. Everything
1372
+ else on the card is chrome around that one sentence. */
1373
+ .decklight-mic .narr-card { width: min(640px, 90vw); }
1374
+ .decklight-mic .rec-where { font-size: 12px; opacity: .55; letter-spacing: .04em; }
1375
+ .decklight-mic .rec-read {
1376
+ padding: 10px 12px 12px;
1377
+ font-size: 20px;
1378
+ line-height: 1.45;
1379
+ text-wrap: pretty;
1380
+ max-height: 42vh;
1381
+ overflow-y: auto;
1382
+ }
1383
+ .decklight-mic .rec-note { font-size: 12px; opacity: .7; }
1384
+ /* Something you need to act on before you start reading — the amber the deck
1385
+ uses everywhere for "this will not do what you expect". */
1386
+ .decklight-record .rec-warn {
1387
+ color: #ffcf8b;
1388
+ background: rgba(255, 207, 139, .1);
1389
+ border-radius: 6px;
1390
+ margin: 4px 12px;
1391
+ padding: 7px 10px;
1392
+ font-size: 13px;
1393
+ opacity: 1;
1394
+ }
1395
+ .decklight-record .rec-warn code { font-size: .92em; }
1396
+
1397
+ /* the folder a recording goes into — a field, not a label, because a proposal
1398
+ you cannot correct is a decision made somewhere else */
1399
+ .decklight-record .rec-folder label {
1400
+ display: flex;
1401
+ align-items: center;
1402
+ gap: 8px;
1403
+ font-size: 12px;
1404
+ opacity: .75;
1405
+ }
1406
+ .decklight-record .rec-dir {
1407
+ flex: 1;
1408
+ min-width: 0;
1409
+ padding: 5px 8px;
1410
+ border-radius: 6px;
1411
+ border: 1px solid rgba(255, 255, 255, .18);
1412
+ background: rgba(255, 255, 255, .07);
1413
+ color: inherit;
1414
+ font: inherit;
1415
+ font-size: 13px;
1416
+ outline: none;
1417
+ }
1418
+ .decklight-record .rec-dir:focus { border-color: var(--accent, #6af); }
1419
+ .decklight-record .rec-dir.rec-bad { border-color: #e5533d; }
1420
+ .decklight-mic kbd {
1421
+ padding: 1px 5px;
1422
+ border: 1px solid rgba(255, 255, 255, .25);
1423
+ border-radius: 4px;
1424
+ font-size: .9em;
1425
+ }
1426
+ /* the level meter — the answer to "is it even hearing me", before twenty
1427
+ slides are recorded silent rather than after */
1428
+ .decklight-mic .rec-level {
1429
+ height: 8px;
1430
+ margin: 2px 12px 4px;
1431
+ border-radius: 4px;
1432
+ background: rgba(255, 255, 255, .12);
1433
+ overflow: hidden;
1434
+ }
1435
+ .decklight-mic .rec-level-fill {
1436
+ height: 100%;
1437
+ background: var(--accent, #6af);
1438
+ transition: width 90ms linear;
1439
+ }
1440
+ .decklight-mic .rec-level.hot .rec-level-fill { background: #e5533d; }
1441
+
1442
+ /* "Use this track" — the offer that spares you pasting a config line. Shares
1443
+ .narr-row's chrome; the two states it can reach are the two things worth
1444
+ saying afterwards, so neither is a toast that scrolls away. */
1445
+ .decklight-record .rec-use { margin-top: 6px; cursor: pointer; }
1446
+ .decklight-record .rec-use.rec-done {
1447
+ color: #7cd6a3;
1448
+ background: rgba(124, 214, 163, .12);
1449
+ cursor: default;
1450
+ }
1451
+ .decklight-record .rec-use.rec-failed {
1452
+ color: #ffb4a2;
1453
+ background: rgba(229, 83, 61, .12);
1454
+ cursor: default;
1455
+ font-size: 13px;
1456
+ }
1457
+
1458
+ /* review comments (M) — SPEC REVIEW. Shares the narration card chrome; the
1459
+ list is rows of somebody else's prose, so it reads like a thread rather
1460
+ than a picker. */
1461
+ /* Review is a NON-MODAL panel: it sits beside the slide — docked to an edge or
1462
+ floating — never a dimming modal over it, so the content stays visible and the
1463
+ deck stays navigable. The frame is click-through; only the card catches the
1464
+ pointer, and the stage reflows away from a docked gutter via --dock-* (engine
1465
+ rescale). */
1466
+ .decklight-review { background: none; backdrop-filter: none; display: block; pointer-events: none; }
1467
+ .decklight-review .narr-card { position: absolute; pointer-events: auto; width: min(560px, 88vw); }
1468
+
1469
+ /* float — positioned by JS at left/top, dragged by its header */
1470
+ .decklight-review[data-dock="float"] .narr-card {
1471
+ width: min(460px, 88vw);
1472
+ max-height: 78vh;
1473
+ box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
1474
+ }
1475
+ /* left / right — a full-height column the stage reflows away from. border-box
1476
+ so the card is exactly the gutter the stage was told to leave: content-box
1477
+ added the 14px padding twice and the panel overhung the slide by 28px. */
1478
+ .decklight-review[data-dock="left"] .narr-card,
1479
+ .decklight-review[data-dock="right"] .narr-card {
1480
+ box-sizing: border-box;
1481
+ top: 0; bottom: 0; height: 100%;
1482
+ width: var(--dock-size, 360px);
1483
+ max-height: none; border-radius: 0;
1484
+ }
1485
+ .decklight-review[data-dock="right"] .narr-card { right: 0; box-shadow: -12px 0 40px rgba(0, 0, 0, .5); }
1486
+ .decklight-review[data-dock="left"] .narr-card { left: 0; box-shadow: 12px 0 40px rgba(0, 0, 0, .5); }
1487
+ /* bottom — a full-width tray */
1488
+ .decklight-review[data-dock="bottom"] .narr-card {
1489
+ box-sizing: border-box;
1490
+ left: 0; right: 0; bottom: 0;
1491
+ width: auto; height: var(--dock-size, 320px);
1492
+ max-height: none; border-radius: 0;
1493
+ box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
1494
+ }
1495
+
1496
+ /* the dock control lives in the header, which becomes a flex row */
1497
+ .decklight-review .narr-head { display: flex; align-items: center; gap: 8px; opacity: 1; }
1498
+ .decklight-review .rv-heading { flex: 1; opacity: .55; }
1499
+ .decklight-review .rv-dock-ctl { display: flex; gap: 2px; pointer-events: auto; }
1500
+ .decklight-review .rv-dock-btn {
1501
+ font-size: 13px; line-height: 1; padding: 3px 5px;
1502
+ border: 0; border-radius: 5px;
1503
+ background: transparent; color: inherit;
1504
+ opacity: .5; cursor: pointer;
1505
+ }
1506
+ .decklight-review .rv-dock-btn:hover { opacity: .9; background: rgba(255, 255, 255, .12); }
1507
+ .decklight-review .rv-dock-on { opacity: 1; background: rgba(255, 255, 255, .18); }
1508
+ .decklight-review .rv-close { font-size: 16px; margin-left: 2px; }
1509
+ .decklight-review .rv-compose { padding: 4px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
1510
+ .decklight-review .rv-on { font-size: 12px; opacity: .55; margin-bottom: 6px; }
1511
+ .decklight-review .rv-input { width: 100%; resize: vertical; margin-bottom: 6px; }
1512
+ .decklight-review .rv-list { padding: 4px 0; }
1513
+ .decklight-review .rv-none,
1514
+ .decklight-review .rv-skipped { padding: 8px 12px; opacity: .55; font-size: 13px; }
1515
+ .decklight-review .rv-row { padding: 8px 12px; border-radius: 8px; cursor: pointer; }
1516
+ .decklight-review .rv-row.rv-sel { background: rgba(255, 255, 255, .14); }
1517
+ .decklight-review .rv-resolved { opacity: .5; }
1518
+ .decklight-review .rv-head { display: flex; gap: 8px; align-items: baseline; font-size: 12px; opacity: .7; }
1519
+ .decklight-review .rv-slide { color: var(--accent, #6af); }
1520
+ .decklight-review .rv-at { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .8; }
1521
+ .decklight-review .rv-moved::before { content: "("; }
1522
+ .decklight-review .rv-moved::after { content: ")"; }
1523
+ .decklight-review .rv-tick { color: #7cd6a3; margin-left: auto; }
1524
+ .decklight-review .rv-body { margin-top: 3px; white-space: pre-wrap; }
1525
+ .decklight-review .rv-note { margin-top: 4px; font-size: 12px; color: #ffcf8b; }
1526
+ .decklight-review .rv-reply { margin: 4px 0 0 12px; font-size: 13px; opacity: .8; white-space: pre-wrap; }
1527
+ /* Leave a comment (⇧M) — its own card, because writing and reading are
1528
+ different moments. Shares the narration chrome like every other overlay. */
1529
+ .decklight-compose .narr-card { width: min(520px, 88vw); }
1530
+ .decklight-compose .rv-on { padding: 0 12px 6px; font-size: 12px; opacity: .6; }
1531
+ .decklight-compose .rv-input { width: calc(100% - 24px); margin: 0 12px 8px; resize: vertical; }
1532
+ .decklight-compose .rv-send { margin: 0 12px; text-align: center; border-radius: 8px;
1533
+ background: rgba(122, 214, 163, .16); color: #7cd6a3; }
1534
+ .decklight-compose .rv-send:hover { background: rgba(122, 214, 163, .26); }
1535
+ /* what is already said about this slide — context, not a list to work in */
1536
+ .decklight-compose .rv-already { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 6px; }
1537
+ .decklight-compose .rv-said { padding: 4px 12px; font-size: 13px; opacity: .75; white-space: pre-wrap; }
1538
+
1539
+ /* the group heading that names a source — a reviewer's branch, or your own */
1540
+ .decklight-review .rv-src,
1541
+ .decklight-compose .rv-src {
1542
+ padding: 8px 12px 4px;
1543
+ font-size: 11px;
1544
+ text-transform: uppercase;
1545
+ letter-spacing: .06em;
1546
+ opacity: .55;
1547
+ }
1548
+
1549
+ /* A review you are finished with. Struck through rather than hidden: the mark
1550
+ is reversible (T again), and its comments stay readable after the fact. */
1551
+ .decklight-review .rv-done { opacity: .45; }
1552
+ .decklight-review .rv-inc-row.rv-done,
1553
+ .decklight-review .rv-row.rv-done .rv-body { text-decoration: line-through; }
1554
+
1555
+ .decklight-review .rv-arm {
1556
+ margin-top: 6px;
1557
+ padding: 6px 8px;
1558
+ border-radius: 6px;
1559
+ background: rgba(255, 207, 139, .12);
1560
+ color: #ffcf8b;
1561
+ font-size: 12px;
1562
+ }
1563
+
1033
1564
  /* command palette (/) */
1034
1565
  .decklight-palette .narr-card { width: min(520px, 86vw); }
1035
1566
  .decklight-palette .pal-input {