decklight 0.8.1 → 0.10.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 (138) hide show
  1. package/PLATFORM.md +707 -0
  2. package/README.md +226 -150
  3. package/SPEC.md +803 -888
  4. package/cli/agent-review.mjs +246 -0
  5. package/cli/agents.mjs +35 -9
  6. package/cli/associate.mjs +12 -12
  7. package/cli/audit.mjs +42 -10
  8. package/cli/banner.mjs +41 -17
  9. package/cli/bundle-audio.mjs +190 -0
  10. package/cli/bundle-module.mjs +95 -0
  11. package/cli/bundle.mjs +439 -35
  12. package/cli/cast.mjs +48 -12
  13. package/cli/check-fixes.mjs +186 -0
  14. package/cli/check.mjs +988 -0
  15. package/cli/clone-deck.mjs +179 -0
  16. package/cli/commands.mjs +345 -0
  17. package/cli/comments.mjs +64 -18
  18. package/cli/commit-flow.mjs +51 -22
  19. package/cli/commit-message.mjs +51 -74
  20. package/cli/commit-split.mjs +601 -0
  21. package/cli/deck-refs.mjs +64 -0
  22. package/cli/deck-routes.mjs +67 -0
  23. package/cli/deckfile.mjs +3 -5
  24. package/cli/decklight.mjs +68 -289
  25. package/cli/design-system-deps.mjs +209 -0
  26. package/cli/design-system-edit.mjs +194 -0
  27. package/cli/design-system-refs.mjs +666 -0
  28. package/cli/design-system.mjs +497 -0
  29. package/cli/doctor.mjs +115 -0
  30. package/cli/edit-git.mjs +353 -0
  31. package/cli/edit-handover.mjs +551 -0
  32. package/cli/edit-look.mjs +631 -0
  33. package/cli/edit-slides.mjs +683 -0
  34. package/cli/edit.mjs +2585 -855
  35. package/cli/enhance.mjs +485 -0
  36. package/cli/extension.mjs +10 -10
  37. package/cli/font-refs.mjs +273 -0
  38. package/cli/font.mjs +246 -0
  39. package/cli/git-tree.mjs +1 -1
  40. package/cli/git.mjs +78 -11
  41. package/cli/import.mjs +56 -10
  42. package/cli/init.mjs +407 -236
  43. package/cli/library.mjs +127 -0
  44. package/cli/loader.mjs +3 -1
  45. package/cli/marketplace-autocheck.mjs +200 -0
  46. package/cli/marketplace.mjs +460 -29
  47. package/cli/narrate.mjs +251 -0
  48. package/cli/open-browser.mjs +63 -0
  49. package/cli/open.mjs +961 -0
  50. package/cli/pdf.mjs +64 -17
  51. package/cli/pkg.mjs +44 -2
  52. package/cli/plugin.mjs +43 -41
  53. package/cli/port-conflict.mjs +53 -23
  54. package/cli/pptx-export.mjs +63 -27
  55. package/cli/publish.mjs +8 -4
  56. package/cli/qr.mjs +1 -1
  57. package/cli/record.mjs +85 -23
  58. package/cli/remote.mjs +43 -17
  59. package/cli/restore.mjs +11 -4
  60. package/cli/review-ref.mjs +125 -0
  61. package/cli/review-remote.mjs +92 -48
  62. package/cli/review-routes.mjs +254 -0
  63. package/cli/review-store.mjs +47 -7
  64. package/cli/review-submit.mjs +47 -57
  65. package/cli/runtime-link.mjs +560 -0
  66. package/cli/serve.mjs +236 -45
  67. package/cli/setup.mjs +112 -0
  68. package/cli/sign.mjs +1 -1
  69. package/cli/skill-content.mjs +229 -35
  70. package/cli/skills.mjs +353 -26
  71. package/cli/start.mjs +110 -0
  72. package/cli/supervise.mjs +6 -6
  73. package/cli/theme-refs.mjs +527 -0
  74. package/cli/theme.mjs +181 -137
  75. package/cli/trust.mjs +83 -0
  76. package/cli/units.mjs +112 -47
  77. package/cli/update-check.mjs +1 -5
  78. package/cli/upgrade.mjs +194 -28
  79. package/cli/upstream.mjs +4 -3
  80. package/cli/util.mjs +4 -4
  81. package/cli/wizard.mjs +6 -6
  82. package/dist/build-info.json +1 -1
  83. package/dist/decklight.css +1533 -59
  84. package/dist/decklight.js +258 -115
  85. package/dist/decklight.js.map +4 -4
  86. package/docs/GLOSSARY.md +141 -0
  87. package/docs/architecture.svg +17 -17
  88. package/package.json +4 -2
  89. package/themes/README.md +9 -8
  90. package/themes/reveal-solarized.css +10 -0
  91. package/tools/args.mjs +20 -0
  92. package/tools/atomic-write.mjs +48 -0
  93. package/tools/brand-palette.mjs +717 -0
  94. package/tools/bridge.mjs +1 -1
  95. package/tools/build-groups.mjs +42 -0
  96. package/tools/color.mjs +48 -0
  97. package/tools/deck-html.mjs +396 -11
  98. package/tools/design-system-format.mjs +778 -0
  99. package/tools/design-system-migrations.mjs +207 -0
  100. package/tools/elevenlabs-tts.mjs +110 -17
  101. package/tools/exec.mjs +11 -3
  102. package/tools/extension-check.mjs +31 -7
  103. package/tools/font-format.mjs +190 -0
  104. package/tools/font-stacks.mjs +24 -0
  105. package/tools/gemini-tts.mjs +3 -0
  106. package/tools/lipsync-config.mjs +103 -0
  107. package/tools/lipsync-engines.mjs +205 -2
  108. package/tools/lipsync-server.mjs +264 -41
  109. package/tools/lipsync.mjs +37 -18
  110. package/tools/local-voice.mjs +32 -42
  111. package/tools/narration-manifest.mjs +270 -0
  112. package/tools/narration-synth.mjs +416 -0
  113. package/tools/pptx.mjs +776 -19
  114. package/tools/publish-targets.mjs +1 -1
  115. package/tools/publish-voices.mjs +3 -3
  116. package/tools/recording-impact.mjs +7 -3
  117. package/tools/render-theme.mjs +33 -0
  118. package/tools/review-anchor.mjs +28 -12
  119. package/tools/semver.mjs +40 -0
  120. package/tools/sentences.mjs +180 -0
  121. package/tools/shot.mjs +14 -7
  122. package/tools/site-clip.mjs +114 -0
  123. package/tools/site-voices.mjs +232 -0
  124. package/tools/template-theme.mjs +1 -1
  125. package/tools/test-impact.mjs +17 -10
  126. package/tools/theme-check.mjs +30 -3
  127. package/tools/tts-cache.mjs +4 -3
  128. package/tools/tts-engines.mjs +38 -20
  129. package/tools/tts-setup.mjs +7 -7
  130. package/tools/video-options.mjs +34 -0
  131. package/tools/video.mjs +530 -54
  132. package/tools/voiceover-server.mjs +185 -104
  133. package/tools/voiceover.mjs +119 -261
  134. package/tools/zip.mjs +1 -1
  135. package/cli/dev.mjs +0 -623
  136. package/cli/present.mjs +0 -853
  137. package/cli/review.mjs +0 -361
  138. package/tools/publish-site-voices.mjs +0 -75
@@ -17,6 +17,24 @@
17
17
  --transition-duration: 350ms;
18
18
  --auto-animate-duration: 500ms;
19
19
  --dim-opacity: 0.35;
20
+ /* Nested diagram tones (SVG_DIAGRAMS, #541): a filled shape drawn inside a
21
+ filled shape is painted one lightness step of its panel toward the ink —
22
+ the same hue, so the boxes read as the panel's children. A theme may set
23
+ these itself; left alone they derive from the theme's own slots and ink,
24
+ in dark and light themes alike. `-in2` is the step below that, and the
25
+ last: deeper nesting stays there. */
26
+ --d-fill-1-in: color-mix(in oklab, var(--d-fill-1) 82%, var(--d-text));
27
+ --d-fill-2-in: color-mix(in oklab, var(--d-fill-2) 82%, var(--d-text));
28
+ --d-fill-3-in: color-mix(in oklab, var(--d-fill-3) 82%, var(--d-text));
29
+ --d-fill-4-in: color-mix(in oklab, var(--d-fill-4) 82%, var(--d-text));
30
+ --d-fill-5-in: color-mix(in oklab, var(--d-fill-5) 82%, var(--d-text));
31
+ --d-fill-6-in: color-mix(in oklab, var(--d-fill-6) 82%, var(--d-text));
32
+ --d-fill-1-in2: color-mix(in oklab, var(--d-fill-1-in) 82%, var(--d-text));
33
+ --d-fill-2-in2: color-mix(in oklab, var(--d-fill-2-in) 82%, var(--d-text));
34
+ --d-fill-3-in2: color-mix(in oklab, var(--d-fill-3-in) 82%, var(--d-text));
35
+ --d-fill-4-in2: color-mix(in oklab, var(--d-fill-4-in) 82%, var(--d-text));
36
+ --d-fill-5-in2: color-mix(in oklab, var(--d-fill-5-in) 82%, var(--d-text));
37
+ --d-fill-6-in2: color-mix(in oklab, var(--d-fill-6-in) 82%, var(--d-text));
20
38
  }
21
39
 
22
40
  /* Accent overlay: --bg is the canvas (color OR gradient — the shorthand takes
@@ -31,6 +49,32 @@
31
49
  background-image: var(--bg-accent, none);
32
50
  pointer-events: none;
33
51
  }
52
+
53
+ /* Fullscreen letterbox (SPEC PRESENTING, Display): in fullscreen the screen
54
+ is the presenter's, so the bands the deck's ratio leaves above and below
55
+ (or beside) the slide are black, like a projector's, and the slide itself
56
+ carries the theme's canvas and accent. Out of fullscreen the bands keep
57
+ the theme's colour. A slide that bleeds its art (Bleed) still fills the
58
+ screen: the stage goes transparent so the art behind it shows through. */
59
+ .decklight:fullscreen { background: #000; }
60
+ /* ⇧F (Settings, palette): a fullscreen talk with nothing but the slides — the
61
+ arrows and both slide numbers (the player's and write mode's) leave */
62
+ .decklight.fs-chrome-hidden:fullscreen .decklight-controls,
63
+ .decklight.fs-chrome-hidden:fullscreen .decklight-slide-number,
64
+ .decklight.fs-chrome-hidden:fullscreen .decklight-slide-num { display: none; }
65
+ .decklight:fullscreen::before { content: none; }
66
+ .decklight:fullscreen > .decklight-stage {
67
+ background: var(--bg, #111);
68
+ }
69
+ .decklight:fullscreen > .decklight-stage::before {
70
+ content: '';
71
+ position: absolute;
72
+ inset: 0;
73
+ background-image: var(--bg-accent, none);
74
+ pointer-events: none;
75
+ }
76
+ .decklight:fullscreen > .decklight-stage:has(> section[data-bled]) { background: transparent; }
77
+ .decklight:fullscreen > .decklight-stage:has(> section[data-bled])::before { content: none; }
34
78
  .decklight-stage { z-index: 1; }
35
79
 
36
80
  .decklight-stage {
@@ -83,7 +127,9 @@
83
127
  .decklight-stage > section.leaving { z-index: 1; }
84
128
  .decklight-stage > section.active { z-index: 2; }
85
129
 
86
- .decklight aside.notes, .decklight aside.rehearse { display: none; }
130
+ /* `sources` joins the list deliberately: this rule names the asides that are
131
+ NOT the slide, so a new kind renders on the slide until it is added here. */
132
+ .decklight aside.notes, .decklight aside.rehearse, .decklight aside.sources { display: none; }
87
133
 
88
134
  /* ---------- pinned titles (SPEC PRESENTING) ---------------------------------------
89
135
  The engine marks pinnable sections with data-pinned + inline --pin-y /
@@ -399,16 +445,14 @@
399
445
  margin-bottom: 6px;
400
446
  padding-bottom: 9px;
401
447
  }
402
- /* Browse, and the marketplace rows it lists. Qualified refs and theme names
403
- from someone else's catalog are shown as written — no capitalization. */
404
- .decklight-theme-picker .tp-row.tp-browse {
405
- text-transform: none;
406
- color: #b9bec8;
407
- border-top: 1px solid rgba(255, 255, 255, .08);
408
- margin-top: 6px;
409
- padding-top: 9px;
410
- }
411
- .decklight-theme-picker .tp-row.tp-mkt { text-transform: none; }
448
+ /* Marketplace themes: names from someone else's catalog are shown as written
449
+ — no capitalization. While authoring, one the deck does not mark is dimmed:
450
+ it can be looked at and applied, but it will not be part of the bundle. */
451
+ .decklight-theme-picker .tp-row.tp-marked,
452
+ .decklight-theme-picker .tp-row.tp-unmarked { text-transform: none; }
453
+ .decklight-theme-picker .tp-row.tp-unmarked { color: #b9bec8; }
454
+ /* the brand lock's switch (SPEC BRAND_PALETTE) is a sentence, not a theme name */
455
+ .decklight-theme-picker .tp-row.tp-brandlock { text-transform: none; color: #b9bec8; }
412
456
  .decklight-theme-picker .tp-row {
413
457
  padding: 7px 12px;
414
458
  border-radius: 8px;
@@ -457,6 +501,7 @@
457
501
  .decklight-finder .tp-side { flex-basis: 300px; }
458
502
  .decklight-finder .tp-row,
459
503
  .decklight-finder .tp-caption { text-transform: none; }
504
+ .decklight-theme-picker .tp-caption.tp-plain { text-transform: none; }
460
505
  .decklight-finder .tp-row {
461
506
  white-space: nowrap;
462
507
  overflow: hidden;
@@ -611,6 +656,26 @@
611
656
  }
612
657
  .decklight-history .hs-btn:hover:not(:disabled) { background: rgba(128, 128, 128, .18); }
613
658
  .decklight-history .hs-btn:disabled { opacity: 0.3; cursor: default; }
659
+ /* CC and details close the transport row. CC is the deck's closed captions,
660
+ shown in the preview; details is a word rather than an icon (it was once
661
+ "CC" itself, when the preview had no captions to show). Lit when on, the
662
+ way a pressed toggle looks everywhere else. */
663
+ .decklight-history .hs-cc,
664
+ .decklight-history .hs-details {
665
+ width: auto;
666
+ padding: 0 6px;
667
+ margin-left: 0.6em;
668
+ font-size: 10px;
669
+ font-weight: 600;
670
+ line-height: 1;
671
+ letter-spacing: .04em;
672
+ opacity: .6;
673
+ }
674
+ .decklight-history .hs-cc[aria-pressed="true"],
675
+ .decklight-history .hs-details[aria-pressed="true"] {
676
+ opacity: 1;
677
+ background: rgba(128, 128, 128, .22);
678
+ }
614
679
  .decklight-history .hs-pos {
615
680
  min-width: 4.5em;
616
681
  text-align: center;
@@ -619,6 +684,28 @@
619
684
  opacity: 0.6;
620
685
  }
621
686
 
687
+ /* All slides / changes (D): the same toggle shape as CC, with words, because
688
+ which of the two you are walking is the thing to know at a glance. The
689
+ stop's kind beside the position, in the commit window's three colours. */
690
+ .decklight-history .hs-only {
691
+ width: auto;
692
+ padding: 0 8px;
693
+ margin-left: 0.6em;
694
+ font-size: 11px;
695
+ line-height: 1;
696
+ opacity: .6;
697
+ white-space: nowrap;
698
+ }
699
+ .decklight-history .hs-only[aria-pressed="true"] { opacity: 1; background: rgba(128, 128, 128, .22); }
700
+ .decklight-history .hs-only + .hs-cc,
701
+ .decklight-history .hs-only + .hs-details,
702
+ .decklight-history .hs-cc + .hs-details { margin-left: 0.35em; }
703
+ .decklight-history .hs-kind { font-size: 0.82em; white-space: nowrap; }
704
+ .decklight-history .hs-kind[hidden] { display: none; }
705
+ .decklight-history .hs-k-changed { color: #f2c46d; }
706
+ .decklight-history .hs-k-added { color: #7cd6a3; }
707
+ .decklight-history .hs-k-removed { color: #f08a7e; }
708
+
622
709
  /* The confirmation. It sits under the list rather than over it, because the
623
710
  row it is asking about must stay visible while you answer. */
624
711
  .decklight-history .hs-confirm {
@@ -710,8 +797,25 @@
710
797
  pointer-events: none;
711
798
  }
712
799
  .decklight-toast.show { opacity: 1; transform: none; }
800
+ /* a toast that asks: it stays until answered, so its buttons take the pointer */
801
+ .decklight-toast-ask { pointer-events: auto; }
802
+ .decklight-toast-ask .toast-actions { display: flex; gap: 8px; margin-top: 8px; }
803
+ .decklight-toast-ask .toast-act {
804
+ font: 600 16px/1.2 var(--font-mono, monospace);
805
+ color: #fff;
806
+ background: rgba(255, 255, 255, .14);
807
+ border: 1px solid rgba(255, 255, 255, .35);
808
+ border-radius: 6px;
809
+ padding: 5px 12px;
810
+ cursor: pointer;
811
+ }
812
+ .decklight-toast-ask .toast-act:first-child { background: var(--accent, #7ee787); border-color: transparent; color: #000; }
813
+ .decklight-toast-ask .toast-act.toast-dismiss:first-child { background: rgba(255, 255, 255, .14); color: #fff; }
814
+ .decklight-toast-ask .toast-act:disabled { opacity: .5; cursor: default; }
815
+ .decklight-toast-ask .toast-act:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
713
816
 
714
- /* the message log (I) — every message, with the time it arrived */
817
+ /* the log panel (`): Messages, every message with the time it arrived, and
818
+ Events, the debug stream — one panel, two tabs (engine.js openLog) */
715
819
  .decklight-msglog {
716
820
  position: absolute;
717
821
  top: 18px;
@@ -734,6 +838,22 @@
734
838
  letter-spacing: .04em;
735
839
  text-transform: uppercase;
736
840
  }
841
+ .decklight-msglog .msg-head kbd {
842
+ /* the key, printed as the key: a chip like the recorder's, and NOT uppercased
843
+ with the rest of the heading — a shortcut is the character on the keycap */
844
+ display: inline-block;
845
+ min-width: 1.5em;
846
+ padding: 0 6px;
847
+ border: 1px solid rgba(255, 255, 255, .25);
848
+ border-radius: 4px;
849
+ /* a backtick is a small glyph sitting at cap height: at the heading's size it
850
+ reads as an empty keycap, so the chip carries it a little larger and centred */
851
+ font-size: 1.1em;
852
+ line-height: 1.4;
853
+ text-align: center;
854
+ text-transform: none;
855
+ letter-spacing: 0;
856
+ }
737
857
  .decklight-msglog .msg-log {
738
858
  overflow-y: auto;
739
859
  padding: 8px 14px 12px;
@@ -756,13 +876,18 @@
756
876
 
757
877
  /* draw style: strokes animate dash-offset; text/fills fade */
758
878
  .decklight .build-step[data-build-style="draw"] { visibility: visible; opacity: 1; }
759
- .decklight .build-step[data-build-style="draw"] .draw-stroke {
879
+ /* a stroke inside a draw step, and a stroke that IS the step (a bare <line>
880
+ in a data-build="draw" svg, or one carrying data-build itself) */
881
+ .decklight .build-step[data-build-style="draw"] .draw-stroke,
882
+ .decklight .build-step.draw-stroke[data-build-style="draw"] {
760
883
  stroke-dasharray: var(--draw-len);
761
884
  stroke-dashoffset: var(--draw-len);
762
885
  transition: stroke-dashoffset calc(var(--build-duration) * 2.2) ease;
763
886
  }
764
887
  .decklight .build-step[data-build-style="draw"][data-build-state="current"] .draw-stroke,
765
- .decklight .build-step[data-build-style="draw"][data-build-state="done"] .draw-stroke {
888
+ .decklight .build-step[data-build-style="draw"][data-build-state="done"] .draw-stroke,
889
+ .decklight .build-step.draw-stroke[data-build-style="draw"][data-build-state="current"],
890
+ .decklight .build-step.draw-stroke[data-build-style="draw"][data-build-state="done"] {
766
891
  stroke-dashoffset: 0;
767
892
  }
768
893
  .decklight .build-step[data-build-style="draw"] .draw-fade {
@@ -778,11 +903,21 @@
778
903
  /* strokes hidden by full dash offset; keep element itself visible */
779
904
  opacity: 1;
780
905
  }
906
+ /* the arrowhead that rides a drawing stroke's tip (#522): placed by the
907
+ engine's frame loop, never by this transition — the duration is here only
908
+ to be READ, so print, the overview, no-anim and reduced motion turn the
909
+ loop instant by zeroing it exactly as they zero the stroke's own */
910
+ .decklight .draw-head { transition: opacity calc(var(--build-duration) * 2.2) ease; pointer-events: none; }
911
+ /* the reveal inside the mask a dashed stroke draws through (#737): moved by
912
+ the same frame loop, its duration read the same way */
913
+ .decklight .draw-mask-stroke { transition: opacity calc(var(--build-duration) * 2.2) ease; }
781
914
 
782
915
  /* instant application (slide entry, deep links, back-nav restore) */
783
916
  .decklight.decklight-no-anim .build-step,
784
917
  .decklight.decklight-no-anim .build-step .draw-stroke,
785
- .decklight.decklight-no-anim .build-step .draw-fade {
918
+ .decklight.decklight-no-anim .build-step .draw-fade,
919
+ .decklight.decklight-no-anim .draw-head,
920
+ .decklight.decklight-no-anim .draw-mask-stroke {
786
921
  transition: none !important;
787
922
  animation: none !important;
788
923
  }
@@ -793,6 +928,15 @@
793
928
  .decklight .chart { width: 100%; max-width: 860px; margin: 0.2em auto; }
794
929
  .decklight .chart > svg { display: block; width: 100%; height: auto; }
795
930
  .decklight .chart-svg text { font-family: var(--font-body, system-ui, sans-serif); }
931
+ /* an imported drawing's wordy boxes (tools/pptx.mjs drawingSvg): HTML inside the
932
+ SVG, so a paragraph wraps and a list stays a list — <text> can do neither */
933
+ .decklight svg foreignObject .dwg-text {
934
+ display: flex; flex-direction: column; justify-content: center;
935
+ height: 100%; box-sizing: border-box; padding: 4px 8px;
936
+ font: 600 14px/1.3 var(--font-body, system-ui, sans-serif); color: var(--d-text); text-align: center;
937
+ }
938
+ .decklight svg foreignObject .dwg-text p { margin: 0 0 .3em; }
939
+ .decklight svg foreignObject .dwg-text ul, .decklight svg foreignObject .dwg-text ol { margin: 0; padding-left: 1.2em; text-align: left; font-weight: 400; }
796
940
  /* invalid chart JSON: a visible error box (the terminal-broken idiom) —
797
941
  never a blank slide */
798
942
  .decklight .chart-broken {
@@ -996,8 +1140,13 @@
996
1140
  pointer-events: none;
997
1141
  user-select: none;
998
1142
  }
1143
+ /* the commit chip has the corner: the clock steps down under it */
1144
+ .decklight.has-commit-chip .decklight-clock { top: 60px; }
1145
+ /* the slide number (editmode.js) is above both: they step down under it */
1146
+ .decklight.has-slide-num .decklight-clock { top: 76px; }
1147
+ .decklight.has-slide-num.has-commit-chip .decklight-clock { top: 94px; }
999
1148
  .decklight-clock .clk-elapsed { color: var(--accent, #6af); }
1000
- /* The element content editor's highlighted layers (author mode). A textarea
1149
+ /* The element content editor's highlighted layers (write mode). A textarea
1001
1150
  cannot render markup, so the colour is a <pre> BEHIND a textarea whose own
1002
1151
  text is transparent.
1003
1152
 
@@ -1031,10 +1180,40 @@
1031
1180
  .decklight-narr .edit-code > pre {
1032
1181
  position: absolute;
1033
1182
  inset: 0;
1034
- overflow: auto;
1183
+ /* hidden, not auto: the paint is scrolled by script to wherever the textarea
1184
+ is, and a scrollbar of its own would narrow it by one scrollbar the
1185
+ textarea may not have (classic scrollbars, headless Chrome) — the two
1186
+ layers then wrap at different widths. The textarea's scrollbar is instead
1187
+ added to this layer's right padding (editmode.js) */
1188
+ overflow: hidden;
1035
1189
  pointer-events: none; /* the textarea takes every click */
1036
1190
  background: var(--code-bg, rgba(0, 0, 0, .35));
1037
1191
  border-radius: 8px;
1192
+ /* the code-slide rule's `max-width: 95%` and box-shadow reached this <pre>
1193
+ too — a painted layer 5% narrower than the textarea wraps every long
1194
+ line one column sooner (#529) */
1195
+ max-width: none;
1196
+ width: auto;
1197
+ box-shadow: none;
1198
+ }
1199
+ /* The <code> the highlighter paints into sits inside .decklight, so the
1200
+ code-SLIDE rule (`.decklight pre code`, below) reached it too: a 0.62em
1201
+ font and `white-space: pre` on the painted layer alone. Past the first
1202
+ wrapped line the layers disagreed on every metric, and the textarea had
1203
+ 2 000 px of scroll the paint could not follow — wheel, arrows and the caret
1204
+ all "dead" (#529). Every metric comes from the one rule above, inherited. */
1205
+ .decklight-narr .edit-code > pre > code {
1206
+ display: inline;
1207
+ font: inherit;
1208
+ line-height: inherit;
1209
+ letter-spacing: inherit;
1210
+ white-space: inherit;
1211
+ overflow-wrap: inherit;
1212
+ tab-size: inherit;
1213
+ padding: 0;
1214
+ margin: 0;
1215
+ background: none;
1216
+ border-radius: 0;
1038
1217
  }
1039
1218
  .decklight-narr .edit-code > textarea {
1040
1219
  position: relative;
@@ -1054,21 +1233,34 @@
1054
1233
  textarea shows its own text rather than an empty-looking box. */
1055
1234
  .decklight-narr .edit-code > textarea:disabled { color: var(--muted, #9aa); }
1056
1235
 
1057
- /* "an agent is still working" — author mode only (src/core/editmode.js).
1236
+ /* "an agent is still working" — write mode only (src/core/editmode.js).
1058
1237
  BOTTOM CENTRE, which is the one piece of chrome nothing else claims: the
1059
1238
  logo takes a corner, the clock is top-right, the controls bottom-right and
1060
1239
  messages top-left, so this can be persistent without ever covering them.
1061
1240
  Quiet by construction — it reports rather than asks, and nothing about a
1062
1241
  background job should compete with the slide. */
1063
1242
  /* 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).
1243
+ TOP-RIGHT: the editing bar is along the bottom whenever a deck is open to
1244
+ edit, and this chip is exactly what an edit leaves behind, so the bottom
1245
+ corner it used to take is the bar's now. The agent chip owns the bottom
1246
+ centre and the two can be up at the same time. The clock shares the
1247
+ corner and steps down while the chip is up (`has-commit-chip`).
1066
1248
  Clickable, because a statement you can act on should be actionable where it
1067
1249
  is, and the deck's own keyboard help is one key away. */
1250
+ /* the lock (editmode.js): a statement at the other corner, while changes are off */
1251
+ .decklight-lock-chip {
1252
+ position: absolute; left: 16px; bottom: 16px; z-index: 42;
1253
+ background: rgba(0, 0, 0, .72); color: #fff;
1254
+ font: 500 13px/1 var(--font-mono, monospace);
1255
+ padding: 7px 12px; border-radius: 999px; cursor: pointer;
1256
+ border: 1px solid rgba(255, 255, 255, .16);
1257
+ }
1258
+ .decklight-lock-chip:hover { background: rgba(0, 0, 0, .85); }
1259
+ .decklight-lock-chip:focus-visible { outline: 2px solid var(--accent, #6af); outline-offset: 2px; }
1068
1260
  .decklight-commit-chip {
1069
1261
  position: absolute;
1070
1262
  right: 16px;
1071
- bottom: 16px;
1263
+ top: 14px;
1072
1264
  z-index: 42;
1073
1265
  background: rgba(0, 0, 0, .72);
1074
1266
  color: #fff;
@@ -1079,20 +1271,121 @@
1079
1271
  cursor: pointer;
1080
1272
  border: 1px solid rgba(255, 255, 255, .16);
1081
1273
  }
1274
+ /* a statement until the server asks: quieter, so it reads as status, not a nag */
1275
+ .decklight-commit-chip[data-tone="quiet"] { opacity: .62; border-color: rgba(255, 255, 255, .1); }
1276
+ /* the zoom (PRESENTING, pinch zoom): top right while the slide is not at fit,
1277
+ on the slide number's row and to its left when that is up (engine.js sets
1278
+ `right` from the badge's width); the badge's own geometry, so the two
1279
+ pills sit level; a click fits, like 0 */
1280
+ .decklight-zoom {
1281
+ position: absolute; right: 16px; top: 14px; z-index: 42;
1282
+ color: var(--muted, #aaa);
1283
+ background: color-mix(in srgb, var(--bg, #000) 82%, transparent);
1284
+ border: 1px solid color-mix(in srgb, var(--muted, #aaa) 45%, transparent);
1285
+ font: 700 14px/1 var(--font-mono, monospace);
1286
+ font-variant-numeric: tabular-nums;
1287
+ padding: 7px 12px; border-radius: 999px;
1288
+ cursor: pointer; user-select: none;
1289
+ }
1290
+ .decklight-zoom:hover { color: var(--fg, #eee); }
1291
+ /* the slide you are on, while editing is on (editmode.js): the top right
1292
+ corner, in the theme's accent on the theme's own background, so it reads
1293
+ on every theme; the commit chip steps down under it */
1294
+ .decklight-slide-num {
1295
+ position: absolute; right: 16px; top: 14px; z-index: 42;
1296
+ color: var(--accent, #6af);
1297
+ background: color-mix(in srgb, var(--bg, #000) 82%, transparent);
1298
+ border: 1px solid color-mix(in srgb, var(--accent, #6af) 50%, transparent);
1299
+ font: 700 14px/1 var(--font-mono, monospace);
1300
+ font-variant-numeric: tabular-nums;
1301
+ padding: 7px 12px; border-radius: 999px;
1302
+ pointer-events: none; user-select: none;
1303
+ }
1304
+ .decklight.has-slide-num .decklight-commit-chip { top: 48px; }
1305
+ .decklight-commit-chip[data-tone="quiet"]:hover { opacity: 1; }
1082
1306
  .decklight-commit-chip:hover { background: rgba(0, 0, 0, .85); }
1083
1307
  .decklight-commit-chip:focus-visible { outline: 2px solid var(--accent, #6af); outline-offset: 2px; }
1308
+ /* the slides since the last commit, in the commit window's colours */
1309
+ .decklight-commit-chip .cc-sl { font-weight: 700; }
1310
+ .decklight-commit-chip .cc-sl::before { content: '\25CF'; margin-right: 3px; }
1311
+ .decklight-commit-chip .cc-sl-changed { color: #f2c46d; }
1312
+ .decklight-commit-chip .cc-sl-added { color: #7cd6a3; }
1313
+ .decklight-commit-chip .cc-sl-removed { color: #f08a7e; }
1084
1314
 
1085
1315
  /* 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); }
1316
+ overlay. Three sections in the order the work goes, commit, tag, push,
1317
+ each named on its own rule and ending in one button at the same right
1318
+ edge; Commit is the only filled one. */
1319
+ .decklight-commit .narr-card { width: min(540px, 90vw); }
1320
+ .decklight-commit [hidden] { display: none !important; }
1321
+ .decklight-commit .cm-sec { padding: 10px 12px 12px; }
1322
+ .decklight-commit .cm-sec + .cm-sec { border-top: 1px solid rgba(255, 255, 255, .08); }
1323
+ .decklight-commit .cm-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-bottom: 6px; }
1324
+ .decklight-commit .cm-line { display: flex; align-items: center; gap: 8px; }
1325
+ .decklight-commit .cm-what { font-size: 13px; opacity: .75; margin-bottom: 6px; }
1326
+ .decklight-commit .cm-body { margin-top: 4px; }
1327
+ .decklight-commit .cm-msg-head { justify-content: space-between; margin-bottom: 4px; }
1328
+ .decklight-commit .cm-sub { font-size: 12px; opacity: .6; }
1329
+ .decklight-commit .cm-tools { display: inline-flex; gap: 6px; }
1330
+ .decklight-commit .cm-input { width: 100%; margin: 0 0 8px; resize: vertical; }
1331
+ .decklight-commit .cm-actions { justify-content: flex-end; }
1332
+ .decklight-commit .cm-keys { font-size: 12px; opacity: .5; }
1333
+ /* one button, three weights: primary (Commit), plain (Tag, Push), quiet (the
1334
+ message's own tools) */
1335
+ .decklight-commit .cm-btn {
1336
+ font: inherit;
1337
+ font-size: 13px;
1338
+ line-height: 1.2;
1339
+ min-height: 32px;
1340
+ min-width: 96px;
1341
+ padding: 7px 14px;
1342
+ border-radius: 8px;
1343
+ border: 1px solid rgba(255, 255, 255, .18);
1344
+ background: rgba(255, 255, 255, .08);
1345
+ color: inherit;
1346
+ cursor: pointer;
1347
+ flex: none;
1348
+ }
1349
+ .decklight-commit .cm-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .32); }
1350
+ .decklight-commit .cm-btn:focus-visible { outline: 2px solid var(--accent, #7aa2ff); outline-offset: 2px; }
1351
+ .decklight-commit .cm-btn:disabled { opacity: .4; cursor: default; }
1352
+ .decklight-commit .cm-primary { background: #3f9e6c; border-color: #3f9e6c; color: #fff; font-weight: 600; }
1353
+ .decklight-commit .cm-primary:hover:not(:disabled) { background: #48b079; border-color: #48b079; }
1354
+ .decklight-commit .cm-quiet { min-width: 0; min-height: 28px; padding: 4px 10px; font-size: 12px; background: none; }
1355
+ /* the thinking mark changes every frame: a fixed-width face keeps the button
1356
+ from jittering as | / - \ swap and the seconds join */
1357
+ .decklight-commit .cm-write.cm-thinking { font-family: var(--font-mono, ui-monospace, monospace); }
1358
+ /* subjects are off in this session: the button stays (it is how the option is
1359
+ found) but reads as not-now, and the reason lands on the hint line below */
1360
+ .decklight-commit .cm-write.cm-off { opacity: .55; }
1361
+ .decklight-commit .rec-hint { padding: 8px 12px 4px; font-size: 12px; opacity: .55; }
1362
+ .decklight-commit .rec-hint.cm-why { opacity: .9; }
1363
+ .decklight-commit .cm-cmd { white-space: nowrap; font-family: var(--font-mono, ui-monospace, monospace); font-size: .95em; }
1364
+ /* the slides since the last commit, each count in its colour */
1365
+ .decklight-commit .cm-slides { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; font-size: 12px; }
1366
+ .decklight-commit .cm-sl-head { opacity: .6; }
1367
+ .decklight-commit .cm-sl { font-weight: 600; font-variant-numeric: tabular-nums; }
1368
+ .decklight-commit .cm-sl::before { content: '\25CF'; margin-right: 4px; }
1369
+ .decklight-commit .cm-sl-changed { color: #f2c46d; }
1370
+ .decklight-commit .cm-sl-added { color: #7cd6a3; }
1371
+ .decklight-commit .cm-sl-removed { color: #f08a7e; }
1372
+ .decklight-commit .cm-sl-zero { opacity: .35; font-weight: 400; }
1373
+ /* several commits proposed: one row each, the subject editable, where it lands beside it */
1374
+ .decklight-commit .cm-plan { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
1375
+ .decklight-commit .cm-plan-row { display: flex; align-items: center; gap: 8px; }
1376
+ .decklight-commit .cm-plan-take { flex: 0 0 auto; margin: 0; accent-color: var(--accent, #7aa2ff); cursor: pointer; }
1377
+ /* an unticked commit stays uncommitted: its row steps back, still editable */
1378
+ .decklight-commit .cm-plan-off .cm-plan-n,
1379
+ .decklight-commit .cm-plan-off .cm-plan-subject,
1380
+ .decklight-commit .cm-plan-off .cm-plan-where { opacity: .4; }
1381
+ .decklight-commit .cm-plan-n { width: 1.4em; text-align: right; font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
1382
+ .decklight-commit .cm-plan-subject { flex: 1; min-width: 0; margin: 0; }
1383
+ .decklight-commit .cm-plan-where { flex: 0 0 auto; max-width: 34%; font-size: 12px; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1384
+ /* tag a commit, push them */
1385
+ .decklight-commit .cm-tag { flex: 1; min-width: 0; margin: 0; }
1386
+ .decklight-commit .cm-tags { display: block; margin-top: 6px; font-size: 12px; opacity: .6; }
1387
+ .decklight-commit .cm-push-what { flex: 1; min-width: 0; font-size: 13px; opacity: .8; }
1388
+ .decklight-commit .cm-push-go.cm-off { opacity: .45; }
1096
1389
 
1097
1390
  .decklight-agent-chip {
1098
1391
  position: absolute;
@@ -1149,6 +1442,11 @@
1149
1442
 
1150
1443
  /* a finder row that is another module (a separate file), not a slide here */
1151
1444
  .decklight-finder .tp-row.tp-module { color: #cbb6ff; }
1445
+ /* the outline (#489): a chapter's slides fold underneath it */
1446
+ .decklight-finder .tp-row.tp-child { padding-left: 30px; }
1447
+ .decklight-finder .tp-fold { display: inline-block; width: 1em; text-align: center; cursor: pointer; }
1448
+ .decklight-finder .tp-fold:hover { color: #fff; }
1449
+ .decklight-finder .tp-count { opacity: .55; }
1152
1450
 
1153
1451
  /* overview */
1154
1452
  .decklight-overview-grid {
@@ -1187,6 +1485,25 @@
1187
1485
  .decklight-overview > .decklight-stage { visibility: hidden; }
1188
1486
  .decklight-overview-grid .ov-cell.ov-current { border-color: var(--accent, #6af); }
1189
1487
  .decklight-overview-grid .ov-cell.ov-selected { outline: 3px solid var(--accent, #6af); outline-offset: 2px; }
1488
+ /* the overview edits slides in write mode (engine.js ovEditable): a cell's
1489
+ tools show on hover, a drag shows where the slide would land */
1490
+ .decklight-overview-grid .ov-tools {
1491
+ position: absolute; right: 6px; top: 6px; z-index: 3;
1492
+ display: none; gap: 4px;
1493
+ }
1494
+ .decklight-overview-grid .ov-cell:hover .ov-tools, .decklight-overview-grid .ov-cell.ov-selected .ov-tools { display: flex; }
1495
+ .decklight-overview-grid .ov-tool {
1496
+ width: 26px; height: 26px; padding: 0;
1497
+ border: 1px solid rgba(255, 255, 255, .2); border-radius: 7px;
1498
+ background: rgba(20, 20, 22, .82); color: #e6e6e6;
1499
+ font: 600 13px/24px system-ui, sans-serif; text-align: center; cursor: pointer;
1500
+ }
1501
+ .decklight-overview-grid .ov-tool:hover { background: rgba(255, 255, 255, .22); }
1502
+ .decklight-overview-grid .ov-tool.ov-delete:hover { background: rgba(229, 83, 61, .85); }
1503
+ .decklight-overview-grid.ov-editable .ov-cell { cursor: grab; }
1504
+ .decklight-overview-grid .ov-cell.ov-dragging { opacity: .4; }
1505
+ .decklight-overview-grid .ov-cell.ov-drop-before { box-shadow: -8px 0 0 -2px var(--accent, #6af); }
1506
+ .decklight-overview-grid .ov-cell.ov-drop-after { box-shadow: 8px 0 0 -2px var(--accent, #6af); }
1190
1507
  .decklight-overview-grid .ov-frame { transform-origin: top left; position: absolute; top: 0; left: 0; pointer-events: none; }
1191
1508
  .decklight-overview-grid .ov-clone *, .decklight-overview-grid .ov-clone { animation: none !important; transition: none !important; }
1192
1509
  /* clones live outside .decklight-stage, so the slide base styles must be
@@ -1263,6 +1580,10 @@
1263
1580
  .decklight-overview .build-step { visibility: visible !important; opacity: 1 !important; transform: none !important; }
1264
1581
  .decklight-overview .draw-stroke { stroke-dashoffset: 0 !important; }
1265
1582
  .decklight-overview .draw-fade { opacity: 1 !important; }
1583
+ .decklight-overview .draw-head { visibility: visible !important; transition: none !important; }
1584
+ /* a dashed stroke shows whole: the thumbnail is a clone, so its mask's id
1585
+ names the live slide's mid-draw mask, not its own */
1586
+ .decklight-overview [data-draw-masked] { mask: none !important; }
1266
1587
 
1267
1588
  /* narration picker (N) */
1268
1589
  .decklight-narr {
@@ -1296,8 +1617,51 @@
1296
1617
  .decklight-narr .narr-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
1297
1618
  .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; }
1298
1619
  .decklight-narr .narr-group:first-of-type { border-top: none; padding-top: 0; }
1620
+ /* the engine bar at the top of the voices view: the one choice that decides
1621
+ every voice below it, drawn as a control of its own rather than a line
1622
+ among the voices (where it got lost) */
1623
+ .decklight-narr .narr-engine-bar {
1624
+ display: flex; align-items: baseline; gap: 10px;
1625
+ margin: 4px 0 10px; padding: 10px 12px;
1626
+ border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
1627
+ background: rgba(255, 255, 255, .05); cursor: pointer;
1628
+ }
1629
+ .decklight-narr .narr-engine-bar.narr-sel { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
1630
+ .decklight-narr .narr-engine-bar .eb-k { font-size: .68em; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
1631
+ .decklight-narr .narr-engine-bar .eb-name { font-weight: 650; font-size: 1.05em; }
1632
+ .decklight-narr .narr-engine-bar .eb-model { opacity: .6; font-size: .9em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1633
+ .decklight-narr .narr-engine-bar .eb-go { font-size: .85em; opacity: .75; white-space: nowrap; }
1634
+ .decklight-narr .narr-engine-bar.narr-sel .eb-go { opacity: 1; }
1299
1635
  .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; }
1300
1636
  .decklight-narr .narr-row-label { flex: 1 1 auto; min-width: 0; }
1637
+ /* one answer out of a few (src/core/choice.js): what each costs, on the right */
1638
+ .decklight-choice .narr-card { width: min(540px, 90vw); }
1639
+ .decklight-choice .narr-row { align-items: baseline; }
1640
+ .decklight-choice .choice-figure { margin-left: auto; padding-left: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .85; }
1641
+ .decklight-choice .narr-row.narr-blocked .choice-figure { opacity: .45; }
1642
+ /* the range picker's own-range box (src/core/ranges.js) */
1643
+ .decklight-range .range-custom input { flex: 0 0 7em; min-width: 0; font: inherit; padding: 2px 8px; border-radius: 6px;
1644
+ border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); color: inherit; }
1645
+ .decklight-range .range-custom input:focus { outline: 2px solid var(--accent, #6af); outline-offset: 1px; }
1646
+ /* wide enough that a synthesized voice's folder and the key hint stay on one line */
1647
+ .decklight-range .narr-card { width: min(560px, 90vw); }
1648
+ /* the export card's settings: answers, not ranges */
1649
+ .decklight-range .range-setting { gap: 12px; }
1650
+ .decklight-range .range-setting-name { flex: 0 0 5.2em; opacity: .55; font-size: .85em; }
1651
+ .decklight-range .range-setting-last { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); border-radius: 8px 8px 0 0; }
1652
+ /* an export card (an action): Slides, Options, and a button that runs it */
1653
+ .decklight-range .rec-sect {
1654
+ margin: 6px 12px 4px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1);
1655
+ font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .55;
1656
+ }
1657
+ .decklight-range .narr-head + .rec-sect { border-top: 0; padding-top: 0; }
1658
+ .decklight-range .rec-foot { display: flex; align-items: center; gap: 14px; margin: 6px 12px 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
1659
+ .decklight-range .rec-foot .rec-hint { padding: 0; }
1660
+ .decklight-range .narr-row.range-go {
1661
+ display: inline-flex; flex: none; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 8px 16px;
1662
+ font: inherit; font-size: 14px; font-weight: 600; color: #16181d; background: var(--accent, #6af); cursor: pointer;
1663
+ }
1664
+ .decklight-range .narr-row.range-go.narr-sel { background: var(--accent, #6af); outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
1301
1665
  .decklight-narr .narr-prev-btn {
1302
1666
  flex: none;
1303
1667
  background: none;
@@ -1318,6 +1682,56 @@
1318
1682
  .decklight-narr .narr-row.narr-sel { background: rgba(255, 255, 255, .14); }
1319
1683
  .decklight-narr .narr-row.narr-cur::after { content: ' ✓'; opacity: .7; }
1320
1684
  .decklight-narr .narr-flavor { opacity: .5; font-size: .85em; margin-left: 6px; }
1685
+ /* An informational row in the settings panel: a fact, not a command. It keeps
1686
+ full contrast — unlike .narr-blocked, which dims a row to say "this one is
1687
+ not available to you" — and only loses the pointer cursor, because there is
1688
+ nothing to click. */
1689
+ .decklight-narr .narr-row.narr-fact { cursor: default; }
1690
+ .decklight-settings .narr-card { width: min(380px, 80vw); }
1691
+ /* what ⏎ does on a row, kept to the right and quieter than the value */
1692
+ .decklight-settings .narr-hint { margin-left: auto; padding-left: 12px; }
1693
+ .decklight-settings .narr-row { display: flex; align-items: baseline; }
1694
+ /* Check deck… (src/core/deckcheck.js): a row per finding, the mark and the
1695
+ slide number in fixed columns so a long list scans down its left edge, the
1696
+ slide's title over what is wrong with it, and under that the fix that
1697
+ would clear it. A dockable panel (dock.js): floating it is a card, docked
1698
+ the list takes the gutter and scrolls while the head and foot stay put. */
1699
+ .decklight-deckcheck.decklight-dockable[data-dock="float"] .narr-card { width: min(560px, 90vw); }
1700
+ .decklight-deckcheck .narr-card { display: flex; flex-direction: column; overflow: hidden; }
1701
+ .decklight-deckcheck .dc-heading { flex: 1; opacity: .55; }
1702
+ .decklight-deckcheck .dc-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
1703
+ .decklight-deckcheck .dc-row { align-items: flex-start; cursor: pointer; }
1704
+ /* a deck-wide finding: no slide to go to, the dash says so */
1705
+ .decklight-deckcheck .dc-deck .dc-where { opacity: .35; }
1706
+ .decklight-deckcheck .dc-act { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
1707
+ .decklight-deckcheck .dc-fix {
1708
+ font: inherit; font-size: 11.5px; line-height: 1.3; padding: 2px 8px; cursor: pointer;
1709
+ border: 1px solid rgba(126, 231, 135, .45); border-radius: 999px;
1710
+ background: rgba(126, 231, 135, .1); color: #b6f5c8;
1711
+ }
1712
+ .decklight-deckcheck .dc-fix:hover { background: rgba(126, 231, 135, .22); }
1713
+ .decklight-deckcheck .dc-fix:disabled { opacity: .4; cursor: default; }
1714
+ .decklight-deckcheck .dc-fix-agent { border-color: rgba(210, 168, 255, .45); background: rgba(210, 168, 255, .1); color: #e2ccff; }
1715
+ .decklight-deckcheck .dc-fix-agent:hover { background: rgba(210, 168, 255, .22); }
1716
+ .decklight-deckcheck .dc-fix-all { border-style: dashed; }
1717
+ .decklight-deckcheck .dc-nofix { font-size: 11px; opacity: .4; }
1718
+ .decklight-deckcheck .dc-mark { flex: 0 0 1em; font-weight: 700; text-align: center; }
1719
+ .decklight-deckcheck .dc-error .dc-mark { color: #ff7b72; }
1720
+ .decklight-deckcheck .dc-warn .dc-mark { color: #e3b341; }
1721
+ .decklight-deckcheck .dc-hint .dc-mark { color: #7ee787; }
1722
+ .decklight-deckcheck .dc-agent .dc-mark { color: #d2a8ff; }
1723
+ /* the agent review's group: judgement, not a count, so it is set apart under its own head */
1724
+ .decklight-deckcheck .dc-agent-head { margin-top: 6px; }
1725
+ .decklight-deckcheck .dc-rule {
1726
+ align-self: flex-start; margin-top: 3px; padding: 0 6px; border-radius: 999px;
1727
+ background: rgba(210, 168, 255, .14); color: #d2a8ff; font-size: 11px; line-height: 17px;
1728
+ }
1729
+ .decklight-deckcheck .dc-where { flex: 0 0 2.2em; text-align: right; font-variant-numeric: tabular-nums; opacity: .55; }
1730
+ .decklight-deckcheck .dc-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
1731
+ .decklight-deckcheck .dc-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1732
+ .decklight-deckcheck .dc-msg { opacity: .75; font-size: .92em; }
1733
+ .decklight-deckcheck .dc-clean { opacity: .8; }
1734
+ .decklight-deckcheck .dc-foot { margin-top: 8px; padding: 8px 12px 2px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; opacity: .5; }
1321
1735
  /* An engine this machine cannot use is SHOWN, dimmed, with the terminal command
1322
1736
  that would fix it — hiding it would answer "where did ElevenLabs go?" with
1323
1737
  silence. The fix wraps onto its own line (the row is a flex box) because it
@@ -1359,9 +1773,16 @@
1359
1773
  }
1360
1774
 
1361
1775
  /* offline recording (V → Record… → synthesized) — shares .decklight-narr's card chrome */
1776
+ /* Insert-from-a-template (UNITS#REST): the picker's two panes — the list you
1777
+ choose in, and the slide under the cursor rendered beside it — carrying the
1778
+ narration card's ROWS, because a template row has a tick column and warning
1779
+ tags that `.tp-row` does not draw. The element wears both class names, so
1780
+ both sets of rules apply to the parts each one owns. */
1781
+ /* Wider than the picker's own, and a wider rail: a theme is one word and a
1782
+ slide's title is a sentence. */
1362
1783
  .decklight-record .narr-card { width: min(400px, 82vw); }
1363
- .decklight-record .rec-line { padding: 4px 12px; opacity: .85; }
1364
- .decklight-record .rec-hint { padding: 10px 12px 2px; opacity: .5; font-size: 12px; }
1784
+ .decklight-record .rec-line, .decklight-range .rec-line, .decklight-choice .rec-line { padding: 4px 12px; opacity: .85; }
1785
+ .decklight-record .rec-hint, .decklight-range .rec-hint, .decklight-choice .rec-hint { padding: 10px 12px 2px; opacity: .5; font-size: 12px; }
1365
1786
  .decklight-record .rec-bar {
1366
1787
  height: 6px;
1367
1788
  margin: 10px 12px 4px;
@@ -1379,6 +1800,204 @@
1379
1800
  synthesized one and the line you are reading is the largest thing on it. Everything
1380
1801
  else on the card is chrome around that one sentence. */
1381
1802
  .decklight-mic .narr-card { width: min(640px, 90vw); }
1803
+ /* A design-system slide (DESIGN_SYSTEMS): what could not be expanded, or did
1804
+ not land in a slot, is badged — while authoring only; presenting is silent */
1805
+ .decklight-authoring .decklight > section[data-ds-missing]::after {
1806
+ content: '⚠ ' attr(data-ds-missing);
1807
+ position: absolute; top: .6em; right: .6em; max-width: 60%;
1808
+ padding: .25em .6em; border-radius: .4em;
1809
+ font: 600 13px/1.3 system-ui, sans-serif;
1810
+ background: rgba(229, 83, 61, .92); color: #fff; z-index: 5; pointer-events: none;
1811
+ }
1812
+ .decklight-authoring .decklight .ds-unslotted { outline: 2px dashed rgba(229, 83, 61, .8); outline-offset: .3em; position: relative; }
1813
+ .decklight-authoring .decklight .ds-unslotted::before {
1814
+ content: 'not in a slot'; position: absolute; top: -1.6em; left: 0;
1815
+ font: 600 11px/1 system-ui, sans-serif; color: rgba(229, 83, 61, .95);
1816
+ }
1817
+ /* Design systems… (DESIGN_SYSTEMS): the marketplaces' design systems, ● used / ○ not */
1818
+ .decklight-design-systems .narr-card { width: min(520px, 90vw); }
1819
+ /* one marker says "in use" — the ● — so the row is not .narr-cur and gets no ✓ */
1820
+ .decklight-design-systems .ds-row:not(.ds-add) { align-items: flex-start; }
1821
+ .decklight-design-systems .ds-mark { flex: none; width: 1em; line-height: 1.45; }
1822
+ .decklight-design-systems .ds-row .narr-row-label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; line-height: 1.45; }
1823
+ .decklight-design-systems .ds-name { font-weight: 600; }
1824
+ .decklight-design-systems .ds-version {
1825
+ font: 500 .75em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0 5px;
1826
+ border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; opacity: .7;
1827
+ }
1828
+ /* the description is a line; the whole of it is the row's tooltip */
1829
+ .decklight-design-systems .ds-desc {
1830
+ flex: 1 0 100%; min-width: 0; font-size: .85em; opacity: .55;
1831
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
1832
+ }
1833
+ .decklight-design-systems .ds-act { display: none; flex: 1 0 100%; font-size: .8em; opacity: .85; }
1834
+ .decklight-design-systems .ds-row.narr-sel .ds-act { display: block; }
1835
+ /* Marketplaces… (MARKETPLACES_SCREEN): one row per catalog. The name line
1836
+ carries its state as a pill on the right — one glance down the column says
1837
+ which are behind — and one dim line beneath says where it comes from and
1838
+ what it offers. What ⏎ would do appears under the selected row only. */
1839
+ .decklight-marketplaces .narr-card { width: min(600px, 92vw); }
1840
+ .decklight-marketplaces .mk-row { align-items: flex-start; padding: 8px 12px; }
1841
+ .decklight-marketplaces .mk-mark { flex: none; width: 1.2em; line-height: 1.5; text-align: center; opacity: .6; }
1842
+ .decklight-marketplaces .mk-row .narr-row-label { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; min-width: 0; }
1843
+ .decklight-marketplaces .mk-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; min-width: 0; }
1844
+ .decklight-marketplaces .mk-name { font-weight: 600; }
1845
+ .decklight-marketplaces .mk-tag {
1846
+ font-size: .72em; letter-spacing: .06em; text-transform: uppercase; opacity: .55;
1847
+ padding: 0 5px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; line-height: 1.6;
1848
+ }
1849
+ .decklight-marketplaces .mk-state { margin-left: auto; display: flex; align-items: baseline; gap: 8px; font-size: .85em; min-width: 0; }
1850
+ .decklight-marketplaces .mk-pill {
1851
+ padding: 1px 8px; border-radius: 999px; white-space: nowrap;
1852
+ background: rgba(255, 255, 255, .08); color: rgba(232, 234, 238, .8);
1853
+ }
1854
+ .decklight-marketplaces .mk-hint { opacity: .5; white-space: nowrap; }
1855
+ .decklight-marketplaces .mk-behind .mk-pill { background: rgba(255, 207, 139, .14); color: #ffcf8b; }
1856
+ .decklight-marketplaces .mk-behind .mk-mark { color: #ffcf8b; opacity: 1; }
1857
+ .decklight-marketplaces .mk-current .mk-pill { background: rgba(95, 201, 138, .14); color: #5fc98a; }
1858
+ .decklight-marketplaces .mk-current .mk-mark { color: #5fc98a; opacity: 1; }
1859
+ .decklight-marketplaces .mk-warn .mk-pill { background: rgba(240, 132, 111, .14); color: #f0846f; }
1860
+ .decklight-marketplaces .mk-warn .mk-mark { color: #f0846f; opacity: 1; }
1861
+ .decklight-marketplaces .mk-meta {
1862
+ display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px;
1863
+ font-size: .8em; opacity: .55; min-width: 0;
1864
+ }
1865
+ .decklight-marketplaces .mk-src { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
1866
+ .decklight-marketplaces .mk-ref { opacity: .75; }
1867
+ .decklight-marketplaces .mk-offers::before { content: '·'; margin-right: 6px; }
1868
+ .decklight-marketplaces .mk-offers { white-space: nowrap; }
1869
+ .decklight-marketplaces .mk-act { display: none; margin-top: 2px; font-size: .8em; opacity: .85; }
1870
+ .decklight-marketplaces .mk-row.narr-sel .mk-act { display: block; }
1871
+ .decklight-marketplaces .mk-row.narr-sel .mk-mark { opacity: 1; }
1872
+ /* the last row is a door, not a catalog: set off from the list above it */
1873
+ .decklight-marketplaces .mk-add { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 8px 8px; }
1874
+ .decklight-marketplaces .mk-add .mk-name { font-weight: 500; }
1875
+ .decklight-marketplaces .mk-add .narr-flavor { margin-left: 0; }
1876
+ /* the footer: the last check's answer, and the keys, under a rule */
1877
+ .decklight-marketplaces .mk-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
1878
+ .decklight-marketplaces .mk-summary { opacity: .6; font-size: .85em; }
1879
+ .decklight-marketplaces .mk-summary-behind { color: #ffcf8b; opacity: .9; }
1880
+ /* the auto-check's one question, asked while it is off */
1881
+ .decklight-marketplaces .mk-auto-ask { font-size: .85em; opacity: .85; padding-top: 4px; }
1882
+ .decklight-marketplaces .rec-hint { padding-top: 6px; }
1883
+ .decklight-marketplaces kbd {
1884
+ display: inline-block; padding: 0 5px; margin: 0 1px;
1885
+ border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px;
1886
+ font: inherit; font-size: .92em; line-height: 1.5; opacity: .95;
1887
+ }
1888
+ .decklight-marketplaces .mk-error { white-space: pre-wrap; }
1889
+ /* the add view: one example of each form under the field, a click fills it */
1890
+ .decklight-marketplaces .mk-examples { margin: 6px 12px 2px; font-size: .8em; opacity: .65; }
1891
+ .decklight-marketplaces .mk-examples-head { text-transform: uppercase; letter-spacing: .1em; font-size: .85em; opacity: .8; margin-bottom: 2px; }
1892
+ .decklight-marketplaces .mk-example { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; line-height: 1.6; }
1893
+ .decklight-marketplaces .mk-form { flex: none; width: 8em; }
1894
+ .decklight-marketplaces .mk-example code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
1895
+ .decklight-marketplaces .mk-example code:hover { text-decoration: underline; }
1896
+ .decklight-marketplaces .mk-example .narr-flavor { margin-left: 0; }
1897
+ .decklight-marketplaces .mk-does { font-size: 1.05em; }
1898
+ /* what's new: a sign column, the entry, its versions, its kind */
1899
+ .decklight-marketplaces .mk-when { opacity: .6; font-size: .9em; }
1900
+ .decklight-marketplaces .mk-change { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
1901
+ .decklight-marketplaces .mk-sign { flex: none; width: 1.2em; text-align: center; font-weight: 600; opacity: .7; }
1902
+ .decklight-marketplaces .mk-ver { font-variant-numeric: tabular-nums; opacity: .85; }
1903
+ .decklight-marketplaces .mk-ver:empty { display: none; }
1904
+ .decklight-marketplaces .mk-change .mk-tag { margin-left: 2px; }
1905
+ .decklight-marketplaces .mk-newer .narr-fix { margin: 2px 0 2px calc(1.2em + 6px); flex-basis: 100%; }
1906
+ /* Concept colors… (SVG_DIAGRAMS): one row per concept, its six slots beside it */
1907
+ .decklight-concepts .narr-card { width: min(640px, 92vw); }
1908
+ .decklight-concepts .cc-row { display: flex; align-items: center; gap: 10px; }
1909
+ .decklight-concepts .cc-row .narr-row-label { flex: 1 1 auto; min-width: 0; }
1910
+ .decklight-concepts .cc-swatch { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); }
1911
+ .decklight-concepts .cc-slots { flex: 0 0 auto; display: flex; gap: 4px; align-items: center; }
1912
+ .decklight-concepts .cc-slot { width: 20px; height: 20px; border-radius: 5px; border: 2px solid transparent; padding: 0; cursor: pointer; }
1913
+ .decklight-concepts .cc-slot.cc-on { border-color: var(--accent, #fff); box-shadow: 0 0 0 1px rgba(0,0,0,.5) inset; }
1914
+ .decklight-concepts .cc-auto { height: 20px; border-radius: 5px; border: 2px solid transparent; padding: 0 6px; font: inherit; font-size: 11px; cursor: pointer; background: rgba(255,255,255,.08); color: inherit; }
1915
+ .decklight-concepts .cc-auto.cc-on { border-color: var(--accent, #fff); }
1916
+ /* pick shapes: on each row, and the one-line bar the list becomes while picking */
1917
+ .decklight-concepts .cc-pick { height: 20px; margin-left: 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); padding: 0 8px; font: inherit; font-size: 11px; cursor: pointer; background: transparent; color: inherit; }
1918
+ .decklight-concepts .cc-pick:hover { background: rgba(255,255,255,.12); }
1919
+ .decklight-concepts .cc-new .narr-input { flex: 1 1 auto; }
1920
+ .decklight-concepts.cc-picking { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; align-items: flex-start; }
1921
+ .decklight-concepts.cc-picking .narr-card { pointer-events: auto; width: auto; max-width: min(760px, 94vw); margin-top: 14px; padding: 8px 12px; }
1922
+ .decklight-concepts .cc-pickbar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
1923
+ .decklight-concepts .cc-pick-text { flex: 1 1 auto; min-width: 0; }
1924
+ .decklight-concepts .cc-pick-done { flex: 0 0 auto; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); padding: 3px 12px; font: inherit; cursor: pointer; background: rgba(255,255,255,.1); color: inherit; }
1925
+ /* a concept's shapes, boxed where they are: dashed, so a selection frame still reads as the selection */
1926
+ .decklight .dl-frame.dl-concept-outline { outline-style: dashed; z-index: 28; }
1927
+ /* the Colors tab's Concept row: a heading, then the deck's concepts as pills,
1928
+ each with a dot of the colour it gives (the theme's slot, so it follows T) */
1929
+ .decklight-colorpicker .cp-concept-row { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 12px; }
1930
+ .decklight-colorpicker .cp-section { margin: 0 2px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #8d94a1; }
1931
+ .decklight-colorpicker .cp-concepts { display: flex; flex-wrap: wrap; gap: 5px; }
1932
+ .decklight-colorpicker .cp-concept-chip {
1933
+ display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; width: auto;
1934
+ padding: 3px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap;
1935
+ background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
1936
+ }
1937
+ .decklight-colorpicker .cp-concept-chip:has(.cp-concept-dot) { padding-left: 6px; }
1938
+ .decklight-colorpicker .cp-concept-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
1939
+ .decklight-colorpicker .cp-concept-chip.cp-on { background: rgba(158, 203, 255, .14); box-shadow: inset 0 0 0 1.5px #9ecbff; color: #fff; }
1940
+ .decklight-colorpicker .cp-concept-chip.cp-new { background: none; box-shadow: none; border: 1px dashed rgba(255, 255, 255, .28); padding: 2px 10px; color: #b9bec8; }
1941
+ .decklight-colorpicker .cp-concept-chip.cp-new:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
1942
+ .decklight-colorpicker .cp-concept-chip.cp-none { background: none; box-shadow: none; padding: 3px 6px; color: #8d94a1; }
1943
+ .decklight-colorpicker .cp-concept-chip.cp-none:hover { color: #fff; }
1944
+ .decklight-colorpicker .cp-concept-name { width: 9em; border-radius: 999px; padding: 3px 10px; }
1945
+ /* a notice where a palette would be (nothing to colour, or a concept's fill) */
1946
+ .decklight-colorpicker .cp-notice { display: flex; flex-direction: column; gap: 10px; padding: 8px 2px; font-size: 13px; line-height: 1.4; opacity: .92; }
1947
+ .decklight-colorpicker .cp-notice .cp-detach { align-self: flex-start; }
1948
+ /* the Fill side of a concept shape: a callout led by the concept's own colour */
1949
+ .decklight-colorpicker .cp-callout { gap: 8px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 12.5px; opacity: 1; }
1950
+ .decklight-colorpicker .cp-callout-head { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
1951
+ .decklight-colorpicker .cp-callout-chip { flex: none; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
1952
+ .decklight-colorpicker .cp-callout .cp-notice-text { color: #b9bec8; }
1953
+ .decklight-colorpicker .cp-callout .cp-detach { margin-top: 2px; }
1954
+ .decklight-colorpicker .cp-callout-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
1955
+ .decklight-colorpicker .cp-callout-actions .cp-detach { margin-top: 0; }
1956
+ .decklight-ctxmenu .cm-input { padding: 4px 8px; }
1957
+ .decklight-ctxmenu .cm-input input { width: 100%; box-sizing: border-box; font: inherit; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35); color: inherit; }
1958
+ .decklight-ds-templates .narr-card { width: min(860px, 94vw); }
1959
+ .decklight-ds-templates .dsl-split { display: flex; gap: 14px; align-items: flex-start; }
1960
+ .decklight-ds-templates .dsl-list { flex: 1 1 auto; min-width: 0; max-height: 52vh; overflow: auto; }
1961
+ /* the preview: a real slide in the layout, its slots at their defaults, scaled down */
1962
+ .decklight-ds-templates .dsl-placeholder { opacity: .45; font-size: 48px; border: 3px dashed currentColor; padding: 12px 20px; margin: 10px 0; border-radius: 10px; }
1963
+ .decklight-ds-templates .dsl-preview { flex: 0 0 320px; height: 180px; overflow: hidden; border-radius: 8px; position: relative; background: var(--bg, #111); }
1964
+ .decklight-ds-templates .dsl-preview-slide { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform: scale(.25); transform-origin: 0 0;
1965
+ box-sizing: border-box; padding: 60px 80px; display: flex; flex-direction: column; justify-content: center; color: var(--fg, #eee); background: var(--bg, #111); }
1966
+ /* film yourself (V → Character): the camera in the medallion's own shape */
1967
+ .decklight-film .narr-card { width: min(420px, 90vw); }
1968
+ .decklight-film .film-circle {
1969
+ position: relative;
1970
+ width: min(260px, 60vw);
1971
+ aspect-ratio: 1;
1972
+ margin: 10px auto 6px;
1973
+ border-radius: 50%;
1974
+ overflow: hidden;
1975
+ background: #000;
1976
+ box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
1977
+ }
1978
+ .decklight-film .film-circle.rec { box-shadow: 0 0 0 3px #e5533d; }
1979
+ .decklight-film .film-video { width: 100%; height: 100%; object-fit: cover; display: block; }
1980
+ .decklight-film .film-video.mirror { transform: scaleX(-1); }
1981
+ .decklight-film .film-mark {
1982
+ position: absolute;
1983
+ inset: 0;
1984
+ display: flex;
1985
+ align-items: center;
1986
+ justify-content: center;
1987
+ font-size: 64px;
1988
+ font-weight: 700;
1989
+ color: #fff;
1990
+ text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
1991
+ pointer-events: none;
1992
+ }
1993
+ .decklight-film .film-circle.rec .film-mark {
1994
+ align-items: flex-end;
1995
+ padding-bottom: 14px;
1996
+ font-size: 18px;
1997
+ }
1998
+ .decklight-film .film-tips { margin: 4px 0; padding: 0 12px 0 30px; font-size: 13px; opacity: .85; }
1999
+ .decklight-film .film-tips li { margin: 2px 0; }
2000
+ .decklight-film .film-hold { text-align: center; }
1382
2001
  .decklight-mic .rec-where { font-size: 12px; opacity: .55; letter-spacing: .04em; }
1383
2002
  .decklight-mic .rec-read {
1384
2003
  padding: 10px 12px 12px;
@@ -1388,10 +2007,27 @@
1388
2007
  max-height: 42vh;
1389
2008
  overflow-y: auto;
1390
2009
  }
2010
+ /* per slide, the beats still to come in this take: there to read on into,
2011
+ quieter than the one the build on screen belongs to */
2012
+ .decklight-mic .rec-ahead {
2013
+ padding: 0 12px 10px;
2014
+ font-size: 15px;
2015
+ line-height: 1.4;
2016
+ opacity: .5;
2017
+ max-height: 20vh;
2018
+ overflow-y: auto;
2019
+ }
2020
+ .decklight-mic .rec-ahead p { margin: 0 0 6px; }
2021
+ /* the beat's words, edited at the size they are read at */
2022
+ .decklight-mic .rec-edit { font-size: 18px; line-height: 1.45; resize: vertical; min-height: 6em; }
1391
2023
  .decklight-mic .rec-note { font-size: 12px; opacity: .7; }
2024
+ /* the phone remote's QR, on the intro card: the speaker view that usually
2025
+ carries it is not open while you record */
2026
+ .decklight-mic .rec-phone { display: flex; gap: 12px; align-items: center; font-size: 13px; opacity: 1; }
2027
+ .decklight-mic .rec-phone img { flex: none; background: #fff; border-radius: 6px; padding: 4px; }
1392
2028
  /* Something you need to act on before you start reading — the amber the deck
1393
2029
  uses everywhere for "this will not do what you expect". */
1394
- .decklight-record .rec-warn {
2030
+ .decklight-record .rec-warn, .decklight-range .rec-warn {
1395
2031
  color: #ffcf8b;
1396
2032
  background: rgba(255, 207, 139, .1);
1397
2033
  border-radius: 6px;
@@ -1447,6 +2083,178 @@
1447
2083
  }
1448
2084
  .decklight-mic .rec-level.hot .rec-level-fill { background: #e5533d; }
1449
2085
 
2086
+ /* a track out of step with the notes (#850): what moved, and the command
2087
+ that fixes it, under the panel's head */
2088
+ .decklight-narr .narr-warn {
2089
+ margin: 2px 12px 8px; padding: 7px 10px; border-radius: 6px;
2090
+ color: #ffcf8b; background: rgba(255, 207, 139, .1); font-size: 13px; line-height: 1.45;
2091
+ }
2092
+ .decklight-narr .narr-warn code { display: block; margin-top: 4px; font-size: .92em; user-select: all; }
2093
+
2094
+ /* The plan card (V → Record my voice): what to record, how, where, and the
2095
+ microphone, as sections. Taller than any other card, so it takes more of
2096
+ the screen; the slide list scrolls inside it. */
2097
+ .decklight-mic .narr-card { max-height: 88vh; }
2098
+ .decklight-mic .rec-lede { margin: 0; padding: 4px 12px 10px; font-size: 14px; line-height: 1.5; opacity: .85; text-wrap: pretty; }
2099
+ .decklight-mic .rec-click { color: var(--accent, #6af); }
2100
+ .decklight-mic .rec-sect {
2101
+ margin: 6px 12px 4px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1);
2102
+ font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .55;
2103
+ }
2104
+ .decklight-mic .rec-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 12px 6px; }
2105
+ .decklight-mic .rec-chip {
2106
+ font: inherit; font-size: 13px; color: inherit; cursor: pointer; opacity: .8;
2107
+ padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: transparent;
2108
+ }
2109
+ .decklight-mic .rec-chip.on { opacity: 1; border-color: var(--accent, #6af); background: color-mix(in srgb, var(--accent, #6af) 16%, transparent); }
2110
+ .decklight-mic .rec-estimate { font-size: 13px; }
2111
+ /* every slide, one row: number · title · beats · what the folder holds · start here */
2112
+ .decklight-mic .rec-slides {
2113
+ margin: 2px 12px 0; max-height: 196px; overflow-y: auto;
2114
+ border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
2115
+ }
2116
+ .decklight-mic .rec-slide {
2117
+ display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
2118
+ padding: 5px 10px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
2119
+ font: inherit; font-size: 13px; color: inherit; text-align: left; background: transparent; cursor: pointer;
2120
+ }
2121
+ .decklight-mic .rec-slide:last-child { border-bottom: 0; }
2122
+ .decklight-mic .rec-slide.on { background: color-mix(in srgb, var(--accent, #6af) 9%, transparent); }
2123
+ .decklight-mic .rec-slide.off { opacity: .45; cursor: default; }
2124
+ .decklight-mic .rec-slide-n { flex: none; width: 22px; text-align: right; font-variant-numeric: tabular-nums; opacity: .6; }
2125
+ .decklight-mic .rec-slide-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2126
+ .decklight-mic .rec-slide-b { flex: none; width: 52px; text-align: right; font-size: 12px; opacity: .6; }
2127
+ .decklight-mic .rec-slide-s { flex: none; width: 170px; font-size: 12px; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2128
+ .decklight-mic .rec-slide-s.ok { color: #7bd88f; opacity: 1; }
2129
+ .decklight-mic .rec-slide-s.warn { color: #ffcf8b; opacity: 1; }
2130
+ .decklight-mic .rec-slide-s.dim { opacity: .5; }
2131
+ .decklight-mic .rec-pill {
2132
+ flex: none; font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
2133
+ color: #16181d; background: var(--accent, #6af); border-radius: 10px; padding: 1px 8px;
2134
+ }
2135
+ .decklight-mic .rec-slides-hint { font-size: 12px; opacity: .5; }
2136
+ /* HOW: one line that says the choices, and the choices behind it */
2137
+ .decklight-mic .rec-how {
2138
+ display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
2139
+ padding: 2px 12px 6px; border: 0; background: transparent; font: inherit; font-size: 13px; color: inherit; cursor: pointer; text-align: left;
2140
+ }
2141
+ .decklight-mic .rec-chev { display: inline-block; opacity: .6; transition: transform 120ms; }
2142
+ .decklight-mic .rec-chev.open { transform: rotate(90deg); }
2143
+ .decklight-mic .rec-how-sum { flex: 1 1 auto; }
2144
+ .decklight-mic .rec-how-act { font-size: 12px; color: var(--accent, #6af); }
2145
+ .decklight-mic .rec-opts { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px 12px; padding: 0 12px 10px; font-size: 13px; }
2146
+ .decklight-mic .rec-opt-k { opacity: .85; padding-top: 3px; }
2147
+ .decklight-mic .rec-seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; overflow: hidden; }
2148
+ .decklight-mic .rec-seg button {
2149
+ font: inherit; font-size: 12px; color: inherit; cursor: pointer;
2150
+ padding: 3px 10px; border: 0; background: transparent; opacity: .7;
2151
+ }
2152
+ .decklight-mic .rec-seg button + button { border-left: 1px solid rgba(255, 255, 255, .18); }
2153
+ .decklight-mic .rec-seg button.on { background: rgba(255, 255, 255, .16); opacity: 1; }
2154
+ .decklight-mic .rec-opt-why { margin-top: 4px; font-size: 12px; opacity: .6; line-height: 1.45; }
2155
+ .decklight-mic .rec-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
2156
+ .decklight-mic .rec-folder label { flex: 0 1 auto; }
2157
+ .decklight-mic .rec-folder .rec-dir { flex: none; width: 180px; }
2158
+ .decklight-mic .rec-folder-note { font-size: 12px; opacity: .6; }
2159
+ /* the microphone check: the input, its level while you read the card, and why not */
2160
+ .decklight-mic .rec-check-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
2161
+ .decklight-mic .rec-device, .decklight-mic .rec-device-name { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2162
+ .decklight-mic .rec-device {
2163
+ font: inherit; font-size: 13px; color: inherit; background: rgba(255, 255, 255, .07);
2164
+ border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: 3px 6px;
2165
+ }
2166
+ .decklight-mic .rec-device-name { opacity: .85; }
2167
+ .decklight-mic .rec-level.rec-check { flex: 1 1 auto; margin: 0; }
2168
+ .decklight-mic .rec-level.rec-check .rec-level-fill { background: #7bd88f; }
2169
+ .decklight-mic .rec-check-hint { flex: none; font-size: 12px; opacity: .55; }
2170
+ .decklight-mic .rec-check-why { color: #ffcf8b; font-size: 13px; }
2171
+ /* the foot: Start, and what the keys do */
2172
+ .decklight-mic .rec-foot { display: flex; align-items: center; gap: 14px; margin: 6px 12px 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
2173
+ .decklight-mic .rec-foot .rec-hint { padding: 0; }
2174
+ .decklight-mic .rec-start {
2175
+ display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 8px 16px;
2176
+ font: inherit; font-size: 14px; font-weight: 600; color: #16181d; background: var(--accent, #6af); cursor: pointer;
2177
+ }
2178
+ .decklight-mic .rec-start.narr-sel { background: var(--accent, #6af); }
2179
+ /* where the take starts: ‹ slide 6 · beat 3 of 4 ›, and what that keeps */
2180
+ .decklight-mic .rec-from { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
2181
+ .decklight-mic .rec-from .rec-seg button { opacity: 1; padding: 1px 9px; font-size: 14px; }
2182
+ .decklight-mic .rec-from-why { font-size: 12px; opacity: .6; }
2183
+ .decklight-mic .rec-to { white-space: nowrap; }
2184
+ /* the beats a part-of-a-slide take will read, by their opening words */
2185
+ .decklight-mic .rec-beats { display: flex; flex-direction: column; gap: 2px; padding-top: 0; font-size: 12px; opacity: .75; }
2186
+ .decklight-mic .rec-beat { display: flex; gap: 8px; }
2187
+ .decklight-mic .rec-beat-n { flex: none; width: 18px; text-align: right; opacity: .6; font-variant-numeric: tabular-nums; }
2188
+
2189
+ /* before a take, 3-2-1 in amber; during one, the red dot. The words to read
2190
+ are already on the card while it counts, so the count is a glance, not a wall */
2191
+ .decklight-mic .rec-status {
2192
+ display: flex; align-items: center; gap: 10px;
2193
+ margin: 2px 12px 0; min-height: 34px;
2194
+ font-size: 13px; font-weight: 600; letter-spacing: .06em;
2195
+ }
2196
+ .decklight-mic .rec-status[data-phase="countdown"] { color: #ffcf8b; }
2197
+ .decklight-mic .rec-status[data-phase="rec"] { color: #ff6b5a; }
2198
+ .decklight-mic .rec-count { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1ch; }
2199
+ .decklight-mic .rec-dot {
2200
+ width: 12px; height: 12px; border-radius: 50%; background: #e5533d;
2201
+ animation: decklight-rec-pulse 1.2s ease-in-out infinite;
2202
+ }
2203
+ @keyframes decklight-rec-pulse { 50% { opacity: .35; } }
2204
+ @media (prefers-reduced-motion: reduce) { .decklight-mic .rec-dot { animation: none; } }
2205
+ /* The recording card around the words: the strip (REC and the clock, or the
2206
+ count; where you are; the level), the bar across the take's slides, the
2207
+ beats read and to come either side of the one on screen, and the keys */
2208
+ .decklight-mic .rec-strip { display: flex; align-items: center; gap: 14px; padding: 2px 12px 6px; min-height: 40px; }
2209
+ .decklight-mic .rec-strip .rec-status { margin: 0; min-width: 130px; }
2210
+ .decklight-mic .rec-strip .rec-where { flex: 1 1 auto; text-align: center; }
2211
+ .decklight-mic .rec-clock { font-weight: 500; letter-spacing: 0; color: #e8eaee; font-variant-numeric: tabular-nums; }
2212
+ .decklight-mic .rec-meter { display: flex; align-items: center; gap: 8px; min-width: 150px; justify-content: flex-end; opacity: .85; }
2213
+ .decklight-mic .rec-meter .rec-level { width: 120px; margin: 0; }
2214
+ .decklight-mic .rec-progress { display: flex; gap: 3px; margin: 0 12px 8px; }
2215
+ .decklight-mic .rec-progress span { flex: 1 1 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
2216
+ .decklight-mic .rec-progress span.done { background: color-mix(in srgb, var(--accent, #6af) 55%, transparent); }
2217
+ .decklight-mic .rec-progress span.now { background: var(--accent, #6af); }
2218
+ .decklight-mic .rec-title { padding: 0 12px 2px; font-size: 12px; opacity: .55; }
2219
+ .decklight-mic .rec-script { max-height: 56vh; overflow-y: auto; }
2220
+ .decklight-mic .rec-script .rec-read, .decklight-mic .rec-script .rec-ahead { max-height: none; overflow: visible; }
2221
+ .decklight-mic .rec-past { display: flex; gap: 10px; align-items: flex-start; padding: 4px 12px; font-size: 14px; opacity: .55; }
2222
+ .decklight-mic .rec-tick { flex: none; color: #7bd88f; }
2223
+ .decklight-mic .rec-cut { display: flex; align-items: center; gap: 8px; padding: 2px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
2224
+ .decklight-mic .rec-cut > span:first-child, .decklight-mic .rec-cut > span:last-child { flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, .14); }
2225
+ .decklight-mic .rec-cut kbd { text-transform: none; letter-spacing: 0; }
2226
+ .decklight-mic .rec-cut-next { color: var(--accent, #6af); opacity: 1; }
2227
+ .decklight-mic .rec-cut-next > span:first-child, .decklight-mic .rec-cut-next > span:last-child { background: color-mix(in srgb, var(--accent, #6af) 35%, transparent); }
2228
+ .decklight-mic .rec-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 12px 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; opacity: .85; }
2229
+ .decklight-mic .rec-keys-dim { opacity: .6; }
2230
+ .decklight-mic .narr-card[data-phase="countdown"] .rec-keys-rec,
2231
+ .decklight-mic .narr-card:not([data-phase="countdown"]) .rec-keys-count { display: none; }
2232
+
2233
+ /* the done card: the slides just recorded, each with its length, a play
2234
+ button and a redo; the offer in its own box; the config line behind a line */
2235
+ .decklight-mic .rec-done-sum { font-size: 15px; opacity: 1; }
2236
+ .decklight-mic .rec-done-left { font-size: 13px; color: #ffcf8b; }
2237
+ .decklight-mic .rec-takes { margin: 6px 12px 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; max-height: 196px; overflow-y: auto; }
2238
+ .decklight-mic .rec-take { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
2239
+ .decklight-mic .rec-take:last-child { border-bottom: 0; }
2240
+ .decklight-mic .rec-take-note { flex: none; max-width: 190px; font-size: 12px; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2241
+ .decklight-mic .rec-take-note.warn { color: #ffcf8b; opacity: 1; }
2242
+ .decklight-mic .rec-take-dur { flex: none; width: 44px; text-align: right; font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
2243
+ .decklight-mic .rec-play {
2244
+ flex: none; width: 28px; height: 24px; display: flex; align-items: center; justify-content: center;
2245
+ font: inherit; font-size: 10px; color: inherit; cursor: pointer;
2246
+ border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; background: transparent;
2247
+ }
2248
+ .decklight-mic .rec-redo { flex: none; font: inherit; font-size: 12px; color: var(--accent, #6af); cursor: pointer; border: 0; background: transparent; padding: 0 2px; }
2249
+ .decklight-mic .rec-use-box { margin: 12px 12px 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--accent, #6af) 35%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--accent, #6af) 6%, transparent); }
2250
+ .decklight-mic .rec-use-box .rec-use { margin: 0; display: inline-flex; border-radius: 8px; padding: 8px 16px; font-weight: 600; color: #16181d; background: var(--accent, #6af); }
2251
+ .decklight-mic .rec-use-box .rec-use.rec-done, .decklight-mic .rec-use-box .rec-use.rec-failed { color: inherit; background: transparent; padding: 0; font-weight: 400; }
2252
+ .decklight-mic .rec-use-why { margin-top: 8px; font-size: 13px; opacity: .85; }
2253
+ .decklight-mic .rec-done-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 12px 0; font-size: 13px; }
2254
+ .decklight-mic .rec-again { font: inherit; font-size: 13px; color: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
2255
+ .decklight-mic .rec-cfg-toggle { margin-top: 8px; font-size: 12px; opacity: .6; }
2256
+ .decklight-mic .rec-cfg { font-size: 13px; }
2257
+
1450
2258
  /* "Use this track" — the offer that spares you pasting a config line. Shares
1451
2259
  .narr-row's chrome; the two states it can reach are the two things worth
1452
2260
  saying afterwards, so neither is a toast that scrolls away. */
@@ -1471,11 +2279,12 @@
1471
2279
  deck stays navigable. The frame is click-through; only the card catches the
1472
2280
  pointer, and the stage reflows away from a docked gutter via --dock-* (engine
1473
2281
  rescale). */
1474
- .decklight-review { background: none; backdrop-filter: none; display: block; pointer-events: none; }
1475
- .decklight-review .narr-card { position: absolute; pointer-events: auto; width: min(560px, 88vw); }
2282
+ .decklight-dockable { background: none; backdrop-filter: none; display: block; pointer-events: none; }
2283
+ .decklight-dockable .narr-card { position: absolute; pointer-events: auto; }
2284
+ .decklight-review .narr-card { width: min(560px, 88vw); }
1476
2285
 
1477
2286
  /* float — positioned by JS at left/top, dragged by its header */
1478
- .decklight-review[data-dock="float"] .narr-card {
2287
+ .decklight-dockable[data-dock="float"] .narr-card {
1479
2288
  width: min(460px, 88vw);
1480
2289
  max-height: 78vh;
1481
2290
  box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
@@ -1483,17 +2292,17 @@
1483
2292
  /* left / right — a full-height column the stage reflows away from. border-box
1484
2293
  so the card is exactly the gutter the stage was told to leave: content-box
1485
2294
  added the 14px padding twice and the panel overhung the slide by 28px. */
1486
- .decklight-review[data-dock="left"] .narr-card,
1487
- .decklight-review[data-dock="right"] .narr-card {
2295
+ .decklight-dockable[data-dock="left"] .narr-card,
2296
+ .decklight-dockable[data-dock="right"] .narr-card {
1488
2297
  box-sizing: border-box;
1489
2298
  top: 0; bottom: 0; height: 100%;
1490
2299
  width: var(--dock-size, 360px);
1491
2300
  max-height: none; border-radius: 0;
1492
2301
  }
1493
- .decklight-review[data-dock="right"] .narr-card { right: 0; box-shadow: -12px 0 40px rgba(0, 0, 0, .5); }
1494
- .decklight-review[data-dock="left"] .narr-card { left: 0; box-shadow: 12px 0 40px rgba(0, 0, 0, .5); }
2302
+ .decklight-dockable[data-dock="right"] .narr-card { right: 0; box-shadow: -12px 0 40px rgba(0, 0, 0, .5); }
2303
+ .decklight-dockable[data-dock="left"] .narr-card { left: 0; box-shadow: 12px 0 40px rgba(0, 0, 0, .5); }
1495
2304
  /* bottom — a full-width tray */
1496
- .decklight-review[data-dock="bottom"] .narr-card {
2305
+ .decklight-dockable[data-dock="bottom"] .narr-card {
1497
2306
  box-sizing: border-box;
1498
2307
  left: 0; right: 0; bottom: 0;
1499
2308
  width: auto; height: var(--dock-size, 320px);
@@ -1502,21 +2311,52 @@
1502
2311
  }
1503
2312
 
1504
2313
  /* the dock control lives in the header, which becomes a flex row */
1505
- .decklight-review .narr-head { display: flex; align-items: center; gap: 8px; opacity: 1; }
2314
+ .decklight-dockable .narr-head { display: flex; align-items: center; gap: 8px; opacity: 1; }
1506
2315
  .decklight-review .rv-heading { flex: 1; opacity: .55; }
1507
- .decklight-review .rv-dock-ctl { display: flex; gap: 2px; pointer-events: auto; }
1508
- .decklight-review .rv-dock-btn {
2316
+ .decklight-dockable .dk-ctl { display: flex; gap: 2px; pointer-events: auto; }
2317
+ .decklight-dockable .dk-btn {
1509
2318
  font-size: 13px; line-height: 1; padding: 3px 5px;
1510
2319
  border: 0; border-radius: 5px;
1511
2320
  background: transparent; color: inherit;
1512
2321
  opacity: .5; cursor: pointer;
1513
2322
  }
1514
- .decklight-review .rv-dock-btn:hover { opacity: .9; background: rgba(255, 255, 255, .12); }
1515
- .decklight-review .rv-dock-on { opacity: 1; background: rgba(255, 255, 255, .18); }
1516
- .decklight-review .rv-close { font-size: 16px; margin-left: 2px; }
1517
- .decklight-review .rv-compose { padding: 4px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
1518
- .decklight-review .rv-on { font-size: 12px; opacity: .55; margin-bottom: 6px; }
1519
- .decklight-review .rv-input { width: 100%; resize: vertical; margin-bottom: 6px; }
2323
+ .decklight-dockable .dk-btn:hover { opacity: .9; background: rgba(255, 255, 255, .12); }
2324
+ /* the tabs: one panel beside the slide, and the others it can be, in the same
2325
+ place (dock.js). A full-width row across the top of the header. */
2326
+ .decklight-dockable .narr-head { flex-wrap: wrap; }
2327
+ .decklight-dockable .dk-tabs {
2328
+ display: flex; flex-wrap: wrap; gap: 2px; flex: 0 0 100%; order: -1;
2329
+ margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .1);
2330
+ text-transform: none; letter-spacing: normal; cursor: default;
2331
+ }
2332
+ .decklight-dockable .dk-tab {
2333
+ background: none; border: 0; border-radius: 4px; padding: 2px 6px; cursor: pointer;
2334
+ color: inherit; font: inherit; font-size: 11px; letter-spacing: .02em; opacity: .55;
2335
+ }
2336
+ .decklight-dockable .dk-tab:hover { opacity: .9; background: rgba(255, 255, 255, .08); }
2337
+ .decklight-dockable .dk-tab-on { opacity: 1; cursor: default; box-shadow: inset 0 -2px 0 var(--accent, #6af); border-radius: 4px 4px 0 0; }
2338
+ .decklight-dockable .dk-on { opacity: 1; background: rgba(255, 255, 255, .18); }
2339
+ .decklight-dockable .dk-close { font-size: 16px; margin-left: 2px; }
2340
+ /* the panel's composer: at the FOOT, and pinned there while the list scrolls
2341
+ (the card is the scroller; -14px covers its padding, so nothing shows
2342
+ through beneath the box). Opaque, or the rows would read through it. */
2343
+ .decklight-review .rv-compose {
2344
+ position: sticky; bottom: -14px; z-index: 1;
2345
+ margin: 6px -14px -14px; padding: 8px 14px 14px;
2346
+ background: #16181d; border-top: 1px solid rgba(255, 255, 255, .1);
2347
+ }
2348
+ .decklight-review .rv-on { font-size: 12px; opacity: .55; margin-bottom: 4px; }
2349
+ .decklight-review .rv-input { width: 100%; resize: vertical; margin: 0 0 6px; }
2350
+ .decklight-review .rv-send { text-align: center; border-radius: 8px;
2351
+ background: rgba(122, 214, 163, .16); color: #7cd6a3; }
2352
+ .decklight-review .rv-send:hover { background: rgba(122, 214, 163, .26); }
2353
+ /* the bottom tray is short, so the button sits beside the box, not under it */
2354
+ .decklight-review[data-dock="bottom"] .rv-compose {
2355
+ display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: end;
2356
+ }
2357
+ .decklight-review[data-dock="bottom"] .rv-compose .rv-on { grid-column: 1 / -1; }
2358
+ .decklight-review[data-dock="bottom"] .rv-compose .rv-input { margin: 0; }
2359
+ .decklight-review[data-dock="bottom"] .rv-compose .rv-send { white-space: nowrap; }
1520
2360
  .decklight-review .rv-list { padding: 4px 0; }
1521
2361
  .decklight-review .rv-none,
1522
2362
  .decklight-review .rv-skipped { padding: 8px 12px; opacity: .55; font-size: 13px; }
@@ -1531,7 +2371,6 @@
1531
2371
  .decklight-review .rv-tick { color: #7cd6a3; margin-left: auto; }
1532
2372
  .decklight-review .rv-body { margin-top: 3px; white-space: pre-wrap; }
1533
2373
  .decklight-review .rv-note { margin-top: 4px; font-size: 12px; color: #ffcf8b; }
1534
- .decklight-review .rv-reply { margin: 4px 0 0 12px; font-size: 13px; opacity: .8; white-space: pre-wrap; }
1535
2374
  /* Leave a comment (⇧M) — its own card, because writing and reading are
1536
2375
  different moments. Shares the narration chrome like every other overlay. */
1537
2376
  .decklight-compose .narr-card { width: min(520px, 88vw); }
@@ -1588,11 +2427,19 @@
1588
2427
  font-size: 12px;
1589
2428
  white-space: nowrap;
1590
2429
  }
2430
+ /* the palette's shape (palette.js): every command at the root, its category
2431
+ as a dimmer prefix (`Voice: Live voice…`), and a write-mode row tagged */
2432
+ .decklight-palette .pal-right { display: inline-flex; align-items: center; gap: 8px; }
2433
+ .decklight-palette .pal-cat { opacity: .55; }
2434
+ .decklight-palette .pal-tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, .1); opacity: .7; }
1591
2435
 
1592
2436
  /* blackout / help */
1593
2437
  .decklight-blackout { position: absolute; inset: 0; background: #000; z-index: 90; }
1594
2438
  .decklight-help { position: absolute; inset: 0; z-index: 95; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
1595
- .decklight-help .help-card { background: var(--bg, #222); color: var(--fg, #eee); border-radius: 12px; padding: 24px 34px; font-size: 16px; box-shadow: var(--shadow, 0 10px 40px rgba(0,0,0,.5)); }
2439
+ .decklight-help .help-card { background: var(--bg, #222); color: var(--fg, #eee); border-radius: 12px; padding: 24px 34px; font-size: 16px; box-shadow: var(--shadow, 0 10px 40px rgba(0,0,0,.5)); max-height: 92%; overflow-y: auto; }
2440
+ /* the keys that only answer in a context (a selection, a panel, while typing) */
2441
+ .decklight-help h3 + table { margin-bottom: 4px; }
2442
+ .decklight-help .help-card h3 ~ h3 { margin-top: 18px; }
1596
2443
  .decklight-help td { padding: 3px 14px 3px 0; }
1597
2444
  .decklight-help td:first-child { font-family: var(--font-mono, monospace); color: var(--accent, #6af); }
1598
2445
 
@@ -1662,19 +2509,51 @@
1662
2509
  .decklight-debug .dbg-theme .dbg-k { color: #b7a3ff; }
1663
2510
  .decklight-debug .dbg-narr .dbg-k { color: #8fd6a8; }
1664
2511
  .decklight-debug .dbg-tts .dbg-k { color: #7fb8ff; }
2512
+ .decklight-debug .dbg-prev { opacity: .5; }
2513
+ .decklight-debug .dbg-reload .dbg-k, .decklight-debug .dbg-reload .dbg-m { color: #ffd27f; }
2514
+
2515
+ /* The chrome follows a small box down. Arrows, the slide number, toasts, the
2516
+ voice hint and the welcome and help cards sit on the root, outside the
2517
+ scaled stage, in px: a deck embedded in a 520×292 box (decklight.io's hero)
2518
+ showed its slide at 0.4× under a full-size welcome card that overflowed the
2519
+ frame. They now take `zoom` from the FIT scale, the way the captions take
2520
+ their size (#490), but gentler and with a floor: full size whenever the
2521
+ slide is drawn at 0.72× or more (a window about 920 px wide), down to half
2522
+ size and no further, so an arrow stays something a finger can hit. Never
2523
+ up: a full-screen deck is exactly as it was. */
2524
+ .decklight { --chrome-k: clamp(0.5, calc(var(--stage-scale, 1) * 1.4), 1); }
2525
+ .decklight-controls,
2526
+ .decklight-slide-number,
2527
+ .decklight-toast,
2528
+ .decklight-narr-hint,
2529
+ .decklight-welcome .wel-card,
2530
+ .decklight-help .help-card { zoom: var(--chrome-k); }
2531
+ /* a card taller than its box scrolls inside it rather than overflowing it; a
2532
+ percentage resolves against the box as it is on screen, zoom or no zoom
2533
+ (the help card has had this all along) */
2534
+ .decklight-welcome .wel-card { max-height: 92%; overflow-y: auto; }
2535
+ /* …and the cap counts the padding: a content-box card was its padding taller */
2536
+ .decklight-welcome .wel-card,
2537
+ .decklight-help .help-card { box-sizing: border-box; }
2538
+ .decklight-help .help-card { max-width: 96%; }
1665
2539
 
1666
2540
  /* closed captions (C) — the current notes segment, youtube-style */
1667
2541
  .decklight-captions {
2542
+ /* The bar lives on the root, outside the scaled stage, so px here are px on
2543
+ the screen: in a finder or theme-picker preview it stayed full-size over a
2544
+ thumbnail of the slide (#490). It follows the stage scale DOWN — never up,
2545
+ so a full-screen deck captions exactly as it always has. */
2546
+ --cap-k: min(1, var(--stage-scale, 1));
1668
2547
  position: absolute;
1669
2548
  left: 50%;
1670
2549
  bottom: 7%;
1671
2550
  transform: translateX(-50%);
1672
2551
  max-width: 72%;
1673
- padding: 10px 18px;
1674
- border-radius: 8px;
2552
+ padding: calc(10px * var(--cap-k)) calc(18px * var(--cap-k));
2553
+ border-radius: calc(8px * var(--cap-k));
1675
2554
  background: rgba(8, 9, 12, .8);
1676
2555
  color: #fff;
1677
- font-size: 21px;
2556
+ font-size: calc(21px * var(--cap-k));
1678
2557
  line-height: 1.45;
1679
2558
  text-align: center;
1680
2559
  z-index: 45;
@@ -1760,13 +2639,21 @@
1760
2639
  height: var(--character-solo-size, min(74vh, 74vw));
1761
2640
  }
1762
2641
  .decklight-character svg, .decklight-character img { width: 100%; height: 100%; display: block; }
2642
+ /* video mode: the portrait still underneath, the clip over it only while it
2643
+ plays (.live) — never a black medallion while the next clip renders */
2644
+ .decklight-character.mode-video .still,
1763
2645
  .decklight-character.mode-video video {
2646
+ position: absolute;
2647
+ inset: 0;
1764
2648
  width: 100%;
1765
2649
  height: 100%;
1766
2650
  object-fit: cover;
1767
2651
  border-radius: 50%;
1768
- background: rgba(8, 9, 12, .6);
1769
2652
  }
2653
+ .decklight-character.mode-video .still { background: rgba(8, 9, 12, .6); }
2654
+ .decklight-character.mode-video .still.missing { visibility: hidden; }
2655
+ .decklight-character.mode-video video { opacity: 0; transition: opacity .12s; }
2656
+ .decklight-character.mode-video video.live { opacity: 1; }
1770
2657
  .decklight-character [data-mouth] { visibility: hidden; }
1771
2658
  .decklight-character[data-viseme="A"] [data-mouth="A"],
1772
2659
  .decklight-character[data-viseme="B"] [data-mouth="B"],
@@ -1801,6 +2688,68 @@
1801
2688
  /* notes editor (right-click a slide's background, or the palette) — E now
1802
2689
  arms element edit mode instead (below) */
1803
2690
  .decklight-editor .narr-card { width: min(640px, 88vw); }
2691
+ /* The element content editor is dockable (#530): floating it keeps the
2692
+ modal's width, and docked to an edge its text area fills the gutter —
2693
+ a column of source beside a slide that stays live — instead of the
2694
+ 46vh a centred card gets. */
2695
+ .decklight-editor.decklight-dockable[data-dock="float"] .narr-card { width: min(640px, 88vw); }
2696
+ .decklight-editor.decklight-dockable .ed-heading { flex: 1; opacity: .55; }
2697
+ .decklight-editor.decklight-dockable:not([data-dock="float"]) .narr-card { display: flex; flex-direction: column; overflow: hidden; }
2698
+ .decklight-editor.decklight-dockable:not([data-dock="float"]) .edit-code { flex: 1 1 auto; min-height: 0; display: flex; }
2699
+ /* min-width: 0 — a textarea's flex minimum is its intrinsic width, which
2700
+ overhung the column by a scrollbar's width and wrapped the two layers at
2701
+ different widths under classic scrollbars */
2702
+ .decklight-editor.decklight-dockable:not([data-dock="float"]) .edit-code > textarea { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0; max-height: none; resize: none; }
2703
+ .decklight-editor.decklight-dockable:not([data-dock="float"]) .edit-code > pre { max-height: none; }
2704
+ .decklight-editor.decklight-dockable:not([data-dock="float"]) .tr-actions { flex: 0 0 auto; }
2705
+ /* the notes editor's rewrite buttons ask which slides first */
2706
+ .decklight-editor .tr-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
2707
+ .decklight-editor .notes-scope { align-items: center; }
2708
+ .decklight-editor .notes-scope-what { font-size: 13px; opacity: .7; margin-right: 2px; }
2709
+ /* The notes toolbar: ✎ edit / ⇄ changes and ↺ reset on the left, the agent's
2710
+ rewrites on the right. Buttons a pointer can find: the shared .narr-prev-btn
2711
+ is sized for a row's corner, 11px, and read as a row of specks here. */
2712
+ .decklight-editor .notes-bar { justify-content: space-between; align-items: center; }
2713
+ .decklight-editor .notes-tools,
2714
+ .decklight-editor .notes-rewrites { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
2715
+ .decklight-editor .narr-prev-btn,
2716
+ .decklight-editor .notes-btn {
2717
+ font-size: 13px;
2718
+ line-height: 1.2;
2719
+ padding: 7px 12px;
2720
+ min-height: 32px;
2721
+ border-radius: 8px;
2722
+ opacity: .85;
2723
+ }
2724
+ .decklight-editor .narr-prev-btn:disabled { opacity: .35; cursor: default; }
2725
+ /* a switch, not two buttons: the lit half is the view on screen */
2726
+ .decklight-editor .notes-views { display: inline-flex; }
2727
+ .decklight-editor .notes-views .notes-btn { border-radius: 0; }
2728
+ .decklight-editor .notes-views .notes-btn:first-child { border-radius: 8px 0 0 8px; }
2729
+ .decklight-editor .notes-views .notes-btn:last-child { border-radius: 0 8px 8px 0; border-left: none; }
2730
+ .decklight-editor .notes-views .notes-btn.narr-sel { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); opacity: 1; }
2731
+ .decklight-editor .notes-diff {
2732
+ flex: 1 1 auto;
2733
+ min-height: 160px;
2734
+ max-height: 50vh;
2735
+ overflow: auto;
2736
+ margin: 0 12px;
2737
+ padding: 10px 12px;
2738
+ border-radius: 8px;
2739
+ background: rgba(255, 255, 255, .04);
2740
+ border: 1px solid rgba(255, 255, 255, .12);
2741
+ font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
2742
+ outline: none;
2743
+ }
2744
+ .decklight-editor .notes-diff-head { font: 11px/1.4 system-ui, sans-serif; letter-spacing: .04em; opacity: .6; margin-bottom: 8px; text-transform: uppercase; }
2745
+ .decklight-editor .notes-diff-body { white-space: pre-wrap; word-break: break-word; }
2746
+ .decklight-editor .notes-diff del { background: rgba(229, 83, 61, .22); color: #ffb4a8; text-decoration: line-through; }
2747
+ .decklight-editor .notes-diff ins { background: rgba(80, 200, 120, .22); color: #b6f5c8; text-decoration: none; }
2748
+ /* the notes editor and the agent ask dock the same way: their plain textarea
2749
+ (no painted layer behind it) is the part that takes the gutter */
2750
+ .decklight-editor.decklight-dockable:not([data-dock="float"]) .narr-card > textarea.edit-notes {
2751
+ flex: 1 1 auto; box-sizing: border-box; width: 100%; min-width: 0; min-height: 0; max-height: none; resize: none;
2752
+ }
1804
2753
  /* the engine wizard's provenance line (ENGINES#WIZARD, #232): who is asking and
1805
2754
  where the answer goes — deliberately NOT the muted narr-head treatment, since
1806
2755
  this is the one line a presenter must read before pasting a key */
@@ -1813,6 +2762,26 @@
1813
2762
  opacity: .85;
1814
2763
  }
1815
2764
  .decklight-editor .wiz-src div:first-child { font-weight: 650; }
2765
+ /* the agent card's log of this session's asks: docked it takes the gutter
2766
+ and the prompt below it keeps a fixed height; floating it is a short,
2767
+ scrolling strip above the prompt */
2768
+ .decklight-agent .agent-log { max-height: 32vh; overflow-y: auto; padding: 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
2769
+ .decklight-agent .agent-log[hidden] { display: none; }
2770
+ .decklight-editor.decklight-agent.decklight-dockable:not([data-dock="float"]) .agent-log { flex: 1 1 auto; min-height: 0; max-height: none; }
2771
+ /* …only once there is a log: before the first ask the prompt takes the gutter, as it always did */
2772
+ .decklight-editor.decklight-agent.decklight-dockable:not([data-dock="float"]) .agent-log:not([hidden]) + textarea.edit-notes { flex: 0 0 auto; min-height: 96px; height: 20vh; }
2773
+ .decklight-agent .agent-ask { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12.5px; line-height: 1.45; }
2774
+ .decklight-agent .agent-ask:first-child { border-top: 0; }
2775
+ .decklight-agent .agent-ask-meta { font-size: 11px; opacity: .55; }
2776
+ .decklight-agent .agent-ask-link { cursor: pointer; }
2777
+ .decklight-agent .agent-ask-link:hover { opacity: .9; text-decoration: underline; }
2778
+ .decklight-agent .agent-ask-prompt { margin: 2px 0 4px; white-space: pre-wrap; font-weight: 600; }
2779
+ .decklight-agent .agent-ask-out { white-space: pre-wrap; opacity: .8; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11.5px; }
2780
+ .decklight-agent .agent-ask-running .agent-ask-out { opacity: .6; font-style: italic; }
2781
+ .decklight-agent .agent-ask-failed .agent-ask-out { color: #f3a3a3; }
2782
+ /* the notes card with no edit server behind it (S under present/review):
2783
+ the same box, read-only, and it looks it */
2784
+ .decklight-editor .edit-notes.edit-notes-readonly { cursor: default; opacity: .9; border-style: dashed; }
1816
2785
  .decklight-editor .edit-notes {
1817
2786
  min-height: 240px;
1818
2787
  resize: vertical;
@@ -1821,7 +2790,7 @@
1821
2790
  font-size: 13px;
1822
2791
  }
1823
2792
 
1824
- /* element edit mode's right-click menu (E arms it, then right-click a slide
2793
+ /* editing's right-click menu (editing is on in write mode; right-click a slide
1825
2794
  element — #112). The first CURSOR-ANCHORED overlay: every other one dims
1826
2795
  the whole screen and centers a card — this one must not, since the slide
1827
2796
  under the cursor is the thing the menu is about. The backdrop stays fully
@@ -1848,6 +2817,15 @@
1848
2817
  white-space: nowrap;
1849
2818
  }
1850
2819
  .decklight-ctxmenu .cm-row.cm-selected { background: rgba(255, 255, 255, .14); }
2820
+ /* a row's chord (Copy style ⌥⌘C), right-aligned and quiet, the way a menu bar says it */
2821
+ .decklight-ctxmenu .cm-key {
2822
+ float: right;
2823
+ margin-left: 24px;
2824
+ color: #8b909a;
2825
+ font-size: 12px;
2826
+ line-height: 19.6px; /* the row's 14px × 1.4, so the chord sits on the label's line */
2827
+ font-variant-numeric: tabular-nums;
2828
+ }
1851
2829
  .decklight-ctxmenu .cm-row.cm-back {
1852
2830
  color: #b9bec8;
1853
2831
  border-bottom: 1px solid rgba(255, 255, 255, .12);
@@ -1855,6 +2833,174 @@
1855
2833
  padding-bottom: 9px;
1856
2834
  }
1857
2835
 
2836
+ /* the colour picker (element menu → Colors…): a dockable panel like the
2837
+ other editing surfaces (dock.js), so the shape stays in view while every
2838
+ pick previews on it. Its own chrome is fixed dark like every engine
2839
+ overlay; only the CHIPS take theme tokens, which is what makes them the
2840
+ theme's palette and not a copy of it. */
2841
+ .decklight-colorpicker.decklight-dockable[data-dock="float"] .narr-card { width: min(320px, 88vw); }
2842
+ .decklight-colorpicker .cp-title { flex: 1; opacity: .55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2843
+ .decklight-colorpicker .cp-main { max-width: 760px; margin-top: 8px; }
2844
+ .decklight-colorpicker .cp-side { margin-bottom: 8px; }
2845
+ /* the bottom tray is wide and short: the switches and Apply stand in a column
2846
+ on the left, where they never scroll away, and the palette's groups sit
2847
+ side by side in what is left */
2848
+ .decklight-colorpicker[data-dock="bottom"] .cp-main {
2849
+ display: grid;
2850
+ grid-template-columns: 220px minmax(0, 1fr);
2851
+ grid-template-rows: auto auto 1fr;
2852
+ grid-template-areas: "side body" "tabs body" "foot body";
2853
+ column-gap: 24px;
2854
+ max-width: 1100px;
2855
+ }
2856
+ .decklight-colorpicker[data-dock="bottom"] .cp-side { grid-area: side; }
2857
+ .decklight-colorpicker[data-dock="bottom"] .cp-tabs { grid-area: tabs; }
2858
+ .decklight-colorpicker[data-dock="bottom"] .cp-body { grid-area: body; }
2859
+ .decklight-colorpicker[data-dock="bottom"] .cp-foot { grid-area: foot; align-self: start; }
2860
+ .decklight-colorpicker[data-dock="bottom"] .cp-body[data-tab="theme"] { columns: 3 240px; column-gap: 24px; }
2861
+ .decklight-colorpicker[data-dock="bottom"] .cp-groupbox:first-child .cp-group { margin-top: 0; }
2862
+ .decklight-colorpicker .cp-groupbox { break-inside: avoid; }
2863
+ .decklight-colorpicker .cp-seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
2864
+ .decklight-colorpicker .cp-tabs, .decklight-colorpicker .cp-model { margin-bottom: 8px; }
2865
+ /* Theme/Custom and RGB/HSB are a level below Fill/Stroke/Text: smaller, and only as wide as their words */
2866
+ .decklight-colorpicker :is(.cp-tabs, .cp-model) { display: inline-flex; border-radius: 7px; }
2867
+ .decklight-colorpicker :is(.cp-tabs, .cp-model) .cp-seg-btn { flex: none; padding: 2px 12px; border-radius: 5px; font-size: 11.5px; }
2868
+ .decklight-colorpicker[data-dock="bottom"] .cp-body[data-tab="custom"] { max-width: 420px; }
2869
+ .decklight-colorpicker .cp-seg-btn {
2870
+ display: inline-flex;
2871
+ align-items: center;
2872
+ justify-content: center;
2873
+ gap: 6px;
2874
+ flex: 1;
2875
+ padding: 4px 10px;
2876
+ border: 0;
2877
+ border-radius: 6px;
2878
+ background: none;
2879
+ color: #b9bec8;
2880
+ font: inherit;
2881
+ font-size: 12.5px;
2882
+ cursor: pointer;
2883
+ }
2884
+ .decklight-colorpicker .cp-seg-btn[aria-selected="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
2885
+ .decklight-colorpicker .cp-seg-btn:disabled { opacity: .35; cursor: default; }
2886
+ .decklight-colorpicker .cp-seg-btn:not([aria-selected="true"]):not(:disabled):hover { background: rgba(255, 255, 255, .06); color: #e4e7ec; }
2887
+ .decklight-colorpicker .cp-seg-icon { flex: none; opacity: .85; }
2888
+ /* Fill, Stroke and Text wear the colour each has now: a chip, a ring, an A */
2889
+ .decklight-colorpicker .cp-seg-chip {
2890
+ flex: none; box-sizing: border-box; width: 11px; height: 11px; border-radius: 3px;
2891
+ background: var(--chip); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
2892
+ }
2893
+ .decklight-colorpicker .cp-seg-chip.cp-seg-stroke { background: none; border: 2.5px solid var(--chip); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25); }
2894
+ .decklight-colorpicker .cp-seg-chip.cp-seg-text { width: auto; height: auto; background: none; box-shadow: none; color: var(--chip); font-weight: 700; line-height: 1; }
2895
+ .decklight-colorpicker .cp-seg-chip.cp-seg-text::before { content: 'A'; }
2896
+ .decklight-colorpicker .cp-seg-chip.cp-seg-none:not(.cp-seg-text) { background: linear-gradient(to top right, transparent 44%, #c66 44%, #c66 56%, transparent 56%); border: 0; }
2897
+ .decklight-colorpicker .cp-group {
2898
+ margin: 8px 2px 4px;
2899
+ font-size: 10.5px;
2900
+ letter-spacing: .07em;
2901
+ text-transform: uppercase;
2902
+ color: #8d94a1;
2903
+ }
2904
+ .decklight-colorpicker .cp-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
2905
+ .decklight-colorpicker .cp-swatches.cp-compact { grid-template-columns: repeat(6, 1fr); }
2906
+ .decklight-colorpicker .cp-swatch {
2907
+ display: flex;
2908
+ align-items: center;
2909
+ gap: 7px;
2910
+ min-width: 0;
2911
+ padding: 4px 5px;
2912
+ border: 0;
2913
+ border-radius: 6px;
2914
+ background: none;
2915
+ color: inherit;
2916
+ font: inherit;
2917
+ font-size: 12.5px;
2918
+ text-align: left;
2919
+ cursor: pointer;
2920
+ }
2921
+ .decklight-colorpicker .cp-compact .cp-swatch { flex-direction: column; gap: 2px; padding: 4px 0; font-size: 11px; color: #b9bec8; }
2922
+ .decklight-colorpicker .cp-swatch:hover { background: rgba(255, 255, 255, .09); }
2923
+ .decklight-colorpicker .cp-swatch[aria-pressed="true"] { background: rgba(255, 255, 255, .16); }
2924
+ .decklight-colorpicker .cp-swatch[aria-pressed="true"] .cp-chip { box-shadow: 0 0 0 2px #1f2229, 0 0 0 3.5px #9ecbff; }
2925
+ .decklight-colorpicker .cp-chip, .decklight-colorpicker .cp-now {
2926
+ flex: none;
2927
+ width: 20px;
2928
+ height: 20px;
2929
+ border-radius: 5px;
2930
+ /* a chip the colour of the card would otherwise vanish into it */
2931
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
2932
+ }
2933
+ .decklight-colorpicker .cp-compact .cp-chip { width: 28px; height: 22px; }
2934
+ .decklight-colorpicker .cp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2935
+ /* a brand palette (SPEC BRAND_PALETTE): one tight row per colour, 100 to 1000;
2936
+ a swatch the theme on screen uses carries a dot (its title names the role),
2937
+ and a weight the engine derived is drawn dashed */
2938
+ .decklight-colorpicker .cp-scalebox .cp-group { margin: 5px 2px 2px; }
2939
+ .decklight-colorpicker .cp-swatches.cp-scale { grid-template-columns: repeat(10, 1fr); gap: 1px; }
2940
+ .decklight-colorpicker .cp-scale .cp-swatch { position: relative; padding: 2px 0 3px; font-size: 9.5px; }
2941
+ .decklight-colorpicker .cp-scale .cp-chip { width: 100%; max-width: 24px; height: 18px; border-radius: 4px; }
2942
+ .decklight-colorpicker .cp-scale .cp-swatch.cp-derived .cp-chip { box-shadow: none; outline: 1px dashed rgba(255, 255, 255, .55); outline-offset: -1px; }
2943
+ .decklight-colorpicker .cp-scale .cp-swatch.cp-has-role::after {
2944
+ content: ''; position: absolute; top: 4px; right: 50%; transform: translateX(10px);
2945
+ width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
2946
+ }
2947
+ .decklight-colorpicker .cp-chan { display: flex; align-items: center; gap: 8px; padding: 3px 2px; font-size: 12.5px; }
2948
+ .decklight-colorpicker .cp-chan-name { width: 24px; color: #b9bec8; }
2949
+ .decklight-colorpicker .cp-range { flex: 1; min-width: 0; accent-color: #9ecbff; }
2950
+ /* a colour channel's track is the run of colours it gives, the thumb a ring on it */
2951
+ .decklight-colorpicker .cp-range.cp-tracked {
2952
+ -webkit-appearance: none; appearance: none; height: 10px; margin: 0; border-radius: 999px;
2953
+ background: var(--track); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: pointer;
2954
+ }
2955
+ .decklight-colorpicker .cp-range.cp-tracked::-webkit-slider-thumb {
2956
+ -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%;
2957
+ background: transparent; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .35);
2958
+ }
2959
+ .decklight-colorpicker .cp-range.cp-tracked::-moz-range-thumb {
2960
+ width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
2961
+ }
2962
+ .decklight-colorpicker .cp-unit { margin-left: -4px; font-size: 11px; color: #8d94a1; }
2963
+ .decklight-colorpicker .cp-num, .decklight-colorpicker .cp-hex {
2964
+ width: 56px;
2965
+ padding: 3px 6px;
2966
+ border: 1px solid rgba(255, 255, 255, .16);
2967
+ border-radius: 6px;
2968
+ background: rgba(0, 0, 0, .3);
2969
+ color: inherit;
2970
+ font: 12.5px ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
2971
+ }
2972
+ .decklight-colorpicker .cp-hex { flex: 1; width: auto; }
2973
+ .decklight-colorpicker .cp-hexrow { margin-top: 4px; }
2974
+ .decklight-colorpicker .cp-hexrow .cp-now { width: 24px; height: 24px; border-radius: 6px; }
2975
+ /* the Type side: a label column wide enough for its words, the controls beside it */
2976
+ .decklight-colorpicker :is(.cp-typerow, .cp-widthrow) .cp-chan-name { flex: none; width: 46px; }
2977
+ .decklight-colorpicker .cp-widthrow { margin-bottom: 8px; }
2978
+ .decklight-colorpicker .cp-typerow .cp-seg { flex: 1; min-width: 0; flex-wrap: wrap; }
2979
+ .decklight-colorpicker .cp-typerow .cp-seg-btn { padding: 4px 3px; }
2980
+ .decklight-colorpicker .cp-typerow { padding: 4px 2px; }
2981
+ /* each weight and each font role is set in itself: the switch is its own preview */
2982
+ .decklight-colorpicker .cp-family .cp-seg-btn { font-size: 13px; }
2983
+ .decklight-colorpicker .cp-italic { font-style: italic; font-family: Georgia, 'Times New Roman', serif; font-size: 13px; }
2984
+ .decklight-colorpicker .cp-italic[aria-pressed="true"] { background: rgba(158, 203, 255, .16); box-shadow: inset 0 0 0 1px #9ecbff; color: #fff; }
2985
+ .decklight-colorpicker[data-dock="bottom"] .cp-body.cp-type { max-width: 520px; }
2986
+ .decklight-colorpicker .cp-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }
2987
+ .decklight-colorpicker .cp-spacer { flex: 1; }
2988
+ .decklight-colorpicker .cp-btn {
2989
+ padding: 5px 12px;
2990
+ border: 0;
2991
+ border-radius: 7px;
2992
+ background: rgba(255, 255, 255, .08);
2993
+ color: inherit;
2994
+ font: inherit;
2995
+ font-size: 12.5px;
2996
+ cursor: pointer;
2997
+ }
2998
+ .decklight-colorpicker .cp-btn:hover { background: rgba(255, 255, 255, .16); }
2999
+ .decklight-colorpicker .cp-apply { background: rgba(122, 214, 163, .16); color: #7cd6a3; }
3000
+ .decklight-colorpicker .cp-apply:hover { background: rgba(122, 214, 163, .26); }
3001
+ .decklight-colorpicker .cp-apply:disabled { opacity: .4; cursor: default; }
3002
+ .decklight-colorpicker :is(button, input):focus-visible { outline: 2px solid #9ecbff; outline-offset: 1px; }
3003
+
1858
3004
  /* transcript overlay (palette → Transcript…) */
1859
3005
  .decklight-transcript .narr-card { width: min(680px, 88vw); }
1860
3006
  .decklight-transcript .tr-actions { display: flex; gap: 8px; padding: 4px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
@@ -1897,6 +3043,8 @@
1897
3043
  .decklight.decklight-print .build-step { visibility: visible !important; opacity: 1 !important; transform: none !important; }
1898
3044
  .decklight.decklight-print .draw-stroke { stroke-dashoffset: 0 !important; }
1899
3045
  .decklight.decklight-print .draw-fade { opacity: 1 !important; }
3046
+ .decklight.decklight-print .draw-head { visibility: visible !important; transition: none !important; }
3047
+ .decklight.decklight-print [data-draw-masked] { mask: none !important; }
1900
3048
 
1901
3049
  /* ---------- print variants: ?print=handout | notes (SPEC PRESENTING) ---------------
1902
3050
  Portrait pages, 816×1056 (US letter at 96dpi — the engine injects the
@@ -1975,12 +3123,338 @@
1975
3123
  @media (prefers-reduced-motion: reduce) {
1976
3124
  .decklight section.entering, .decklight section.leaving,
1977
3125
  .decklight .build-step, .decklight [data-animate],
1978
- .decklight .draw-stroke, .decklight .draw-fade, .decklight .aa-fresh {
3126
+ .decklight .draw-stroke, .decklight .draw-fade, .decklight .draw-head, .decklight .draw-mask-stroke, .decklight .aa-fresh {
1979
3127
  animation: none !important;
1980
3128
  transition: none !important;
1981
3129
  }
1982
3130
  }
1983
3131
 
3132
+ /* Where this slide got what it says (SLIDE_SOURCES) — the narration card's
3133
+ chrome, with rows that are real links. */
3134
+ .decklight-sources .narr-card { width: min(520px, 88vw); }
3135
+ .decklight-sources .narr-row { text-decoration: none; color: inherit; }
3136
+ .decklight-sources .src-go { flex: none; opacity: .45; font-size: .85em; }
3137
+ .decklight-sources .narr-row .narr-tag {
3138
+ flex: none;
3139
+ max-width: 50%;
3140
+ overflow: hidden;
3141
+ text-overflow: ellipsis;
3142
+ white-space: nowrap;
3143
+ opacity: .5;
3144
+ font-size: .78em;
3145
+ }
3146
+ /* Named facts read as a table, not as prose: the term is the label and the
3147
+ value is the answer, and lining them up is what makes a list of them
3148
+ scannable at a glance. */
3149
+ .decklight-sources .src-facts {
3150
+ display: grid;
3151
+ grid-template-columns: auto 1fr;
3152
+ gap: 2px 12px;
3153
+ margin: 4px 12px 8px;
3154
+ font-size: .9em;
3155
+ }
3156
+ .decklight-sources .src-facts dt { opacity: .5; }
3157
+ .decklight-sources .src-facts dd { margin: 0; }
3158
+
3159
+ /* The inspector (I, PRESENTING): all about the slide, or the selection. A
3160
+ two-column table of facts, each marked the way the terminal banner marks
3161
+ its rows: a green tick when fine, a yellow ! when it wants a look. */
3162
+ .decklight-inspector .narr-card { width: min(440px, 88vw); }
3163
+ .decklight-inspector .ins-head { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 12px; opacity: 1; }
3164
+ /* the slide on one line: its number quiet, its name the part that gives way to an ellipsis */
3165
+ .decklight-inspector .ins-title { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; align-items: baseline; overflow: hidden; white-space: nowrap; }
3166
+ .decklight-inspector .ins-root { flex: none; color: #8d94a1; white-space: pre; }
3167
+ .decklight-inspector .ins-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #e4e7ec; font-weight: 600; }
3168
+ /* the path down to the selection, its own line under the header: a deep one wraps */
3169
+ .decklight-inspector .ins-path { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 2px; margin: 0 12px 4px; font-size: 12px; }
3170
+ .decklight-inspector .ins-sep { flex: none; color: #8d94a1; opacity: .6; }
3171
+ .decklight-inspector .ins-crumb {
3172
+ max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
3173
+ font: inherit; color: #b9bec8; background: none; border: 0; padding: 2px 6px; border-radius: 5px; cursor: pointer;
3174
+ }
3175
+ .decklight-inspector .ins-crumb:hover { background: rgba(255, 255, 255, .1); color: #fff; }
3176
+ .decklight-inspector .ins-crumb.ins-on { color: #fff; font-weight: 600; background: rgba(158, 203, 255, .14); }
3177
+ .decklight-inspector .ins-rows {
3178
+ display: grid;
3179
+ grid-template-columns: auto 1fr;
3180
+ column-gap: 14px;
3181
+ margin: 2px 12px 8px;
3182
+ font-size: .9em;
3183
+ }
3184
+ /* a hairline between facts, across both columns */
3185
+ .decklight-inspector .ins-rows :is(dt, dd) { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
3186
+ .decklight-inspector .ins-rows :is(dt, dd):nth-child(-n + 2) { border-top: 0; }
3187
+ .decklight-inspector .ins-rows dt { color: #8d94a1; }
3188
+ .decklight-inspector .ins-rows dt:has(+ dd .ins-warn) { color: #f2c46d; }
3189
+ .decklight-inspector .ins-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
3190
+ .decklight-inspector .ins-ok,
3191
+ .decklight-inspector .ins-warn {
3192
+ display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 6px; border-radius: 50%;
3193
+ font-size: 10px; font-weight: 800; line-height: 1; vertical-align: 1px;
3194
+ }
3195
+ .decklight-inspector .ins-ok { color: #7cd6a3; background: rgba(124, 214, 163, .15); }
3196
+ .decklight-inspector .ins-warn { color: #f2c46d; background: rgba(242, 196, 109, .17); }
3197
+ /* the colour a row names, beside it: a chip, a ring for a stroke, Aa for contrast */
3198
+ .decklight-inspector .ins-look { display: inline-block; box-sizing: border-box; margin-right: 7px; vertical-align: -2px; }
3199
+ .decklight-inspector .ins-chip { width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
3200
+ .decklight-inspector .ins-ring { width: 13px; height: 13px; border-radius: 3px; border: 2.5px solid; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25); }
3201
+ .decklight-inspector .ins-sample {
3202
+ padding: 0 5px; border-radius: 4px; font-size: 11.5px; line-height: 17px; vertical-align: 0;
3203
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
3204
+ }
3205
+ .decklight-inspector .ins-extra { display: block; opacity: .5; font-size: .88em; }
3206
+ .decklight-inspector .ins-act {
3207
+ padding: 0; border: 0; background: none; font: inherit; color: #9ecbff; cursor: pointer;
3208
+ text-decoration: underline dotted; text-underline-offset: 3px;
3209
+ }
3210
+ .decklight-inspector .ins-act:hover, .decklight-inspector .ins-act:focus-visible { color: #fff; text-decoration-style: solid; }
3211
+ .decklight-inspector .ins-none { margin: 2px 12px 8px; opacity: .5; font-size: .9em; }
3212
+ .decklight-inspector .ins-link { text-decoration: none; color: inherit; }
3213
+ .decklight-inspector .src-go { flex: none; opacity: .45; font-size: .85em; }
3214
+ .decklight-inspector .ins-link .narr-tag {
3215
+ flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .5; font-size: .78em;
3216
+ }
3217
+ .decklight-inspector .ins-foot { opacity: .45; }
3218
+ /* a breadcrumb hovered: which node it names, on the slide. SVG shapes draw no
3219
+ outline, so they glow instead. */
3220
+ /* the panel's top level: tabs on a rule, the one open underlined in the panel's blue,
3221
+ so they never read as one more switch like the editor's below them */
3222
+ .decklight-inspector .ins-tabs { display: flex; gap: 20px; margin: 4px 12px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
3223
+ .decklight-inspector .ins-tab {
3224
+ flex: none; margin-bottom: -1px; padding: 6px 1px 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
3225
+ color: #8d94a1; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
3226
+ }
3227
+ .decklight-inspector .ins-tab:not(:disabled):hover { color: #e4e7ec; }
3228
+ .decklight-inspector .ins-tab[aria-selected="true"] { color: #fff; border-bottom-color: #9ecbff; }
3229
+ .decklight-inspector .ins-tab:disabled { opacity: .35; cursor: default; }
3230
+ .decklight-inspector .ins-pick { display: inline-grid; place-items: center; }
3231
+ .decklight-inspector .ins-pick.ins-on { background: rgba(158, 203, 255, .22); color: #9ecbff; }
3232
+ /* the colour card's editor, hosted in the Colors and Type tabs: no card of its own */
3233
+ .decklight-inspector .cp-embedded { padding: 0 12px 4px; }
3234
+ .decklight-colorpicker .cp-saved { font-size: 11px; opacity: .5; }
3235
+
3236
+ /* the picker and the hover inside a diagram (pick.js): a dashed line in the
3237
+ theme's accent around the node under the pointer, a faint glow on the node,
3238
+ the stage around it dimmed a little; the box lets every pointer event
3239
+ through, so it never takes the click it is about */
3240
+ .decklight .dl-spot {
3241
+ position: fixed; z-index: 30; pointer-events: none; border-radius: 6px;
3242
+ outline: 1.5px dashed var(--accent); outline-offset: 1px;
3243
+ transition: left .08s, top .08s, width .08s, height .08s;
3244
+ }
3245
+ .decklight .dl-spot.dl-spot-dim { box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .16); }
3246
+ .decklight .dl-spot.dl-spot-block { outline: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 0; box-shadow: 0 0 14px 2px color-mix(in srgb, var(--accent) 45%, transparent); }
3247
+ .decklight .dl-spot.dl-spot-block.dl-spot-dim { box-shadow: 0 0 14px 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 100vmax rgba(0, 0, 0, .16); }
3248
+ .decklight svg .dl-glow { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 90%, transparent)) drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 50%, transparent)); }
3249
+ .decklight.dl-picking, .decklight.dl-picking .decklight-stage * { cursor: crosshair !important; }
3250
+ /* a node selected inside a diagram: SVG takes no outline, so a frame is drawn over it */
3251
+ .decklight .dl-frame { position: fixed; z-index: 29; pointer-events: none; outline: 2px solid var(--accent); border-radius: 4px; }
3252
+
3253
+ /* The sources editor. A draft, so it looks like a form and not like the card
3254
+ it was reading a moment ago. */
3255
+ .decklight-sources .src-edit-row { display: flex; align-items: center; gap: 6px; padding: 3px 12px; }
3256
+ .decklight-sources .src-field {
3257
+ flex: 1 1 0;
3258
+ min-width: 0;
3259
+ padding: 5px 8px;
3260
+ border: 1px solid rgba(255, 255, 255, .16);
3261
+ border-radius: 7px;
3262
+ background: rgba(255, 255, 255, .05);
3263
+ color: inherit;
3264
+ font: inherit;
3265
+ font-size: .9em;
3266
+ }
3267
+ .decklight-sources .src-wide { flex: 2.2 1 0; }
3268
+ .decklight-sources .src-field:focus { outline: none; border-color: var(--accent, #7ee787); }
3269
+ .decklight-sources .src-drop {
3270
+ flex: none;
3271
+ width: 24px;
3272
+ border: 0;
3273
+ border-radius: 6px;
3274
+ background: transparent;
3275
+ color: inherit;
3276
+ opacity: .4;
3277
+ cursor: pointer;
3278
+ font: inherit;
3279
+ }
3280
+ .decklight-sources .src-drop:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
3281
+ .decklight-sources .src-add {
3282
+ width: calc(100% - 24px);
3283
+ margin: 2px 12px 6px;
3284
+ border: 1px dashed rgba(255, 255, 255, .18);
3285
+ background: transparent;
3286
+ color: inherit;
3287
+ opacity: .6;
3288
+ cursor: pointer;
3289
+ font: inherit;
3290
+ text-align: left;
3291
+ }
3292
+ .decklight-sources .src-add:hover { opacity: 1; }
3293
+
3294
+ /* ── write mode: double-click to edit, drop to add (src/core/authoring.js) ── */
3295
+ .decklight .dl-editing {
3296
+ outline: 2px solid var(--accent);
3297
+ outline-offset: 3px;
3298
+ border-radius: 2px;
3299
+ cursor: text;
3300
+ }
3301
+ /* a diagram label being typed (SVG text takes no contenteditable): a box laid
3302
+ over the hidden label, in its font and ink, the shape under it showing */
3303
+ .decklight .dl-label-edit {
3304
+ position: fixed; z-index: 40; box-sizing: border-box; margin: 0; padding: 2px 4px;
3305
+ min-width: 2em; border: 0; border-radius: 3px;
3306
+ background: transparent; color: var(--d-text, var(--fg));
3307
+ outline: 2px solid var(--accent); outline-offset: 1px;
3308
+ caret-color: currentColor;
3309
+ }
3310
+ .decklight.dl-dropping > .decklight-stage { outline: 3px dashed var(--accent); outline-offset: -3px; }
3311
+ .decklight.dl-dropping > .decklight-stage::after {
3312
+ content: 'drop to add the picture to this slide';
3313
+ position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
3314
+ padding: 0.4em 1em; border-radius: 999px;
3315
+ background: var(--accent); color: var(--accent-contrast);
3316
+ font: 600 0.9rem var(--font-body); letter-spacing: 0.01em;
3317
+ pointer-events: none;
3318
+ }
3319
+
3320
+ /* ── editing's face (src/core/editbar.js): the bar E opens, and the selection ── */
3321
+ .decklight-editbar {
3322
+ position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
3323
+ z-index: 41;
3324
+ display: flex; align-items: center; gap: 2px;
3325
+ padding: 4px;
3326
+ border-radius: 14px;
3327
+ border: 1px solid rgba(160, 160, 160, .28);
3328
+ background: rgba(20, 20, 22, .72);
3329
+ color: #e6e6e6;
3330
+ font: 500 13px/1 system-ui, sans-serif;
3331
+ -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
3332
+ box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
3333
+ }
3334
+ /* the emphasis pill (authoring.js): above a selection in an element being
3335
+ edited in place, three buttons, gone with the selection. Fixed, on the body,
3336
+ so the stage's scale never moves it off the text it is about. */
3337
+ .dl-fmt {
3338
+ position: fixed; z-index: 60; transform: translate(-50%, -100%);
3339
+ display: flex; gap: 2px; padding: 3px;
3340
+ border-radius: 10px; border: 1px solid rgba(160, 160, 160, .28);
3341
+ background: rgba(20, 20, 22, .82); color: #e6e6e6;
3342
+ font: 600 13px/1 system-ui, sans-serif;
3343
+ box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
3344
+ }
3345
+ .dl-fmt button {
3346
+ min-width: 30px; padding: 7px 9px; border: 0; border-radius: 7px;
3347
+ background: none; color: inherit; font: inherit; cursor: pointer;
3348
+ }
3349
+ .dl-fmt button:hover { background: rgba(255, 255, 255, .1); }
3350
+ .dl-fmt button.on { background: rgba(255, 255, 255, .2); }
3351
+ .dl-fmt .fmt-em { font-style: italic; font-weight: 500; }
3352
+ .dl-fmt .fmt-code { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 500; }
3353
+ /* the grip: the bar moves (editbar.js); moved, it is positioned by its own
3354
+ left/top instead of the bottom-centre default */
3355
+ .decklight-editbar .eb-grip {
3356
+ display: inline-flex; align-items: center; align-self: stretch;
3357
+ padding: 0 6px 0 8px; margin-right: 2px;
3358
+ color: rgba(230, 230, 230, .55); font-size: 15px; line-height: 1;
3359
+ cursor: grab; user-select: none; touch-action: none;
3360
+ }
3361
+ .decklight-editbar .eb-grip:hover { color: #e6e6e6; }
3362
+ .decklight-editbar.eb-dragging .eb-grip, .decklight-editbar .eb-grip:active { cursor: grabbing; }
3363
+ .decklight-editbar.eb-moved { bottom: auto; transform: none; }
3364
+ .decklight-editbar.eb-dragging { transition: none; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
3365
+ .decklight-editbar .eb-btn {
3366
+ display: inline-flex; align-items: center; gap: 7px;
3367
+ padding: 8px 11px;
3368
+ border: 0; border-radius: 10px;
3369
+ background: none; color: inherit;
3370
+ font: inherit; cursor: pointer; white-space: nowrap;
3371
+ }
3372
+ .decklight-editbar .eb-btn:hover { background: rgba(255, 255, 255, .12); }
3373
+ .decklight-editbar .eb-btn:active { background: rgba(255, 255, 255, .2); }
3374
+ .decklight-editbar .eb-key {
3375
+ font: 600 10px/1 system-ui, sans-serif;
3376
+ padding: 3px 5px; border-radius: 5px;
3377
+ background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7);
3378
+ }
3379
+ .decklight-editbar .eb-lock { margin-left: 4px; border-left: 1px solid rgba(255, 255, 255, .14); border-radius: 0 10px 10px 0; }
3380
+ .decklight-editbar .eb-file { display: none; }
3381
+ /* while editing: what the pointer is over, and what was chosen */
3382
+ .decklight.dl-editmode .decklight-stage section .dl-hover:not(.dl-selected):not(.dl-editing) { outline: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 4px; border-radius: 2px; }
3383
+ .decklight .dl-selected { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
3384
+ .decklight .dl-handle {
3385
+ position: absolute; z-index: 42;
3386
+ width: 22px; height: 22px; padding: 0;
3387
+ border-radius: 999px; border: 0;
3388
+ background: var(--accent); color: var(--accent-contrast, #fff);
3389
+ font: 700 14px/22px system-ui, sans-serif; text-align: center;
3390
+ cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
3391
+ }
3392
+ @media print { .decklight-editbar, .decklight .dl-handle { display: none; } }
3393
+
3394
+ /* ---------- font picker (SPEC FONTS) — each row in its own face, its source on the right ---------- */
3395
+ /* the slide behind IS the preview: no blur, a light dim, the card off to the side */
3396
+ .decklight-narr.decklight-font-picker { background: rgba(0, 0, 0, .12); backdrop-filter: none; justify-content: flex-end; padding-right: 3vw; }
3397
+ .decklight-font-picker .narr-card { width: min(380px, 90vw); max-height: 86vh; overflow-y: auto; }
3398
+ .decklight-font-picker .fp-row .narr-row-label { font-size: 1.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
3399
+ .decklight-font-picker .fp-tag { flex: none; font-size: .72em; opacity: .6; white-space: nowrap; }
3400
+ .decklight-font-picker .fp-rec { opacity: .8; }
3401
+ .decklight-font-picker .fp-foot { margin: 10px 12px 2px; font-size: .72em; opacity: .55; }
3402
+
3403
+ /* ---------- a design system's look, offered (SPEC DESIGN_SYSTEMS) — the slide behind is the preview ---------- */
3404
+ .decklight-narr.decklight-look-offer { background: rgba(0, 0, 0, .12); backdrop-filter: none; align-items: flex-end; padding-bottom: 6vh; }
3405
+ .decklight-look-offer .narr-card { width: min(520px, 90vw); }
3406
+ .decklight-ds-templates .dsl-look .narr-row-label { color: #f5d77a; }
3407
+
3408
+ /* ---------- bleed (SPEC DECK_ANATOMY) — the current slide's background art, at screen size ----------
3409
+ A layer behind the stage, covering the viewport, so a 16:9 slide's art
3410
+ fills a 16:10 or 4:3 screen while its content stays on the stage. While a
3411
+ slide bleeds, its on-stage copy of the art is hidden — never drawn twice at
3412
+ two scales. Only the stage's own sections: overview and finder thumbnails
3413
+ are clones elsewhere, and keep their art. */
3414
+ .decklight-bleed { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
3415
+ .decklight-bleed .bleed-piece { position: absolute; inset: 0; background-repeat: no-repeat; }
3416
+ .decklight-bleed .bleed-piece > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
3417
+ .decklight-bleed .bleed-dim { position: absolute; inset: 0; }
3418
+ .decklight-stage > section[data-bled] > .slide-bg { visibility: hidden; }
3419
+ .decklight-stage > section[data-bled] [data-ds-bleed] { background: none !important; }
3420
+ /* the notes card's unsaved mark: full strength beside a dimmed heading (#646) */
3421
+ .decklight-editor .notes-dirty-mark { flex: none; margin-right: 8px; font-size: .78em; color: #f5d77a; opacity: 1; }
3422
+ /* …and "saved", for a moment, once an autosave has landed: the mark says it, not a toast */
3423
+ .decklight-editor .notes-dirty-mark.notes-saved-mark { color: #8fd694; }
3424
+
3425
+ /* the log panel: both tabs in one place, the messages' corner, above the deck's
3426
+ own chrome. The per-view rules above (.decklight-msglog, .decklight-debug)
3427
+ still style what is inside. */
3428
+ .decklight-log.decklight-msglog,
3429
+ .decklight-log.decklight-debug {
3430
+ top: 18px; left: 18px; right: auto; bottom: auto;
3431
+ width: min(70ch, 80%); max-height: 70%;
3432
+ z-index: 85;
3433
+ }
3434
+ .decklight-log .log-tabs {
3435
+ display: flex; align-items: center; gap: 4px;
3436
+ padding: 8px 10px; background: rgba(255, 255, 255, .07);
3437
+ font: 600 13px var(--font-mono, monospace);
3438
+ }
3439
+ .decklight-log .log-tab {
3440
+ background: none; border: 0; border-radius: 5px; padding: 3px 9px;
3441
+ color: inherit; font: inherit; letter-spacing: .04em; text-transform: uppercase;
3442
+ opacity: .55; cursor: pointer;
3443
+ }
3444
+ .decklight-log .log-tab:hover { opacity: .9; background: rgba(255, 255, 255, .08); }
3445
+ .decklight-log .log-tab-on { opacity: 1; cursor: default; box-shadow: inset 0 -2px 0 var(--accent, #6af); border-radius: 5px 5px 0 0; }
3446
+ .decklight-log .log-hint { margin-left: auto; opacity: .5; font-weight: 400; font-size: 12px; }
3447
+ .decklight-log .log-hint kbd {
3448
+ display: inline-block; min-width: 1.4em; padding: 0 5px; text-align: center;
3449
+ border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px;
3450
+ }
3451
+ /* the content editor's way back to the inspector (its HTML tab's other end) */
3452
+ .decklight-editor .ed-to-inspector {
3453
+ background: none; border: 1px solid rgba(255, 255, 255, .18); border-radius: 5px;
3454
+ color: inherit; font: inherit; font-size: 12px; padding: 2px 8px; cursor: pointer; opacity: .8;
3455
+ }
3456
+ .decklight-editor .ed-to-inspector:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
3457
+
1984
3458
 
1985
3459
  /* Copyright 2026 Gilles Philippart
1986
3460
  SPDX-License-Identifier: Apache-2.0 */