@alis-build/design-system 0.76.0 → 0.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/alisx.css CHANGED
@@ -35,6 +35,8 @@
35
35
  --violet-200: #c3b2f7;
36
36
  --amber-100: #ffd9a8;
37
37
  --amber-700: #b58200;
38
+ --gold-500: #eaa800;
39
+ --gold-800: #8f6400;
38
40
  --alis-red: #f02222;
39
41
  --red-700: #ba1a1a;
40
42
  --green-700: #1e6b3a;
@@ -62,6 +64,8 @@
62
64
  --warning: light-dark(var(--amber-700), #e9b443);
63
65
  --success: light-dark(var(--green-700), #7ccf95);
64
66
  --info: light-dark(var(--blue-600), #a9c1ff);
67
+ --reward: light-dark(var(--gold-500), #f7c948);
68
+ --reward-edge: light-dark(var(--gold-800), #ffd966);
65
69
  --inverse-surface: light-dark(var(--petrol-800), var(--mist-100));
66
70
  --on-inverse-surface: light-dark(var(--paper-100), var(--petrol-800));
67
71
  --code-surface: light-dark(var(--paper-75), #2c353b);
@@ -261,6 +265,8 @@
261
265
  --warning: var(--amber-700);
262
266
  --success: var(--green-700);
263
267
  --info: var(--blue-600);
268
+ --reward: var(--gold-500);
269
+ --reward-edge: var(--gold-800);
264
270
  --inverse-surface: var(--petrol-800);
265
271
  --on-inverse-surface: var(--paper-100);
266
272
  --code-surface: var(--paper-75);
@@ -324,6 +330,8 @@
324
330
  --warning: #e9b443;
325
331
  --success: #7ccf95;
326
332
  --info: #a9c1ff;
333
+ --reward: #f7c948;
334
+ --reward-edge: #ffd966;
327
335
  --inverse-surface: var(--mist-100);
328
336
  --on-inverse-surface: var(--petrol-800);
329
337
  --code-surface: #2c353b;
@@ -397,6 +405,8 @@
397
405
  --warning: #ffffff;
398
406
  --success: #ffffff;
399
407
  --info: #ffffff;
408
+ --reward: #ffffff;
409
+ --reward-edge: #ffffff;
400
410
  --inverse-surface: #ffffff;
401
411
  --on-inverse-surface: #000000;
402
412
  --code-surface: #000000;
@@ -454,6 +464,7 @@
454
464
  /* Type styles: one class per job (rules/type.md). */
455
465
  .text-welcome-title { font-family: var(--font-sans); font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -0.03em; }
456
466
  .text-page-title { font-family: var(--font-sans); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
467
+ .text-prompt { font-family: var(--font-sans); font-size: 30px; line-height: 38px; font-weight: 500; letter-spacing: -0.02em; }
457
468
  .text-section-title { font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; }
458
469
  .text-object-title { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0; }
459
470
  .text-reading { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: 0; }
@@ -476,6 +487,7 @@
476
487
  @media (max-width: 599px) {
477
488
  .text-welcome-title { font-size: 32px; line-height: 40px; }
478
489
  .text-page-title { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: 0; }
490
+ .text-prompt { font-size: 24px; line-height: 32px; }
479
491
  }
480
492
 
481
493
  /* Product base. A marketing page overrides it with <body class="ax-page">. */
@@ -586,6 +598,13 @@ button, input, textarea, select { font: inherit; }
586
598
  .app-chip--opaque:not([class*="app-chip--cat"]){background:var(--surface-container-highest);color:var(--on-surface)}
587
599
  .app-chip--outlined{background:transparent;border-color:var(--outline)}
588
600
  .app-chip--outlined.is-selected{background:var(--secondary-container);border-color:transparent;color:var(--on-secondary-container);font-weight:700}
601
+ /* The coin: credits that were on us, a face inside its rim with its own light behind (rules/colour.md § Gold). Open: credits that could be earned. */
602
+ .app-coin{--coin:12px;position:relative;display:inline-block;flex:none;width:var(--coin);height:var(--coin);border-radius:var(--radius-pill)}
603
+ .app-coin::before{content:"";position:absolute;inset:calc(var(--coin) * -.75);border-radius:inherit;background:radial-gradient(closest-side,color-mix(in srgb,var(--reward) 70%,transparent),transparent);pointer-events:none}
604
+ .app-coin::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--reward);box-shadow:inset 0 0 0 max(1px,calc(var(--coin) * .11)) var(--reward-edge)}
605
+ .app-coin--16{--coin:16px}
606
+ .app-coin--open::before{display:none}
607
+ .app-coin--open::after{background:transparent;box-shadow:inset 0 0 0 max(1.5px,calc(var(--coin) * .13)) var(--reward-edge)}
589
608
  .app-chip__close{display:inline-flex;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:inherit}
590
609
  .app-chip-group{display:flex;flex-wrap:wrap;gap:var(--space-8)}
591
610
 
@@ -1315,6 +1334,36 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1315
1334
  .app-voice__round.is-selected{background:var(--secondary-container);color:var(--on-secondary-container)}
1316
1335
  .app-voice__end{min-height:56px;padding:0 var(--space-32)}
1317
1336
  @media (max-width:599px){.app-voice{padding:var(--space-12) var(--space-16) var(--space-24)}}
1337
+ /* An interview: talking is the whole job. Progress on top, the question high in a 640 column, then the handover and a floating dock over the voice field at the foot */
1338
+ .app-voice--interview{gap:0;padding-bottom:var(--space-24)}
1339
+ .app-voice--interview>.app-voice__top,.app-voice--interview>.app-voice__body,.app-voice__handover,.app-voice__dock{position:relative;z-index:1}
1340
+ .app-voice--interview>.app-voice__top,.app-voice--interview>.app-voice__body{width:100%;max-width:640px;margin-inline:auto}
1341
+ .app-voice__top>.app-progress{flex:1}
1342
+ .app-voice--interview>.app-voice__body{justify-content:flex-start;align-items:stretch;gap:var(--space-16);padding-top:calc(var(--space-48) + var(--space-24));text-align:start}
1343
+ .app-voice__question{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-12);background:var(--background)}
1344
+ .app-voice__question>.text-prompt{margin:0;color:var(--on-surface);overflow-wrap:anywhere;white-space:pre-wrap;text-wrap:pretty}
1345
+ .app-voice__again{padding-inline:0}
1346
+ .app-voice__materials{display:flex;flex-wrap:wrap;gap:var(--space-8)}
1347
+ .app-voice__handover{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);width:100%;margin:var(--space-16) auto var(--space-24);padding-block:var(--space-8);background:var(--background);text-align:center}
1348
+ .app-voice__status{display:flex;flex-direction:column;align-items:center;gap:var(--space-4)}
1349
+ .app-voice__status>*{margin:0}
1350
+ .app-voice__handover>.app-voice__capture{margin-top:var(--space-4)}
1351
+ .app-voice__hold{min-height:56px;margin-top:var(--space-8);touch-action:none}
1352
+ /* The dock: the settled-dock pill (surface-container-high, elevation-2, no edge) holding labelled actions, a 24px glyph a weight up over a 12px label so they read at arm's length */
1353
+ .app-voice__dock{align-self:center;display:flex;align-items:center;gap:var(--space-8);width:max-content;max-width:100%;padding:var(--space-8);border-radius:var(--radius-pill);background:var(--surface-container-high);box-shadow:var(--elevation-2)}
1354
+ .app-voice__action{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);flex:none;width:80px;min-height:56px;padding:var(--space-4);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
1355
+ .app-voice__action .app-icon{font-size:24px;font-variation-settings:"FILL" 0,"wght" 500,"GRAD" 0,"opsz" 24}
1356
+ .app-voice__action.app-btn--error{width:88px;color:var(--error)}
1357
+ .app-voice__dock>.app-voice__end{padding:0 var(--space-24)}
1358
+ /* The voice field: a second voice light, dots the product draws into an svg, behind everything at the foot. It fades upward, so the handover and the dock stand on it */
1359
+ .app-voice__field{position:absolute;z-index:0;left:50%;bottom:calc(var(--space-16) * -1);width:calc(100% + var(--space-32) * 2);max-width:900px;height:258px;max-height:45%;transform:translateX(-50%);color:var(--ai-you);opacity:.75;pointer-events:none;-webkit-mask-image:linear-gradient(to top,var(--on-surface) 0,var(--on-surface) 34%,transparent 100%);mask-image:linear-gradient(to top,var(--on-surface) 0,var(--on-surface) 34%,transparent 100%);transition:color var(--spring-slow-effects),opacity var(--spring-slow-effects)}
1360
+ .app-voice__field>svg{display:block;width:100%;height:100%;fill:currentColor}
1361
+ .is-alis .app-voice__field{color:var(--ai-alis)}
1362
+ .is-muted:not(.is-alis) .app-voice__field{opacity:.4}
1363
+ @media (max-height:760px){.app-voice--interview>.app-voice__body{padding-top:var(--space-32)}.app-voice__handover{margin:var(--space-8) auto var(--space-16)}}
1364
+ @media (max-width:599px){.app-voice--interview>.app-voice__body{padding-top:var(--space-32);gap:var(--space-12)}.app-voice__handover{margin-bottom:var(--space-16)}.app-voice__dock{gap:var(--space-4);padding:var(--space-4)}.app-voice__action{width:68px}.app-voice__field{bottom:calc(var(--space-12) * -1);width:calc(100% + var(--space-16) * 2);height:230px}}
1365
+ @media (max-width:599px) and (max-height:760px){.app-voice--interview>.app-voice__body{padding-top:var(--space-16)}}
1366
+ @media (max-width:360px){.app-voice__action{width:64px}}
1318
1367
 
1319
1368
  /* ── Thread and turns · you in a bubble, Alis as prose, anyone else in a bubble under a who-line ── */
1320
1369
  .app-thread{display:flex;flex-direction:column;gap:var(--space-32);width:100%;max-width:var(--measure-prose);margin-inline:auto}
@@ -1410,6 +1459,9 @@ button.app-attachment{border:0;color:inherit;font:inherit;text-align:left;cursor
1410
1459
  .app-thread__event{display:flex;align-items:center;justify-content:center;gap:var(--space-4);margin:0;color:var(--on-surface-variant);text-align:center}
1411
1460
  .app-thread__event .app-icon{font-size:16px}
1412
1461
  .app-thread__typing{margin:0;color:var(--on-surface-variant)}
1462
+ /* New messages: the settled-dock pill, held at the thread's foot above the composer */
1463
+ .app-thread__latest{position:sticky;z-index:1;bottom:var(--space-16);align-self:center;display:inline-flex;align-items:center;gap:var(--space-8);min-height:40px;padding:0 var(--space-16) 0 var(--space-12);border:0;border-radius:var(--radius-pill);background:var(--surface-container-high);color:var(--on-surface);box-shadow:var(--elevation-2);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;white-space:nowrap}
1464
+ .app-thread__latest .app-icon{font-size:20px}
1413
1465
  .app-thread__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
1414
1466
  .app-turn__bubble.prose{white-space:normal;--prose-gap:12px;--prose-item-gap:4px;--prose-h1-size:16px;--prose-h1-line:24px;--prose-h1-tracking:0;--prose-h1-weight:600;--prose-h1-above:16px;--prose-h1-below:4px;--prose-h2-size:16px;--prose-h2-line:24px;--prose-h2-weight:600;--prose-h2-above:16px;--prose-h3-above:12px;--prose-code-size:14px}
1415
1467
  .app-turn__request{display:flex;align-items:center;gap:var(--space-8);margin-bottom:var(--space-4);white-space:normal}
@@ -1923,6 +1975,11 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1923
1975
  .app-skel__bar::after{display:none}
1924
1976
 
1925
1977
 
1978
+ .app-coin::before{display:none}
1979
+ .app-coin::after{forced-color-adjust:none;background:var(--contrast-ink);box-shadow:none}
1980
+ .app-coin--open::after{background:transparent;border:2px solid var(--contrast-ink)}
1981
+
1982
+
1926
1983
  .app-row.is-arriving{background-color:transparent}
1927
1984
 
1928
1985
 
@@ -1984,6 +2041,11 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
1984
2041
  .app-skel__bar::after{display:none}
1985
2042
 
1986
2043
 
2044
+ .app-coin::before{display:none}
2045
+ .app-coin::after{forced-color-adjust:none;background:var(--contrast-ink);box-shadow:none}
2046
+ .app-coin--open::after{background:transparent;border:2px solid var(--contrast-ink)}
2047
+
2048
+
1987
2049
  .app-row.is-arriving{background-color:transparent}
1988
2050
 
1989
2051
 
package/classes.json CHANGED
@@ -115,6 +115,9 @@
115
115
  "app-code__foot",
116
116
  "app-code__head",
117
117
  "app-code__name",
118
+ "app-coin",
119
+ "app-coin--16",
120
+ "app-coin--open",
118
121
  "app-combo",
119
122
  "app-combo__input",
120
123
  "app-combo__list",
@@ -408,6 +411,7 @@
408
411
  "app-target--none",
409
412
  "app-thread",
410
413
  "app-thread__event",
414
+ "app-thread__latest",
411
415
  "app-thread__status",
412
416
  "app-thread__typing",
413
417
  "app-tile",
@@ -455,20 +459,30 @@
455
459
  "app-turn__who",
456
460
  "app-turn__worked",
457
461
  "app-voice",
462
+ "app-voice--interview",
458
463
  "app-voice-note",
459
464
  "app-voice-note__more",
460
465
  "app-voice-note__player",
461
466
  "app-voice-note__time",
462
467
  "app-voice-note__transcript",
463
468
  "app-voice-note__wave",
469
+ "app-voice__action",
470
+ "app-voice__again",
464
471
  "app-voice__body",
465
472
  "app-voice__caption",
466
473
  "app-voice__capture",
467
474
  "app-voice__controls",
475
+ "app-voice__dock",
468
476
  "app-voice__end",
477
+ "app-voice__field",
478
+ "app-voice__handover",
479
+ "app-voice__hold",
480
+ "app-voice__materials",
469
481
  "app-voice__orb",
482
+ "app-voice__question",
470
483
  "app-voice__round",
471
484
  "app-voice__said",
485
+ "app-voice__status",
472
486
  "app-voice__title",
473
487
  "app-voice__top",
474
488
  "app-wide-only",
@@ -537,6 +551,7 @@
537
551
  "text-on-surface",
538
552
  "text-on-surface-variant",
539
553
  "text-page-title",
554
+ "text-prompt",
540
555
  "text-reading",
541
556
  "text-section-title",
542
557
  "text-selected",
@@ -587,6 +602,7 @@
587
602
  "--chart-neutral",
588
603
  "--chat-row",
589
604
  "--code-surface",
605
+ "--coin",
590
606
  "--container",
591
607
  "--contrast-edge",
592
608
  "--contrast-focus",
@@ -624,6 +640,8 @@
624
640
  "--glass-edge",
625
641
  "--glass-grid",
626
642
  "--glass-rim",
643
+ "--gold-500",
644
+ "--gold-800",
627
645
  "--green-700",
628
646
  "--grey-200",
629
647
  "--grey-250",
@@ -720,6 +738,8 @@
720
738
  "--radius-xs",
721
739
  "--rc-noise",
722
740
  "--red-700",
741
+ "--reward",
742
+ "--reward-edge",
723
743
  "--scrim",
724
744
  "--secondary-container",
725
745
  "--selection-chrome",
@@ -12,6 +12,7 @@ A code a person types to prove who they are: one emailed to them, or one their d
12
12
  - **Only what the person enters sends.** A code the page was served with, or one the server refused, waits: a refused code is sent again only once it has been changed.
13
13
  - **Errors at the field when they send**, in `error` with the `error` icon, replacing the supporting line; every cell takes the error edge. Say what to do: "Enter all 6 digits.", "That code doesn't match. Check the email and try again.", "That code has expired. Resend code to get a new one." A wrong code stays in the cells, selected, so typing replaces it.
14
14
  - **Digits or letters, never both**: an emailed code is digits (`inputmode="numeric"`, `autocomplete="one-time-code"`); a device code is letters, shown as capitals, with autocomplete off.
15
+ - **In an app on a phone**, the same field takes the phone's one-time-code autofill, so the code arrives above the keyboard from Mail or Messages: `textContentType = .oneTimeCode` on iOS, the one-time-code autofill hint on Android ([hosts.md](../rules/hosts.md) § An app is a host too).
15
16
  - **The words**: Code, Send code, Resend code, Use a different email ([words.json](../words.json)). Never OTP, PIN, passcode or verification code.
16
17
 
17
18
  ## Markup
@@ -0,0 +1,45 @@
1
+ # AppCoin
2
+
3
+ Credits that were on us, or could be earned: a gold coin, filled or open.
4
+
5
+ ## Use / don't use
6
+
7
+ See [colour.md](../rules/colour.md) § Gold. A coin is the only thing drawn in `reward`.
8
+
9
+ - **Filled**: credits a person did not pay for, free or earned. One coin beside the line that says so ("700 credits on us"), one coin per award in a tally, and the mark for that part in a usage drawing.
10
+ - **Open**: credits could be earned here. Always with words beside it: "May earn credits" where a person decides, "Earns 25 credits" where it is automatic. Only where the offer is real; when it is earned, the same place shows the filled coin and the amount.
11
+ - **The amount is ink**, in tabular numerals, never gold.
12
+ - **Sizes**: 12 beside supporting text and in a legend, 16 beside a label or leading a row. Nothing larger: a coin is a mark, not an illustration.
13
+ - **Never** a status, a category, a button, a badge on an avatar, or decoration on a page that has no credits to show. Never animated.
14
+
15
+ ## Markup
16
+
17
+ ```html
18
+ <!-- Credits on us -->
19
+ <p class="text-body"><span class="app-coin" aria-hidden="true"></span> 700 credits on us</p>
20
+
21
+ <!-- Could be earned -->
22
+ <p class="text-supporting"><span class="app-coin app-coin--open" aria-hidden="true"></span> May earn credits</p>
23
+
24
+ <!-- A tally: one coin per award, then the words -->
25
+ <div role="img" aria-label="4 awards">
26
+ <span class="app-coin app-coin--16"></span>
27
+ <span class="app-coin app-coin--16"></span>
28
+ <span class="app-coin app-coin--16"></span>
29
+ <span class="app-coin app-coin--16"></span>
30
+ </div>
31
+ <p class="text-label">40 earned · 10 given · 12 used · 18 left</p>
32
+ ```
33
+
34
+ The coin is hidden from assistive technology; the words beside it say everything it says. A row of coins is one image named by its count.
35
+
36
+ In an SVG drawing (a usage ring, a chart) the same coin is a circle filled `reward` with a stroke in `reward-edge`, about a quarter of its radius.
37
+
38
+ ## Behaviour you must supply
39
+
40
+ - Give coins in a row at least 12px between them (16 at the 16 size): the light reaches three quarters of a coin beyond its rim and must not run into its neighbour.
41
+ - Swap `app-coin--open` for the filled coin when the credits are earned, and change the words with it.
42
+
43
+ ## Classes
44
+
45
+ `.app-coin`, `.app-coin--16`, `.app-coin--open`.
@@ -30,7 +30,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
30
30
 
31
31
  | State | Trailing button (filled) | Beside it (plain) | Editor |
32
32
  |---|---|---|---|
33
- | Empty, live offered | `graphic_eq` **Talk** | `mic` "Dictate" (not on a phone) or "Record a voice note" | Placeholder |
33
+ | Empty, live offered | `voice_selection` **Talk** | `mic` "Dictate" (not on a phone) or "Record a voice note" | Placeholder |
34
34
  | Empty, mic only | `mic` **Dictate** or **Record** (on a phone, Dictate gives way to Send, disabled) | none | Placeholder |
35
35
  | Empty, no voice | `arrow_upward` "Send", disabled | none | Placeholder |
36
36
  | Something to send (text, a staged file or a quote) | `arrow_upward` "Send" | none: the voice controls leave | Live |
@@ -154,7 +154,7 @@ Select text on a screen with a dock and **Ask Alis** appears by the selection (`
154
154
  <button type="button" class="app-icon-btn app-state app-target" aria-label="Add files and more" title="Add files and more"><span class="app-icon" aria-hidden="true">add</span></button>
155
155
  <span class="app-composer__spacer"></span>
156
156
  <button type="button" class="app-icon-btn app-state app-target app-wide-only" aria-label="Dictate" title="Dictate"><span class="app-icon" aria-hidden="true">mic</span></button>
157
- <button type="button" class="app-composer__go app-state"><span class="app-icon" aria-hidden="true">graphic_eq</span><span class="app-composer__go-label">Talk</span></button>
157
+ <button type="button" class="app-composer__go app-state"><span class="app-icon" aria-hidden="true">voice_selection</span><span class="app-composer__go-label">Talk</span></button>
158
158
  </div>
159
159
  </div>
160
160
  <p class="app-composer__line text-meta">What you put here stays in your organisation.</p>
@@ -328,7 +328,7 @@ Select text on a screen with a dock and **Ask Alis** appears by the selection (`
328
328
  <div class="app-composer__row">
329
329
  <button type="button" class="app-icon-btn app-state app-target" aria-label="Add files and more" title="Add files and more"><span class="app-icon" aria-hidden="true">add</span></button>
330
330
  <span class="app-composer__spacer"></span>
331
- <button type="button" class="app-composer__go app-state"><span class="app-icon" aria-hidden="true">graphic_eq</span><span class="app-composer__go-label">Talk</span></button>
331
+ <button type="button" class="app-composer__go app-state"><span class="app-icon" aria-hidden="true">voice_selection</span><span class="app-composer__go-label">Talk</span></button>
332
332
  </div>
333
333
  <button type="button" class="app-composer__trace app-state" inert>
334
334
  <svg viewBox="0 0 30 50" aria-hidden="true" style="fill:var(--alis-red)"><circle cx="5" cy="25" r="3.7"/><circle cx="5" cy="35" r="3.7"/><circle cx="5" cy="45" r="3.7"/><circle cx="15" cy="5" r="3.7"/><circle cx="15" cy="15" r="3.7"/><circle cx="15" cy="25" r="3.7"/><circle cx="15" cy="35" r="3.7"/><circle cx="15" cy="45" r="3.7"/><circle cx="25" cy="5" r="3.7"/><circle cx="25" cy="15" r="3.7"/><circle cx="25" cy="25" r="3.7"/></svg>
@@ -227,6 +227,9 @@ Northwind 120 —</pre></li>
227
227
  <p class="app-turn__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Didn't send<button type="button" class="app-turn__line-action">Try again</button></p>
228
228
  <p class="app-turn__line text-meta is-error"><span class="app-icon" aria-hidden="true">error</span>Alis couldn't finish this reply.<button type="button" class="app-turn__line-action">Try again</button></p>
229
229
  <p class="app-turn__line text-meta">Stopped</p>
230
+
231
+ <!-- New messages: something arrived below while the person had scrolled up -->
232
+ <button type="button" class="app-thread__latest app-state app-target"><span class="app-icon" aria-hidden="true">arrow_downward</span>New messages</button>
230
233
  ```
231
234
 
232
235
  ## Behaviour you must supply
@@ -243,8 +246,9 @@ Northwind 120 —</pre></li>
243
246
  - **As the reply streams**, wrap each run of text as it arrives in `<span class="app-turn__chunk">`, so it fades in where it lands. A renderer that redraws the whole reply on every run leaves it out, or the reply would fade in again each time.
244
247
  - **On a phone**, a long press on a turn opens its actions as a menu.
245
248
  - Keep the thread pinned to the bottom while Alis writes, unless the person has scrolled up. Keep it there too when the space it has shrinks (the keyboard opening on a phone, the composer growing), if its end was in view: the latest question is what the person is answering.
249
+ - **New messages** (`.app-thread__latest`): when a turn arrives below while the person has scrolled up, so the thread doesn't follow it, show one button at the foot of the thread, centred above the composer: `arrow_downward` and "New messages". Pressing it scrolls to the latest turn, and the button leaves; it leaves too once they scroll down to it themselves. It never shows only because they scrolled up: reading back is theirs to do.
246
250
  - **People**: insert the day line before the first turn of each day; move *Seen* to the newest of your bubbles anyone has read; show the typing line while they type and drop it when their turn arrives; keep a request's state line in step with the request; write typing (once, as it starts) and each request change into the thread's status region.
247
251
 
248
252
  ## Classes
249
253
 
250
- `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`, `.is-arriving`; `.app-turn__about`, `.app-turn__who`, `.app-turn__audience`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`, `.app-turn__chunk`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on the reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while Alis thinks.
254
+ `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`, `.app-thread__latest`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`, `.is-arriving`; `.app-turn__about`, `.app-turn__who`, `.app-turn__audience`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`, `.app-turn__chunk`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on the reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while Alis thinks.
@@ -1,10 +1,10 @@
1
1
  # AppVoiceView
2
2
 
3
- A live call given room: the content area on a desktop (the focus view), the whole screen on a phone. The same call as the composer's call bar, with the voice light large.
3
+ A live call given room: the content area on a desktop (the focus view), the whole screen on a phone. The same call as the composer's call bar, with the voice light large. It has two layouts: **an Alis call**, where talking is one way to work with Alis, and **an interview**, where talking is the whole job (§ An interview).
4
4
 
5
5
  ## Use / don't use
6
6
 
7
- - **Desktop**: a call starts in [AppComposer](AppComposer.md); its `open_in_full` "Focus view" opens this view in the content area, and the navigation stays. A product may open a call here by default when talking is the whole job (an interview participant on a laptop).
7
+ - **Desktop**: a call starts in [AppComposer](AppComposer.md); its `open_in_full` "Focus view" opens this view in the content area, and the navigation stays. A product opens a call here by default when talking is the whole job: an interview, in its own layout (§ An interview).
8
8
  - **Phone**: the call is full-screen. The chevron folds it back into the composer, and the call carries on.
9
9
  - **Top**: back (`close_fullscreen` "Back to the conversation" on a desktop, `keyboard_arrow_down` "Fold into the composer" on a phone), the conversation's name in label type, captions (`closed_caption`, a toggle).
10
10
  - **Body**: the orb (the voice light, large: cool while you speak, Alis's brand red as a tint while Alis does), the status word in section-title (Connecting, Listening, Thinking, Speaking, Muted), and the caption: the last three lines said, settled words in `on-surface`, the rest in `on-surface-variant`.
@@ -12,6 +12,42 @@ A live call given room: the content area on a desktop (the focus view), the whol
12
12
  - **Controls**: mute and Type instead as 56px round buttons, and End as the filled button, 56 high. End is cyan, never red.
13
13
  - On the ground (`background`), no card, no shadow.
14
14
 
15
+ ## An interview
16
+
17
+ When talking is the whole job (someone answering an interview), the view leads with the question and hands the turn back and forth in words. Add `.app-voice--interview`. Web, iOS and Android draw this one screen; in an app it is our own screen, under the phone's status bar and nothing else.
18
+
19
+ - **Top**: [AppProgress](AppProgress.md) in the `__top` row, in place of back, title and captions: the interview's title, how far through it is in a word ("Halfway"), and the track. No captions: the answer is written down once it ends, so there are no words to show while someone talks.
20
+ - **The question** (`.app-voice__question`), high in a 640px column, left-aligned:
21
+ - the interviewer's mark: [AlisMark](AlisMark.md) at 20 high, or the client's icon on a branded interview ([branding.md](../rules/branding.md)), named for the interviewer;
22
+ - the question in `text-prompt` ([type.md](../rules/type.md)), a heading;
23
+ - **Hear the question again**, a text button (`.app-voice__again`): hidden while Alis speaks, disabled while nothing is recorded;
24
+ - shared material as [AppAttachment](AppAttachment.md) tiles in `.app-voice__materials`: a thing opens what it names, so each tile is the button.
25
+ - **The handover** (`.app-voice__handover`), centred above the dock on `background`, so the field stops behind it. The status word in `text-section-title` and its hint in `text-supporting` `on-surface-variant` (`.app-voice__status`, the live region). Under it, one of: **Unmute**; **Hold to talk** (`.app-voice__hold`, outlined, 56 high, `voice_selection`), only when the room is too noisy for turns to pass by themselves; or the capture line (`.app-voice__capture`, with a 16px `mic_off` beside the time while the microphone is muted).
26
+
27
+ | State | Word | Hint |
28
+ | --- | --- | --- |
29
+ | Getting ready | Getting ready | Allow microphone access if asked. Alis begins with a question. |
30
+ | Preparing | Preparing the question | Alis will read the question aloud. |
31
+ | Listening | Your turn | Take your time. Speak when you're ready. |
32
+ | Alis speaking (`is-alis`) | Alis is asking | You can interrupt if you need to. |
33
+ | Thinking | Considering your answer | Alis is preparing a follow-up. |
34
+ | Muted (`is-muted`) | Muted | Unmute when you're ready to answer. |
35
+ | Paused (`is-muted`) | Paused | Take a break. Resume when you're ready. |
36
+ | Reconnecting | Reconnecting | If you were mid-answer, say it again once you're back. |
37
+ | A noisy room | Your turn | It's noisy where you are. Use Hold to talk, move closer or use a headset, or type instead. |
38
+
39
+ "Alis" is the interviewer's name; on a branded interview, the client's. A failure takes the hint's line, in [errors.md](../rules/errors.md)'s words, and says the way on ("The connection dropped. Tap Resume, or type instead."). While held, Hold to talk reads "Listening… let go when you're done".
40
+ - **The dock** (`.app-voice__dock`): one floating pill on `surface-container-high` with `elevation-2` and no edge, the settled dock's pill. Its actions (`.app-voice__action`) are a 24px glyph a weight up over a 12px label, 56 high, so they read at arm's length. In this order, with Finish always last:
41
+
42
+ | When | The dock |
43
+ | --- | --- |
44
+ | Talking | Pause (`pause`; Resume, `play_arrow`, while paused) · Type instead (`keyboard`) · Show (`present_to_all`, a menu: Share your screen, Upload a file), or Upload (`upload`) where a screen can't be shared · Finish |
45
+ | Sharing a screen | Pause · Stop recording (`stop_circle`, `error` ink, never filled) · More (`more_vert`, "More recording actions", a menu: Take screenshot, Mute microphone or Unmute, then Discard recording last) · Finish |
46
+
47
+ - **Pause, not Mute.** In an interview, Pause stops both sides, and Resume goes on. Mute is only in More while a screen is recorded, because the recording carries the sound; a muted microphone always shows Unmute (under the status, or in More while sharing). An Alis call keeps Mute.
48
+ - **Finish ends the interview**, in End's place and look: filled, `primary`, `call_end`, the word "Finish" and the accessible name "Finish interview". It always asks first, in an [AppDialog](AppDialog.md): "Finish the interview?", "Your answers go to {who invited them}. You can come back to this link to add more.", then Cancel and Finish interview. Finishing keeps the dialog: [AppProgress](AppProgress.md) with its steps (Answers saved, Sending your files, Handing everything to {who}). In an app, the ask is the phone's own alert with the same words.
49
+ - **The voice field** (`.app-voice__field`): the interview's voice light, dots drawn into an svg behind everything at the foot. Fifteen rows, the dots about 36px apart; the speaker's sound flows in from the right and off to the left over about two seconds, a louder sound lighting higher, brighter rows; the edges fade out. Cool (`ai-you`) while you speak, Alis red (`ai-alis`) under `is-alis`, a client's `primary` on a branded interview; resting at .75, and at .4 under `is-muted`. The orb stays for an Alis call.
50
+
15
51
  ## Markup
16
52
 
17
53
  ```html
@@ -41,12 +77,205 @@ A live call given room: the content area on a desktop (the focus view), the whol
41
77
  </section>
42
78
  ```
43
79
 
80
+ ```html
81
+ <!-- An interview, your turn -->
82
+ <section class="app-voice app-voice--interview" aria-label="Talking with Alis">
83
+ <div class="app-voice__top">
84
+ <div class="app-progress">
85
+ <div class="app-progress__head">
86
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
87
+ <span class="app-progress__value text-meta">Halfway</span>
88
+ </div>
89
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
90
+ </div>
91
+ </div>
92
+ <div class="app-voice__body">
93
+ <div class="app-voice__question">
94
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
95
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
96
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
97
+ <div class="app-voice__materials">
98
+ <button type="button" class="app-attachment app-state">
99
+ <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">description</span></span>
100
+ <span class="app-attachment__text"><span class="text-label">Pricing page, May</span><span class="text-meta">Shared material</span></span>
101
+ </button>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ <div class="app-voice__handover">
106
+ <div class="app-voice__status" role="status" aria-atomic="true">
107
+ <p class="text-section-title">Your turn</p>
108
+ <p class="text-supporting text-on-surface-variant">Take your time. Speak when you're ready.</p>
109
+ </div>
110
+ </div>
111
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
112
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
113
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
114
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
115
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
116
+ </div>
117
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
118
+ </section>
119
+ ```
120
+
121
+ ```html
122
+ <!-- An interview, Alis is asking (is-alis): Hear the question again hides -->
123
+ <section class="app-voice app-voice--interview is-alis" aria-label="Talking with Alis">
124
+ <div class="app-voice__top">
125
+ <div class="app-progress">
126
+ <div class="app-progress__head">
127
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
128
+ <span class="app-progress__value text-meta">Halfway</span>
129
+ </div>
130
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
131
+ </div>
132
+ </div>
133
+ <div class="app-voice__body">
134
+ <div class="app-voice__question">
135
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
136
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
137
+ </div>
138
+ </div>
139
+ <div class="app-voice__handover">
140
+ <div class="app-voice__status" role="status" aria-atomic="true">
141
+ <p class="text-section-title">Alis is asking</p>
142
+ <p class="text-supporting text-on-surface-variant">You can interrupt if you need to.</p>
143
+ </div>
144
+ </div>
145
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
146
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
147
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
148
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
149
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
150
+ </div>
151
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
152
+ </section>
153
+ ```
154
+
155
+ ```html
156
+ <!-- An interview, paused (is-muted): Resume leads the dock -->
157
+ <section class="app-voice app-voice--interview is-muted" aria-label="Talking with Alis">
158
+ <div class="app-voice__top">
159
+ <div class="app-progress">
160
+ <div class="app-progress__head">
161
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
162
+ <span class="app-progress__value text-meta">Halfway</span>
163
+ </div>
164
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
165
+ </div>
166
+ </div>
167
+ <div class="app-voice__body">
168
+ <div class="app-voice__question">
169
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
170
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
171
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
172
+ </div>
173
+ </div>
174
+ <div class="app-voice__handover">
175
+ <div class="app-voice__status" role="status" aria-atomic="true">
176
+ <p class="text-section-title">Paused</p>
177
+ <p class="text-supporting text-on-surface-variant">Take a break. Resume when you're ready.</p>
178
+ </div>
179
+ </div>
180
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
181
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">play_arrow</span>Resume</button>
182
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
183
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
184
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
185
+ </div>
186
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
187
+ </section>
188
+ ```
189
+
190
+ ```html
191
+ <!-- An interview, a noisy room: Hold to talk under the status -->
192
+ <section class="app-voice app-voice--interview" aria-label="Talking with Alis">
193
+ <div class="app-voice__top">
194
+ <div class="app-progress">
195
+ <div class="app-progress__head">
196
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
197
+ <span class="app-progress__value text-meta">Halfway</span>
198
+ </div>
199
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
200
+ </div>
201
+ </div>
202
+ <div class="app-voice__body">
203
+ <div class="app-voice__question">
204
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
205
+ <h2 class="text-prompt">When you last renewed, what made you hesitate?</h2>
206
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
207
+ </div>
208
+ </div>
209
+ <div class="app-voice__handover">
210
+ <div class="app-voice__status" role="status" aria-atomic="true">
211
+ <p class="text-section-title">Your turn</p>
212
+ <p class="text-supporting text-on-surface-variant">It's noisy where you are. Use Hold to talk, move closer or use a headset, or type instead.</p>
213
+ </div>
214
+ <button type="button" class="app-btn app-btn--outlined app-state app-target app-voice__hold" aria-pressed="false"><span class="app-icon" aria-hidden="true">voice_selection</span>Hold to talk</button>
215
+ </div>
216
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
217
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
218
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">keyboard</span>Type instead</button>
219
+ <button type="button" class="app-voice__action app-state" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">present_to_all</span>Show</button>
220
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
221
+ </div>
222
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
223
+ </section>
224
+ ```
225
+
226
+ ```html
227
+ <!-- An interview, sharing a screen: Stop recording and More take the middle of the dock -->
228
+ <section class="app-voice app-voice--interview" aria-label="Talking with Alis">
229
+ <div class="app-voice__top">
230
+ <div class="app-progress">
231
+ <div class="app-progress__head">
232
+ <span class="text-label" role="heading" aria-level="1">Pricing rethink</span>
233
+ <span class="app-progress__value text-meta">Halfway</span>
234
+ </div>
235
+ <div class="app-progress__track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" aria-valuetext="Halfway" aria-label="Pricing rethink"><span class="app-progress__fill" style="width:50%"></span></div>
236
+ </div>
237
+ </div>
238
+ <div class="app-voice__body">
239
+ <div class="app-voice__question">
240
+ <svg viewBox="0 0 30 50" width="12" height="20" role="img" aria-label="Alis" style="fill:var(--signal);display:block"><!-- the eleven circles --></svg>
241
+ <h2 class="text-prompt">Show me where you'd look for the renewal price.</h2>
242
+ <button type="button" class="app-btn app-state app-target app-voice__again">Hear the question again</button>
243
+ </div>
244
+ </div>
245
+ <div class="app-voice__handover">
246
+ <div class="app-voice__status" role="status" aria-atomic="true">
247
+ <p class="text-section-title">Your turn</p>
248
+ <p class="text-supporting text-on-surface-variant">Take your time. Speak when you're ready.</p>
249
+ </div>
250
+ <div class="app-voice__capture" role="group" aria-label="Screen recording">
251
+ <button type="button" class="app-capture-thumb app-state" aria-label="Show what Alis sees" title="Show what Alis sees" aria-haspopup="dialog" aria-expanded="false"><video muted playsinline autoplay aria-hidden="true"></video></button>
252
+ <span class="app-composer__rec text-label">Recording</span>
253
+ <span class="app-composer__timer text-label" role="timer">03:18</span>
254
+ </div>
255
+ </div>
256
+ <div class="app-voice__dock" role="group" aria-label="Interview controls">
257
+ <button type="button" class="app-voice__action app-state"><span class="app-icon" aria-hidden="true">pause</span>Pause</button>
258
+ <button type="button" class="app-voice__action app-btn--error app-state"><span class="app-icon" aria-hidden="true">stop_circle</span>Stop recording</button>
259
+ <button type="button" class="app-voice__action app-state" aria-label="More recording actions" aria-haspopup="menu" aria-expanded="false"><span class="app-icon" aria-hidden="true">more_vert</span>More</button>
260
+ <button type="button" class="app-btn app-btn--filled app-state app-voice__end" aria-label="Finish interview"><span class="app-icon" aria-hidden="true">call_end</span>Finish</button>
261
+ </div>
262
+ <div class="app-voice__field" aria-hidden="true"><svg></svg></div>
263
+ </section>
264
+ ```
265
+
44
266
  ## Behaviour you must supply
45
267
 
46
268
  - The same call state as the composer's: toggle `is-alis` and `is-muted`, update the status word (a live region) and the caption. Mute is a toggle: `is-selected`, `aria-pressed` and `mic_off` while muted.
47
269
  - Back and Type instead return to the composer with the call still running and focus in the editor; End ends the call and returns too.
48
270
  - Give it the height it fills (the content area, or the viewport on a phone); it lays out inside that.
271
+ - **Keep the screen awake while a call runs**, and let it sleep again once paused, finished or left: the Screen Wake Lock on the web, the platform's idle timer in an app.
272
+ - **In an interview:**
273
+ - Draw the voice field into its svg from the live sound: fifteen rows of dots across the width, about 36px apart; a level history of about two seconds that moves from right to left; louder sound lighting higher rows, bigger and brighter, and the edges fading. Draw at most 30 frames a second, stop while the page is hidden or the field is off screen and clear the history when it comes back, and hold it still under `prefers-reduced-motion`. Remove it while finishing.
274
+ - Swap the word, the hint and the dock as the state moves (the tables above). `is-muted` covers both paused and muted; Resume is never drawn as pressed.
275
+ - Hear the question again replays the question's audio; hide it while Alis speaks.
276
+ - Hold to talk sends sound only while held: pointer capture, and Space or Enter held down for the keyboard; `aria-pressed` and the "Listening… let go when you're done" label while held.
277
+ - Finish opens the dialog (§ An interview); Cancel and Escape go back to the interview while going back is still possible.
49
278
 
50
279
  ## Classes
51
280
 
52
- `.app-voice`, `.is-alis`, `.is-muted`, `.app-voice__top`, `.app-voice__title`, `.app-voice__body`, `.app-voice__orb`, `.app-voice__caption`, `.app-voice__said`, `.app-voice__capture` (holding `.app-capture-thumb`, `.app-composer__rec` and `.app-composer__timer`), `.app-voice__controls`, `.app-voice__round`, `.is-selected`, `.app-voice__end`, with `.app-state` on its buttons.
281
+ `.app-voice`, `.is-alis`, `.is-muted`, `.app-voice__top`, `.app-voice__title`, `.app-voice__body`, `.app-voice__orb`, `.app-voice__caption`, `.app-voice__said`, `.app-voice__capture` (holding `.app-capture-thumb`, `.app-composer__rec` and `.app-composer__timer`), `.app-voice__controls`, `.app-voice__round`, `.is-selected`, `.app-voice__end`, with `.app-state` on its buttons. An interview adds `.app-voice--interview`, `.app-voice__question`, `.app-voice__again`, `.app-voice__materials`, `.app-voice__handover`, `.app-voice__status`, `.app-voice__hold`, `.app-voice__dock`, `.app-voice__action` (with `.app-btn--error` for Stop recording) and `.app-voice__field`.
@@ -34,6 +34,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
34
34
  | AppShortcutSheet | Every key the screen answers to, opened by `?`, in the detail pane's place | [AppShortcutSheet.md](AppShortcutSheet.md) |
35
35
  | AppAvatar | A person (round) or a thing (a square tile), at 24, 36 or 80 | [AppAvatar.md](AppAvatar.md) |
36
36
  | AppChip | A small fact: status, label, category, filter, input | [AppChip.md](AppChip.md) |
37
+ | AppCoin | Credits that were on us, or could be earned: a gold coin, filled or open | [AppCoin.md](AppCoin.md) |
37
38
  | AppAlert | A statement carrying one status; the snackbar | [AppAlert.md](AppAlert.md) |
38
39
  | AppDialog | A confirmation or short form over a scrim | [AppDialog.md](AppDialog.md) |
39
40
  | AppCard | Statement and instrument surfaces | [AppCard.md](AppCard.md) |