Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
2588 lines (2506 loc) · 208 KB
/
Copy pathindex.html
File metadata and controls
2588 lines (2506 loc) · 208 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="stylesheet" href="_ds/lingraphica-design-system-2d2d70f8-9cdd-4743-b4dc-39117ed3e686/styles.css">
<script src="_ds/lingraphica-design-system-2d2d70f8-9cdd-4743-b4dc-39117ed3e686/_ds_bundle.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900&display=swap" rel="stylesheet">
<style>
html,body{background-color:#0b1115;}
.gly{display:inline-flex;align-items:center;justify-content:center;flex:none}
.gly svg{width:100%;height:100%;display:block}
.iv-body::-webkit-scrollbar{width:10px}
.iv-body::-webkit-scrollbar-thumb{background-color:var(--slate-300);border-radius:5px}
.iv-tile{transition:transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;}
.iv-tile:hover{transform:translateY(-3px);box-shadow:0 8px 18px rgba(14,42,58,.14)}
.iv-tile:active{transform:translateY(0)}
.iv-key{transition:transform 60ms;}
.iv-key:hover{background-color:#e9eef3}
.iv-key:active{transform:translateY(1px);background-color:#dce4ec}
.iv-btn{transition:transform 80ms, box-shadow 120ms;}
.iv-btn:hover{transform:translateY(-1px)}
.iv-btn:active{transform:translateY(0)}
.iv-chip{transition:transform 100ms, box-shadow 120ms}
.iv-chip:hover{transform:translateY(-1px);box-shadow:0 3px 8px rgba(14,42,58,.12)}
@keyframes ivpulse{0%{transform:scale(1);opacity:.55}70%{transform:scale(2.2);opacity:0}100%{opacity:0}}
@keyframes ivfade{from{transform:translateY(12px)}to{transform:translateY(0)}}
@keyframes ivfadeop{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes ivpop{0%{transform:scale(.7)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes ivblink{0%,60%{opacity:1}61%,100%{opacity:0}}
.iv-caret{display:inline-block;width:2px;height:1.05em;background-color:var(--teal-700);margin-left:1px;vertical-align:-2px;animation:ivblink 1s step-end infinite}
.iv-sheet{animation:ivfade 240ms ease both}
.iv-fade{animation:ivfade 320ms ease both}
.iv-body{zoom:var(--iv-fs,1);}
.iv-body .gly{transform:scale(var(--iv-ps,1));transform-origin:center;transition:transform 140ms ease}
.iv-range{-webkit-appearance:none;appearance:none;width:100%;height:10px;border-radius:999px;background-color:var(--slate-200);outline:none}
.iv-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;border-radius:50%;background-color:var(--teal-700);border:3px solid #fff;box-shadow:0 2px 6px rgba(14,42,58,.35);cursor:pointer}
.iv-profile-overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:200;background-color:#F4F7FA;display:flex;flex-direction:column;overflow:hidden}
</style>
</helmet>
<template id="__bundler_thumbnail"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="#1F6F73"></rect><g transform="translate(30,28)" fill="none" stroke="#fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="0" width="14" height="26" rx="7"></rect><path d="M-5 18a16 16 0 0 0 32 0M11 36v8M0 44h22"></path></g></svg></template>
<div class="stage" style="background:radial-gradient(ellipse at 50% 28%, #1a2430 0%, #0b1115 72%);font-family:'Nunito Sans',system-ui,sans-serif">
<div class="tablet-outer" style="width:{{ outerW }}px;height:{{ outerH }}px">
<div class="tablet-wrap" style="width:1280px;height:860px;transform:{{ scaleTransform }}">
<div class="tablet">
<div class="screen" style="position:relative">
<!-- ───────── PROFILE LAUNCHER (demo save/load) ───────── -->
<sc-if value="{{ isLauncher }}" hint-placeholder-val="{{ true }}">
<div style="position:absolute;inset:0;z-index:80;background-color:var(--navy-900);display:flex;align-items:center;justify-content:center;padding:40px">
<div class="iv-fade" style="width:560px;max-width:100%;background-color:#fff;border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.45);overflow:hidden">
<div style="background-color:#EDE7DC;padding:26px 34px">
<div style="display:flex;align-items:center;gap:13px">
<div style="width:52px;height:52px;border-radius:14px;background-color:var(--teal-700);display:grid;place-items:center;flex:none">
<svg viewBox="0 0 24 24" width="28" height="28" fill="none"><circle cx="12" cy="8" r="4" stroke="#fff" stroke-width="2"/><path d="M4 20c0-4 4-6 8-6s8 2 8 6" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</div>
<div>
<div style="font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-700)">Device setup</div>
<div style="font-size:26px;font-weight:900;color:var(--navy-900);line-height:1.1">Choose a profile</div>
</div>
</div>
</div>
<div style="padding:28px 34px 32px">
<!-- new profile -->
<div style="font-size:15px;font-weight:800;color:var(--slate-600);margin-bottom:9px">Start a new profile</div>
<div style="display:flex;gap:10px">
<div class="iv-btn" onClick="{{ onNameField }}" style="cursor:text;flex:1;min-height:56px;background-color:var(--slate-050);border:2px solid {{ launchBorder }};border-radius:12px;padding:14px 16px;font-size:19px;color:{{ launchColor }};display:flex;align-items:center">{{ launchDisplay }}<sc-if value="{{ launchActive }}" hint-placeholder-val="{{ false }}"><span class="iv-caret"></span></sc-if></div>
<div class="iv-btn" onClick="{{ onCreate }}" style="cursor:pointer;padding:0 24px;min-height:56px;border-radius:12px;background-color:{{ createBg }};color:{{ createColor }};font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M12 5v14M5 12h14" stroke="currentColor" stroke-width="2.6" stroke-linecap="round"/></svg>Create
</div>
</div>
<!-- load previous -->
<sc-if value="{{ hasProfiles }}" hint-placeholder-val="{{ false }}">
<div style="display:flex;align-items:center;gap:12px;margin:26px 0 16px"><div style="flex:1;height:1px;background-color:var(--slate-200)"></div><div style="font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--slate-400)">or reload a saved profile</div><div style="flex:1;height:1px;background-color:var(--slate-200)"></div></div>
<div style="display:flex;gap:10px">
<select onChange="{{ onSelectProfile }}" value="{{ selectedProfile }}" style="flex:1;min-height:56px;background-color:#fff;border:2px solid var(--slate-300);border-radius:12px;padding:0 16px;font-size:18px;font-weight:700;color:var(--navy-900);font-family:inherit;cursor:pointer">
<option value="">Select a profile…</option>
<sc-for list="{{ profileOptions }}" as="p" hint-placeholder-count="2">
<option value="{{ p.value }}">{{ p.label }}</option>
</sc-for>
</select>
<div class="iv-btn" onClick="{{ onLoad }}" style="cursor:pointer;padding:0 24px;min-height:56px;border-radius:12px;background-color:{{ loadBg }};color:{{ loadColor }};font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4v6h6M20 20v-6h-6"/><path d="M20 9a8 8 0 0 0-14-3M4 15a8 8 0 0 0 14 3"/></svg>Load
</div>
</div>
<sc-if value="{{ canDelete }}" hint-placeholder-val="{{ false }}">
<div class="iv-btn" onClick="{{ onDeleteProfile }}" style="cursor:pointer;margin-top:12px;font-size:15px;font-weight:700;color:var(--slate-400);display:inline-flex;align-items:center;gap:7px"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M4 7h16M9 7V5h6v2M6 7l1 13h10l1-13"/></svg>Delete “{{ selectedProfile }}”</div>
</sc-if>
</sc-if>
<div style="margin-top:24px;font-size:14px;line-height:1.5;color:var(--slate-500)">Profiles are saved on this device for demo purposes. Everything you enter in the interview is stored under the profile name and reloads when you pick it again.</div>
</div>
</div>
</div>
</sc-if>
<!-- ───────── STATUS BAR (Hub Home style) ───────── -->
<div style="display:flex;align-items:stretch;height:54px;background-color:#DADDE2;flex:none">
<div style="display:flex;align-items:center;gap:10px;padding:0 22px;background-color:var(--navy-900);color:#fff;font-weight:800;font-size:18px">
<span class="gly" style="width:24px;height:24px;color:#fff"><svg viewBox="0 0 28 28" fill="none"><path d="M4 14l10-8 10 8v8c0 1-1 2-2 2H6c-1 0-2-1-2-2v-8z" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linejoin="round"></path></svg></span>
<span>Home</span>
</div>
<sc-if value="{{ conversationsOpen }}" hint-placeholder-val="{{ false }}">
<div style="display:flex;align-items:center;gap:9px;padding:0 18px;background-color:#1F5A2E;color:#fff;font-weight:800;font-size:17px">
<span class="gly" style="width:20px;height:20px;color:#fff">{{ hubConversationsIcon }}</span>Conversations
<div class="iv-btn" onClick="{{ onCloseConversations }}" style="cursor:pointer;margin-left:4px;width:20px;height:20px;border-radius:50%;background-color:rgba(255,255,255,.2);display:grid;place-items:center;font-weight:900;font-size:13px">✕</div>
</div>
</sc-if>
<div style="margin-left:auto;display:flex;align-items:center;gap:18px;font-size:16px;font-weight:700;color:var(--ink-900);padding:0 14px 0 20px">
<span>Tue, 06/30</span>
<span>10:10 AM</span>
<svg width="22" height="18" viewBox="0 0 22 18" fill="none"><path d="M11 2c5 0 9 3 10 6l-2 2c-1-2-4-4-8-4s-7 2-8 4l-2-2c1-3 5-6 10-6z" fill="#0E2A3A"></path><path d="M11 8c3 0 5 2 5 4l-2 2c-1-1-2-2-3-2s-2 1-3 2l-2-2c0-2 2-4 5-4z" fill="#0E2A3A" opacity="0.5"></path></svg>
<span>46%</span>
<svg width="28" height="14" viewBox="0 0 28 14" fill="none"><rect x="1" y="1" width="24" height="12" rx="2" fill="none" stroke="#0E2A3A" stroke-width="1.6"></rect><rect x="3" y="3" width="14" height="8" rx="1" fill="#3FA45A"></rect><rect x="25" y="4" width="2" height="6" fill="#0E2A3A"></rect></svg>
<div style="width:34px;height:34px;background-color:#fff;border-radius:6px;display:grid;place-items:center;box-shadow:0 1px 2px rgba(0,0,0,.08);color:var(--navy-900)">
<svg viewBox="0 0 24 24" width="20" height="20" fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"></circle><path d="M9 9c0-2 1-3 3-3s3 1 3 3-3 2-3 5" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><circle cx="12" cy="18" r="1.2" fill="currentColor"></circle></svg>
</div>
<div style="width:40px;height:38px;background-color:var(--teal-700);border-radius:8px;display:grid;place-items:center;opacity:.55">
<svg width="20" height="14" viewBox="0 0 20 14" fill="none"><path d="M2 2h16M2 7h16M2 12h16" stroke="#fff" stroke-width="2.2" stroke-linecap="round"></path></svg>
</div>
</div>
</div>
<!-- ───────── HEADER STRIP (progress + title) ───────── -->
<sc-if value="{{ showTopHeaderStrip }}" hint-placeholder-val="{{ true }}">
<div style="display:flex;align-items:center;gap:16px;padding:13px 26px;background-color:#EDE7DC;border-bottom:1px solid #DfD7C7;flex:none">
<sc-if value="{{ showProfile }}" hint-placeholder-val="{{ false }}">
<div class="iv-btn" onClick="{{ onCloseProfile }}" style="cursor:pointer;display:flex;align-items:center;gap:7px;font-size:15px;font-weight:800;color:var(--navy-900);padding:7px 14px 7px 10px;border-radius:999px;border:1.5px solid var(--slate-300);background-color:#fff;white-space:nowrap;flex:none"><svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M15 5l-7 7 7 7" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"></path></svg>Back</div>
<div style="width:38px;height:38px;border-radius:50%;background-color:var(--teal-600);color:#fff;display:grid;place-items:center;font-size:17px;font-weight:900;flex:none">{{ navInitial }}</div>
<div style="min-width:0">
<div style="font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-700)">Saved Profile</div>
<div style="font-size:22px;font-weight:800;color:var(--navy-900);line-height:1.15">{{ navProfile }}</div>
</div>
<div style="margin-left:auto;font-size:14px;font-weight:700;color:var(--slate-500)">{{ profileSectionCount }} sections saved</div>
</sc-if>
<sc-if value="{{ showInterview }}" hint-placeholder-val="{{ true }}">
<div style="flex:1;min-width:0;display:flex;align-items:flex-start;overflow-x:auto">
<sc-for list="{{ progressDots }}" as="d" hint-placeholder-count="6">
<sc-if value="{{ d.first }}" hint-placeholder-val="{{ true }}"><span></span></sc-if>
<sc-if value="{{ d.notFirst }}" hint-placeholder-val="{{ false }}">
<div style="width:100%;min-width:24px;height:2px;background-color:{{ d.lineColor }};margin:19px 6px 0;flex:1"></div>
</sc-if>
<div style="display:flex;flex-direction:column;align-items:center;gap:7px;flex:none">
<div onClick="{{ d.onClick }}" title="{{ d.title }}" style="cursor:pointer;width:38px;height:38px;border-radius:50%;background-color:{{ d.bg }};border:2px solid {{ d.ring }};color:{{ d.num }};display:grid;place-items:center;font-size:15px;font-weight:900;transition:all 240ms;flex:none">{{ d.content }}</div>
<div style="font-size:13px;font-weight:700;color:{{ d.labelColor }};white-space:nowrap">{{ d.label }}</div>
</div>
</sc-for>
</div>
<div style="margin-left:18px;display:flex;align-items:center;gap:14px;flex:none">
<sc-if value="{{ showNav }}" hint-placeholder-val="{{ false }}">
<div class="iv-btn" onClick="{{ onMenu }}" title="Profiles & sections" style="cursor:pointer;display:flex;align-items:center;gap:0;background-color:var(--teal-700);border-radius:999px;flex:none;overflow:hidden">
<span style="width:38px;height:38px;display:grid;place-items:center;color:#fff;font-size:16px;font-weight:900;flex:none">{{ navInitial }}</span>
<span style="width:1px;align-self:stretch;margin:8px 0;background-color:rgba(255,255,255,.3)"></span>
<span style="width:38px;height:38px;display:grid;place-items:center;flex:none">
<svg width="18" height="13" viewBox="0 0 20 14" fill="none"><path d="M2 2h16M2 7h16M2 12h16" stroke="#fff" stroke-width="2.2" stroke-linecap="round"></path></svg>
</span>
</div>
</sc-if>
</div>
</sc-if>
</div>
</sc-if>
<!-- ───────── BODY ───────── -->
<div class="iv-body" style="flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;background-color:var(--slate-050);position:relative">
<!-- PROFILE VIEWER -->
<sc-if value="{{ showProfile }}" hint-placeholder-val="{{ false }}">
<div>{{ profileView }}</div>
</sc-if>
<!-- CHAT MODE -->
<sc-if value="{{ chatMode }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;inset:0;display:flex;flex-direction:column;background-color:#F4F7FA">{{ chatView }}</div>
</sc-if>
<!-- CHAT HISTORY -->
<sc-if value="{{ showChatHistory }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;inset:0;display:flex;flex-direction:column;background-color:#F4F7FA">{{ historyView }}</div>
</sc-if>
<!-- INTRO GATE -->
<sc-if value="{{ isGate }}" hint-placeholder-val="{{ true }}">
<div class="iv-fade" style="padding:40px 56px 36px;max-width:1080px;margin:0 auto">
<div style="font-size:34px;font-weight:900;color:var(--navy-900);margin-bottom:6px">Let's set up your device.</div>
<div style="font-size:19px;color:var(--slate-600);margin-bottom:6px;max-width:760px">A few quick questions help your device sound like you </div>
<div style="display:flex;align-items:flex-start;gap:10px;max-width:760px;background-color:var(--teal-050);border:1px solid #BfE2E2;border-radius:14px;padding:14px 16px;margin-bottom:8px">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" style="flex:none;margin-top:1px"><circle cx="12" cy="12" r="10" stroke="#1F6F73" stroke-width="2"></circle><path d="M12 11v6" stroke="#1F6F73" stroke-width="2.2" stroke-linecap="round"></path><circle cx="12" cy="7.5" r="1.3" fill="#1F6F73"></circle></svg>
<div style="font-size:16px;line-height:1.5;color:var(--teal-700);font-weight:600">This is just a starting point — there are no wrong answers. Everything here can be changed anytime, and you can keep customizing your device as you go. Answer whatever feels right for now.</div>
</div>
<div onClick="{{ onSpeakPrompt }}" style="cursor:pointer;display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:800;color:var(--navy-900);margin:26px 0 14px">First — who's answering today?
<span style="width:34px;height:34px;border-radius:50%;background-color:var(--teal-050);display:grid;place-items:center" title="Hear this again"><svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M4 9v6h4l5 4V5L8 9H4z" fill="#1F6F73"></path><path d="M16 8c2 2 2 6 0 8M18 6c4 3 4 9 0 12" stroke="#1F6F73" stroke-width="2" stroke-linecap="round"></path></svg></span>
</div>
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:18px">
<sc-for list="{{ paths }}" as="p" hint-placeholder-count="3">
<div class="iv-tile" onClick="{{ p.onClick }}" style="cursor:pointer;background-color:#fff;border:2.5px solid {{ p.border }};border-radius:16px;padding:22px 20px;display:flex;flex-direction:column;gap:12px;box-shadow:{{ p.shadow }}">
<div style="width:62px;height:62px;border-radius:14px;background-color:{{ p.tint }};display:grid;place-items:center"><span class="gly" style="width:40px;height:40px">{{ p.icon }}</span></div>
<div style="font-size:21px;font-weight:800;color:var(--navy-900)">{{ p.label }}</div>
<div style="font-size:15px;line-height:1.4;color:var(--slate-600)">{{ p.desc }}</div>
</div>
</sc-for>
</div>
<div style="margin-top:22px;font-size:14px;color:var(--slate-500)">You can switch who's answering at any time — tap <b>Profiles & sections</b> at the bottom of the screen. Nothing you enter is lost.</div>
</div>
</sc-if>
<!-- QUESTION SCREENS -->
<sc-if value="{{ isQuestion }}" hint-placeholder-val="{{ false }}">
<div class="iv-fade" style="padding:30px 48px 32px;max-width:{{ questionMaxWidth }};margin:0 auto;{{ questionCenterStyle }}">
<div onClick="{{ onSpeakPrompt }}" style="cursor:pointer;display:flex;align-items:flex-start;gap:13px">
<div style="font-size:30px;font-weight:900;color:var(--navy-900);line-height:1.2">{{ prompt }}</div>
<div style="flex:none;margin-top:3px;width:42px;height:42px;border-radius:50%;background-color:var(--teal-050);display:grid;place-items:center" title="Hear this again">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M4 9v6h4l5 4V5L8 9H4z" fill="#1F6F73"></path><path d="M16 8c2 2 2 6 0 8M18 6c4 3 4 9 0 12" stroke="#1F6F73" stroke-width="2" stroke-linecap="round"></path></svg>
</div>
</div>
<sc-if value="{{ showWhy }}" hint-placeholder-val="{{ true }}">
<div style="display:inline-flex;align-items:center;gap:8px;margin-top:10px;background-color:var(--teal-050);border:1px solid #BfE2E2;color:var(--teal-700);font-size:14px;font-weight:700;padding:7px 13px;border-radius:999px">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2"></circle><path d="M12 11v6" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"></path><circle cx="12" cy="7.5" r="1.3" fill="currentColor"></circle></svg>
{{ why }}
</div>
</sc-if>
<!-- TILE GRID (single + multi) -->
<sc-if value="{{ hasTiles }}" hint-placeholder-val="{{ false }}">
<sc-if value="{{ hasGroups }}" hint-placeholder-val="{{ false }}">
<div style="margin-top:22px;display:flex;flex-direction:column;gap:18px">
<sc-for list="{{ groups }}" as="g" hint-placeholder-count="4">
<div>
<div style="display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--slate-500);margin-bottom:9px"><span class="gly" style="width:20px;height:20px">{{ g.icon }}</span>{{ g.label }}</div>
<div style="display:grid;grid-template-columns:repeat(5,1fr);gap:12px">
<sc-for list="{{ g.tiles }}" as="t" hint-placeholder-count="5">
<div class="iv-tile" onClick="{{ t.onClick }}" style="cursor:pointer;border:2px solid {{ t.border }};border-radius:12px;overflow:hidden;background-color:#fff;box-shadow:{{ t.shadow }};position:relative">
<div style="height:74px;display:grid;place-items:center;background-color:{{ t.tint }}"><span class="gly" style="width:42px;height:42px">{{ t.icon }}</span></div>
<div style="text-align:center;font-size:14px;font-weight:800;color:{{ t.labelColor }};background-color:{{ t.labelBg }};padding:7px 4px">{{ t.label }}</div>
<sc-if value="{{ t.selected }}" hint-placeholder-val="{{ false }}"><div style="position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background-color:var(--teal-700);display:grid;place-items:center;animation:ivpop 200ms ease"><svg width="14" height="14" viewBox="0 0 24 24" fill="none"><path d="M5 13l5 5 9-11" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg></div></sc-if>
</div>
</sc-for>
</div>
</div>
</sc-for>
</div>
</sc-if>
<sc-if value="{{ hasFlatTiles }}" hint-placeholder-val="{{ true }}">
<div style="margin-top:{{ tileGridMarginTop }};display:grid;grid-template-columns:repeat({{ tileCols }},1fr);gap:{{ tileGap }}">
<sc-for list="{{ tiles }}" as="t" hint-placeholder-count="8">
<div class="iv-tile" onClick="{{ t.onClick }}" style="cursor:pointer;border:2px solid {{ t.border }};border-radius:16px;overflow:hidden;background-color:#fff;box-shadow:{{ t.shadow }};position:relative">
<div style="height:{{ tileIconBoxH }};display:grid;place-items:center;background-color:{{ t.tint }}"><span class="gly" style="width:{{ tileIconSize }};height:{{ tileIconSize }}">{{ t.icon }}</span></div>
<div style="text-align:center;font-size:{{ tileLabelSize }};font-weight:800;color:{{ t.labelColor }};background-color:{{ t.labelBg }};padding:{{ tileLabelPad }}">{{ t.label }}</div>
<sc-if value="{{ t.selected }}" hint-placeholder-val="{{ false }}"><div style="position:absolute;top:7px;right:7px;width:26px;height:26px;border-radius:50%;background-color:var(--teal-700);display:grid;place-items:center;animation:ivpop 200ms ease"><svg width="15" height="15" viewBox="0 0 24 24" fill="none"><path d="M5 13l5 5 9-11" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg></div></sc-if>
</div>
</sc-for>
</div>
</sc-if>
</sc-if>
<!-- EXTRA FIELD (restaurants etc.) -->
<sc-if value="{{ hasExtra }}" hint-placeholder-val="{{ false }}">
<div style="margin-top:20px">
<div style="font-size:15px;font-weight:800;color:var(--navy-900);margin-bottom:7px">{{ extraLabel }}</div>
<div class="iv-btn" onClick="{{ onExtraField }}" style="cursor:text;background-color:#fff;border:2px solid {{ extraBorder }};border-radius:12px;min-height:54px;padding:13px 16px;font-size:18px;color:{{ extraColor }};display:flex;align-items:center">{{ extraDisplay }}<sc-if value="{{ extraActive }}" hint-placeholder-val="{{ false }}"><span class="iv-caret"></span></sc-if></div>
</div>
</sc-if>
<!-- PROFILE (preferred name + birthday + photo) -->
<sc-if value="{{ isProfile }}" hint-placeholder-val="{{ false }}">
<div style="margin-top:22px;display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:start">
<div style="display:flex;flex-direction:column;gap:18px">
<div>
<div style="font-size:15px;font-weight:800;color:var(--navy-900);margin-bottom:7px">Preferred name</div>
<div style="display:flex;align-items:center;gap:11px">
<div class="iv-btn" onClick="{{ onMic }}" style="cursor:pointer;width:54px;height:54px;border-radius:50%;background-color:var(--teal-700);color:#fff;display:grid;place-items:center;flex:none">
<svg width="26" height="26" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><rect x="19" y="8" width="10" height="18" rx="5"></rect><path d="M14 22a10 10 0 0 0 20 0M24 32v6M18 40h12"></path></svg>
</div>
<div class="iv-btn" onClick="{{ onProfName }}" style="cursor:text;flex:1;min-height:54px;background-color:var(--slate-050);border:2px solid {{ profNameBorder }};border-radius:12px;padding:13px 16px;font-size:19px;font-weight:700;color:{{ profNameColor }};display:flex;align-items:center">{{ profNameDisplay }}<sc-if value="{{ profNameActive }}" hint-placeholder-val="{{ false }}"><span class="iv-caret"></span></sc-if></div>
</div>
<div style="display:flex;gap:8px;flex-wrap:wrap;margin-top:11px">
<span style="font-size:14px;font-weight:700;color:var(--slate-500);align-self:center">Or tap:</span>
<sc-for list="{{ nameChips }}" as="k" hint-placeholder-count="4">
<div class="iv-chip" onClick="{{ k.onClick }}" style="cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;font-size:15px;font-weight:700;background-color:#F4F8F8;border:1.5px solid #C7DDDD;color:var(--teal-700)"><span style="font-weight:900">+</span>{{ k.label }}</div>
</sc-for>
</div>
</div>
<div>
<div style="font-size:15px;font-weight:800;color:var(--navy-900);margin-bottom:7px">Birthday</div>
<div class="iv-btn" onClick="{{ onBirthday }}" style="cursor:pointer;min-height:54px;background-color:var(--slate-050);border:2px solid {{ bdayBorder }};border-radius:12px;padding:13px 16px;font-size:18px;font-weight:700;color:{{ bdayColor }};display:flex;align-items:center;gap:10px">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><rect x="4" y="6" width="16" height="14" rx="2" stroke="var(--slate-500)" stroke-width="2"></rect><path d="M4 10h16M9 3v4M15 3v4" stroke="var(--slate-500)" stroke-width="2" stroke-linecap="round"></path></svg>
{{ bdayDisplay }}
</div>
<sc-if value="{{ bdayOpen }}" hint-placeholder-val="{{ false }}">
<div class="iv-sheet" style="margin-top:10px;background-color:#fff;border:1.5px solid var(--slate-200);border-radius:13px;padding:14px;display:grid;grid-template-columns:1.4fr .8fr 1fr;gap:10px">
<div>
<div style="font-size:12px;font-weight:800;color:var(--slate-500);text-transform:uppercase;margin-bottom:6px">Month</div>
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:5px">
<sc-for list="{{ months }}" as="m" hint-placeholder-count="12"><div class="iv-chip" onClick="{{ m.onClick }}" style="cursor:pointer;text-align:center;padding:8px 2px;border-radius:8px;font-size:13px;font-weight:800;border:1.5px solid {{ m.border }};background-color:{{ m.bg }};color:{{ m.color }}">{{ m.label }}</div></sc-for>
</div>
</div>
<div>
<div style="font-size:12px;font-weight:800;color:var(--slate-500);text-transform:uppercase;margin-bottom:6px">Day</div>
<div style="max-height:150px;overflow-y:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:5px">
<sc-for list="{{ days }}" as="d" hint-placeholder-count="31"><div class="iv-chip" onClick="{{ d.onClick }}" style="cursor:pointer;text-align:center;padding:8px 2px;border-radius:8px;font-size:13px;font-weight:800;border:1.5px solid {{ d.border }};background-color:{{ d.bg }};color:{{ d.color }}">{{ d.label }}</div></sc-for>
</div>
</div>
<div>
<div style="font-size:12px;font-weight:800;color:var(--slate-500);text-transform:uppercase;margin-bottom:6px">Year</div>
<div style="max-height:150px;overflow-y:auto;display:flex;flex-direction:column;gap:5px">
<sc-for list="{{ years }}" as="y" hint-placeholder-count="8"><div class="iv-chip" onClick="{{ y.onClick }}" style="cursor:pointer;text-align:center;padding:8px 2px;border-radius:8px;font-size:13px;font-weight:800;border:1.5px solid {{ y.border }};background-color:{{ y.bg }};color:{{ y.color }}">{{ y.label }}</div></sc-for>
</div>
</div>
</div>
</sc-if>
</div>
</div>
<!-- photo -->
<div style="background-color:#fff;border:1.5px solid var(--slate-200);border-radius:16px;padding:18px">
<div style="font-size:15px;font-weight:800;color:var(--navy-900);margin-bottom:12px">Profile photo</div>
<div style="display:flex;justify-content:center;margin-bottom:14px">
<div style="width:132px;height:132px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:{{ photoBg }};border:3px solid var(--slate-200)">{{ photoNode }}</div>
</div>
<label class="iv-btn" style="cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;background-color:var(--teal-700);color:#fff;font-size:16px;font-weight:800;padding:12px;border-radius:11px;margin-bottom:6px">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 8a2 2 0 0 1 2-2h2l1.5-2h7L19 6h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3z"></path><circle cx="12" cy="13" r="4"></circle></svg>
Take / upload photo
<input type="file" accept="image/*" capture="user" onChange="{{ onPhotoFile }}" style="display:none">
</label>
<div style="font-size:13px;font-weight:800;color:var(--slate-500);text-transform:uppercase;letter-spacing:.04em;margin:12px 0 8px;text-align:center">or pick a preset</div>
<div style="display:grid;grid-template-columns:repeat(5,1fr);gap:8px">
<sc-for list="{{ presets }}" as="p" hint-placeholder-count="10">
<div class="iv-chip" onClick="{{ p.onClick }}" style="cursor:pointer;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:{{ p.bg }};border:3px solid {{ p.border }};font-size:22px">{{ p.emoji }}</div>
</sc-for>
</div>
</div>
</div>
</sc-if>
<!-- SUB-PROMPTS (narrative / routine) -->
<sc-if value="{{ hasSubs }}" hint-placeholder-val="{{ false }}">
<div style="margin-top:22px;display:flex;flex-direction:column;gap:16px">
<sc-for list="{{ subs }}" as="s" hint-placeholder-count="3">
<div style="background-color:#fff;border:1.5px solid var(--slate-200);border-radius:14px;padding:16px 18px">
<div style="font-size:17px;font-weight:800;color:var(--navy-900);margin-bottom:10px">{{ s.label }}</div>
<div class="iv-btn" onClick="{{ s.onField }}" style="cursor:text;background-color:var(--slate-050);border:2px solid {{ s.border }};border-radius:11px;min-height:48px;padding:11px 14px;font-size:17px;color:{{ s.color }};display:flex;align-items:center">{{ s.display }}<sc-if value="{{ s.active }}" hint-placeholder-val="{{ false }}"><span class="iv-caret"></span></sc-if></div>
<div style="display:flex;gap:8px;flex-wrap:wrap;margin-top:11px">
<sc-for list="{{ s.chips }}" as="c" hint-placeholder-count="3">
<div class="iv-chip" onClick="{{ c.onClick }}" style="cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;font-size:14px;font-weight:700;background-color:#fff;border:1.5px solid var(--slate-300);color:var(--slate-600)"><span style="color:var(--teal-700);font-weight:900">+</span>{{ c.label }}</div>
</sc-for>
</div>
</div>
</sc-for>
</div>
</sc-if>
<!-- PEOPLE (repeatable) -->
<sc-if value="{{ isPeople }}" hint-placeholder-val="{{ false }}">
<div style="margin-top:20px;display:flex;flex-direction:column;gap:14px">
<sc-if value="{{ hasPeople }}" hint-placeholder-val="{{ false }}">
<div style="display:flex;flex-direction:column;gap:10px">
<sc-for list="{{ people }}" as="pp" hint-placeholder-count="2">
<div style="display:flex;align-items:center;gap:14px;background-color:#fff;border:1.5px solid var(--slate-200);border-radius:13px;padding:12px 14px">
<div style="width:48px;height:48px;border-radius:11px;background-color:var(--teal-050);display:grid;place-items:center;flex:none"><span class="gly" style="width:32px;height:32px">{{ pp.icon }}</span></div>
<div style="min-width:0;flex:1">
<div style="font-size:18px;font-weight:800;color:var(--navy-900)">{{ pp.name }}</div>
<div style="font-size:15px;color:var(--slate-600)">{{ pp.phrase }}</div>
</div>
<div class="iv-btn" onClick="{{ pp.onRemove }}" style="cursor:pointer;width:38px;height:38px;border-radius:9px;background-color:var(--red-050);color:var(--red-500);display:grid;place-items:center;flex:none"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M5 6h14M9 6V4h6v2M7 6l1 14h8l1-14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>
</div>
</sc-for>
</div>
</sc-if>
<div style="background-color:#fff;border:2px dashed #B8D6D7;border-radius:14px;padding:16px 18px">
<div style="font-size:15px;font-weight:800;color:var(--teal-700);text-transform:uppercase;letter-spacing:.05em;margin-bottom:11px">Add a person</div>
<div style="display:flex;flex-wrap:wrap;gap:10px">
<sc-for list="{{ relTiles }}" as="r" hint-placeholder-count="7">
<div class="iv-chip" onClick="{{ r.onClick }}" style="cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:11px;font-size:16px;font-weight:800;border:2px solid {{ r.border }};background-color:{{ r.bg }};color:{{ r.color }}"><span class="gly" style="width:24px;height:24px">{{ r.icon }}</span>{{ r.label }}</div>
</sc-for>
</div>
<sc-if value="{{ draftHasRel }}" hint-placeholder-val="{{ false }}">
<div class="iv-fade" style="margin-top:15px">
<div style="font-size:13px;font-weight:800;color:var(--slate-500);margin-bottom:5px">Their name</div>
<div style="display:flex;align-items:center;gap:11px">
<div class="iv-btn" onClick="{{ onNameMic }}" title="Speak" style="cursor:pointer;width:48px;height:48px;border-radius:50%;background-color:{{ nameMicBg }};color:#fff;display:grid;place-items:center;flex:none">
<svg width="24" height="24" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><rect x="19" y="8" width="10" height="18" rx="5"></rect><path d="M14 22a10 10 0 0 0 20 0M24 32v6M18 40h12"></path></svg>
</div>
<div class="iv-btn" onClick="{{ onPersonName }}" style="cursor:text;flex:1;background-color:var(--slate-050);border:2px solid {{ nameBorder }};border-radius:10px;min-height:48px;padding:11px 14px;font-size:17px;color:{{ nameColor }};display:flex;align-items:center">{{ nameDisplay }}<sc-if value="{{ nameActive }}" hint-placeholder-val="{{ false }}"><span class="iv-caret"></span></sc-if></div>
</div>
</div>
</sc-if>
<sc-if value="{{ draftHasName }}" hint-placeholder-val="{{ false }}">
<div class="iv-fade" style="margin-top:13px">
<div style="font-size:13px;font-weight:800;color:var(--slate-500);margin-bottom:5px">What I want to say to them <span style="color:var(--slate-400);font-weight:700">(optional)</span></div>
<div style="display:flex;align-items:center;gap:11px">
<div class="iv-btn" onClick="{{ onPhraseMic }}" title="Speak" style="cursor:pointer;width:48px;height:48px;border-radius:50%;background-color:{{ phraseMicBg }};color:#fff;display:grid;place-items:center;flex:none">
<svg width="24" height="24" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><rect x="19" y="8" width="10" height="18" rx="5"></rect><path d="M14 22a10 10 0 0 0 20 0M24 32v6M18 40h12"></path></svg>
</div>
<div class="iv-btn" onClick="{{ onPersonPhrase }}" style="cursor:text;flex:1;background-color:var(--slate-050);border:2px solid {{ phraseBorder }};border-radius:10px;min-height:48px;padding:11px 14px;font-size:17px;color:{{ phraseColor }};display:flex;align-items:center">{{ phraseDisplay }}<sc-if value="{{ phraseActive }}" hint-placeholder-val="{{ false }}"><span class="iv-caret"></span></sc-if></div>
</div>
<div style="display:flex;gap:8px;flex-wrap:wrap;margin-top:11px">
<sc-for list="{{ phraseChips }}" as="c" hint-placeholder-count="4">
<div class="iv-chip" onClick="{{ c.onClick }}" style="cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;font-size:14px;font-weight:700;background-color:#fff;border:1.5px solid var(--slate-300);color:var(--slate-600)"><span style="color:var(--teal-700);font-weight:900">+</span>{{ c.label }}</div>
</sc-for>
</div>
</div>
</sc-if>
<sc-if value="{{ draftHasName }}" hint-placeholder-val="{{ false }}">
<div class="iv-btn iv-fade" onClick="{{ onAddPerson }}" style="cursor:pointer;margin-top:15px;display:inline-flex;align-items:center;gap:8px;background-color:{{ addPersonBg }};color:{{ addPersonColor }};font-size:16px;font-weight:800;padding:11px 20px;border-radius:11px;border:2px solid {{ addPersonBg }}"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M12 5v14M5 12h14" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"></path></svg>Add this person</div>
</sc-if>
</div>
</div>
</sc-if>
<!-- ADDED CUSTOM CHIPS -->
<sc-if value="{{ hasCustom }}" hint-placeholder-val="{{ false }}">
<div style="margin-top:18px">
<div style="font-size:13px;font-weight:800;color:var(--slate-500);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px">You added</div>
<div style="display:flex;gap:9px;flex-wrap:wrap">
<sc-for list="{{ customChips }}" as="c" hint-placeholder-count="2">
<div style="display:inline-flex;align-items:center;gap:8px;background-color:var(--teal-050);border:1.5px solid var(--teal-600);border-radius:10px;padding:8px 10px 8px 12px;font-size:16px;font-weight:700;color:var(--navy-900)">{{ c.label }}<span class="iv-btn" onClick="{{ c.onRemove }}" style="cursor:pointer;color:var(--slate-500);font-weight:900;font-size:16px">×</span></div>
</sc-for>
</div>
</div>
</sc-if>
<!-- INPUT BAR (voice-forward: prominent mic, then type + chips) -->
<sc-if value="{{ hasInputBar }}" hint-placeholder-val="{{ false }}">
<!-- primary: big listening bar -->
<div class="iv-btn" onClick="{{ onMic }}" style="cursor:pointer;margin-top:24px;background-color:#fff;border:2px solid {{ micBorder }};border-radius:18px;padding:20px 24px;display:flex;align-items:center;gap:20px;box-shadow:0 6px 18px rgba(31,111,115,.10)">
<div style="position:relative;width:82px;height:82px;flex:none;display:grid;place-items:center">
<sc-if value="{{ micLive }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;inset:0;border-radius:50%;background-color:var(--teal-600);animation:ivpulse 1.5s ease-out infinite"></div>
</sc-if>
<div style="position:relative;width:74px;height:74px;border-radius:50%;background-color:var(--teal-700);display:grid;place-items:center;box-shadow:0 6px 16px rgba(31,111,115,.38)">
<svg width="38" height="38" viewBox="0 0 48 48" fill="none" stroke="#fff" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><rect x="19" y="8" width="10" height="18" rx="5"></rect><path d="M14 22a10 10 0 0 0 20 0M24 32v6M18 40h12"></path></svg>
</div>
</div>
<div style="min-width:0;flex:1">
<div style="font-size:22px;font-weight:900;color:var(--navy-900)">{{ micHeadline }}</div>
<div style="font-size:16px;color:var(--slate-500);margin-top:4px">{{ micSub }}</div>
</div>
</div>
<!-- secondary: type + tap, deliberately quieter -->
<div style="margin-top:18px;border-top:1px solid var(--slate-200);padding-top:16px">
<div style="font-size:13px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--slate-400);margin-bottom:11px">Or answer another way</div>
<div style="display:flex;align-items:center;gap:11px">
<div class="iv-btn" onClick="{{ onTextField }}" style="cursor:text;flex:1;min-height:52px;background-color:#fff;border:1.5px solid {{ textBorder }};border-radius:12px;padding:12px 16px;font-size:17px;color:{{ textColor }};display:flex;align-items:center;gap:10px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--slate-400)" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="14" rx="2"></rect><path d="M7 9h.01M11 9h.01M15 9h.01M7 13h10"></path></svg>{{ textDisplay }}<sc-if value="{{ textActive }}" hint-placeholder-val="{{ false }}"><span class="iv-caret"></span></sc-if></div>
<div class="iv-btn" onClick="{{ onAddText }}" style="cursor:pointer;width:52px;height:52px;border-radius:12px;background-color:{{ addTextBg }};color:{{ addTextColor }};display:grid;place-items:center;flex:none;border:2px solid {{ addTextBg }}" title="Add">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 5v14M5 12h14" stroke="currentColor" stroke-width="2.6" stroke-linecap="round"></path></svg>
</div>
</div>
<div style="display:flex;gap:9px;flex-wrap:wrap;margin-top:12px">
<span style="font-size:14px;font-weight:700;color:var(--slate-400);align-self:center">Common:</span>
<sc-for list="{{ keywordChips }}" as="k" hint-placeholder-count="4">
<div class="iv-chip" onClick="{{ k.onClick }}" style="cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;font-size:15px;font-weight:700;background-color:#F4F8F8;border:1.5px solid #C7DDDD;color:var(--teal-700)"><span style="font-weight:900">+</span>{{ k.label }}</div>
</sc-for>
</div>
</div>
</sc-if>
</div>
</sc-if>
<!-- RECAP (real Talk-app preview) -->
<sc-if value="{{ isRecap }}" hint-placeholder-val="{{ false }}">
<div class="iv-fade">
<div onClick="{{ onSpeakPrompt }}" style="cursor:pointer;padding:20px 32px 12px;display:flex;align-items:flex-start;gap:11px">
<div>
<div style="font-size:28px;font-weight:900;color:var(--navy-900)">Here's your Talk screen, {{ recapName }}.</div>
<div style="font-size:16px;color:var(--slate-600)">Built from your answers — {{ recapSummary }}. Tap any card on a real device to speak it.</div>
</div>
<div style="flex:none;margin-top:2px;width:38px;height:38px;border-radius:50%;background-color:var(--teal-050);display:grid;place-items:center" title="Hear this again">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4 9v6h4l5 4V5L8 9H4z" fill="#1F6F73"></path><path d="M16 8c2 2 2 6 0 8M18 6c4 3 4 9 0 12" stroke="#1F6F73" stroke-width="2" stroke-linecap="round"></path></svg>
</div>
</div>
<!-- Talk app frame -->
<div style="margin:0 24px;border:1px solid var(--slate-300);border-radius:12px;overflow:hidden;display:flex;min-height:478px;box-shadow:0 8px 24px rgba(14,42,58,.12)">
<!-- left action rail -->
<div style="width:104px;background-color:#E5F2D5;border-right:1px solid #d5e0b8;padding:13px 11px;display:flex;flex-direction:column;gap:9px;flex:none">
<div style="background-color:#F6CF88;border:2px solid #E4A656;border-radius:12px;padding:8px 4px 6px;text-align:center;font-weight:800;font-size:13px;color:#5A3D0F"><div style="height:24px;display:grid;place-items:center;margin-bottom:2px"><svg width="22" height="22" viewBox="0 0 32 32" fill="none"><path d="M16 4l3.5 8.5 9 1-7 6.5 2 9L16 24l-7.5 5 2-9-7-6.5 9-1z" stroke="#5A3D0F" stroke-width="2.2" fill="none" stroke-linejoin="round"></path></svg></div>Start</div>
<div style="background-color:#F6CF88;border:2px solid #E4A656;border-radius:12px;padding:8px 4px 6px;text-align:center;font-weight:800;font-size:13px;color:#5A3D0F"><div style="height:24px;display:grid;place-items:center;margin-bottom:2px"><svg width="22" height="22" viewBox="0 0 32 32" fill="none"><path d="M6 14h14c3 0 6 2 6 6v2" stroke="#5A3D0F" stroke-width="2.2" fill="none"></path><path d="M10 10l-4 4 4 4" stroke="#5A3D0F" stroke-width="2.2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>Back</div>
<div style="background-color:#F6CF88;border:2px solid #E4A656;border-radius:12px;padding:8px 4px 6px;text-align:center;font-weight:800;font-size:13px;color:#5A3D0F"><div style="height:24px;display:grid;place-items:center;margin-bottom:2px"><svg width="22" height="22" viewBox="0 0 32 32" fill="none"><circle cx="14" cy="14" r="8" stroke="#5A3D0F" stroke-width="2.2" fill="none"></circle><path d="M20 20l6 6" stroke="#5A3D0F" stroke-width="2.2" stroke-linecap="round"></path></svg></div>Search</div>
<div style="background-color:#F6CF88;border:2px solid #E4A656;border-radius:12px;padding:8px 4px 6px;text-align:center;font-weight:800;font-size:13px;color:#5A3D0F"><div style="height:24px;display:grid;place-items:center;margin-bottom:2px"><svg width="22" height="22" viewBox="0 0 32 32" fill="none"><path d="M20 4l8 8-16 16-8 2 2-8z" stroke="#5A3D0F" stroke-width="2.2" fill="none" stroke-linejoin="round"></path></svg></div>Editor</div>
<div style="flex:1"></div>
<div style="text-align:center;font-size:12px;color:var(--ink-700)">Page 1 of 2</div>
<div style="display:flex;gap:8px">
<div style="flex:1;background-color:#E8EEF3;border:1px solid #C9D3DC;border-radius:999px;height:34px;display:grid;place-items:center"><svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M16 4l-8 8 8 8" stroke="#0E2A3A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>
<div style="flex:1;background-color:#E8EEF3;border:1px solid #C9D3DC;border-radius:999px;height:34px;display:grid;place-items:center"><svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M8 4l8 8-8 8" stroke="#0E2A3A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>
</div>
</div>
<!-- main board -->
<div style="flex:1;min-width:0;padding:13px 16px 16px;background-color:#fff">
<sc-if value="{{ talkOpen }}" hint-placeholder-val="{{ false }}">
<div style="display:flex;align-items:center;gap:11px;margin-bottom:13px">
<div class="iv-btn" onClick="{{ onCloseFolder }}" style="cursor:pointer;display:flex;align-items:center;gap:6px;background-color:#E8EEF3;border:1px solid #C9D3DC;border-radius:999px;padding:6px 14px 6px 9px;font-size:14px;font-weight:800;color:var(--navy-900)"><svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M15 5l-7 7 7 7" stroke="#0E2A3A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>All folders</div>
<div style="display:flex;align-items:center;gap:9px;font-size:18px;font-weight:800;color:var(--navy-900)"><span class="gly" style="width:26px;height:26px">{{ openFolderIcon }}</span>{{ openFolderLabel }}</div>
</div>
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:14px">
<sc-for list="{{ openItems }}" as="c" hint-placeholder-count="3">
<div class="iv-tile" style="border:1px solid var(--slate-300);border-radius:6px;overflow:hidden;background-color:#fff">
<div style="height:100px;display:grid;place-items:center;background:{{ c.wash }}"><span class="gly" style="width:46px;height:46px">{{ c.icon }}</span></div>
<div style="padding:10px 12px;font-size:15px;font-weight:700;color:var(--navy-900)">{{ c.label }}</div>
</div>
</sc-for>
</div>
</sc-if>
<sc-if value="{{ talkClosed }}" hint-placeholder-val="{{ true }}">
<div style="font-size:18px;font-weight:800;color:#C99A00;margin-bottom:11px">Start</div>
<div style="display:grid;grid-template-columns:repeat(3,1fr);gap:14px">
<sc-for list="{{ talkFolders }}" as="f" hint-placeholder-count="6">
<div class="iv-tile" onClick="{{ f.onOpen }}" style="cursor:pointer;position:relative;border:1px solid var(--slate-300);border-radius:6px;overflow:hidden;background-color:#fff">
<div style="position:absolute;top:-1px;left:12px;width:62px;height:13px;background-color:#46586A;border-radius:5px 5px 0 0;z-index:1"></div>
<div style="height:114px;display:grid;place-items:center;background:{{ f.wash }}"><span class="gly" style="width:52px;height:52px">{{ f.icon }}</span></div>
<div style="padding:11px 13px;background-color:#5B6E7E;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px"><span style="font-size:16px;font-weight:700">{{ f.label }}</span><span style="font-size:13px;font-weight:800;background-color:rgba(255,255,255,.22);border-radius:999px;padding:1px 9px">{{ f.count }}</span></div>
</div>
</sc-for>
</div>
</sc-if>
</div>
</div>
<!-- CTAs -->
<div style="padding:22px 32px 30px;display:flex;align-items:center;gap:14px;flex-wrap:wrap">
<div class="iv-btn" onClick="{{ onStart }}" style="cursor:pointer;background-color:var(--teal-700);color:#fff;font-size:21px;font-weight:800;padding:16px 30px;border-radius:14px;display:inline-flex;align-items:center;gap:11px;box-shadow:0 6px 16px rgba(31,111,115,.32)">
<svg width="26" height="26" viewBox="0 0 28 28" fill="none"><path d="M6 10c0-2 2-4 4-4s4 2 4 4v4" stroke="#fff" stroke-width="2.2" stroke-linecap="round"></path><circle cx="14" cy="18" r="4" fill="#fff"></circle><path d="M10 22c2 2 6 2 8 0" stroke="#fff" stroke-width="2.2" stroke-linecap="round"></path></svg>
Start using my device
</div>
<div class="iv-btn" onClick="{{ onOpenProfile }}" style="cursor:pointer;background-color:#fff;color:var(--navy-900);font-size:17px;font-weight:800;padding:15px 24px;border-radius:14px;border:2px solid var(--slate-300)">View saved profile</div>
</div>
</div>
</sc-if>
<!-- DONE -->
<sc-if value="{{ isDone }}" hint-placeholder-val="{{ false }}">
<div class="iv-fade" style="padding:60px 56px;max-width:840px;margin:0 auto;text-align:center">
<div style="width:96px;height:96px;border-radius:50%;background-color:#E3F4E4;border:2px solid #7BC67E;display:grid;place-items:center;margin:0 auto 22px"><svg width="56" height="56" viewBox="0 0 64 64" fill="none"><path d="M16 33l11 11 21-23" stroke="#3FA45A" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>
<div style="font-size:34px;font-weight:900;color:var(--navy-900)">You're all set, {{ recapName }}.</div>
<div style="font-size:19px;color:var(--slate-600);margin-top:10px;line-height:1.5">Your device now speaks in your words. Your profile keeps growing — add to it any time from <b>Settings → My Profile</b>, and we'll check in now and then to keep it fresh.</div>
<div style="display:flex;gap:13px;justify-content:center;margin-top:30px;flex-wrap:wrap">
<div class="iv-btn" onClick="{{ onGoTalk }}" style="cursor:pointer;background-color:var(--teal-700);color:#fff;font-size:19px;font-weight:800;padding:15px 28px;border-radius:13px">Open Talk</div>
<div class="iv-btn" onClick="{{ onRestart }}" style="cursor:pointer;background-color:#fff;color:var(--navy-900);font-size:17px;font-weight:800;padding:15px 24px;border-radius:13px;border:2px solid var(--slate-300)">Restart the interview</div>
</div>
</div>
</sc-if>
<!-- HOME HUB -->
<sc-if value="{{ isHub }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;inset:0;display:flex;flex-direction:column;background-color:#fff">
<div style="flex:none;display:flex;align-items:center;gap:18px;padding:20px 30px;background-color:#EDE7DC">
<div style="width:56px;height:56px;border-radius:50%;background-color:#fff;display:grid;place-items:center;font-size:28px">☀️</div>
<div style="font-size:26px;font-weight:800;color:var(--navy-900)">Good {{ hubTimeOfDay }}, {{ recapName }}!</div>
<div style="margin-left:auto;display:flex;align-items:center;gap:36px">
<div style="text-align:center">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" style="margin:0 auto"><path d="M11 5v6l4 4" stroke="var(--navy-900)" stroke-width="2" stroke-linecap="round"></path><path d="M4 9v6h4l5 4V5L8 9H4z" fill="var(--navy-900)"></path></svg>
<div style="font-size:14px;font-weight:700;color:var(--navy-900);margin-top:4px">Volume</div>
</div>
<div style="text-align:center">
<div style="width:26px;height:26px;border-radius:50%;border:2px solid var(--navy-900);display:grid;place-items:center;font-weight:800;font-size:15px;margin:0 auto">?</div>
<div style="font-size:14px;font-weight:700;color:var(--navy-900);margin-top:4px">Help</div>
</div>
</div>
</div>
<div style="flex:1;min-height:0;overflow-y:auto;padding:36px 60px;position:relative">
<div style="display:grid;grid-template-columns:repeat(2,1fr);gap:24px;max-width:640px;margin:0 auto">
<sc-for list="{{ hubTiles }}" as="t" hint-placeholder-count="6">
<div class="iv-tile" onClick="{{ t.onClick }}" style="cursor:pointer;border-radius:14px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.08)">
<div style="height:150px;background-color:{{ t.tint }};display:grid;place-items:center"><span class="gly" style="width:64px;height:64px">{{ t.icon }}</span></div>
<div style="background-color:{{ t.bar }};color:#fff;text-align:center;padding:14px;font-size:19px;font-weight:800">{{ t.label }}</div>
</div>
</sc-for>
</div>
</div>
</div>
</sc-if>
<!-- CONVERSATIONS APP -->
<sc-if value="{{ conversationsOpen }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;inset:0;display:flex;flex-direction:column;background-color:#DCE9F5">
<div style="flex:1;min-height:0;display:flex;gap:16px;padding:20px 24px;overflow:hidden">
<!-- LEFT: transcript -->
<div style="flex:1;min-width:0;display:flex;flex-direction:column;background-color:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.06)">
<div style="flex:none;display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--slate-200)">
<div class="iv-btn" onClick="{{ onConvMic }}" style="cursor:pointer;width:52px;height:52px;border-radius:50%;background-color:{{ convMicBg }};display:grid;place-items:center;flex:none">
<svg width="24" height="24" viewBox="0 0 48 48" fill="none" stroke="#fff" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><rect x="19" y="8" width="10" height="18" rx="5"></rect><path d="M13 22a11 11 0 0 0 22 0"></path><path d="M24 33v6"></path></svg>
</div>
<div style="font-size:18px;font-weight:800;color:var(--navy-900)">{{ convMicLabel }}</div>
<div class="iv-btn" onClick="{{ onClearConversation }}" style="cursor:pointer;margin-left:auto;display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--slate-600);border:1.5px solid var(--slate-300);border-radius:999px;padding:7px 14px">✕ Clear</div>
</div>
<div style="flex:1;min-height:0;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px">
<sc-for list="{{ convBubbles }}" as="b" hint-placeholder-count="0">
<div style="display:flex;justify-content:{{ b.align }}">
<div style="max-width:75%;padding:11px 15px;border-radius:14px;font-size:16px;line-height:1.4;background-color:{{ b.bg }};color:{{ b.color }}">{{ b.text }}</div>
</div>
</sc-for>
</div>
<div style="flex:none;display:flex;align-items:center;gap:10px;padding:14px 18px;border-top:1px solid var(--slate-200)">
<input value="{{ convCustomText }}" onChange="{{ onConvCustomChange }}" placeholder="Tap to type or edit a response" style="flex:1;min-height:44px;border:1.5px solid var(--slate-300);border-radius:10px;padding:0 14px;font-size:15px;font-family:inherit;color:var(--navy-900)"></input>
<div class="iv-btn" onClick="{{ onSendConvCustom }}" style="cursor:pointer;width:44px;height:44px;border-radius:10px;background-color:var(--slate-600);display:grid;place-items:center;flex:none">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4 4l16 8-16 8 4-8z" fill="#fff"></path></svg>
</div>
</div>
</div>
<!-- RIGHT: keywords + responses -->
<div style="flex:1;min-width:0;display:flex;flex-direction:column;gap:16px;overflow-y:auto">
<div style="background-color:#DCE9F5;border-radius:12px;padding:16px 18px">
<div style="display:flex;align-items:center;font-size:16px;font-weight:800;color:var(--navy-900);margin-bottom:11px">Key Words
<div class="iv-btn" onClick="{{ onRefreshKeywords }}" style="cursor:pointer;margin-left:auto;display:flex;align-items:center;gap:5px;font-size:13px;font-weight:700;color:#1F6F73"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4v6h6M20 20v-6h-6"/><path d="M20 9a8 8 0 0 0-14-3M4 15a8 8 0 0 0 14 3"/></svg>Refresh</div>
</div>
<div style="display:flex;flex-wrap:wrap;gap:9px">
<sc-for list="{{ convKeywords }}" as="k" hint-placeholder-count="5">
<div class="iv-chip" onClick="{{ k.onClick }}" style="cursor:pointer;background-color:#fff;border:1.5px solid var(--slate-300);border-radius:999px;padding:9px 16px;font-size:15px;font-weight:700;color:var(--navy-900)">{{ k.label }}</div>
</sc-for>
</div>
</div>
<div>
<div style="font-size:16px;font-weight:800;color:var(--navy-900);margin-bottom:10px">Response</div>
<div style="display:flex;flex-direction:column;gap:10px">
<sc-for list="{{ convResponses }}" as="r" hint-placeholder-count="4">
<div onClick="{{ r.onClickCard }}" style="cursor:pointer;display:flex;align-items:center;gap:12px;background-color:{{ r.bg }};color:{{ r.color }};border-radius:12px;padding:14px 16px">
<span class="gly" style="width:26px;height:26px;flex:none">{{ r.kindIcon }}</span>
<sc-if value="{{ r.editing }}" hint-placeholder-val="{{ false }}">
<input value="{{ r.editVal }}" onChange="{{ r.onEditChange }}" onClick="{{ r.stop }}" style="flex:1;font-size:17px;font-weight:700;border:1.5px solid rgba(0,0,0,.25);border-radius:8px;padding:6px 10px;font-family:inherit;background-color:#fff;color:var(--navy-900)"></input>
</sc-if>
<sc-if value="{{ r.editing }}" hint-placeholder-val="{{ false }}">
<div class="iv-btn" onClick="{{ r.onSaveEdit }}" style="cursor:pointer;flex:none;width:34px;height:34px;border-radius:8px;background-color:rgba(255,255,255,.5);display:grid;place-items:center;font-weight:900">✓</div>
</sc-if>
<sc-if value="{{ r.notEditing }}" hint-placeholder-val="{{ true }}"><span style="flex:1;font-size:17px;font-weight:700">{{ r.text }}</span></sc-if>
<div class="iv-btn" onClick="{{ r.onEdit }}" style="cursor:pointer;flex:none;width:34px;height:34px;border-radius:8px;background-color:rgba(0,0,0,.12);display:grid;place-items:center">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"/></svg>
</div>
<div class="iv-btn" onClick="{{ r.onRefresh }}" style="cursor:pointer;flex:none;width:34px;height:34px;border-radius:8px;background-color:rgba(0,0,0,.12);display:grid;place-items:center">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4v6h6M20 20v-6h-6"/><path d="M20 9a8 8 0 0 0-14-3M4 15a8 8 0 0 0 14 3"/></svg>
</div>
</div>
</sc-for>
</div>
</div>
<div style="font-size:13px;color:var(--slate-500);margin-top:auto">AI can make errors. Please double-check responses.</div>
</div>
</div>
</div>
</sc-if>
</div>
<!-- ───────── FOOTER ───────── -->
<sc-if value="{{ showFooter }}" hint-placeholder-val="{{ false }}">
<div style="flex:none;display:flex;align-items:center;gap:14px;padding:14px 30px;background-color:#fff;border-top:1.5px solid var(--slate-200)">
<div class="iv-btn" onClick="{{ onBack }}" style="cursor:{{ backCursor }};opacity:{{ backOpacity }};display:inline-flex;align-items:center;gap:7px;font-size:16px;font-weight:800;color:var(--slate-600);padding:11px 18px;border-radius:11px;border:2px solid var(--slate-200);background-color:#fff">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M15 5l-7 7 7 7" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"></path></svg>Back
</div>
<div class="iv-btn" onClick="{{ onLater }}" style="cursor:pointer;font-size:15px;font-weight:700;color:var(--slate-500);padding:11px 8px">Save & finish later</div>
<div style="margin-left:auto;display:flex;align-items:center;gap:11px">
<div class="iv-btn" onClick="{{ onSkip }}" style="cursor:pointer;font-size:16px;font-weight:800;color:var(--slate-600);padding:12px 22px;border-radius:11px;border:2px solid var(--slate-200);background-color:#fff">Skip</div>
<div class="iv-btn" onClick="{{ onNext }}" style="cursor:pointer;font-size:18px;font-weight:800;color:#fff;background-color:var(--teal-700);padding:13px 30px;border-radius:11px;display:inline-flex;align-items:center;gap:9px;box-shadow:0 4px 12px rgba(31,111,115,.28)">{{ nextLabel }}<svg width="19" height="19" viewBox="0 0 24 24" fill="none"><path d="M9 5l7 7-7 7" stroke="#fff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>
</div>
</div>
</sc-if>
<!-- ───────── REFLECTION OVERLAY ───────── -->
<sc-if value="{{ showReflect }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;inset:0;background-color:rgba(14,42,58,.5);display:grid;place-items:center;z-index:40">
<div class="iv-sheet" style="background-color:#fff;border-radius:20px;padding:34px 40px;width:560px;max-width:88%;text-align:center;box-shadow:0 30px 70px rgba(0,0,0,.4)">
<div style="width:74px;height:74px;border-radius:50%;background-color:var(--teal-050);display:grid;place-items:center;margin:0 auto 16px;animation:ivpop 320ms ease"><svg width="42" height="42" viewBox="0 0 64 64" fill="none"><path d="M16 33l11 11 21-23" stroke="#1F6F73" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>
<div style="font-size:40px;font-weight:900;color:var(--teal-700);line-height:1;animation:ivpop 360ms ease">{{ reflectCount }}</div>
<div style="font-size:21px;font-weight:800;color:var(--navy-900);margin-top:6px">{{ reflectMsg }}</div>
<div style="display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin-top:18px">
<sc-for list="{{ reflectChips }}" as="c" hint-placeholder-count="3">
<div style="display:inline-flex;align-items:center;gap:7px;background-color:var(--slate-050);border:1.5px solid var(--slate-200);border-radius:10px;padding:7px 12px 7px 8px;font-size:16px;font-weight:700;color:var(--navy-900)"><span class="gly" style="width:26px;height:26px">{{ c.icon }}</span>{{ c.label }}</div>
</sc-for>
</div>
<div class="iv-btn" onClick="{{ onReflectContinue }}" style="cursor:pointer;margin-top:24px;background-color:var(--teal-700);color:#fff;font-size:18px;font-weight:800;padding:13px 30px;border-radius:12px;display:inline-block">Keep going</div>
<div class="iv-btn" onClick="{{ onDontShowReflect }}" style="cursor:pointer;margin-top:14px;font-size:14px;font-weight:700;color:var(--slate-500);display:flex;align-items:center;justify-content:center;gap:7px">
<span style="width:17px;height:17px;border-radius:4px;border:2px solid var(--slate-300);display:inline-block"></span>
Don't show this after every step
</div>
</div>
</div>
</sc-if>
<!-- ───────── MIC LISTENING OVERLAY ───────── -->
<sc-if value="{{ listening }}" hint-placeholder-val="{{ false }}">
<div onClick="{{ onMic }}" style="cursor:pointer;position:absolute;inset:0;background-color:rgba(14,42,58,.55);display:grid;place-items:center;z-index:50">
<div class="iv-sheet" style="background-color:#fff;border-radius:20px;padding:36px 44px;text-align:center;box-shadow:0 30px 70px rgba(0,0,0,.4)">
<div style="position:relative;width:96px;height:96px;margin:0 auto 18px;display:grid;place-items:center">
<div style="position:absolute;inset:0;border-radius:50%;background-color:var(--teal-600);animation:ivpulse 1.4s ease-out infinite"></div>
<div style="position:relative;width:84px;height:84px;border-radius:50%;background-color:var(--teal-700);display:grid;place-items:center">
<svg width="40" height="40" viewBox="0 0 48 48" fill="none" stroke="#fff" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><rect x="19" y="8" width="10" height="18" rx="5"></rect><path d="M14 22a10 10 0 0 0 20 0M24 32v6M18 40h12"></path></svg>
</div>
</div>
<div style="font-size:22px;font-weight:800;color:var(--navy-900)">Listening…</div>
<div style="font-size:15px;color:var(--slate-500);margin-top:6px">Speak naturally — say it however you like.</div>
</div>
</div>
</sc-if>
<!-- ───────── ON-SCREEN KEYBOARD ───────── -->
<sc-if value="{{ showKb }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;left:0;right:0;bottom:0;background-color:#CdD2D9;border-top:1px solid #B6BCC4;padding:12px 16px 16px;z-index:95;animation:ivfade 180ms ease both">
<div style="display:flex;align-items:center;gap:10px;background-color:#fff;border-radius:11px;padding:11px 15px;margin-bottom:11px;min-height:50px">
<span style="font-size:13px;font-weight:800;color:var(--slate-400);text-transform:uppercase;letter-spacing:.05em">{{ kbLabel }}</span>
<span style="font-size:19px;font-weight:700;color:var(--navy-900)">{{ kbValue }}</span><span class="iv-caret"></span>
<div class="iv-btn" onClick="{{ onKbDone }}" style="margin-left:auto;cursor:pointer;background-color:var(--teal-700);color:#fff;font-size:15px;font-weight:800;padding:9px 22px;border-radius:9px">{{ kbDoneLabel }}</div>
</div>
<div style="display:flex;flex-direction:column;gap:8px">
<sc-for list="{{ keyRows }}" as="row" hint-placeholder-count="3">
<div style="display:flex;gap:8px;justify-content:center">
<sc-for list="{{ row.keys }}" as="k" hint-placeholder-count="10">
<div class="iv-key" onClick="{{ k.onClick }}" style="cursor:pointer;flex:{{ k.flex }};min-width:0;height:54px;background-color:{{ k.bg }};color:{{ k.color }};border-radius:9px;display:grid;place-items:center;font-size:20px;font-weight:700;box-shadow:0 1px 0 rgba(0,0,0,.15);user-select:none">{{ k.label }}</div>
</sc-for>
</div>
</sc-for>
</div>
</div>
</sc-if>
<!-- ───────── SETTINGS SHEET ───────── -->
<sc-if value="{{ showMenu }}" hint-placeholder-val="{{ false }}">
<div onClick="{{ onCloseMenu }}" style="position:absolute;inset:0;background-color:rgba(14,42,58,.4);z-index:60;display:flex;justify-content:flex-end">
<div onClick="{{ stop }}" class="iv-sheet" style="width:430px;max-width:88%;height:100%;background-color:#fff;box-shadow:-12px 0 40px rgba(0,0,0,.3);display:flex;flex-direction:column">
<div style="display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background-color:var(--navy-900);color:#fff">
<div style="font-size:20px;font-weight:800">Profile & Settings</div>
<div class="iv-btn" onClick="{{ onCloseMenu }}" style="cursor:pointer;width:36px;height:36px;border-radius:9px;background-color:rgba(255,255,255,.14);display:grid;place-items:center"><svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M6 6l12 12M18 6L6 18" stroke="#fff" stroke-width="2.4" stroke-linecap="round"></path></svg></div>
</div>
<div style="flex:1;overflow-y:auto;padding:22px 24px;display:flex;flex-direction:column;gap:22px">
<div>
<div style="font-size:14px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--slate-500);margin-bottom:5px">Who's answering</div>
<div style="font-size:14px;color:var(--slate-500);margin-bottom:12px">Switch any time — every answer is kept.</div>
<div style="display:flex;flex-direction:column;gap:10px">
<sc-for list="{{ menuPaths }}" as="p" hint-placeholder-count="3">
<div class="iv-btn" onClick="{{ p.onClick }}" style="cursor:pointer;display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:13px;border:2px solid {{ p.border }};background-color:{{ p.bg }}">
<span class="gly" style="width:34px;height:34px;background-color:{{ p.tint }};border-radius:9px">{{ p.icon }}</span>
<div style="min-width:0"><div style="font-size:17px;font-weight:800;color:var(--navy-900)">{{ p.label }}</div><div style="font-size:13px;color:var(--slate-500)">{{ p.short }}</div></div>
<sc-if value="{{ p.active }}" hint-placeholder-val="{{ false }}"><span style="margin-left:auto;color:var(--teal-700);font-weight:900;font-size:14px">CURRENT</span></sc-if>
</div>
</sc-for>
</div>
</div>
<div style="background-color:var(--slate-050);border:1px solid var(--slate-200);border-radius:13px;padding:15px 16px">
<div style="display:flex;align-items:center;gap:9px;font-size:16px;font-weight:800;color:var(--navy-900)"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M5 13l4 4 10-12" stroke="#3FA45A" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"></path></svg>Progress saved automatically</div>
<div style="font-size:14px;color:var(--slate-500);margin-top:5px">You can leave and come back any time. Your profile stays editable from <b>Settings → My Profile</b> — personalization is ongoing.</div>
</div>
<div>
<div style="font-size:14px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--slate-500);margin-bottom:10px">Display settings</div>
<div style="background-color:#fff;border:1px solid var(--slate-200);border-radius:13px;padding:16px 18px;display:flex;flex-direction:column;gap:20px">
<div>
<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:11px">
<span style="display:flex;align-items:center;gap:9px;font-size:16px;font-weight:800;color:var(--navy-900)"><span style="font-size:15px;font-weight:800">A</span>Font size<span style="font-size:24px;font-weight:800">A</span></span>
<span style="font-size:14px;font-weight:800;color:var(--teal-700);background-color:var(--teal-050);padding:3px 10px;border-radius:999px">{{ fontPct }}</span>
</div>
<input type="range" class="iv-range" min="0.85" max="1.5" step="0.05" value="{{ fontScale }}" onChange="{{ onFontScale }}">
</div>
<div>
<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:11px">
<span style="display:flex;align-items:center;gap:9px;font-size:16px;font-weight:800;color:var(--navy-900)"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="var(--slate-500)" stroke-width="2"><rect x="3" y="5" width="18" height="14" rx="2"></rect><circle cx="9" cy="10" r="1.6"></circle><path d="M4 17l5-4 4 3 3-2 4 3"></path></svg>Picture size<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="var(--slate-500)" stroke-width="2"><rect x="3" y="5" width="18" height="14" rx="2"></rect><circle cx="9" cy="10" r="1.6"></circle><path d="M4 17l5-4 4 3 3-2 4 3"></path></svg></span>
<span style="font-size:14px;font-weight:800;color:var(--teal-700);background-color:var(--teal-050);padding:3px 10px;border-radius:999px">{{ picPct }}</span>
</div>
<input type="range" class="iv-range" min="0.85" max="1.5" step="0.05" value="{{ picScale }}" onChange="{{ onPicScale }}">
</div>
<div style="display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--slate-200)">
<div style="min-width:0">
<div style="font-size:16px;font-weight:800;color:var(--navy-900)">Microphone access</div>
<div style="font-size:13px;color:var(--slate-500);margin-top:2px">{{ micStatusText }}</div>
</div>
<div class="iv-btn" onClick="{{ onRequestMic }}" style="cursor:pointer;flex:none;font-size:14px;font-weight:800;color:{{ micBtnColor }};background-color:{{ micBtnBg }};padding:9px 16px;border-radius:10px">{{ micBtnLabel }}</div>
</div>
<div style="display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--slate-200)">
<div style="min-width:0">
<div style="font-size:16px;font-weight:800;color:var(--navy-900)">Auto-speak questions</div>
<div style="font-size:13px;color:var(--slate-500);margin-top:2px">Read each question aloud during setup</div>
</div>
<div onClick="{{ onToggleAutoSpeak }}" role="switch" style="cursor:pointer;flex:none;width:50px;height:29px;border-radius:999px;background-color:{{ autoSpeakTrackBg }};position:relative;transition:background-color 160ms">
<div style="position:absolute;top:3px;left:{{ autoSpeakKnobLeft }};width:23px;height:23px;border-radius:50%;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left 160ms"></div>
</div>
</div>
</div>
</div>
<div class="iv-btn" onClick="{{ onSwitchProfile }}" style="cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;font-size:15px;font-weight:800;color:var(--navy-900);padding:12px;border-radius:11px;border:2px solid var(--slate-300);background-color:#fff;margin-bottom:10px"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4v6h6M20 20v-6h-6"/><path d="M20 9a8 8 0 0 0-14-3M4 15a8 8 0 0 0 14 3"/></svg>Save & switch profile</div>
<div class="iv-btn" onClick="{{ onRestart }}" style="cursor:pointer;text-align:center;font-size:15px;font-weight:800;color:var(--red-500);padding:12px;border-radius:11px;border:2px solid var(--red-400);background-color:var(--red-050)">Start over</div>
</div>
</div>
</div>
</sc-if>
<!-- ───────── PROFILE VIEWER ───────── -->
<!-- TOAST -->
<sc-if value="{{ showToast }}" hint-placeholder-val="{{ false }}">
<div style="position:absolute;top:70px;left:50%;transform:translateX(-50%);background-color:var(--navy-900);color:#fff;padding:11px 20px;border-radius:999px;font-size:15px;font-weight:700;z-index:70;animation:ivfade 200ms ease both;box-shadow:0 8px 24px rgba(0,0,0,.3)">{{ toastMsg }}</div>
</sc-if>
</div>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props="{"startPath":{"editor":"enum","options":["Ask on first screen","Device User","Care Partner","SLP"],"default":"Ask on first screen","tsType":"string","section":"Demo"},"showWhy":{"editor":"boolean","default":true,"tsType":"boolean","section":"Demo"}}">
// ───────── Icons (chunky monoline, Lingraphica style) ─────────
const S = (p, o = '') => `<svg viewBox="0 0 48 48" fill="none" stroke="#0E2A3A" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" ${o}>${p}</svg>`;
const ICONS = {
// people / paths
user: S(`<circle cx="24" cy="15" r="7"/><path d="M10 40c0-8 6-13 14-13s14 5 14 13"/>`),
partner: S(`<circle cx="17" cy="16" r="5.5"/><circle cx="32" cy="18" r="4.5"/><path d="M7 39c0-6 4-10 10-10s10 4 10 10M27 39c0-5 3-8 7-8"/>`),
slp: S(`<path d="M16 8v12a8 8 0 0 0 16 0V8" /><circle cx="16" cy="8" r="2"/><circle cx="32" cy="8" r="2"/><path d="M24 28v6a6 6 0 0 0 12 0v-3"/><circle cx="36" cy="29" r="3"/>`),
family: S(`<circle cx="17" cy="15" r="5"/><circle cx="31" cy="15" r="5"/><path d="M8 38c0-6 4-9 9-9s9 3 9 9M22 38c0-6 4-9 9-9s9 3 9 9"/>`),
person: S(`<circle cx="24" cy="14" r="7"/><path d="M11 40c0-8 6-12 13-12s13 4 13 12"/>`),
son: S(`<circle cx="24" cy="13" r="6"/><path d="M14 40v-8a10 10 0 0 1 20 0v8M18 22h12"/>`),
daughter: S(`<circle cx="24" cy="13" r="6"/><path d="M14 40l5-15a5 5 0 0 1 10 0l5 15z"/>`),
friend: S(`<circle cx="18" cy="16" r="5"/><circle cx="33" cy="18" r="4"/><path d="M9 39c0-6 4-9 9-9s9 3 9 9M28 39c0-5 3-8 7-8"/>`),
doctor: S(`<circle cx="24" cy="24" r="14"/><path d="M24 17v14M17 24h14"/>`, 'stroke="#1F6F73"'),
caregiver: S(`<path d="M24 31l-7-7a4 4 0 0 1 7-5 4 4 0 0 1 7 5z" fill="#E85A70" stroke="#0E2A3A"/><path d="M10 39c2-4 6-6 9-6M38 39c-2-4-6-6-9-6"/>`),
// C1 goals
goalfam: S(`<path d="M10 14h28a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H22l-8 7v-7h-4a3 3 0 0 1-3-3V17a3 3 0 0 1 3-3z"/><circle cx="17" cy="23" r="2" fill="#0E2A3A"/><circle cx="24" cy="23" r="2" fill="#0E2A3A"/><circle cx="31" cy="23" r="2" fill="#0E2A3A"/>`),
help: S(`<path d="M50 14" /><path d="M24 7c-2 0-3 2-3 4v9M21 15c0-2-1.5-3-3-3s-3 1-3 3v10M27 14c0-2 1.5-3 3-3s3 1 3 3v13c0 7-5 11-11 11-5 0-8-3-10-8l-3-7c-1-2 1-4 3-3l3 4"/>`),
food: S(`<path d="M16 8v32M13 8v10a3 3 0 0 0 6 0V8M32 8c-3 0-5 4-5 9s2 7 5 7v16"/>`),
opinion: S(`<path d="M10 12h28a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H22l-8 7v-7h-4a3 3 0 0 1-3-3V15a3 3 0 0 1 3-3z"/><path d="M17 20h14M17 26h9"/>`),
// C1 buckets
connect: S(`<path d="M8 13h22a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H18l-7 6v-6H8a3 3 0 0 1-3-3V16a3 3 0 0 1 3-3z"/><path d="M31 20h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3v5l-5-5h-8a3 3 0 0 1-3-3" fill="#fff"/>`),
tasks: S(`<rect x="11" y="7" width="26" height="34" rx="3"/><path d="M17 16l3 3 5-6M17 27l3 3 5-6"/><path d="M27 16h6M27 28h6"/>`),
practice: S(`<path d="M18 6v10a6 6 0 0 0 12 0V6"/><circle cx="18" cy="6" r="2"/><circle cx="30" cy="6" r="2"/><path d="M24 22v8a8 8 0 0 0 14 5"/><circle cx="40" cy="36" r="4"/>`),
// C2 topics
sports: S(`<circle cx="24" cy="24" r="13"/><path d="M24 11v26M11 24h26"/><path d="M14 16c4 3 4 13 0 16M34 16c-4 3-4 13 0 16"/>`),
pets: S(`<circle cx="16" cy="19" r="3.4" fill="#0E2A3A" stroke="none"/><circle cx="24" cy="15" r="3.4" fill="#0E2A3A" stroke="none"/><circle cx="32" cy="19" r="3.4" fill="#0E2A3A" stroke="none"/><path d="M24 22c-5 0-9 4-9 8s4 5 9 5 9-1 9-5-4-8-9-8z" fill="#0E2A3A" stroke="none"/>`),
music: S(`<path d="M20 14l16-3v19"/><circle cx="16" cy="34" r="4.5"/><circle cx="32" cy="30" r="4.5"/><path d="M20 14v20"/>`),
tv: S(`<rect x="8" y="12" width="32" height="22" rx="2"/><path d="M18 40h12M24 34v6M16 6l8 6 8-6"/>`),
faith: S(`<circle cx="24" cy="24" r="7"/><path d="M24 7v5M24 36v5M7 24h5M36 24h5M12 12l3.5 3.5M36 12l-3.5 3.5M12 36l3.5-3.5M36 36l-3.5-3.5"/>`),
news: S(`<rect x="8" y="12" width="32" height="24" rx="2"/><path d="M14 18h12M14 24h12M14 30h8M30 18h4v6h-4z"/>`),
travel: S(`<path d="M23 6c2 0 3 2 3 5v7l15 8v4l-15-4v7l5 4v3l-8-2-8 2v-3l5-4v-7l-15 4v-4l15-8v-7c0-3 1-5 3-5z" fill="#0E2A3A" stroke="none"/>`),
games: S(`<rect x="7" y="18" width="34" height="15" rx="7.5"/><path d="M15 22v6M12 25h6"/><circle cx="30" cy="24" r="1.7" fill="#0E2A3A" stroke="none"/><circle cx="34" cy="28" r="1.7" fill="#0E2A3A" stroke="none"/>`),
weather: S(`<circle cx="20" cy="17" r="5.5"/><path d="M20 6v3M9 17h3M28 9l-2 2M11 9l2 2"/><path d="M16 35h16a6 6 0 0 0 0-12 8 8 0 0 0-15-1" fill="#fff"/>`),
gardening: S(`<path d="M24 39V21M24 25c-6 0-9-4-9-10 6 0 9 4 9 10zM24 23c5 0 8-3 8-9-5 0-8 3-8 9z"/><path d="M16 39h16"/>`),
// C4 needs
pain: S(`<rect x="13" y="13" width="22" height="22" rx="6" transform="rotate(45 24 24)" stroke="#E85A70"/><path d="M24 18v12M18 24h12" stroke="#E85A70"/>`),
tired: S(`<path d="M30 8a14 14 0 1 0 11 22A11 11 0 0 1 30 8z"/><path d="M22 13h6l-6 6h6"/>`),
hungry: S(`<path d="M16 8v32M13 8v10a3 3 0 0 0 6 0V8M32 8c-3 0-5 4-5 9s2 7 5 7v16"/>`),
thirsty: S(`<path d="M14 14h20l-2 22a3 3 0 0 1-3 3H19a3 3 0 0 1-3-3z"/><path d="M14 20h20"/>`),
bathroom: S(`<rect x="12" y="8" width="24" height="32" rx="2"/><circle cx="30" cy="24" r="1.8" fill="#0E2A3A" stroke="none"/><path d="M17 14h5"/>`),
yes: S(`<circle cx="24" cy="24" r="16" fill="#E3F4E4"/><path d="M16 24l5 5 11-12" stroke="#3FA45A" stroke-width="3"/>`),
no: S(`<circle cx="24" cy="24" r="16" fill="#FBE6E6"/><path d="M17 17l14 14M31 17L17 31" stroke="#E85A70" stroke-width="3"/>`),
thankyou: S(`<path d="M24 39C11 30 8 22 8 16a8 8 0 0 1 16-2 8 8 0 0 1 16 2c0 6-3 14-16 23z" fill="#E85A70" stroke="#0E2A3A"/>`),
stop: S(`<path d="M18 7h12l11 11v12L30 41H18L7 30V18z" fill="#FBE6E6" stroke="#E85A70"/><path d="M18 24h12" stroke="#E85A70"/>`),
more: S(`<circle cx="24" cy="24" r="16" fill="#FDF1DC"/><path d="M24 14v20M14 24h20" stroke="#E4A656"/>`),
// optional
work: S(`<rect x="7" y="16" width="34" height="21" rx="3"/><path d="M17 16v-4a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v4M7 26h34"/>`),
celebrate: S(`<path d="M10 40l8-22 13 13z" fill="#FDF1DC"/><path d="M10 40l8-22 13 13z"/><path d="M30 8v4M38 14h4M33 6l3 3M30 20c4 0 7 3 7 7"/>`),
media: S(`<circle cx="24" cy="24" r="16"/><path d="M20 17l11 7-11 7z" fill="#0E2A3A" stroke="none"/>`),
day: S(`<rect x="8" y="12" width="32" height="28" rx="3"/><path d="M8 20h32M17 8v8M31 8v8"/>`),
address: S(`<circle cx="24" cy="15" r="7"/><path d="M11 40c0-8 6-13 13-13s13 5 13 12"/><path d="M33 9l3 3 5-6"/>`),
goals: S(`<circle cx="24" cy="24" r="16"/><circle cx="24" cy="24" r="9"/><circle cx="24" cy="24" r="2.5" fill="#0E2A3A" stroke="none"/><path d="M24 4v6M44 24h-6"/>`),
// food groups + items
breakfast: S(`<ellipse cx="24" cy="27" rx="16" ry="9"/><circle cx="24" cy="25" r="5.5" fill="#F7D54C" stroke="#0E2A3A"/>`),
plate: S(`<circle cx="24" cy="24" r="15"/><circle cx="24" cy="24" r="8"/>`),
snack: S(`<path d="M24 16c-4-3-13-2-13 8s8 14 13 14 13-5 13-15-9-9-13-7z"/><path d="M24 16c0-4 2-7 6-8"/>`),
drinks: S(`<path d="M14 14h20l-2 22a3 3 0 0 1-3 3H19a3 3 0 0 1-3-3z"/><path d="M14 20h20M28 9c2-4 6-2 5 2"/>`),
coffee: S(`<path d="M12 16h24v18a8 8 0 0 1-8 8h-8a8 8 0 0 1-8-8z"/><path d="M36 20h4a5 5 0 0 1 0 10h-4"/>`),
restaurant: S(`<path d="M14 8v12a4 4 0 0 0 8 0V8M18 8v32M34 8c-3 0-5 4-5 9s2 6 5 6v17"/>`),
pizza: S(`<path d="M24 8l18 32H6z"/><circle cx="20" cy="26" r="2.5" fill="#E85A70" stroke="none"/><circle cx="28" cy="30" r="2.5" fill="#E85A70" stroke="none"/>`),
star: S(`<path d="M24 7l5 11 12 1-9 8 3 12-11-6-11 6 3-12-9-8 12-1z" fill="#F7D54C" stroke="#0E2A3A"/>`),
tag: S(`<path d="M8 8h16l16 16-16 16L8 24z"/><circle cx="17" cy="17" r="2.4" fill="#0E2A3A" stroke="none"/>`),
placeholder: S(`<rect x="10" y="10" width="28" height="28" rx="6" stroke-dasharray="4 4"/><path d="M24 18v12M18 24h12"/>`),
hubTherapy: S(`<path d="M9 23c0-9 6-16 15-16 6 0 10 3 12 7 2 0 4 2 4 4s-2 4-4 4c0 2-1 4-3 5v8c0 1-1 2-2 2h-6c-1 0-2-1-2-2v-3c-8-1-14-4-14-9z"/><path d="M14 16c0-2 2-3 4-2 1-2 4-2 5 0 2-1 4 1 3 3 1 1 1 3-1 4 0 2-2 3-4 2-1 1-3 1-4-1-2 0-3-2-2-4-1-1-1-2-1-2z" stroke-width="2"/><path d="M20 14v10M17 18h2M22 17h2" stroke-width="1.8"/>`),
hubConversations: S(`<path d="M8 6h32v14a3 3 0 0 1-3 3H18l-7 6v-6h-1a3 3 0 0 1-3-3V6z"/><path d="M14 12h20M14 16h12"/><g stroke-width="2"><path d="M10 30h3v7h-3zM16 30l1-4c.2-.6.8-1 1.4-.8.6.2 1 .8.8 1.4L18 30h2.2c.9 0 1.6.9 1.3 1.7l-1 4.6c-.2.7-.8 1.2-1.5 1.2H16v-7.5z"/><path d="M27 42h3v-7h-3zM33 42l1 4c.2.6.8 1 1.4.8.6-.2 1-.8.8-1.4L35 42h2.2c.9 0 1.6-.9 1.3-1.7l-1-4.6c-.2-.7-.8-1.2-1.5-1.2H27v7.5z"/><circle cx="30" cy="19" r="0" opacity="0"/></g><circle cx="41" cy="35" r="6"/><path d="M39 33c0-1.5 1-2.4 2-2.4s2 .9 2 2c0 1.4-2 1.6-2 3.4" stroke-width="1.8"/><circle cx="41" cy="38.4" r="0.9" fill="#0E2A3A" stroke="none"/>`),
thumbUp: S(`<path d="M10 20h6v20h-6z"/><path d="M20 20l2.5-9c.5-1.5 2.2-2.3 3.7-1.7 1.5.5 2.3 2.2 1.8 3.7L26 20h7c2.5 0 4.3 2.3 3.6 4.7l-3.5 12c-.5 1.9-2.2 3.3-4.2 3.3H20V20z"/>`),
thumbDown: S(`<path d="M10 8h6v20h-6z"/><path d="M20 28l2.5 9c.5 1.5 2.2 2.3 3.7 1.7 1.5-.5 2.3-2.2 1.8-3.7L26 28h7c2.5 0 4.3-2.3 3.6-4.7l-3.5-12C36 9.4 34.3 8 32.3 8H20v20z"/>`),
qmark: S(`<circle cx="24" cy="24" r="17"/><path d="M18 18c0-4 3-7 7-7s7 3 7 6c0 4-4 5-6 8" stroke-width="2.6"/><circle cx="24" cy="33" r="1.6" fill="#0E2A3A" stroke="none"/>`),
chatDots: S(`<path d="M8 10h32v20H20l-8 7v-7H8z"/><circle cx="18" cy="20" r="2" fill="#0E2A3A" stroke="none"/><circle cx="24" cy="20" r="2" fill="#0E2A3A" stroke="none"/><circle cx="30" cy="20" r="2" fill="#0E2A3A" stroke="none"/>`),
};
// Food & drink: representative emoji, keyed so they only apply on the Food screen
const EMOJI = {
eggs: '🍳', toast: '🍞', oatmeal: '🥣', fruit: '🍎',
pizza: '🍕', soup: '🍲', chicken: '🍗', pasta: '🍝', sandwich: '🥪',
cookies: '🍪', chips: '🍟', icecream: '🍦', crackers: '🍘',
water: '💧', coffee: '☕', tea: '🍵', juice: '🧃', soda: '🥤',
grpBreakfast: '🍳', grpLunch: '🍽️', grpSnacks: '🍪', grpDrinks: '🥤',
};
const icon = (name) => {
if (EMOJI[name]) return React.createElement('span', { className: 'gly', style: { fontSize: '30px', lineHeight: 1, display: 'flex', alignItems: 'center', justifyContent: 'center', width: '100%', height: '100%' } }, EMOJI[name]);
return React.createElement('span', { className: 'gly', style: { width: '100%', height: '100%' }, dangerouslySetInnerHTML: { __html: ICONS[name] || ICONS.placeholder } });
};
// ───────── Path definitions ─────────
const PATHS = [
{ key: 'user', label: 'I am — in my words', short: 'Device user', icon: 'user', desc: 'Questions in your own words, plainest language. Tap to choose.' },
{ key: 'partner', label: 'A care partner', short: 'Family / care partner', icon: 'partner', desc: 'Answer about the person you support, drawing on what you\u2019ve noticed.' },
{ key: 'slp', label: 'A speech therapist', short: 'Speech-language pathologist', icon: 'slp', desc: 'Clinical framing. Unlocks the functional-goals module.' },
];
// ───────── Screen definitions ─────────
const SCREENS = {
prof: {
title: 'Your profile', sec: 'core', icon: 'address', kind: 'profile',
prompts: {
user: 'Let\u2019s start with you. What should people call you?',
partner: 'Let\u2019s start with them. What should people call them?',
slp: 'Let\u2019s start with the basics — preferred name, birthday, and a profile photo.',
},
why: 'This sets your display name, photo, and how the device greets you.',
nameKeywords: ['Johnny', 'Mr. Smith', 'Grandpa', 'Dr. Lee'],
},
c1: {
title: 'What matters most', sec: 'core', icon: 'goals', kind: 'multi', cols: 3,
prompts: {
user: 'How would you like to start using your device? (Choose all that fit.)',
partner: 'How would you like them to start using their device? (Choose all that fit.)',
slp: 'How would you like them to start using the device in this trial? (Choose all that fit.)',
},
why: 'This tells your device which Cards and Folders to show first. Choose all that apply.',
tiles: [
{ key: 'communicate', label: 'Communicating with others', icon: 'connect' },
{ key: 'dailytasks', label: 'Getting things done day to day', icon: 'tasks' },
{ key: 'therapy', label: 'Therapy Practice', icon: 'practice' },
],
keywords: ['communicating with others', 'getting things done', 'therapy practice', 'all of these'],
},
c2: {
title: 'Favorite topics', sec: 'core', icon: 'music', kind: 'multi', cols: 4,
prompts: {
user: 'What do you love to talk about?',
partner: 'What topics or activities light them up? Think about what they get excited about or bring up often.',
slp: 'What high-interest topics could anchor motivating vocabulary during the trial?',
},
why: 'Choose all that apply.',
tiles: [
{ key: 'family', label: 'Family', icon: 'family' }, { key: 'sports', label: 'Sports', icon: 'sports' },
{ key: 'pets', label: 'Pets', icon: 'pets' }, { key: 'music', label: 'Music', icon: 'music' },
{ key: 'tv', label: 'TV & movies', icon: 'tv' }, { key: 'foodt', label: 'Food', icon: 'food' },
{ key: 'faith', label: 'Faith', icon: 'faith' }, { key: 'news', label: 'News', icon: 'news' },
{ key: 'travel', label: 'Travel', icon: 'travel' }, { key: 'games', label: 'Games', icon: 'games' },
{ key: 'weather', label: 'Weather', icon: 'weather' }, { key: 'garden', label: 'Gardening', icon: 'gardening' },
],
keywords: ['cooking', 'fishing', 'my grandkids', 'old movies'],
},
c3: {
title: 'People I talk to', sec: 'core', icon: 'family', kind: 'people',
prompts: {
user: 'Who do you talk to the most?',
partner: 'Who do they communicate with most, and what would they most want to say to each person?',
slp: 'Identify primary communication partners and target phrases to initiate and sustain interaction with each.',
},
why: 'This creates your people and partner-specific phrases.',
rels: [
{ key: 'spouse', label: 'Spouse / partner', icon: 'partner' }, { key: 'son', label: 'Son', icon: 'son' },
{ key: 'daughter', label: 'Daughter', icon: 'daughter' }, { key: 'friend', label: 'Friend', icon: 'friend' },
{ key: 'doctor', label: 'Doctor', icon: 'doctor' }, { key: 'nurse', label: 'Nurse', icon: 'doctor' },
{ key: 'caregiver', label: 'Caregiver', icon: 'caregiver' }, { key: 'other', label: 'Someone else', icon: 'person' },
],
phraseChips: ['I love you', 'Call me later', 'How are you?', 'Thank you'],
},
c4: {
title: 'Things I need to say every day', sec: 'core', icon: 'help', kind: 'multi', cols: 5,
prompts: {
user: 'What do you need to say every day?',
partner: 'What do they need to express daily \u2014 including comfort, pain, or help? Where do they get stuck or frustrated?',
slp: 'Capture needs-based and medical/comfort messages, plus communication breakdown points to pre-empt.',
},
why: 'These go on a quick-access bar you can reach in one tap. Choose all that apply.',
tiles: [
{ key: 'nhelp', label: 'I need help', icon: 'help' }, { key: 'npain', label: 'I\u2019m in pain', icon: 'pain' },
{ key: 'ntired', label: 'I\u2019m tired', icon: 'tired' }, { key: 'nhungry', label: 'I\u2019m hungry', icon: 'hungry' },
{ key: 'nthirsty', label: 'I\u2019m thirsty', icon: 'thirsty' }, { key: 'nbath', label: 'I need the bathroom', icon: 'bathroom' },
{ key: 'nyes', label: 'Yes', icon: 'yes' }, { key: 'nno', label: 'No', icon: 'no' },
{ key: 'nthanks', label: 'Thank you', icon: 'thankyou' }, { key: 'nstop', label: 'Stop', icon: 'stop' },
],
keywords: ['I\u2019m cold', 'Call the nurse', 'Not now', 'Almost done'],
},
c5: {
title: 'Food & drink', sec: 'core', icon: 'food', kind: 'multi', cols: 5,
prompts: {
user: 'What are your favorite foods and drinks?',
partner: 'What are their go-to foods, drinks, and restaurants?',
slp: 'Preferred foods, drinks, and restaurants to support requesting and choice-making.',
},
why: 'This powers requesting and choice-making at meals. Choose all that apply.',
groups: [
{ label: 'Breakfast', icon: 'grpBreakfast', tiles: [{ key: 'eggs', label: 'Eggs', icon: 'eggs' }, { key: 'toast', label: 'Toast', icon: 'toast' }, { key: 'oatmeal', label: 'Oatmeal', icon: 'oatmeal' }, { key: 'fruit', label: 'Fruit', icon: 'fruit' }, { key: 'coffeeb', label: 'Coffee', icon: 'coffee' }] },
{ label: 'Lunch & dinner', icon: 'grpLunch', tiles: [{ key: 'pizza', label: 'Pizza', icon: 'pizza' }, { key: 'soup', label: 'Soup', icon: 'soup' }, { key: 'chickend', label: 'Chicken', icon: 'chicken' }, { key: 'pasta', label: 'Pasta', icon: 'pasta' }, { key: 'sandwich', label: 'Sandwich', icon: 'sandwich' }] },
{ label: 'Snacks', icon: 'grpSnacks', tiles: [{ key: 'cookies', label: 'Cookies', icon: 'cookies' }, { key: 'chips', label: 'Chips', icon: 'chips' }, { key: 'icecream', label: 'Ice cream', icon: 'icecream' }, { key: 'crackers', label: 'Crackers', icon: 'crackers' }] },
{ label: 'Drinks', icon: 'grpDrinks', tiles: [{ key: 'water', label: 'Water', icon: 'water' }, { key: 'coffee', label: 'Coffee', icon: 'coffee' }, { key: 'tea', label: 'Tea', icon: 'tea' }, { key: 'juice', label: 'Juice', icon: 'juice' }, { key: 'soda', label: 'Soda', icon: 'soda' }] },
],
extra: 'Favorite restaurants',
keywords: ['my coffee with cream', 'extra ice', 'no onions'],
},
o1: {
title: 'About me', sec: 'opt', icon: 'person', kind: 'sub',
prompts: {
user: 'Tell people about you.',
partner: 'Share background that helps them tell their story \u2014 hometown, family, pets, where they live now.',
slp: 'Personal-narrative content to support introductions and autobiographical communication.',
},
why: 'This builds an \u201cAbout me\u201d set for introductions.',
subs: [
{ label: 'Where are you from?', chips: ['Born in Ohio', 'Grew up on a farm', 'Live in Phoenix now'] },
{ label: 'Who\u2019s in your family?', chips: ['Married 40 years', 'Three kids', 'Five grandkids'] },
{ label: 'Any pets?', chips: ['A dog named Max', 'Two cats', 'No pets now'] },
],
},
o2: {
title: 'Work & history', sec: 'opt', icon: 'work', kind: 'multi', cols: 4,