@hypersocial/decks-cli 0.9.25 → 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/runtime.mjs CHANGED
@@ -9,7 +9,7 @@ import { ConvexHttpClient } from "convex/browser";
9
9
  import { makeFunctionReference } from "convex/server";
10
10
  import { recordSkillInstall } from "./skillFreshness.mjs";
11
11
 
12
- export const VERSION = "0.9.25";
12
+ export const VERSION = "0.9.26";
13
13
 
14
14
  // Sent on the CLI's calls to our routes and to Convex, so the server can see
15
15
  // which CLI versions are still out there (not used to refuse anything).
@@ -138,6 +138,11 @@ export const api = {
138
138
  upsert: makeFunctionReference("decks:upsert"),
139
139
  whoami: makeFunctionReference("decks:whoami"),
140
140
  },
141
+ answers: {
142
+ forDeck: makeFunctionReference("answers:forDeck"),
143
+ deletePerson: makeFunctionReference("answers:deletePerson"),
144
+ deleteForDeck: makeFunctionReference("answers:deleteForDeck"),
145
+ },
141
146
  shares: {
142
147
  create: makeFunctionReference("shares:create"),
143
148
  deckAnalytics: makeFunctionReference("shares:deckAnalytics"),
@@ -221,7 +226,7 @@ export const api = {
221
226
  },
222
227
  };
223
228
 
224
- const BOOL = new Set(["private-only", "prod", "dev", "admin", "json", "require-email", "qa", "no-notify", "allow-forward", "no-forward", "count-on-play", "help", "version", "all-agents", "global", "project", "transparent", "loop", "upload", "dry-run", "narrated", "layout", "strict", "fix", "full-page", "force", "hosted", "yes", "no-voice", "no-skill", "no-release", "no-narrate", "no-open", "save-to-minimoji", "captions-only", "no-brand", "brand", "no-logo", "pdf", "notes", "mp4", "gif", "video", "no-captions", "no-avatar", "title-card", "end-card", "backup", "trim", "embed"]);
229
+ const BOOL = new Set(["private-only", "prod", "dev", "admin", "json", "require-email", "qa", "no-notify", "allow-forward", "no-forward", "count-on-play", "help", "version", "all-agents", "global", "project", "transparent", "loop", "upload", "dry-run", "narrated", "layout", "strict", "fix", "full-page", "force", "hosted", "yes", "no-voice", "no-skill", "no-release", "no-narrate", "no-open", "save-to-minimoji", "captions-only", "no-brand", "brand", "no-logo", "pdf", "notes", "mp4", "gif", "video", "no-captions", "no-avatar", "title-card", "end-card", "backup", "trim", "embed", "wait", "csv", "all"]);
225
230
  // release's recipients, in order: each --to starts one, and an --email right
226
231
  // after it belongs to it (`--to A --email a --to B`). Collected as opts.recipients;
227
232
  // opts.email stays the last --email for the other commands (share new).
@@ -330,20 +330,20 @@ d.addEventListener("readystatechange",go);go()})();</script>
330
330
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); }
331
331
  .l-closer.bg-corner::before { --corner-r: 460px; }
332
332
  .on-ink.bg-corner::before { --corner-a: 22%; }
333
- :is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-corner::before { content: none; }
333
+ :is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack, .l-question-choice, .l-question-text).bg-corner::before { content: none; }
334
334
  /* bg-stage: a rounded dot plate exactly the picture's column plus 32px, so the frame or the phones stand on it; on the hero a tile behind the stickers. */
335
335
  .slide.bg-stage::before { inset: auto; background: radial-gradient(color-mix(in srgb, currentColor var(--stage-a, 24%), transparent) 2.4px, transparent 2.9px) 0 0 / 22px 22px; border-radius: calc(40 * var(--round)); }
336
336
  .l-product.bg-stage::before { position: relative; grid-area: frame; align-self: stretch; margin: var(--stage-m, -32px -24px -32px -40px); }
337
337
  .l-phones.bg-stage::before { position: relative; grid-area: row; align-self: stretch; margin: var(--stage-m, -32px); }
338
338
  .l-hero.bg-stage::before { right: 110px; top: 110px; width: 410px; height: 350px; }
339
- :is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-stage::before { content: none; }
339
+ :is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack, .l-question-choice, .l-question-text).bg-stage::before { content: none; }
340
340
  /* bg-mark: the slide number, set as style="--mark:'04'" on the section, huge in --display, faint,
341
341
  cropped by the top edge; right on the hero, in the indent on slot-left slides. A signature: cover, an opener, closer. */
342
342
  .slide.bg-mark::before { content: var(--mark, ""); inset: auto; right: 24px; top: -.26em; font: var(--display-weight, 700) var(--mark-size, 560px)/1 var(--display, var(--font)); font-synthesis: none; letter-spacing: var(--display-tracking, -.05em); white-space: nowrap;
343
343
  color: color-mix(in srgb, currentColor var(--mark-a, 8%), transparent); }
344
344
  .slide.on-ink.bg-mark::before { --mark-a: 6%; }
345
345
  .slide.slot-left.bg-mark::before { right: auto; left: -.08em; font-size: var(--mark-size, 440px); } /* ends inside the 500px indent, clear of the title */
346
- :is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-mark::before { content: none; }
346
+ :is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack, .l-question-choice, .l-question-text).bg-mark::before { content: none; }
347
347
  /* Pieces. .sticker: a logo or icon tile, tilted (--tilt), ink edge, hard offset
348
348
  shadow (.sticker.photo for a face or an app icon that fills it). .ticks: a short
349
349
  list with accent-square bullets. .panel: a quiet card. .pill: a small tag. */
@@ -32,10 +32,11 @@ script: One reason above all: [look: #__ID__-big] you see who watched. It also s
32
32
  .l-bento .tiles { flex: 1 1 0; min-height: auto; max-height: 560px; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(170px, 3fr); grid-auto-rows: minmax(min-content, 2fr); gap: 8px; max-width: none; }
33
33
  .l-bento .tiles > * { gap: 3px; padding: 12px 14px; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
34
34
  .l-bento .big { grid-row: auto; grid-column: 1 / 3; min-height: 170px; }
35
- .l-bento .big p { font-size: var(--t-body); }
36
- .l-bento .big b { font-size: var(--t-sub); }
37
- .l-bento .small b { font-size: var(--t-body); }
38
- .l-bento .small p { font-size: var(--t-label); }
35
+ /* The words grow with their tile, as far as they stay inside it (the player sets --hd-phone-grow on it, 0 to 1:
36
+ packages/player/phone-fit.js). At 0 they are the sizes check measures. */
37
+ .l-bento .big p, .l-bento .small b { font-size: calc(var(--t-body) * (1 + .6 * var(--hd-phone-grow, 0))); }
38
+ .l-bento .big b { font-size: calc(var(--t-sub) + var(--t-body) * 1.14 * var(--hd-phone-grow, 0)); }
39
+ .l-bento .small p { font-size: calc(var(--t-label) + var(--t-body) * .48 * var(--hd-phone-grow, 0)); }
39
40
  }
40
41
  /* A large presenter (data-presenter-size l or xl on this slide's section tag): narrower; at xl the big tile goes across the top. */
41
42
  @media not all and (max-width: 650px) {
@@ -64,7 +65,7 @@ script: One reason above all: [look: #__ID__-big] you see who watched. It also s
64
65
  .l-bento[data-presenter-size="xl"] .tiles > * { --icon: 40; }
65
66
  }
66
67
  </style>
67
- <section class="slide l-bento" id="__ID__" data-chapter="Why" data-note="Source: where each point is shown (the product, a study, the docs).">
68
+ <section class="slide l-bento" id="__ID__" data-chapter="Why" data-phone-grow=".big, .small" data-note="Source: where each point is shown (the product, a study, the docs).">
68
69
  <div class="kicker">Why send one</div>
69
70
  <h2 class="tt" data-title-mobile="One reason above all.">One reason above all.</h2>
70
71
  <div class="tiles">
@@ -27,6 +27,8 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
27
27
  .l-cover-frame:not(:has(> .art)) .content { justify-content: var(--hd-phone-anchor); }
28
28
  .l-cover-frame { gap: 14px; }
29
29
  .l-cover-frame .content { gap: 12px; }
30
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the title up to 1.4 times.
31
+ These sizes are its floor, and what check measures. */
30
32
  .l-cover-frame .tt { font-size: var(--t-display); }
31
33
  /* The framed card grows into the free height up to about 4:3 of its width (250px): cover-frame suits a landscape
32
34
  picture, and at 4:3 a 16:9 one loses about a quarter (check warns past a third, about 288px). Any room left below
@@ -44,7 +46,7 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
44
46
  <div class="art" role="presentation"></div>
45
47
  <div class="content">
46
48
  <div class="kicker">__SLUG__</div>
47
- <h1 class="tt" data-title-mobile="__TITLE__">__TITLE__</h1>
49
+ <h1 class="tt" data-phone-fit="1.4" data-title-mobile="__TITLE__">__TITLE__</h1>
48
50
  <p class="lead">One sentence on what this deck is about.</p>
49
51
  </div>
50
52
  <div class="narration-slot"></div>
@@ -28,7 +28,12 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
28
28
  .l-cover-poster div.art::after { padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
29
29
  .l-cover-poster .content { gap: 12px; padding: 18px 0 0; }
30
30
  .l-cover-poster:has(> .art) > .brand-logo { top: 12px; left: 20px; }
31
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the title up to 1.4 times.
32
+ These sizes are its floor, and what check measures. */
31
33
  .l-cover-poster .tt { font-size: var(--t-display); }
34
+ /* On a silent deck the picture grows, up to 262px tall so a 16:9 photo across the card loses no more than a fifth
35
+ of its width; less under a long title, never under 196px. */
36
+ .l-cover-poster .art { flex: 0 1 calc(196px + 66px * (1 - var(--hd-phone-presenter))); height: auto; min-height: 196px; }
32
37
  }
33
38
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
34
39
  @media (min-width: 651px) {
@@ -39,7 +44,7 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
39
44
  <div class="art" role="presentation"></div>
40
45
  <div class="content">
41
46
  <div class="kicker">__SLUG__</div>
42
- <h1 class="tt" data-title-mobile="__TITLE__">__TITLE__</h1>
47
+ <h1 class="tt" data-phone-fit="1.4" data-title-mobile="__TITLE__">__TITLE__</h1>
43
48
  <p class="lead">One sentence on what this deck is about.</p>
44
49
  </div>
45
50
  <div class="narration-slot"></div>
@@ -15,6 +15,9 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
15
15
  .l-cover-type .lead { max-width: 24em; }
16
16
  @media (max-width: 650px) {
17
17
  .l-cover-type .content { justify-content: var(--hd-phone-anchor); gap: 16px; padding-top: 0; }
18
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the title up to twice,
19
+ the lead up to 2.2 times (1.3 times the sub size).
20
+ These sizes are its floor, and what check measures. */
18
21
  .l-cover-type .tt { font-size: calc(var(--t-display) * 1.08); }
19
22
  }
20
23
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
@@ -25,8 +28,8 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
25
28
  <section class="slide on-ink l-cover-type bg-corner" id="__ID__" data-chapter="Hello" data-presenter-size="l" data-note="Title slide: no facts.">
26
29
  <div class="content">
27
30
  <div class="kicker">__SLUG__</div>
28
- <h1 class="tt" data-title-mobile="__TITLE__">__TITLE__</h1>
29
- <p class="lead">One sentence on what this deck is about.</p>
31
+ <h1 class="tt" data-phone-fit="2" data-phone-fit-words="2" data-title-mobile="__TITLE__">__TITLE__</h1>
32
+ <p class="lead" data-phone-fit="2.2">One sentence on what this deck is about.</p>
30
33
  </div>
31
34
  <div class="narration-slot"></div>
32
35
  </section>
@@ -4,8 +4,8 @@ summary: Three to five stages, each narrower than the last, a name and a number
4
4
  brief: Three to five narrowing stages, a name and a number each.
5
5
  says: how many make it
6
6
  needs: 3 to 5 stages with a number each
7
- use: a sign-up or sales funnel, who opens and who finishes, a pipeline. Real numbers only, each from its source in data-note; the widths are fixed steps, not drawn to scale, so the numbers carry the size. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the funnel, clear of the presenter.
8
- slot: bottom-right
7
+ use: a sign-up or sales funnel, who opens and who finishes, a pipeline. Real numbers only, each from its source in data-note; the widths are fixed steps, not drawn to scale, so the numbers carry the size. The presenter stands bottom-left, under the title's column: keep the title to three lines (about 35 characters; check --layout counts them). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the funnel, clear of the presenter.
8
+ slot: bottom-left
9
9
  presenter: stage
10
10
  nopresenter: The funnel takes the full width of the slide.
11
11
  cues: [go: #__ID__-s1] at the first stage, [go: #__ID__-s4] at the last, then [go: slot].
@@ -31,6 +31,11 @@ script: Of every link sent, [go: #__ID__-s1] most are opened, and more than half
31
31
  .l-funnel .stages { flex: 1 1 0; min-height: auto; justify-content: flex-start; gap: calc(10px - 4px * var(--hd-phone-presenter)); max-width: none; }
32
32
  .l-funnel .stages li { flex: 1 1 auto; min-height: 0; max-height: 130px; gap: 10px; padding: 12px 14px; border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); font-size: var(--t-body); }
33
33
  .l-funnel .stages li span { font-size: var(--t-lead); }
34
+ /* The player grows the words into the free room (--hd-phone-grow, 0 to 1: packages/player/phone-fit.js), all stages alike: each
35
+ count up to the sub size beside the presenter and the title size on a silent deck, its label up to the lead
36
+ size on a silent deck. At 0 these are the sizes above, which check measures. */
37
+ .l-funnel .stages li { font-size: calc(var(--t-body) + (var(--t-lead) - var(--t-body)) * (1 - var(--hd-phone-presenter)) * var(--hd-phone-grow, 0)); }
38
+ .l-funnel .stages li span { font-size: calc(var(--t-lead) + (var(--t-sub) - var(--t-lead) + (var(--t-title) - var(--t-sub)) * (1 - var(--hd-phone-presenter))) * var(--hd-phone-grow, 0)); }
34
39
  .l-funnel .stages li:nth-child(2) { --w: .92; }
35
40
  .l-funnel .stages li:nth-child(3) { --w: .84; }
36
41
  .l-funnel .stages li:nth-child(4) { --w: .76; }
@@ -43,13 +48,25 @@ script: Of every link sent, [go: #__ID__-s1] most are opened, and more than half
43
48
  .l-funnel[data-presenter-size="xl"] .stages li { padding: 14px 22px; }
44
49
  .l-funnel[data-presenter-size="xl"] .stages li span { font-size: var(--t-lead); }
45
50
  }
51
+ /* The presenter stands bottom-left (slot-left): the title in a column over it (380px, or its longest word), the stages down the
52
+ whole right side, from 536px (the stage presenter at m ends there). A large presenter: today's column, moved to the right.
53
+ Wide screens, with a presenter that is not corner (corner ignores its slot and
54
+ stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
55
+ @media not all and (max-width: 650px) {
56
+ :root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 84px; align-content: stretch; }
57
+ :root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > :is(.kicker, .tt, .lead) { grid-column: 1; }
58
+ :root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > .tt { font-size: var(--t-sub); line-height: 1.02; }
59
+ :root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) .stages { grid-column: 2; grid-row: 1 / -1; max-width: none; width: 100%; margin: 0; align-self: stretch; }
60
+ :root:not(.hd-no-presenter) .l-funnel.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 698px; }
61
+ :root:not(.hd-no-presenter) .l-funnel.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 848px; }
62
+ }
46
63
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
47
64
  @media (min-width: 651px) {
48
65
  :root.hd-no-presenter .l-funnel :is(.stages, .tt) { max-width: none; }
49
66
  :root.hd-no-presenter .l-funnel .stages { padding: 0 120px; }
50
67
  }
51
68
  </style>
52
- <section class="slide l-funnel" id="__ID__" data-chapter="Who finishes" data-note="Source: name where each number comes from (analytics, a dashboard, the date range).">
69
+ <section class="slide l-funnel slot-left" data-dock-clear=".stages li" id="__ID__" data-chapter="Who finishes" data-phone-grow=".stages" data-note="Source: name where each number comes from (analytics, a dashboard, the date range).">
53
70
  <div class="kicker">Last 30 days</div>
54
71
  <h2 class="tt" data-title-mobile="Most who open, finish.">Most who open it, finish it.</h2>
55
72
  <ol class="stages">
@@ -4,8 +4,8 @@ summary: Two or three actors in parallel rows over the same three to five steps,
4
4
  brief: Two or three actors in parallel rows over the same steps: who does what.
5
5
  says: who does what
6
6
  needs: 2 to 3 actors and the steps they share
7
- use: a handoff between people and a product, you and the agent and the viewer, a team's roles. Each .lane is a row: its .who, then one cell per step, a .chip where that actor acts and an empty <i></i> where they do not. Set the number of steps as --steps on .lanes (4 by default; 5 at most). Each actor a word, each chip two to four words. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the rows, clear of the presenter.
8
- slot: bottom-right
7
+ use: a handoff between people and a product, you and the agent and the viewer, a team's roles. Each .lane is a row: its .who, then one cell per step, a .chip where that actor acts and an empty <i></i> where they do not. Set the number of steps as --steps on .lanes (4 by default; 5 at most). Each actor a word, each chip two to four words. The presenter stands bottom-left, under the title's column: keep the title to three lines (about 35 characters; check --layout counts them). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the rows, clear of the presenter.
8
+ slot: bottom-left
9
9
  presenter: stage
10
10
  nopresenter: The rows take the full width of the slide.
11
11
  cues: [look: #__ID__-lanes] as the narration names the actors; [go: #__ID__-c1] at a step it names, then [go: slot].
@@ -40,6 +40,18 @@ script: You ask, [go: #__ID__-c1] the agent writes it and narrates it, [go: #__I
40
40
  .l-lanes:is([data-presenter-size="l"], [data-presenter-size="xl"]) .who { --icon: 48; }
41
41
  .l-lanes[data-presenter-size="xl"] .chip { padding: 10px 10px; font-size: var(--t-label); }
42
42
  }
43
+ /* The presenter stands bottom-left (slot-left): the title in a column over it (380px, or its longest word), the lanes down the
44
+ whole right side, from 536px (the stage presenter at m ends there). A large presenter: today's column, moved to the right.
45
+ Wide screens, with a presenter that is not corner (corner ignores its slot and
46
+ stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
47
+ @media not all and (max-width: 650px) {
48
+ :root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 84px; align-content: stretch; }
49
+ :root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > :is(.kicker, .tt, .lead) { grid-column: 1; }
50
+ :root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > .tt { font-size: var(--t-sub); line-height: 1.02; }
51
+ :root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) .lanes { grid-column: 2; grid-row: 1 / -1; max-width: none; width: 100%; margin: 0; align-self: stretch; }
52
+ :root:not(.hd-no-presenter) .l-lanes.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 698px; }
53
+ :root:not(.hd-no-presenter) .l-lanes.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 848px; }
54
+ }
43
55
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
44
56
  @media (min-width: 651px) {
45
57
  :root.hd-no-presenter .l-lanes :is(.lanes, .tt) { max-width: none; }
@@ -51,7 +63,7 @@ script: You ask, [go: #__ID__-c1] the agent writes it and narrates it, [go: #__I
51
63
  .l-lanes .who { --icon: 36; gap: 8px; }
52
64
  }
53
65
  </style>
54
- <section class="slide l-lanes" id="__ID__" data-chapter="Who does what" data-note="Source: where each step is described (the docs, the product).">
66
+ <section class="slide l-lanes slot-left" data-dock-clear=".chip, .who" id="__ID__" data-chapter="Who does what" data-note="Source: where each step is described (the docs, the product).">
55
67
  <div class="kicker">Who does what</div>
56
68
  <h2 class="tt" data-title-mobile="You, the agent, them.">You ask. The agent works. They watch.</h2>
57
69
  <div class="lanes" id="__ID__-lanes">
@@ -17,6 +17,9 @@ script: Here is the number that matters. [look: #__ID__-figure] Three times fast
17
17
  .l-number .source { font: var(--t-label)/1.4 var(--mono); }
18
18
  @media (max-width: 650px) {
19
19
  .l-number .content { justify-content: var(--hd-phone-anchor); gap: 12px; }
20
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the figure up to 3.5 times
21
+ (a short one grows most; one that spans its column stays), the line under it up to 1.8 times (1.3 times a title's size).
22
+ These sizes are its floor, and what check measures. */
20
23
  .l-number .figure { font-size: 120px; }
21
24
  }
22
25
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
@@ -27,8 +30,8 @@ script: Here is the number that matters. [look: #__ID__-figure] Three times fast
27
30
  <section class="slide on-ink l-number" id="__ID__" data-chapter="The number" data-note="Source: name the dashboard, report or email the number comes from, with its date.">
28
31
  <div class="content">
29
32
  <div class="kicker">Proof</div>
30
- <div class="figure" id="__ID__-figure">3<small>×</small></div>
31
- <h2 class="tt" data-title-mobile="What it measures.">What the number measures, in one line.</h2>
33
+ <div class="figure" id="__ID__-figure" data-phone-fit="3.5" data-phone-fit-line>3<small>×</small></div>
34
+ <h2 class="tt" data-phone-fit="1.8" data-phone-fit-words="off" data-title-mobile="What it measures.">What the number measures, in one line.</h2>
32
35
  <p class="source muted" id="__ID__-source">Source: the report, with its date.</p>
33
36
  </div>
34
37
  <div class="narration-slot"></div>
@@ -0,0 +1,126 @@
1
+ <!--
2
+ layout: question-choice
3
+ summary: One question with two to four answer cards the viewer taps (or A to D). The deck waits for their answer or Skip, then moves on; you see who picked what.
4
+ brief: One question, two to four answer cards; the deck waits for a pick or Skip.
5
+ says: a question for the viewer
6
+ needs: 2 to 4 short answers
7
+ use: its styles are required (see Style). qualify a lead or tailor the follow-up (which plan, how big, when). Keep the title to 72 characters (data-title-mobile, what a phone shows, to 40), each answer (its <b>) to 24 and its line (the <span>) to 50: the type steps down to fit, and check warns past them. One question a slide, 20 a deck, never the first or last slide. Each answer is a <button data-option="id">: an id of its own (letters, digits, - or _), kept the same between releases with the slide's id (answers are stored under them). Letters run A, B, C, D: keys pick by the cards' order; Esc skips. Keep data-question="choice", Skip (data-answer-skip) and the status line (data-answer-status): it and the failed card are all a viewer sees when a save fails. A question is optional: the viewer answers or skips, and the first Next with no answer nudges them once. Add data-required to the slide only where the deck can't go on without the answer (a plan that picks the next slides, an email the sender must have): no Skip, and nothing passes it until it's answered; one or two a deck at most. data-answer-ui marks what a still (a thumbnail, an export, the PDF) leaves out. Recipient links store answers; QA links, previews and your own opens don't. Read them with `hyperdecks answers <slug>` (`deck_answers`): counts per option, written answers in full, a row per person with what they changed or skipped; `--share <token> --wait` (`wait`) waits until that link has answered. You get one email per person when they finish. The presenter asks it large (data-presenter-size="xl", answers two a row beside it; l does the same, m gives one row).
8
+ slot: bottom-left
9
+ presenter: stage
10
+ nopresenter: The question and its cards take the full width of the slide.
11
+ cues: [look: #__ID__-options] as the presenter reads out the answers.
12
+ script: One question for you. Which of these [look: #__ID__-options] fits your team best? Pick one, or skip it.
13
+ -->
14
+ <style>
15
+ /* fitQuestion (the player; check --layout) steps --q-title down, then --q-text, until all of it is inside the slide. */
16
+ .l-question-choice .ask { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; gap: calc(26px * var(--q-text, 1)); padding-left: 400px; }
17
+ .l-question-choice .ask > * { flex-shrink: 0; }
18
+ .l-question-choice .tt { font-size: max(42px, var(--t-title) * var(--q-title, 1)); text-wrap: balance; }
19
+ .l-question-choice .options { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; }
20
+ .l-question-choice .opt { position: relative; display: flex; flex-direction: column; gap: calc(10px * var(--q-text, 1)); min-width: 0; min-height: 180px; padding: calc(22px * var(--q-text, 1)) 24px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(22 * var(--round)); background: var(--card); color: var(--ink); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); font-family: var(--font); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .16s, opacity .16s, box-shadow .16s, transform .16s cubic-bezier(.2, .7, .3, 1); }
21
+ .l-question-choice .opt kbd { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: calc(2 * var(--line)) solid currentColor; border-radius: calc(9 * var(--round)); font: 700 var(--t-label) var(--mono); transition: background-color .16s, color .16s; }
22
+ .l-question-choice .opt b { margin-top: auto; font-size: max(28px, 34px * var(--q-text, 1)); line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
23
+ .l-question-choice .opt span { font-size: max(23.5px, 25px * var(--q-text, 1)); line-height: 1.22; }
24
+ /* Saved, and only then: the accent, and the letter becomes a tick (drawn, so it needs no font's glyph). */
25
+ .l-question-choice .opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
26
+ .l-question-choice .opt[aria-pressed="true"] kbd { background: currentColor; font-size: 0; }
27
+ .l-question-choice .opt[aria-pressed="true"] kbd::after { content: ""; width: 20px; height: 16px; background: var(--accent); clip-path: polygon(14% 44%, 0 64%, 40% 100%, 100% 18%, 84% 0, 38% 62%); }
28
+ .l-question-choice.is-answered .opt[aria-pressed="false"] { opacity: .6; }
29
+ /* On its way: a wash, a dashed edge and the word. Not saved: the card as it was, and the word, in the letter's row. */
30
+ .l-question-choice .opt[data-answer]::after { content: "Saving…"; position: absolute; top: calc(24px * var(--q-text, 1)); right: 24px; height: 38px; display: flex; align-items: center; font: 700 24px var(--font); white-space: nowrap; }
31
+ .l-question-choice .opt[data-answer="failed"]::after { content: "Not saved"; padding: 0 12px; border-radius: calc(9 * var(--round)); background: #b3261e; color: #fff; }
32
+ /* Its reply was lost: it may be saved, so it isn't called unsaved. */
33
+ .l-question-choice .opt[data-answer="unsure"]::after { content: "Try again"; padding: 0 12px; border-radius: calc(9 * var(--round)); background: #7a4b00; color: #fff; }
34
+ .l-question-choice .opt[data-answer="pending"] { border-style: dashed; background: color-mix(in srgb, var(--accent) 22%, var(--card)); cursor: progress; }
35
+ .l-question-choice.is-answered .opt[data-answer] { opacity: 1; }
36
+ /* A mouse or trackpad over a card: it lifts, its shadow deepens, it takes a wash of the accent (so a theme without
37
+ shadows shows it too) and its letter fills; pressed, it sits back down. Never on touch, where a hover would stick. */
38
+ @media (hover: hover) and (pointer: fine) {
39
+ .l-question-choice .opt:hover { transform: translateY(-6px); box-shadow: calc(12 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
40
+ .l-question-choice .opt:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--accent) 22%, var(--card)); opacity: 1; }
41
+ .l-question-choice .opt:not([aria-pressed="true"]):hover kbd { background: var(--ink); color: var(--card); }
42
+ .l-question-choice .opt:active { transform: none; box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
43
+ .l-question-choice .skip:hover { text-decoration-thickness: .16em; }
44
+ }
45
+ @media (prefers-reduced-motion: reduce) {
46
+ .l-question-choice :is(.opt, .opt kbd) { transition: none; }
47
+ .l-question-choice .opt:hover { transform: none; }
48
+ }
49
+ .l-question-choice .foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
50
+ .l-question-choice .foot button { font: 700 24px var(--font); color: inherit; cursor: pointer; }
51
+ .l-question-choice .skip { min-width: 74px; min-height: 74px; padding: 8px 4px; border: 0; background: none; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
52
+ .l-question-choice .hint { font: 23.5px/1.2 var(--mono); letter-spacing: -.02em; opacity: .75; }
53
+ /* A row of its own, with room for the longest message (two lines) always kept, so none ever moves or cuts anything. */
54
+ .l-question-choice .status { flex: 1 0 100%; min-height: 2.5em; font-size: 23.5px; line-height: 1.25; }
55
+ .l-question-choice :is(button, textarea):focus-visible { outline: thick solid var(--accent-2); outline-offset: 4px; } /* never a theme unit: a theme without lines still shows the focus */
56
+ @media (max-width: 650px) {
57
+ /* From the top, and the cards share all the height: one to a row, its letter beside its words, so they read large. */
58
+ /* The band kept for the presenter is as tall as its head and its caption, no more; with captions only, as tall as they are. */
59
+ .slide.l-question-choice { padding-bottom: calc(28px + 122px * var(--hd-phone-presenter, 1)); }
60
+ :root:has(.hd-presenter[data-mode="none"]) .slide.l-question-choice { padding-bottom: calc(28px + 92px * var(--hd-phone-presenter, 1)); }
61
+ /* A silent deck never shows a caption: Skip and the messages stand beside the head, where one would be. */
62
+ .hd-silent .slide.l-question-choice { padding-bottom: 20px; }
63
+ .hd-silent .l-question-choice .foot { align-content: center; min-height: calc(128px * var(--hd-phone-presenter, 1)); padding-right: calc(160px * var(--hd-phone-presenter, 1)); }
64
+ .l-question-choice .tt { font-size: max(26px, var(--t-title) * var(--q-title, 1)); }
65
+ .l-question-choice .ask { justify-content: var(--hd-phone-anchor, start); gap: calc(14px * var(--q-text, 1) * var(--q-title, 1)); padding-left: 0; }
66
+ .l-question-choice .options { flex: 1 0 auto; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(min-content, 1fr); gap: max(6px, 8px * var(--q-text, 1)); }
67
+ .l-question-choice .opt { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; align-content: center; gap: 2px 12px; min-height: 0; padding: calc(10px * var(--q-text, 1) * var(--q-title, 1)) 12px; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
68
+ .l-question-choice .opt kbd { grid-row: span 2; align-self: center; width: 30px; height: 30px; border-radius: calc(7 * var(--round)); }
69
+ .l-question-choice .opt[aria-pressed="true"] kbd::after { width: 14px; height: 11px; }
70
+ .l-question-choice .opt b { margin: 0; font-size: max(16px, 20px * var(--q-text, 1)); }
71
+ .l-question-choice .opt span { font-size: max(14px, 16px * var(--q-text, 1)); }
72
+ /* What became of it takes its line's place, over nothing else. */
73
+ .l-question-choice .opt[data-answer] span { display: none; }
74
+ .l-question-choice .opt[data-answer]::after { position: static; grid-column: 2; height: auto; justify-self: start; padding: 2px 8px; font-size: 14px; line-height: 1.22; }
75
+ .l-question-choice .opt[data-answer="pending"]::after { padding: 2px 0; }
76
+ /* Skip and the messages share a row. */
77
+ .l-question-choice .foot { flex-wrap: nowrap; gap: 0 14px; min-height: 54px; }
78
+ .l-question-choice .foot button { font-size: 17px; }
79
+ .l-question-choice .skip { min-width: 48px; min-height: 44px; }
80
+ .l-question-choice .status { flex: 1 1 0; min-width: 0; min-height: 0; max-height: none; font-size: 14px; }
81
+ .l-question-choice .hint { display: none; }
82
+ /* Silent beside a presenter, the message has a row of its own above Skip (two lines kept, so Skip never moves). */
83
+ .hd-silent:has(.hd-presenter:not([data-mode="none"])) .l-question-choice .foot { flex-wrap: wrap; }
84
+ .hd-silent:has(.hd-presenter:not([data-mode="none"])) .l-question-choice .status { order: -1; flex: 1 0 100%; min-height: 2.5em; }
85
+ }
86
+ /* The question starts just past the presenter's head at each size (the layout's own, xl, is twice m here). The
87
+ presenter stands in the middle of the height. A live head fills about 70% of its box, so its box goes a little past the slide's
88
+ edge and under the question's; a still may fill it, so it stays whole, on the slide and clear of the question. */
89
+ @media not all and (max-width: 650px) {
90
+ .l-question-choice[data-presenter-size="xl"] { --hd-presenter-scale: 2; }
91
+ .l-question-choice[data-presenter-size="l"] .ask { padding-left: 440px; }
92
+ .l-question-choice[data-presenter-size="xl"] .ask { padding-left: 590px; }
93
+ .l-question-choice.slot-left .narration-slot { top: calc(50% - var(--hd-slot-h, 628px) * .6); bottom: auto; left: 24px; } /* the head, below its captions, in the middle */
94
+ :root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-choice[data-presenter-size="xl"] .ask { padding-left: 504px; }
95
+ .l-question-choice[data-presenter-size="xl"].slot-left .narration-slot { left: 0; }
96
+ :root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-choice[data-presenter-size="xl"].slot-left .narration-slot { left: calc(var(--hd-slot-w, 640px) * -.075); }
97
+ /* Two a row, as tall as the slide has room for. */
98
+ .l-question-choice:is([data-presenter-size="l"], [data-presenter-size="xl"]) .options { flex: 1 0 auto; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(min-content, 1fr); }
99
+ .l-question-choice:is([data-presenter-size="l"], [data-presenter-size="xl"]) .opt { min-height: 0; }
100
+ .l-question-choice:is([data-presenter-size="l"], [data-presenter-size="xl"]) .options > :nth-child(3):last-child { grid-column: 1 / -1; }
101
+ }
102
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
103
+ @media (min-width: 651px) {
104
+ :root.hd-no-presenter .l-question-choice .ask { padding-left: 0 !important; } /* over the live head's, for one turned off */
105
+ :root.hd-no-presenter .l-question-choice:is([data-presenter-size]) .options { flex: none; max-height: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; grid-auto-rows: auto; }
106
+ :root.hd-no-presenter .l-question-choice:is([data-presenter-size]) .options > :nth-child(3):last-child { grid-column: auto; }
107
+ :root.hd-no-presenter .l-question-choice:is([data-presenter-size]) .opt { min-height: 300px; }
108
+ }
109
+ </style>
110
+ <section class="slide on-tint l-question-choice slot-left" id="__ID__" data-question="choice" data-interactive data-presenter-size="xl" data-chapter="A question" data-note="A question for the viewer: no facts.">
111
+ <div class="ask">
112
+ <div class="kicker">A question for you</div>
113
+ <h2 class="tt" id="__ID__-title" data-title-mobile="Which fits best?">Which fits your team?</h2>
114
+ <div class="options" id="__ID__-options" role="group" aria-labelledby="__ID__-title">
115
+ <button class="opt" type="button" data-option="starting"><kbd>A</kbd><b>Just starting</b><span>We have nothing yet.</span></button>
116
+ <button class="opt" type="button" data-option="growing"><kbd>B</kbd><b>Growing</b><span>It works. We need more.</span></button>
117
+ <button class="opt" type="button" data-option="switching"><kbd>C</kbd><b>Switching</b><span>We use something else.</span></button>
118
+ </div>
119
+ <div class="foot" data-answer-ui>
120
+ <button class="skip" type="button" data-answer-skip>Skip</button>
121
+ <span class="hint" data-answer-hint>Press a letter, or Esc to skip</span>
122
+ <p class="status" role="status" data-answer-status></p>
123
+ </div>
124
+ </div>
125
+ <div class="narration-slot"></div>
126
+ </section>
@@ -0,0 +1,89 @@
1
+ <!--
2
+ layout: question-text
3
+ summary: One open question with a box the viewer types a short answer in (500 characters at most). The deck waits for Send or Skip, then moves on; you see who wrote what.
4
+ brief: One open question, a short typed answer; the deck waits for Send or Skip.
5
+ says: a question for the viewer, in their words
6
+ needs: one question
7
+ use: its styles are required (see Style). what a choice can't list (what would stop you, what else to cover). Ask one thing they can answer in a line. The title is the question, 100 characters at most (data-title-mobile, what a phone shows, 40): the type steps down to fit, and check warns past it. Change the placeholder to an example of a good answer. One question a slide, 20 a deck, never the first or last slide; keep the slide's id (letters, digits, - or _) the same between releases (answers are stored under it). Enter sends, Shift+Enter is a new line, Esc skips. Keep data-question="text", the textarea (labelled by the title), Send, Skip, the count (data-answer-count) and the status line (data-answer-status): it is all a viewer sees when a save fails. A question is optional: the viewer answers or skips, and the first Next with no answer nudges them once. Add data-required to the slide only where the deck can't go on without the answer (a plan that picks the next slides, an email the sender must have): no Skip, and nothing passes it until it's answered; one or two a deck at most. data-answer-ui marks what a still (a thumbnail, an export, the PDF) leaves out; the box stays. Never ask for a password, a card number or anything private. Recipient links store answers; QA links, previews and your own opens don't. Read them with `hyperdecks answers <slug>` (`deck_answers`): counts per option, written answers in full, a row per person with what they changed or skipped; `--share <token> --wait` (`wait`) waits until that link has answered. You get one email per person when they finish. The presenter asks it large (data-presenter-size="xl"; l and m move the question nearer).
8
+ slot: bottom-left
9
+ presenter: stage
10
+ nopresenter: The question and its box take the full width of the slide.
11
+ cues: [look: #__ID__-box] at the question.
12
+ script: Last one, in your own words. [look: #__ID__-box] What would stop you starting this month? Type a line, or skip it.
13
+ -->
14
+ <style>
15
+ /* fitQuestion (the player; check --layout) steps --q-title down, then --q-text, until all of it is inside the slide. */
16
+ .l-question-text .ask { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; gap: calc(26px * var(--q-text, 1)); padding-left: 400px; }
17
+ .l-question-text .ask > * { flex-shrink: 0; }
18
+ .l-question-text .tt { font-size: max(42px, var(--t-title) * var(--q-title, 1)); text-wrap: balance; }
19
+ /* The box is the still's too: the textarea inside it goes where nothing can be typed. */
20
+ .l-question-text .box { display: flex; flex: 1 1 160px; min-height: 160px; max-height: 420px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(22 * var(--round)); background: var(--card); color: var(--ink); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
21
+ .l-question-text textarea { flex: 1; min-width: 0; padding: 22px 26px; border: 0; border-radius: inherit; background: none; color: inherit; font: var(--t-lead)/1.3 var(--font); resize: none; }
22
+ .l-question-text textarea::placeholder { color: color-mix(in srgb, currentColor 65%, transparent); opacity: 1; }
23
+ .l-question-text .foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
24
+ .l-question-text .foot button { font: 700 24px var(--font); color: inherit; cursor: pointer; }
25
+ .l-question-text .skip { min-width: 74px; min-height: 74px; padding: 8px 4px; border: 0; background: none; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
26
+ .l-question-text .hint { font: 23.5px/1.2 var(--mono); letter-spacing: -.02em; opacity: .75; }
27
+ /* A row of its own, with room for the longest message (two lines) always kept, so none ever moves or cuts anything. */
28
+ .l-question-text .status { flex: 1 0 100%; min-height: 2.5em; font-size: 23.5px; line-height: 1.25; }
29
+ .l-question-text :is(button, textarea):focus-visible { outline: thick solid var(--accent-2); outline-offset: 4px; } /* never a theme unit: a theme without lines still shows the focus */
30
+ .l-question-text .foot .send { min-height: 74px; padding: 14px 28px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(16 * var(--round)); background: var(--accent); color: var(--accent-ink); }
31
+ .l-question-text .foot .send:disabled { opacity: .5; cursor: default; }
32
+ /* A mouse or trackpad only: a hover would stick after a tap. */
33
+ @media (hover: hover) and (pointer: fine) {
34
+ .l-question-text .foot .send:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 82%, var(--ink)); }
35
+ .l-question-text .skip:hover { text-decoration-thickness: .16em; }
36
+ }
37
+ @media (max-width: 650px) {
38
+ /* From the top, and the box takes all the height above the presenter (or the keyboard). */
39
+ /* The band kept for the presenter is as tall as its head and its caption, no more; with captions only, as tall as they are. */
40
+ .slide.l-question-text { padding-bottom: calc(28px + 122px * var(--hd-phone-presenter, 1)); }
41
+ :root:has(.hd-presenter[data-mode="none"]) .slide.l-question-text { padding-bottom: calc(28px + 92px * var(--hd-phone-presenter, 1)); }
42
+ /* A silent deck never shows a caption: Skip and the messages stand beside the head, where one would be. */
43
+ .hd-silent .slide.l-question-text { padding-bottom: 20px; }
44
+ .hd-silent .l-question-text .foot { align-content: center; min-height: calc(128px * var(--hd-phone-presenter, 1)); padding-right: calc(160px * var(--hd-phone-presenter, 1)); }
45
+ .l-question-text .tt { font-size: max(26px, var(--t-title) * var(--q-title, 1)); }
46
+ .l-question-text .ask { justify-content: var(--hd-phone-anchor, start); gap: calc(14px * var(--q-text, 1) * var(--q-title, 1)); padding-left: 0; }
47
+ .l-question-text .box { flex-basis: 72px; min-height: 72px; max-height: none; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
48
+ /* 16px or more: a smaller box makes an iPhone zoom in to type. */
49
+ .l-question-text textarea { padding: 12px 14px; font-size: max(16px, var(--t-body)); }
50
+ .l-question-text .foot { gap: 2px 14px; }
51
+ .l-question-text .foot button { font-size: 17px; }
52
+ .l-question-text .foot .send { min-height: 44px; padding: 8px 20px; border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); }
53
+ .l-question-text .skip { min-width: 48px; min-height: 44px; }
54
+ .l-question-text .status { font-size: 14px; }
55
+ /* The count is the row's smallest thing; silent beside a presenter, the message has a row of its own above the buttons (two lines kept, so they never move). */
56
+ .l-question-text .hint { font-size: 14px; }
57
+ .hd-silent:has(.hd-presenter:not([data-mode="none"])) .l-question-text .status { order: -1; flex: 1 0 100%; min-height: 2.5em; }
58
+ }
59
+ /* The question starts just past the presenter's head at each size (the layout's own, xl, is twice m here). The
60
+ presenter stands in the middle of the height. A live head fills about 70% of its box, so its box goes a little past the slide's
61
+ edge and under the question's; a still may fill it, so it stays whole, on the slide and clear of the question. */
62
+ @media not all and (max-width: 650px) {
63
+ .l-question-text[data-presenter-size="xl"] { --hd-presenter-scale: 2; }
64
+ .l-question-text[data-presenter-size="l"] .ask { padding-left: 440px; }
65
+ .l-question-text[data-presenter-size="xl"] .ask { padding-left: 590px; }
66
+ .l-question-text.slot-left .narration-slot { top: calc(50% - var(--hd-slot-h, 628px) * .6); bottom: auto; left: 24px; } /* the head, below its captions, in the middle */
67
+ :root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-text[data-presenter-size="xl"] .ask { padding-left: 504px; }
68
+ .l-question-text[data-presenter-size="xl"].slot-left .narration-slot { left: 0; }
69
+ :root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-text[data-presenter-size="xl"].slot-left .narration-slot { left: calc(var(--hd-slot-w, 640px) * -.075); }
70
+ }
71
+ /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
72
+ @media (min-width: 651px) {
73
+ :root.hd-no-presenter .l-question-text .ask { padding-left: 0 !important; } /* over the live head's, for one turned off */
74
+ }
75
+ </style>
76
+ <section class="slide on-tint-2 l-question-text slot-left" id="__ID__" data-question="text" data-interactive data-presenter-size="xl" data-chapter="In your words" data-note="A question for the viewer: no facts.">
77
+ <div class="ask">
78
+ <div class="kicker">In your words</div>
79
+ <h2 class="tt" id="__ID__-title" data-title-mobile="What would stop you?">What would stop you?</h2>
80
+ <div class="box" id="__ID__-box"><textarea data-answer-ui data-answer-text rows="3" maxlength="500" aria-labelledby="__ID__-title" placeholder="One line is plenty."></textarea></div>
81
+ <div class="foot" data-answer-ui>
82
+ <button class="send" type="button" data-answer-send>Send</button>
83
+ <button class="skip" type="button" data-answer-skip>Skip</button>
84
+ <span class="hint" data-answer-count>0 / 500</span>
85
+ <p class="status" role="status" data-answer-status></p>
86
+ </div>
87
+ </div>
88
+ <div class="narration-slot"></div>
89
+ </section>
@@ -20,7 +20,10 @@ script: In their words. [look: #__ID__-quote] Here is what they told us.
20
20
  @media (max-width: 650px) {
21
21
  .l-quote .content { padding-left: 0; justify-content: var(--hd-phone-anchor); gap: 18px; }
22
22
  /* A silent deck has the presenter's 172px back: the quote steps up to 40px (32px beside the presenter). */
23
- .l-quote .quote { font-size: calc(32px + 8px * (1 - var(--hd-phone-presenter))); }
23
+ /* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the quote up to 84px,
24
+ its opening mark hung no further than the card's 20px padding.
25
+ These sizes are its floor, and what check measures. */
26
+ .l-quote .quote { font-size: calc(32px + 8px * (1 - var(--hd-phone-presenter))); text-indent: max(-.42em, -18px); }
24
27
  .l-quote .avatar { width: 44px; height: 44px; font-size: 16px; }
25
28
  }
26
29
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
@@ -32,7 +35,7 @@ script: In their words. [look: #__ID__-quote] Here is what they told us.
32
35
  <section class="slide on-accent l-quote slot-left" id="__ID__" data-chapter="In their words" data-note="Quote: name who said it, where (email, call, review) and when.">
33
36
  <figure class="content">
34
37
  <div class="kicker">In their words</div>
35
- <h2 class="tt quote" id="__ID__-quote" data-title-mobile="“It explained itself.”">“The deck explained itself before I got on the call.”</h2>
38
+ <h2 class="tt quote" id="__ID__-quote" data-phone-fit="84px" data-title-mobile="“It explained itself.”">“The deck explained itself before I got on the call.”</h2>
36
39
  <figcaption><span class="avatar">AD</span><span><b>Their name</b><small>Role, company</small></span></figcaption>
37
40
  </figure>
38
41
  <div class="narration-slot"></div>
@@ -4,8 +4,8 @@ summary: Three to five named measures, each with its value and a state (on track
4
4
  brief: Three to five measures, each with a value and a state.
5
5
  says: where it stands
6
6
  needs: 3 to 5 measures with a value each
7
- use: a monthly update, goals against plan, a launch checklist. Each measure's name a few words (under about 35 characters), its value short (61%, 1,240, 3 of 4). Real values only, each from its source in data-note. Each state is a class on its .state: good (on track), watch or bad (fix); the mark beside the word (●, ▲, ✕) says it without colour too. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the card, clear of the presenter.
8
- slot: bottom-right
7
+ use: a monthly update, goals against plan, a launch checklist. Each measure's name a few words (under about 35 characters), its value short (61%, 1,240, 3 of 4). Real values only, each from its source in data-note. Each state is a class on its .state: good (on track), watch or bad (fix); the mark beside the word (●, ▲, ✕) says it without colour too. The presenter stands bottom-left, under the title's column: keep the title to three lines (about 35 characters; check --layout counts them). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the card, clear of the presenter.
8
+ slot: bottom-left
9
9
  presenter: stage
10
10
  nopresenter: The rows take the full width of the slide.
11
11
  cues: [look: #__ID__-rows] as the narration turns to them; [go: #__ID__-r4] at the one to fix, then [go: slot].
@@ -42,6 +42,18 @@ script: Here is where we stand. [look: #__ID__-rows] Three are on track. One nee
42
42
  .l-scorecard[data-presenter-size="xl"] .rows li { gap: 16px; padding: 12px 20px; }
43
43
  .l-scorecard[data-presenter-size="xl"] .val { font-size: var(--t-lead); }
44
44
  }
45
+ /* The presenter stands bottom-left (slot-left): the title in a column over it (380px, or its longest word), the rows down the
46
+ whole right side, from 536px (the stage presenter at m ends there). A large presenter: today's column, moved to the right.
47
+ Wide screens, with a presenter that is not corner (corner ignores its slot and
48
+ stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
49
+ @media not all and (max-width: 650px) {
50
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 84px; align-content: stretch; }
51
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > :is(.kicker, .tt, .lead) { grid-column: 1; }
52
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > .tt { font-size: var(--t-sub); line-height: 1.02; }
53
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) .rows { grid-column: 2; grid-row: 1 / -1; max-width: none; width: 100%; margin: 0; align-self: stretch; }
54
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 698px; }
55
+ :root:not(.hd-no-presenter) .l-scorecard.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 848px; }
56
+ }
45
57
  /* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
46
58
  @media (min-width: 651px) {
47
59
  :root.hd-no-presenter .l-scorecard :is(.rows, .tt) { max-width: none; }
@@ -58,7 +70,7 @@ script: Here is where we stand. [look: #__ID__-rows] Three are on track. One nee
58
70
  .l-scorecard[data-presenter-size="xl"] .rows li { --icon: 36; }
59
71
  }
60
72
  </style>
61
- <section class="slide on-tint-2 l-scorecard" id="__ID__" data-chapter="Where we stand" data-note="Source: name where each value comes from (a dashboard, a report) and its date.">
73
+ <section class="slide on-tint-2 l-scorecard slot-left" data-dock-clear=".rows li" id="__ID__" data-chapter="Where we stand" data-note="Source: name where each value comes from (a dashboard, a report) and its date.">
62
74
  <div class="kicker">This month</div>
63
75
  <h2 class="tt" data-title-mobile="Where we stand.">Where we stand.</h2>
64
76
  <ol class="rows" id="__ID__-rows">