ava-engine 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/.env.example +63 -0
  2. package/CLA.md +43 -0
  3. package/COMMERCIAL-LICENSE.md +43 -0
  4. package/LICENSE +73 -0
  5. package/README.md +240 -2
  6. package/THIRD_PARTY_NOTICES.md +38 -0
  7. package/TRADEMARKS.md +31 -0
  8. package/bin/ava-engine.mjs +12 -0
  9. package/lib/asr.mjs +147 -0
  10. package/lib/cli/apply.mjs +58 -0
  11. package/lib/cli/config.mjs +95 -0
  12. package/lib/cli/main.mjs +187 -0
  13. package/lib/cli/setup-server.mjs +195 -0
  14. package/lib/cli/setup.mjs +233 -0
  15. package/lib/fetch-models.mjs +104 -0
  16. package/lib/guard.mjs +92 -0
  17. package/lib/kokoro-model.mjs +51 -0
  18. package/lib/models.mjs +47 -0
  19. package/lib/openrouter.mjs +153 -0
  20. package/lib/ours.mjs +766 -0
  21. package/lib/platforms.mjs +201 -0
  22. package/lib/state.mjs +150 -0
  23. package/lib/stt.mjs +22 -0
  24. package/lib/tts.mjs +178 -0
  25. package/lib/workflow.mjs +18 -0
  26. package/package.json +80 -4
  27. package/public/app.js +1708 -0
  28. package/public/demo.js +420 -0
  29. package/public/favicon.svg +1 -0
  30. package/public/fonts/OFL.txt +96 -0
  31. package/public/fonts/inter-tight-var.woff2 +0 -0
  32. package/public/fonts/inter-var.woff2 +0 -0
  33. package/public/fonts/plex-mono-400.woff2 +0 -0
  34. package/public/fonts/plex-mono-500.woff2 +0 -0
  35. package/public/img/cta-1600.avif +0 -0
  36. package/public/img/cta-1600.webp +0 -0
  37. package/public/img/cta-2400.avif +0 -0
  38. package/public/img/cta-2400.webp +0 -0
  39. package/public/img/cta-960.avif +0 -0
  40. package/public/img/cta-960.webp +0 -0
  41. package/public/img/flows-1600.avif +0 -0
  42. package/public/img/flows-1600.webp +0 -0
  43. package/public/img/flows-2400.avif +0 -0
  44. package/public/img/flows-2400.webp +0 -0
  45. package/public/img/flows-960.avif +0 -0
  46. package/public/img/flows-960.webp +0 -0
  47. package/public/img/hero-1600.avif +0 -0
  48. package/public/img/hero-1600.webp +0 -0
  49. package/public/img/hero-2400.avif +0 -0
  50. package/public/img/hero-2400.webp +0 -0
  51. package/public/img/hero-960.avif +0 -0
  52. package/public/img/hero-960.webp +0 -0
  53. package/public/img/p-csm-480.avif +0 -0
  54. package/public/img/p-csm-480.webp +0 -0
  55. package/public/img/p-csm-800.avif +0 -0
  56. package/public/img/p-csm-800.webp +0 -0
  57. package/public/img/p-docs-480.avif +0 -0
  58. package/public/img/p-docs-480.webp +0 -0
  59. package/public/img/p-docs-800.avif +0 -0
  60. package/public/img/p-docs-800.webp +0 -0
  61. package/public/img/p-quiet-480.avif +0 -0
  62. package/public/img/p-quiet-480.webp +0 -0
  63. package/public/img/p-quiet-800.avif +0 -0
  64. package/public/img/p-quiet-800.webp +0 -0
  65. package/public/img/p-tickets-480.avif +0 -0
  66. package/public/img/p-tickets-480.webp +0 -0
  67. package/public/img/p-tickets-800.avif +0 -0
  68. package/public/img/p-tickets-800.webp +0 -0
  69. package/public/img/p-trial-480.avif +0 -0
  70. package/public/img/p-trial-480.webp +0 -0
  71. package/public/img/p-trial-800.avif +0 -0
  72. package/public/img/p-trial-800.webp +0 -0
  73. package/public/img/sees-1600.avif +0 -0
  74. package/public/img/sees-1600.webp +0 -0
  75. package/public/img/sees-2400.avif +0 -0
  76. package/public/img/sees-2400.webp +0 -0
  77. package/public/img/sees-960.avif +0 -0
  78. package/public/img/sees-960.webp +0 -0
  79. package/public/img/speaks-1600.avif +0 -0
  80. package/public/img/speaks-1600.webp +0 -0
  81. package/public/img/speaks-2400.avif +0 -0
  82. package/public/img/speaks-2400.webp +0 -0
  83. package/public/img/speaks-960.avif +0 -0
  84. package/public/img/speaks-960.webp +0 -0
  85. package/public/img/voice-1600.avif +0 -0
  86. package/public/img/voice-1600.webp +0 -0
  87. package/public/img/voice-2400.avif +0 -0
  88. package/public/img/voice-2400.webp +0 -0
  89. package/public/img/voice-960.avif +0 -0
  90. package/public/img/voice-960.webp +0 -0
  91. package/public/index.html +440 -0
  92. package/public/landing.html +975 -0
  93. package/public/pcm-worklet.js +11 -0
  94. package/public/perceptionWorker.js +103 -0
  95. package/public/rtc.js +60 -0
  96. package/public/setup.css +94 -0
  97. package/public/setup.html +129 -0
  98. package/public/setup.js +264 -0
  99. package/public/specialist.html +92 -0
  100. package/public/specialist.js +132 -0
  101. package/public/style.css +836 -0
  102. package/public/vendor/lenis.min.js +3 -0
  103. package/scripts/fetch-models.sh +15 -0
  104. package/server.mjs +502 -0
@@ -0,0 +1,836 @@
1
+ /* ── Ava · Light ──
2
+ Matches the landing page: near-monochrome canvas, light Inter Tight display
3
+ type, pill controls, soft cards, and indigo as the single accent (kept under
4
+ the --amber token to avoid churn). Lane hues mark who did the work in the
5
+ console; numbers stay mono. */
6
+
7
+ @font-face { font-family: 'Inter Tight'; src: url(/fonts/inter-tight-var.woff2) format('woff2'); font-weight: 300 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
8
+ @font-face { font-family: 'Inter'; src: url(/fonts/inter-var.woff2) format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
9
+ @font-face { font-family: 'IBM Plex Mono'; src: url(/fonts/plex-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
10
+ @font-face { font-family: 'IBM Plex Mono'; src: url(/fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
11
+
12
+ :root {
13
+ --canvas: #F5F5F7;
14
+ --rails: #FFFFFF;
15
+ --chrome: #FFFFFF;
16
+ --control: #FFFFFF;
17
+ --active: #EFEFF2;
18
+ --hairline: #EFEFF2;
19
+ --divider: #E9E9ED;
20
+ --edge: #DCDCE3;
21
+ --edge2: #E9E9ED;
22
+
23
+ --ink: #0A0A0C;
24
+ --ink2: #5E5F6B;
25
+ --meta: #686975; /* ≥4.5:1 on white and the soft greys (WCAG AA) */
26
+ --null: #C9CAD2;
27
+
28
+ --amber: #4F46E5; /* primary (indigo) */
29
+ --amber-ink: #FFFFFF;
30
+ --brandtint: rgba(79,70,229,0.08);
31
+ --brandline: rgba(79,70,229,0.30);
32
+ --green: #16A34A;
33
+ --greentint: rgba(22,163,74,0.10);
34
+ --greenline: rgba(22,163,74,0.28);
35
+ --red: #DC5A4B;
36
+ --redtint: rgba(220,90,75,0.10);
37
+ --redline: rgba(220,90,75,0.30);
38
+ --leave: #CE3239;
39
+
40
+ --vision: #2F6DB0;
41
+ --intent: #A84B93;
42
+ --router: #C56A4E;
43
+ --planner: #937B2C;
44
+ --voice: #5561B8;
45
+ --thinking: #0E8C8C;
46
+
47
+ /* brand gradient (Ava tile, connect orb) — retinted per platform in onboarding */
48
+ --brand-a: #6366F1;
49
+ --brand-b: #4F46E5;
50
+ --brand-c: #3730A3;
51
+
52
+ --shadow-sm: 0 1px 2px rgba(10,10,12,0.04), 0 1px 3px rgba(10,10,12,0.05);
53
+ --shadow-md: 0 1px 2px rgba(10,10,12,0.04), 0 12px 32px -12px rgba(10,10,12,0.16);
54
+ --shadow-lg: 0 1px 2px rgba(10,10,12,0.04), 0 24px 60px -24px rgba(10,10,12,0.30), 0 40px 80px -40px rgba(79,70,229,0.25);
55
+ --orb: radial-gradient(circle at 34% 30%, #E4E5FF, var(--brand-a) 48%, var(--brand-c) 100%);
56
+ --ease: cubic-bezier(.16,1,.3,1);
57
+
58
+ --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
59
+ --mono: 'IBM Plex Mono', ui-monospace, monospace;
60
+ --disp: 'Inter Tight', var(--sans);
61
+ }
62
+
63
+ * { box-sizing: border-box; }
64
+ [hidden] { display: none !important; }
65
+ html, body { height: 100%; }
66
+ body {
67
+ margin: 0; background: var(--canvas); color: var(--ink);
68
+ font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
69
+ display: flex; flex-direction: column; overflow: hidden;
70
+ }
71
+ button { font-family: inherit; cursor: pointer; }
72
+ .mono { font-family: var(--mono); }
73
+ .grow { flex-grow: 1; }
74
+ .meta { color: var(--meta); }
75
+ .dim { color: var(--ink2); }
76
+ .null { color: var(--null); }
77
+ b { font-weight: 600; }
78
+ .sectionlabel { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--meta); }
79
+
80
+ /* ── top bar ── */
81
+ #topbar {
82
+ height: 60px;
83
+ flex-shrink: 0;
84
+ display: flex;
85
+ align-items: center;
86
+ gap: 14px;
87
+ padding: 0 22px;
88
+ background: var(--chrome);
89
+ border-bottom: 1px solid var(--hairline); }
90
+ .wm { display: block; flex: none; height: 15px; width: auto; aspect-ratio: 66 / 27.8; color: var(--ink); }
91
+ .vdiv { width: 1px; height: 16px; background: var(--edge2); }
92
+ .apptitle { font-family: var(--disp); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
93
+ #topbar .meta { font-size: 11px; }
94
+ .timer { font-size: 12px; color: var(--meta); letter-spacing: 0.04em; }
95
+
96
+ .pill { display: flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; }
97
+ .pill .dot { width: 6px; height: 6px; border-radius: 50%; }
98
+ .pill.standby { background: var(--control); border: 1px solid var(--edge); color: var(--ink2); }
99
+ .pill.standby .dot { border: 1px solid var(--meta); }
100
+ .pill.live { background: var(--brandtint); border: 1px solid var(--brandline); color: var(--amber); }
101
+ .pill.live .dot { background: var(--amber); }
102
+ .pill.degraded { background: var(--redtint); border: 1px solid var(--redline); color: var(--red); }
103
+ .pill.degraded .dot { background: var(--red); }
104
+
105
+ .privacypill { display: flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--edge2); background: var(--canvas); font-size: 12.5px; color: var(--ink2); box-shadow: none; border-color: transparent; }
106
+ .privacypill b { color: var(--ink); font-weight: 500; }
107
+ .chip { font-size: 11px; color: var(--ink2); padding: 4px 10px; border: 1px solid var(--edge2); border-radius: 999px; background: var(--control); }
108
+ .chip.sm { font-size: 10px; padding: 3px 7px; border-radius: 999px; }
109
+ .chip.green { display: flex; align-items: center; gap: 6px; color: var(--green); border-color: var(--greenline); background: var(--greentint); }
110
+ .gdot, .minidot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
111
+ .minidot { background: var(--null); }
112
+ .minidot.on { background: var(--green); }
113
+
114
+ .iconbtn { display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--edge2); background: var(--control); color: var(--ink2); box-shadow: none; transition: background .2s; }
115
+ .iconbtn:hover { background: var(--active); }
116
+ .iconbtn.sm { width: 34px; height: 34px; border-radius: 999px; }
117
+ .iconbtn.xs { width: 28px; height: 28px; border-radius: 999px; }
118
+ .iconbtn.lg { width: 50px; height: 50px; border-radius: 999px; border-color: var(--edge); }
119
+ .iconbtn.armed { color: var(--amber); border-color: var(--brandline); background: var(--brandtint); }
120
+ .iconbtn.on { color: var(--amber); }
121
+
122
+ /* ── layout ── */
123
+ #main { flex-grow: 1; display: flex; min-height: 0; }
124
+
125
+ /* ── stage column ── */
126
+ #stagecol { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 16px; }
127
+
128
+ #minitiles { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
129
+ #minitiles[hidden] { display: none; }
130
+ .minitile { width: 132px; height: 66px; border-radius: 16px; background: var(--chrome); border: 1px solid var(--hairline); padding: 8px 9px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: none; }
131
+ .minitile.ava { background: var(--chrome); border: 1px solid var(--edge); }
132
+ .minitile.ava.speaking { border: 2px solid var(--amber); padding: 7px 8px; }
133
+ .miniicon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
134
+ .miniicon.amber { background: var(--orb); box-shadow: 0 0 12px color-mix(in srgb, var(--brand-a) 45%, transparent); }
135
+ .miniicon.you { background: var(--active); font-family: var(--disp); font-size: 8px; font-weight: 600; color: var(--ink2); }
136
+ .minifoot { display: flex; align-items: center; justify-content: space-between; }
137
+ .mininame { font-family: var(--disp); font-size: 12px; font-weight: 500; }
138
+ #stagelabel { font-size: 11px; }
139
+
140
+ /* dark stage — neutral ink with a soft indigo glow, so the tiles + shared screen pop */
141
+ #stage { flex-grow: 1; min-height: 0; position: relative; border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
142
+ background:
143
+ radial-gradient(70% 70% at 18% 8%, rgba(99,102,241,0.16), transparent 60%),
144
+ radial-gradient(60% 60% at 92% 100%, rgba(62,139,232,0.10), transparent 60%),
145
+ linear-gradient(180deg, #141418 0%, #0C0C0F 100%); }
146
+ #stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
147
+ background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.3px);
148
+ background-size: 22px 22px;
149
+ -webkit-mask-image: radial-gradient(560px 380px at 20% 10%, #000, transparent 75%);
150
+ mask-image: radial-gradient(560px 380px at 20% 10%, #000, transparent 75%); }
151
+ #stage > * { position: relative; z-index: 1; }
152
+ #video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0C0C0F; display: none; }
153
+ #video.on { display: block; }
154
+
155
+ #standbyhero { display: flex; flex-direction: column; gap: 26px; padding: 24px; max-width: 720px; }
156
+ #standbyhero[hidden] { display: none; }
157
+ .herotext h1 { margin: 0 0 10px; font-family: var(--disp); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
158
+ .herotext p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
159
+ /* green room — pre-join gear check */
160
+ .greenroom { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 12px; border: 1px solid var(--edge2); background: var(--chrome); box-shadow: var(--shadow-md); }
161
+ .grrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
162
+ .grblock { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
163
+ .grctl { display: flex; align-items: center; gap: 8px; }
164
+ .grsel { flex-grow: 1; min-width: 0; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--edge); background: var(--control); color: var(--ink); font-size: 11px; outline: none; cursor: pointer; }
165
+ .grbtn { height: 34px; padding: 0 12px; flex-shrink: 0; }
166
+ .grbtn.on { border-color: var(--greenline); background: var(--greentint); color: var(--green); }
167
+ .grnote { font-size: 10px; }
168
+ .miclevel { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
169
+ .miclevel i { width: 5px; height: 100%; border-radius: 1px; background: var(--edge2); }
170
+ .miclevel i.lit { background: var(--green); }
171
+ .grjoin { display: flex; align-items: center; gap: 12px; padding-top: 2px; }
172
+ .grjoin .amberbtn { display: flex; align-items: center; gap: 9px; }
173
+ .ghostbtn { height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--edge); background: var(--control); color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 500; box-shadow: none; transition: background .2s, transform .4s var(--ease); }
174
+ .ghostbtn:hover { background: var(--active); }
175
+ #joinstate { font-size: 10px; }
176
+
177
+ #noscreen { display: flex; flex-direction: column; align-items: center; gap: 10px; }
178
+ #noscreen[hidden] { display: none; }
179
+ #noscreen .mono { font-size: 11px; color: var(--ink2); }
180
+ #noscreen .dimnote { font-size: 11px; color: var(--meta); }
181
+ .ghostamber { margin-top: 4px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--brandline); background: var(--brandtint); color: var(--amber); font-family: var(--sans); font-size: 13px; font-weight: 500; }
182
+
183
+ .callout { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--chrome); border: 1px solid var(--brandline); max-width: 70%; box-shadow: var(--shadow-md); border-color: transparent; }
184
+ .callout[hidden] { display: none; }
185
+ .callout .cdot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--amber); }
186
+ .callout .mono { font-size: 10px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
187
+
188
+ #capwrap { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
189
+ #capwrap[hidden] { display: none; }
190
+ .avarow { display: flex; align-items: center; gap: 8px; }
191
+ .avalabel { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--amber); }
192
+ #cap { margin: 0; font-size: 20px; line-height: 1.38; color: var(--ink); max-width: 880px; text-wrap: pretty; min-height: 25px; font-family: var(--disp); letter-spacing: -0.02em; }
193
+ #cap.err { color: var(--red); font-size: 13px; font-family: var(--mono); }
194
+
195
+ /* equalizer bars — animate only while .live */
196
+ .eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
197
+ .eq i { width: 2px; border-radius: 1px; background: var(--null); height: 4px; }
198
+ .eq.big { height: 18px; } .eq.big i { width: 3px; height: 6px; }
199
+ .eq.mini { height: 11px; }
200
+ .eq.live i { background: var(--amber); animation: eqb 0.9s ease-in-out infinite; }
201
+ .eq i:nth-child(1) { animation-delay: 0s; } .eq i:nth-child(2) { animation-delay: 0.15s; }
202
+ .eq i:nth-child(3) { animation-delay: 0.3s; } .eq i:nth-child(4) { animation-delay: 0.45s; }
203
+ .eq i:nth-child(5) { animation-delay: 0.6s; }
204
+ @keyframes eqb { 0%, 100% { height: 30%; } 50% { height: 100%; } }
205
+
206
+ #composerwrap { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
207
+ #composer { flex-grow: 1; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 20px; height: 50px; border-radius: 999px; background: var(--control); border: 1px solid var(--edge); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
208
+ #composer input { flex-grow: 1; height: 48px; border: 0; background: transparent; outline: none; color: var(--ink); font-family: var(--sans); font-size: 14.5px; }
209
+ #composer input::placeholder { color: var(--meta); }
210
+ .kbd { font-size: 10px; color: var(--meta); padding: 2px 6px; border: 1px solid var(--edge); border-radius: 6px; }
211
+ .amberbtn { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--amber); color: var(--amber-ink); font-family: var(--sans); font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--amber) 80%, transparent); letter-spacing: -0.005em; transition: transform .4s var(--ease), filter .2s; }
212
+ .amberbtn:hover { filter: brightness(0.92); transform: translateY(-1px); }
213
+
214
+ /* ── participants rail ── */
215
+ #people { width: 332px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 16px 0; }
216
+ #people[hidden] { display: none; }
217
+ .railhead { display: flex; align-items: center; justify-content: space-between; }
218
+ .railhead .meta { font-size: 10px; }
219
+ .railhead.pushdown { margin-top: 6px; }
220
+
221
+ .tile { height: 140px; flex-shrink: 0; border-radius: 12px; background: var(--chrome); border: 1px solid var(--edge2); padding: 13px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
222
+ .tile.ava { background: var(--chrome); border: 1px solid var(--edge); }
223
+ .tile.ava.speaking { border: 2px solid var(--amber); padding: 12px; }
224
+ .tiletop { display: flex; align-items: flex-start; justify-content: space-between; }
225
+ .tileicon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
226
+ .tileicon.amber { background: var(--amber); }
227
+ .tileicon.you { background: var(--active); font-family: var(--disp); font-size: 12px; font-weight: 600; color: var(--ink2); }
228
+ .tilefoot { display: flex; align-items: center; justify-content: space-between; }
229
+ .tileid { display: flex; flex-direction: column; gap: 3px; }
230
+ .tilename { font-family: var(--disp); font-size: 15px; font-weight: 500; }
231
+ .tilestatus { font-size: 10px; color: var(--meta); }
232
+ #avatile.speaking #avastatus, #avatile.thinking #avastatus { color: var(--amber); }
233
+
234
+ .railbtn { border: 0; background: none; padding: 0; font-size: 10px; color: var(--meta); cursor: pointer; }
235
+ .railbtn.on { color: var(--amber); }
236
+ #transcript { flex-grow: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
237
+ .tline { display: flex; flex-direction: column; gap: 3px; }
238
+ .tline .twho { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink2); }
239
+ .tline.ava .twho { color: var(--amber); }
240
+ .tline.specialist .twho { color: var(--green); }
241
+ .tline.specialist p { color: var(--ink); }
242
+ .tline .ttime { font-weight: 400; color: var(--meta); }
243
+ .tline p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink2); }
244
+ /* agent log entries — lane-colored labels, muted mono body, toggleable */
245
+ .tline.sys { gap: 2px; }
246
+ .tline.sys p { font-size: 11px; line-height: 1.45; font-family: var(--mono); color: var(--meta); }
247
+ .tline.sys.vision .twho { color: var(--vision); }
248
+ .tline.sys.intent .twho { color: var(--intent); }
249
+ .tline.sys.router .twho { color: var(--router); }
250
+ .tline.sys.planner .twho { color: var(--planner); }
251
+ .tline.sys.thinking .twho { color: var(--thinking); }
252
+ .tline.sys.thinking p { color: var(--ink2); }
253
+ .tline.sys.knowledge .twho { color: #7A5AF8; }
254
+ #transcript.noagents .tline.sys { display: none; }
255
+
256
+ /* ── console drawer ── */
257
+ #console { width: 440px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--rails); border-left: 1px solid var(--divider); min-height: 0; }
258
+ #console[hidden] { display: none; }
259
+ .conhead { height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--divider); }
260
+ .conheadleft { display: flex; align-items: center; gap: 10px; }
261
+ .conlabel { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); }
262
+ .conhead .meta { font-size: 10px; }
263
+
264
+ .consec { flex-shrink: 0; padding: 13px 16px; border-bottom: 1px solid var(--divider); }
265
+ .tracehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
266
+ .tracebig { display: flex; flex-direction: column; gap: 3px; }
267
+ .bignum { display: flex; align-items: baseline; gap: 4px; }
268
+ #bigLat { font-family: var(--disp); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
269
+ .bignum .unit { font-family: var(--disp); font-size: 15px; font-weight: 500; color: var(--ink2); }
270
+ .delta { font-size: 11px; padding-left: 8px; }
271
+ .delta.good { color: var(--green); }
272
+ .delta.bad { color: var(--red); }
273
+ .spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; }
274
+ .spark span { width: 4px; border-radius: 1px; background: var(--edge); }
275
+ .spark span.hi { background: #A9B0BE; }
276
+ .spark span.now { background: var(--amber); }
277
+
278
+ .lanebar { margin-top: 12px; display: flex; height: 22px; border-radius: 5px; overflow: hidden; border: 1px solid var(--edge2); }
279
+ .lanebar .seg { display: flex; align-items: center; padding-left: 8px; border-right: 1px solid var(--chrome); overflow: hidden; }
280
+ .lanebar .seg:last-child { border-right: 0; }
281
+ .lanebar .seg .mono { font-size: 10px; white-space: nowrap; }
282
+ .lanebar .seg.vision { background: rgba(47,109,176,0.14); } .lanebar .seg.vision .mono { color: var(--vision); }
283
+ .lanebar .seg.intent { background: rgba(168,75,147,0.15); } .lanebar .seg.intent .mono { color: var(--intent); }
284
+ .lanebar .seg.router { background: rgba(197,106,78,0.16); } .lanebar .seg.router .mono { color: var(--router); }
285
+ .lanebar .seg.planner { background: rgba(147,123,44,0.16); } .lanebar .seg.planner .mono { color: var(--planner); }
286
+ .lanebar .seg.voice { background: rgba(85,97,184,0.15); } .lanebar .seg.voice .mono { color: var(--voice); }
287
+ .lanebar .seg.tail { background: repeating-linear-gradient(135deg, var(--active) 0 5px, var(--canvas) 5px 10px); }
288
+ .laneempty { flex-grow: 1; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--active) 0 6px, var(--canvas) 6px 12px); }
289
+ .axis { margin-top: 5px; display: flex; justify-content: space-between; font-size: 10px; color: var(--meta); }
290
+
291
+ .crew { padding: 0; }
292
+ .crewhead { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--divider); }
293
+ .crewhead .meta { font-size: 10px; }
294
+ .crewrow { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
295
+ .crewrow:last-child { border-bottom: 0; }
296
+ .crewrow.run { background: var(--active); }
297
+ .ldot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 2px; }
298
+ .ldot.vision { background: var(--vision); } .ldot.intent { background: var(--intent); }
299
+ .ldot.router { background: var(--router); } .ldot.planner { background: var(--planner); }
300
+ .ldot.voice { background: var(--voice); }
301
+ .lname { width: 68px; flex-shrink: 0; font-family: var(--disp); font-size: 13px; font-weight: 500; color: var(--ink2); }
302
+ .crewrow.run .lname { color: var(--ink); }
303
+ .lstate { flex-grow: 1; min-width: 0; font-size: 11px; color: var(--meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
304
+ .crewrow.run#row-vision .lstate { color: var(--vision); }
305
+ .crewrow.run#row-intent .lstate { color: var(--intent); }
306
+ .crewrow.run#row-router .lstate { color: var(--router); }
307
+ .crewrow.run#row-planner .lstate { color: var(--planner); }
308
+ .crewrow.run#row-voice .lstate { color: var(--voice); }
309
+ .lms { width: 54px; flex-shrink: 0; text-align: right; font-size: 11px; color: var(--ink); }
310
+ .lcalls { width: 58px; flex-shrink: 0; text-align: right; font-size: 11px; color: var(--meta); }
311
+
312
+ .ctx { display: flex; flex-direction: column; gap: 9px; flex-grow: 1; min-height: 0; overflow: hidden; }
313
+ .ctxhead { display: flex; align-items: baseline; justify-content: space-between; }
314
+ #ctxtok { font-size: 11px; }
315
+ #ctxtok b { color: var(--ink); font-weight: 400; }
316
+ .ctxmeter { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--active); }
317
+ .ctxmeter .seg.sys { background: var(--meta); }
318
+ .ctxmeter .seg.screen { background: var(--vision); }
319
+ .ctxmeter .seg.talk { background: var(--intent); }
320
+ .ctxlegend { display: flex; gap: 12px; font-size: 10px; color: var(--ink2); }
321
+ .ctxlegend span { display: flex; align-items: center; gap: 5px; }
322
+ .sq { width: 6px; height: 6px; border-radius: 2px; display: inline-block; }
323
+ .sq.metabg { background: var(--meta); } .sq.visionbg { background: var(--vision); } .sq.intentbg { background: var(--intent); }
324
+ #ctxtext { margin: 0; flex-grow: 1; min-height: 40px; overflow-y: auto; font-size: 10px; line-height: 1.55; color: var(--meta); white-space: pre-wrap; word-break: break-word; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 6px; padding: 8px 10px; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
325
+
326
+ .spendrow { display: flex; gap: 20px; }
327
+ .spendcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
328
+ .spendnum { font-family: var(--disp); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
329
+ .spendnum.null { color: var(--null); }
330
+ .spendcol .meta { font-size: 10px; }
331
+ .goaltext { font-size: 12px; line-height: 1.45; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
332
+
333
+ .constrip { height: 32px; flex-shrink: 0; display: flex; align-items: center; padding: 0 16px; background: var(--canvas); border-top: 1px solid var(--divider); font-size: 10px; color: var(--meta); gap: 0; }
334
+ .constrip > span { padding-right: 12px; }
335
+ .constrip > span + span { padding-left: 12px; border-left: 1px solid var(--edge2); }
336
+ .constrip b { color: var(--ink); font-weight: 400; }
337
+ .health { display: flex; align-items: center; gap: 6px; border-left: 0 !important; }
338
+ .hdot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
339
+ .health.ready #healthtext, .health.healthy #healthtext { color: var(--green); }
340
+ .health.degraded .hdot { background: var(--red); }
341
+ .health.degraded #healthtext { color: var(--red); }
342
+
343
+ /* ── control bar ── */
344
+ #controlbar { height: 84px; flex-shrink: 0; display: flex; align-items: center; padding: 0 24px; border-top: 1px solid var(--hairline); background: var(--rails); }
345
+ .footleft { width: 280px; display: flex; flex-direction: column; gap: 3px; }
346
+ .footline { font-size: 11px; color: var(--ink2); display: flex; align-items: center; gap: 5px; }
347
+ .footline.dim { color: var(--meta); }
348
+ #voicesel { border: 0; background: transparent; color: var(--ink2); font-size: 11px; outline: none; padding: 0; cursor: pointer; }
349
+ #voicesel option { background: var(--chrome); color: var(--ink); }
350
+ .grsel:focus-visible, #voicesel:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
351
+
352
+ .footcenter { flex-grow: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
353
+ .ctlbtn { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid transparent; background: var(--canvas); color: var(--ink); box-shadow: none; transition: background .2s, transform .4s var(--ease); }
354
+ .ctlbtn:hover { background: var(--active); }
355
+ .ctlbtn.on { border-color: var(--edge2); background: #fff; color: var(--ink); }
356
+ .ctlbtn.wide { width: auto; padding: 0 20px; }
357
+ .ctlbtn.wide span { font-family: var(--sans); font-size: 14px; font-weight: 500; }
358
+ .ctlbtn.armed { border-color: transparent; background: var(--green); color: #fff; }
359
+ .ctlbtn.miclive { border-color: transparent; background: var(--amber); color: var(--amber-ink); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--amber) 80%, transparent); }
360
+
361
+ .footright { width: 280px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
362
+ .utilbtn { height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border-radius: 999px; border: 1px solid var(--edge2); background: var(--control); color: var(--ink2); box-shadow: none; }
363
+ .utilbtn:hover { background: var(--active); }
364
+ .utilbtn .mono { font-size: 12px; }
365
+ .utilbtn.on { border-color: var(--brandline); background: var(--brandtint); color: var(--amber); }
366
+ .utilbtn.on .kbd { color: var(--amber); border-color: var(--brandline); }
367
+ .leavebtn { height: 50px; padding: 0 22px; display: flex; align-items: center; gap: 9px; border-radius: 999px; border: 0; background: var(--leave); color: #FFFFFF; font-family: var(--sans); font-size: 14px; font-weight: 500; box-shadow: 0 10px 24px -12px rgba(229,72,77,0.7); }
368
+ .leavebtn:disabled { background: var(--canvas); color: var(--null); cursor: default; border: 1px solid transparent; box-shadow: none; }
369
+
370
+ /* ── pop-out (Document PiP) — a cohesive, cinematic miniature of the call ── */
371
+ .pipwrap { position: relative; height: 100vh; display: flex; flex-direction: column; font-family: var(--sans); color: #fff; overflow: hidden;
372
+ background:
373
+ radial-gradient(70% 70% at 18% 8%, rgba(99,102,241,0.16), transparent 60%),
374
+ radial-gradient(60% 60% at 92% 100%, rgba(62,139,232,0.10), transparent 60%),
375
+ linear-gradient(180deg, #141418 0%, #0C0C0F 100%); }
376
+ .pipwrap::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
377
+ background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.3px);
378
+ background-size: 22px 22px;
379
+ -webkit-mask-image: radial-gradient(420px 300px at 20% 10%, #000, transparent 75%);
380
+ mask-image: radial-gradient(420px 300px at 20% 10%, #000, transparent 75%); }
381
+ .pipwrap > * { position: relative; z-index: 1; }
382
+
383
+ .pip-head { height: 46px; flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding: 0 14px; }
384
+ .pip-head .wm { height: 13px; color: #fff; }
385
+ .pip-head .iconbtn { border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.82); box-shadow: none; }
386
+ .pip-head .iconbtn:hover { background: rgba(255,255,255,0.14); }
387
+
388
+ .pip-stage { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 2px 14px 8px; overflow: hidden; }
389
+ .pip-tile { position: relative; flex: 0 0 auto; height: 148px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center;
390
+ background: radial-gradient(55% 60% at 50% 45%, color-mix(in srgb, var(--brand-a) 38%, transparent), transparent 70%), linear-gradient(180deg, #1A1A21, #111116);
391
+ border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.6); }
392
+ .pip-tile.speaking { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-a) 70%, #fff), 0 24px 48px -24px rgba(0,0,0,0.6); }
393
+ .pip-orb { position: relative; width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; animation: breathe 3.4s ease-in-out infinite; }
394
+ .pip-orbcore { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--orb); box-shadow: 0 0 30px color-mix(in srgb, var(--brand-a) 55%, transparent), inset 0 0 0 1px rgba(255,255,255,0.3); }
395
+ .pip-orb i { position: absolute; inset: 0; margin: auto; width: 82px; height: 82px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand-a) 55%, transparent); animation: ringPulse 3s ease-out infinite; }
396
+ .pip-orb i:nth-child(2) { animation-delay: 1.5s; }
397
+ .pip-tile.speaking .pip-orb { animation-duration: 1.3s; }
398
+ .pip-foot { position: absolute; left: 13px; right: 13px; bottom: 11px; display: flex; align-items: center; gap: 9px; }
399
+ .pip-name { font-family: var(--disp); font-size: 14px; font-weight: 500; color: #fff; }
400
+ .pip-status { font-size: 10px; color: rgba(255,255,255,0.62); }
401
+ .pip-foot .eq { margin-left: auto; }
402
+ .pip-foot .eq i { background: rgba(255,255,255,0.5); }
403
+ .pip-tile.speaking .pip-foot .eq i { background: #fff; animation: eqb 0.9s ease-in-out infinite; }
404
+
405
+ .pip-capwrap { flex-grow: 1; min-height: 0; overflow-y: auto; border-radius: 16px; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.10); padding: 11px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent; }
406
+ .pip-cap { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.92); text-wrap: pretty; }
407
+ .pip-cap:empty::before { content: "Ava's replies appear here."; color: rgba(255,255,255,0.38); }
408
+
409
+ .pip-composer { flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin: 0 14px; padding: 0 5px 0 14px; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
410
+ .pip-composer input { flex-grow: 1; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; color: #fff; font-family: var(--sans); font-size: 13px; }
411
+ .pip-composer input::placeholder { color: rgba(255,255,255,0.45); }
412
+ .pip-composer button { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: var(--amber); color: var(--amber-ink); cursor: pointer; }
413
+ .pip-composer button:hover { filter: brightness(0.93); }
414
+
415
+ .pip-dock { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px 14px; }
416
+ .pip-dock .ctlbtn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); box-shadow: none; }
417
+ .pip-dock .ctlbtn:hover { background: rgba(255,255,255,0.14); }
418
+ .pip-dock .ctlbtn.armed, .pip-dock .ctlbtn.miclive { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.2); color: #fff; }
419
+
420
+ /* ── narrow layouts ── */
421
+ @media (max-width: 1180px) {
422
+ .hide-narrow { display: none; }
423
+ #people { width: 264px; }
424
+ #console { position: absolute; right: 0; top: 52px; bottom: 76px; z-index: 30; width: min(440px, 92vw); border-left: 1px solid var(--divider); box-shadow: var(--shadow-md); }
425
+ }
426
+ @media (max-width: 860px) {
427
+ .footleft, .footright { width: auto; }
428
+ .footleft { display: none; }
429
+ .grrow { grid-template-columns: 1fr; }
430
+ #people { display: none; }
431
+ }
432
+
433
+ /* ── Session Report (after Leave) ── */
434
+ #report { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10,10,12,0.35); backdrop-filter: blur(8px); }
435
+ #report[hidden] { display: none !important; }
436
+ .rep-card { width: min(1000px, 96vw); max-height: 92vh; overflow-y: auto; background: var(--chrome); border: 0; border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(10,10,12,0.45); display: flex; flex-direction: column; }
437
+ .rep-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 28px 16px; border-bottom: 1px solid var(--hairline); }
438
+ .repeyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: var(--amber); }
439
+ .rep-titleblock h2 { margin: 5px 0 0; font-family: var(--disp); font-size: 30px; font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; }
440
+ .rep-headmeta { display: flex; align-items: center; gap: 12px; }
441
+ .rep-headmeta .mono { font-size: 13px; color: var(--meta); }
442
+
443
+ .rep-body { display: flex; gap: 24px; padding: 22px 28px; }
444
+ .rep-left { flex: 0 0 38%; display: flex; flex-direction: column; gap: 14px; }
445
+ .rep-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
446
+ .rep-summary { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
447
+ .rep-highlights { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
448
+ .rep-highlights li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.4; color: var(--ink2); }
449
+ .rep-highlights li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
450
+ .rep-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 2px; }
451
+ .rep-stat { background: var(--canvas); border: 0; border-radius: 14px; padding: 9px 11px; }
452
+ .rep-stat b { display: block; font-family: var(--disp); font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
453
+ .rep-stat span { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--meta); }
454
+
455
+ .rep-flowhead { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--meta); }
456
+ .flow { position: relative; height: 262px; background: var(--canvas); border: 0; border-radius: 18px; }
457
+ .flow-conn { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
458
+ .flow-conn line { stroke: var(--edge); stroke-width: 0.5; }
459
+ .fnode { position: absolute; border: 1px solid var(--edge2); border-top: 3px solid var(--meta); border-radius: 12px; background: var(--chrome); padding: 8px 9px; box-shadow: var(--shadow-sm); transition: box-shadow .45s ease, transform .3s ease; }
460
+ .fnode b { display: block; font-family: var(--disp); font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.15; }
461
+ .fnode span { font-size: 9.5px; color: var(--meta); }
462
+ .fnode .fcount { position: absolute; top: 6px; right: 8px; font-family: var(--mono); font-size: 10px; color: var(--meta); font-style: normal; }
463
+ .fnode.vision { border-top-color: var(--vision); left: 1%; width: 19%; top: 8px; height: 58px; }
464
+ .fnode.intent { border-top-color: var(--intent); left: 20.5%; width: 19%; top: 8px; height: 58px; }
465
+ .fnode.router { border-top-color: var(--router); left: 40%; width: 19%; top: 8px; height: 58px; }
466
+ .fnode.planner { border-top-color: var(--planner);left: 59.5%; width: 19%; top: 8px; height: 58px; }
467
+ .fnode.voice { border-top-color: var(--amber); left: 79%; width: 19%; top: 8px; height: 58px; }
468
+ .fnode.bb { left: 1%; width: 98%; top: 46%; height: 34px; border-top: 1px solid var(--edge2); background: var(--active); display: flex; align-items: center; padding-left: 14px; }
469
+ .fnode.bb b { font-size: 11px; }
470
+ .fnode.usern { left: 37%; width: 26%; top: 77%; height: 46px; border-top-color: var(--green); text-align: center; }
471
+ /* fire pulse — lane-colored ring + lift */
472
+ .fnode.fire { transform: translateY(-2px) scale(1.03); }
473
+ .fnode.vision.fire { box-shadow: 0 0 0 3px rgba(47,109,176,0.30), var(--shadow-md); }
474
+ .fnode.intent.fire { box-shadow: 0 0 0 3px rgba(168,75,147,0.30), var(--shadow-md); }
475
+ .fnode.router.fire { box-shadow: 0 0 0 3px rgba(197,106,78,0.30), var(--shadow-md); }
476
+ .fnode.planner.fire { box-shadow: 0 0 0 3px rgba(147,123,44,0.30), var(--shadow-md); }
477
+ .fnode.voice.fire { box-shadow: 0 0 0 3px rgba(79,70,229,0.30), var(--shadow-md); }
478
+ .fnode.usern.fire { box-shadow: 0 0 0 3px rgba(22,163,74,0.30), var(--shadow-md); }
479
+ .fnode.bb.fire { transform: none; box-shadow: 0 0 0 3px rgba(79,70,229,0.18) inset; background: #E7E9FB; }
480
+
481
+ .rep-replay { display: flex; align-items: center; gap: 16px; padding: 8px 28px 6px; }
482
+ .rep-replay .amberbtn { flex-shrink: 0; display: flex; align-items: center; gap: 7px; height: 40px; }
483
+ .rep-tlwrap { flex: 1 1 0; min-width: 0; }
484
+ .rep-timeline { position: relative; height: 8px; border-radius: 4px; background: var(--active); cursor: pointer; }
485
+ .rep-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--amber); }
486
+ .rep-playhead { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2px solid #fff; transform: translate(-50%,-50%); box-shadow: var(--shadow-sm); }
487
+ .rep-now { margin-top: 8px; font-size: 11px; color: var(--ink2); min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
488
+ .rep-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 22px; border-top: 1px solid var(--hairline); }
489
+ .rep-foot .ghostbtn { height: 40px; }
490
+ @media (max-width: 820px) {
491
+ .rep-body { flex-direction: column; }
492
+ .rep-left { flex-basis: auto; }
493
+ }
494
+
495
+ /* ════════════════ SCREEN STATE MACHINE ════════════════ */
496
+ #onboard, #connecting { position: fixed; inset: 0; z-index: 60; }
497
+ body.screen-onboard #topbar, body.screen-onboard #main, body.screen-onboard #controlbar,
498
+ body.screen-connecting #topbar, body.screen-connecting #main, body.screen-connecting #controlbar { display: none !important; }
499
+ body.screen-onboard #connecting { display: none !important; }
500
+ body.screen-connecting #onboard { display: none !important; }
501
+ body.screen-call #onboard, body.screen-call #connecting { display: none !important; }
502
+
503
+ /* ════════════════ ONBOARD SCREEN ════════════════ */
504
+ /* used by connecting rings + Ava orb; defined here so it survives onboard edits */
505
+ @keyframes ringPulse { 0% { transform: scale(0.55); opacity: 0.8; } 100% { transform: scale(1.25); opacity: 0; } }
506
+
507
+ #onboard { display: flex; background: #fff; }
508
+
509
+ /* ── left brand panel — a photo card, like the landing hero ── */
510
+ .ob-aside { position: relative; flex: 0 0 48%; max-width: 660px; margin: 10px 0 10px 10px; border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; padding: 40px 40px 36px; overflow: hidden; color: #fff;
511
+ background: #16161A url("/img/sees-1600.webp?v=2") 38% 45% / cover no-repeat;
512
+ background-image: image-set(url("/img/sees-1600.avif?v=2") type("image/avif"), url("/img/sees-1600.webp?v=2") type("image/webp")); }
513
+ .ob-aside::before { content: ""; position: absolute; inset: 0; pointer-events: none;
514
+ background: linear-gradient(0deg, rgba(8,8,12,0.88) 0%, rgba(8,8,12,0.35) 55%, rgba(8,8,12,0.30) 100%), linear-gradient(90deg, rgba(8,8,12,0.35), transparent 70%); }
515
+ .ob-aside > * { position: relative; z-index: 1; }
516
+ .ob-abrand { display: flex; align-items: center; gap: 10px; }
517
+ .ob-abrand .wm { height: 16px; color: #fff; }
518
+ .ob-abrand .ob-toptag { color: rgba(255,255,255,0.62); margin-left: 6px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.25); }
519
+ .ob-toptag { font-size: 12px; }
520
+ .ob-amid { display: flex; flex-direction: column; gap: 20px; margin-top: auto; }
521
+ .ob-amid h2 { margin: 0; font-family: var(--disp); font-size: clamp(34px, 3.4vw, 52px); line-height: 1; font-weight: 400; letter-spacing: -0.05em; color: #fff; max-width: 12ch; }
522
+ .ob-amid > p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.75); max-width: 36ch; }
523
+ .ob-features { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
524
+ .ob-features li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.86); }
525
+ .ob-features svg { flex-shrink: 0; margin-top: 2px; color: #fff; }
526
+ /* product glimpse card */
527
+ .ob-preview { border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; background: rgba(255,255,255,0.14); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); padding: 16px 18px; display: flex; flex-direction: column; gap: 11px; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55); }
528
+ .ob-pvtop { display: flex; align-items: center; gap: 10px; }
529
+ .ob-pvava { width: 32px; height: 32px; border-radius: 50%; background: var(--orb); box-shadow: 0 0 18px rgba(99,102,241,0.55); display: flex; align-items: center; justify-content: center; }
530
+ .ob-pvid { display: flex; flex-direction: column; gap: 1px; }
531
+ .ob-pvname { font-family: var(--disp); font-size: 14px; font-weight: 500; color: #fff; }
532
+ .ob-pvstatus { font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,0.6); }
533
+ .ob-pvwave { margin-left: auto; display: flex; align-items: flex-end; gap: 2px; height: 18px; }
534
+ .ob-pvwave i { width: 2px; border-radius: 1px; background: #fff; opacity: 0.85; }
535
+ .ob-pvwave i:nth-child(1){height:7px} .ob-pvwave i:nth-child(2){height:13px} .ob-pvwave i:nth-child(3){height:18px} .ob-pvwave i:nth-child(4){height:10px} .ob-pvwave i:nth-child(5){height:15px} .ob-pvwave i:nth-child(6){height:8px} .ob-pvwave i:nth-child(7){height:12px}
536
+ .ob-pvcap { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.92); }
537
+ .ob-pvcap b { color: #fff; font-weight: 500; }
538
+
539
+ /* ── right form panel ── */
540
+ .ob-form { flex: 1 1 0; min-width: 0; overflow-y: auto; background: #fff; display: flex; justify-content: center; padding: 48px 48px; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
541
+ .ob-panel { width: min(460px, 100%); align-self: auto; display: flex; flex-direction: column; animation: obFade .3s ease both; margin: auto 0; }
542
+ @keyframes obFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
543
+ .ob-header { display: flex; flex-direction: column; gap: 10px; padding-bottom: 30px; }
544
+ .ob-header h1 { margin: 0; font-family: var(--disp); font-size: 36px; font-weight: 400; letter-spacing: -0.045em; line-height: 1.02; }
545
+ .ob-header p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink2); }
546
+
547
+ .ob-section { display: flex; flex-direction: column; gap: 13px; }
548
+ .ob-divider { height: 1px; background: var(--hairline); margin: 28px 0; }
549
+ .ob-seclabel { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
550
+ .ob-sublabel { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--meta); }
551
+
552
+ /* mode cards — radio + text, quiet selected state */
553
+ .ob-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
554
+ .ob-mode { text-align: left; cursor: pointer; display: flex; gap: 11px; align-items: flex-start; min-width: 0; border: 1px solid transparent; border-radius: 18px; background: var(--canvas); padding: 16px; transition: border-color .2s, background .2s, box-shadow .2s; }
555
+ .ob-modebody { min-width: 0; }
556
+ .ob-mode:hover { border-color: transparent; background: var(--active); }
557
+ .ob-mode.selected { border-color: var(--amber); background: #fff; box-shadow: 0 0 0 4px var(--brandtint); }
558
+ .ob-radio { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--edge); display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
559
+ .ob-mode.selected .ob-radio { border-color: var(--amber); }
560
+ .ob-mode.selected .ob-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
561
+ .ob-modebody { display: flex; flex-direction: column; gap: 3px; }
562
+ .ob-modename { font-family: var(--disp); font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
563
+ .ob-modedesc { font-size: 12.5px; line-height: 1.45; color: var(--ink2); }
564
+
565
+ /* platform picker */
566
+ .ob-platwrap { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; padding-top: 16px; border-top: 1px dashed var(--edge2); }
567
+ .ob-platwrap[hidden] { display: none; }
568
+ .ob-plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
569
+ .ob-plat { cursor: pointer; text-align: left; display: flex; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 14px; background: var(--canvas); padding: 10px 11px; transition: border-color .15s, background .15s; }
570
+ .ob-plat:hover { border-color: transparent; background: var(--active); }
571
+ .ob-plat.selected { border-color: var(--amber); background: #fff; box-shadow: 0 0 0 4px var(--brandtint); }
572
+ .ob-platdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
573
+ .ob-platmeta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
574
+ .ob-platname { font-family: var(--disp); font-size: 13px; font-weight: 500; color: var(--ink); }
575
+ .ob-platcat { font-size: 10.5px; color: var(--meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
576
+ .ob-platnote { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink2); min-height: 16px; }
577
+
578
+ /* gear form */
579
+ .ob-gear { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
580
+ .ob-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
581
+ .ob-field-wide { grid-column: 1 / -1; }
582
+ .ob-flabel { font-size: 12px; font-weight: 500; color: var(--ink); }
583
+ .ob-fctl { display: flex; align-items: center; gap: 8px; }
584
+ .ob-select { flex-grow: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--control); color: var(--ink); font-family: var(--sans); font-size: 13.5px; outline: none; cursor: pointer; }
585
+ .ob-select:focus { border-color: var(--amber); box-shadow: 0 0 0 4px var(--brandtint); }
586
+ .ob-ghost { height: 44px; padding: 0 16px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--edge); background: var(--control); color: var(--ink2); font-family: var(--sans); font-size: 13px; font-weight: 500; }
587
+ .ob-ghost:hover { background: var(--active); color: var(--ink); }
588
+ .ob-ghost.on { border-color: var(--brandline); background: var(--brandtint); color: var(--amber); }
589
+ .ob-fnote { font-size: 11.5px; line-height: 1.4; color: var(--meta); }
590
+
591
+ /* footer */
592
+ .ob-footer { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
593
+ .ob-actions { display: flex; align-items: center; gap: 10px; }
594
+ .ob-bigbtn { height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14.5px; }
595
+ .ob-joinstate { font-size: 12px; color: var(--red); }
596
+ .ob-priv { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--meta); margin: 0; }
597
+ @media (max-width: 880px) {
598
+ #onboard { flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
599
+ .ob-aside { flex: none; max-width: none; min-height: 300px; margin: 8px 8px 0; padding: 22px 22px 24px; gap: 18px; border-radius: 22px; }
600
+ .ob-amid > p, .ob-features, .ob-preview { display: none; }
601
+ .ob-amid h2 { font-size: 36px; }
602
+ .ob-form { flex: none; overflow: visible; padding: 28px 20px calc(40px + env(safe-area-inset-bottom)); }
603
+ .ob-panel { width: min(600px, 100%); margin: 0 auto; }
604
+ .ob-select { font-size: 16px; }
605
+ .ob-actions { flex-wrap: wrap; }
606
+ .ob-bigbtn { flex: 1 1 auto; white-space: nowrap; }
607
+ }
608
+ @media (max-width: 560px) { .ob-modes, .ob-gear { grid-template-columns: 1fr; } .ob-plats { grid-template-columns: 1fr 1fr; } .ob-panel { padding: 24px 20px; } }
609
+
610
+ /* ════════════════ CONNECTING SCREEN ════════════════ */
611
+ /* a short dark pre-roll — same ink + glow as the call stage, so joining feels like one continuous shot */
612
+ #connecting { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow: hidden; color: #fff;
613
+ background: radial-gradient(60% 55% at 50% 42%, color-mix(in srgb, var(--brand-a) 26%, transparent), transparent 70%), linear-gradient(180deg, #141418 0%, #0A0A0D 100%); }
614
+ #connecting::before { content: ""; position: absolute; inset: 0; pointer-events: none;
615
+ background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.3px); background-size: 22px 22px;
616
+ -webkit-mask-image: radial-gradient(50% 50% at 50% 45%, #000, transparent 80%); mask-image: radial-gradient(50% 50% at 50% 45%, #000, transparent 80%); }
617
+ .cn-brand { position: absolute; top: max(26px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); }
618
+ .cn-brand .wm { height: 15px; color: #fff; opacity: 0.9; }
619
+ .cn-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; width: min(560px, 100%); animation: cnIn .9s var(--ease) both; }
620
+ @keyframes cnIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
621
+ .cn-rings { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
622
+ .cn-rings::before { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, color-mix(in srgb, var(--brand-a) 80%, #fff) 80%, transparent 100%); filter: blur(10px); opacity: 0.8; animation: cnSpin 2.6s linear infinite; }
623
+ @keyframes cnSpin { to { transform: rotate(360deg); } }
624
+ .cn-core { position: relative; z-index: 2; width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--orb); box-shadow: 0 0 70px color-mix(in srgb, var(--brand-a) 60%, transparent), inset 0 0 0 1px rgba(255,255,255,0.35); animation: cnCore 2.4s ease-in-out infinite; }
625
+ @keyframes cnCore { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
626
+ .cn-rings i { position: absolute; inset: 0; margin: auto; width: 200px; height: 200px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand-a) 55%, transparent); animation: ringPulse 3s ease-out infinite; }
627
+ .cn-rings i:nth-child(2) { animation-delay: 1s; }
628
+ .cn-rings i:nth-child(3) { animation-delay: 2s; }
629
+ .cn-wave { display: block; width: min(420px, 86vw); height: 54px; margin: -18px 0 -6px; }
630
+ #cnTitle { margin: 0; font-family: var(--disp); font-size: clamp(26px, 4vw, 36px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.1; text-align: center; color: #fff; }
631
+ /* steps: three segments that fill in turn */
632
+ .cn-steps { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
633
+ .cn-steps li { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.3; color: rgba(255,255,255,0.4); transition: color .4s; }
634
+ .cn-steps li .cn-dot { position: relative; display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12); overflow: hidden; }
635
+ .cn-steps li .cn-dot::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--brand-a), #C7CAFF); }
636
+ .cn-steps li.active { color: #fff; }
637
+ .cn-steps li.active .cn-dot::after { animation: cnFill 1.6s var(--ease) forwards; }
638
+ .cn-steps li.done { color: rgba(255,255,255,0.7); }
639
+ .cn-steps li.done .cn-dot::after { width: 100%; transition: width .35s var(--ease); }
640
+ @keyframes cnFill { to { width: 86%; } }
641
+ .cn-foot { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,0.45); text-align: center; }
642
+ /* the call rises out of the pre-roll */
643
+ body.screen-call #stage { animation: stageIn .8s var(--ease) both; }
644
+ body.screen-call #topbar, body.screen-call #controlbar { animation: chromeIn .6s var(--ease) .1s both; }
645
+ @keyframes stageIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
646
+ @keyframes chromeIn { from { opacity: 0; } to { opacity: 1; } }
647
+
648
+ /* ════════════════ MEET-STYLE PRESENCE GRID ════════════════ */
649
+ #meetgrid { position: absolute; inset: 0; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
650
+ #meetgrid[hidden] { display: none; }
651
+ .mtile { position: relative; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); transition: box-shadow .5s var(--ease); }
652
+ .mtile.ava { background: radial-gradient(55% 55% at 50% 44%, color-mix(in srgb, var(--brand-a) 36%, transparent), transparent 70%), linear-gradient(180deg, #1A1A21 0%, #111116 100%); }
653
+ .mtile.you { background: linear-gradient(180deg, #1C1C22 0%, #131317 100%); }
654
+ .mtile.ava.speaking { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-a) 70%, #fff), 0 30px 60px -30px rgba(0,0,0,0.6); }
655
+ .mt-badge { position: absolute; top: 14px; left: 16px; font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); }
656
+ /* "rethinking" indicator — shows when the reasoning agent flags the user is stuck */
657
+ .mt-rethink { position: absolute; top: 11px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px; background: rgba(14,140,140,0.28); border: 1px solid rgba(255,255,255,0.24); color: #EAFBFB; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
658
+ .mt-rethink[hidden] { display: none; }
659
+ .mt-rethink i { width: 5px; height: 5px; border-radius: 50%; background: #7DE8E8; animation: rethinkPulse 1.3s ease-in-out infinite; }
660
+ @keyframes rethinkPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }
661
+ /* rail mirror + pip variant */
662
+ .pip-rethink { position: absolute; top: 11px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px; background: rgba(14,140,140,0.30); border: 1px solid rgba(255,255,255,0.24); color: #EAFBFB; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; z-index: 3; }
663
+ .pip-rethink[hidden] { display: none; }
664
+ .pip-rethink i { width: 5px; height: 5px; border-radius: 50%; background: #7DE8E8; animation: rethinkPulse 1.3s ease-in-out infinite; }
665
+ .mt-foot { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; }
666
+ .mt-name { font-family: var(--disp); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
667
+ .mt-name.dim { color: rgba(255,255,255,0.8); }
668
+ .mt-status { font-size: 10px; color: rgba(255,255,255,0.65); }
669
+ .mt-foot .eq { margin-left: auto; }
670
+ .mt-foot .eq i { background: rgba(255,255,255,0.55); }
671
+ .mt-foot .eq.live i { background: #fff; }
672
+
673
+ /* Ava breathing orb */
674
+ .mt-orb { position: relative; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; animation: breathe 3.4s ease-in-out infinite; }
675
+ .mt-orbcore { position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--orb); box-shadow: 0 0 44px color-mix(in srgb, var(--brand-a) 55%, transparent), inset 0 0 0 1px rgba(255,255,255,0.3); }
676
+ .mt-orb i { position: absolute; inset: 0; margin: auto; width: 132px; height: 132px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand-a) 55%, transparent); animation: ringPulse 3s ease-out infinite; }
677
+ .mt-orb i:nth-child(2) { animation-delay: 1.5s; }
678
+ .mtile.ava.speaking .mt-orb { animation-duration: 1.3s; }
679
+ @keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
680
+
681
+ /* You avatar with live mic-level ring */
682
+ .mt-avatar { position: relative; width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); font-family: var(--disp); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; color: rgba(255,255,255,0.88); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
683
+ .mt-level { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(90,200,140,0.9); opacity: 0; transform: scale(1); transition: transform .1s ease, opacity .1s ease; pointer-events: none; }
684
+ .mt-share { position: absolute; top: 12px; right: 12px; margin: 0; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
685
+ .mt-share:hover { background: rgba(255,255,255,0.22); }
686
+
687
+ /* ════════════════ live micro-animations ════════════════ */
688
+ .pill.live .dot { animation: livePulse 1.6s ease-in-out infinite; }
689
+ @keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(79,70,229,0.45); } 50% { box-shadow: 0 0 0 4px rgba(79,70,229,0); } }
690
+ #transcript .tline { animation: slideUp .3s ease both; }
691
+ @keyframes slideUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
692
+ #cap { transition: opacity .2s ease; }
693
+ .callout:not([hidden]) { animation: slideUp .3s ease both; }
694
+
695
+ /* ════════════════ REPORT · GANTT TIMELINE ════════════════ */
696
+ .gantt { display: flex; flex-direction: column; gap: 6px; background: var(--canvas); border: 0; border-radius: 18px; padding: 12px 12px 10px; }
697
+ .gantt-rows { display: flex; flex-direction: column; gap: 5px; }
698
+ .g-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; }
699
+ .g-label { font-family: var(--disp); font-size: 11px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
700
+ .g-label .gdotc { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
701
+ .g-track { position: relative; height: 18px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--active) 0 1px, transparent 1px 100%); background-size: 12.5% 100%; }
702
+ .g-bar { position: absolute; top: 2px; height: 14px; min-width: 4px; border-radius: 4px; opacity: 0.34; transition: opacity .2s ease, transform .2s ease; }
703
+ .g-bar.on { opacity: 1; transform: scaleY(1.08); box-shadow: var(--shadow-sm); }
704
+ .g-bar.vision { background: var(--vision); } .g-bar.intent { background: var(--intent); }
705
+ .g-bar.router { background: var(--router); } .g-bar.planner { background: var(--planner); }
706
+ .g-bar.voice { background: var(--voice); } .g-bar.user { background: var(--green); }
707
+ .g-bar.thinking { background: var(--thinking); }
708
+ .gantt-head { position: relative; height: 0; }
709
+ .gantt-playhead { position: absolute; top: -184px; width: 2px; background: var(--amber); left: 0; height: 176px; display: none; box-shadow: 0 0 0 1px rgba(255,255,255,0.6); }
710
+ .gantt-playhead.on { display: block; }
711
+ .gantt-axis { display: flex; justify-content: space-between; font-size: 9px; color: var(--meta); padding-left: 82px; }
712
+
713
+ /* ════════════════ WORKFLOW TRACKER (left rail) ════════════════ */
714
+ #workflow { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--chrome); border-right: 1px solid var(--hairline); min-height: 0; }
715
+ #workflow[hidden] { display: none; }
716
+ .wf-head { flex-shrink: 0; padding: 16px 18px 14px; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 9px; }
717
+ .wf-titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
718
+ .wf-title { font-family: var(--disp); font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
719
+ .wf-count { font-size: 12px; color: var(--meta); flex-shrink: 0; }
720
+ .wf-bar { height: 5px; border-radius: 999px; background: var(--active); overflow: hidden; }
721
+ .wf-fill { height: 100%; width: 0; border-radius: 4px; background: var(--amber); transition: width .5s cubic-bezier(.2,.7,.3,1); }
722
+ .wf-eta { font-size: 11px; color: var(--meta); min-height: 14px; }
723
+
724
+ .wf-steps { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
725
+ .wf-step { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 18px; }
726
+ .wf-step:last-child { padding-bottom: 0; }
727
+ .wf-step:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--edge2); }
728
+ .wf-step.done:not(:last-child)::before { background: var(--amber); }
729
+ .wf-mark { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--edge2); background: var(--chrome); display: flex; align-items: center; justify-content: center; }
730
+ .wf-step.active .wf-mark { border-color: var(--amber); }
731
+ .wf-step.active .wf-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
732
+ .wf-step.done .wf-mark { background: var(--amber); border-color: var(--amber); }
733
+ .wf-step.done .wf-mark::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1.5px) rotate(-45deg); }
734
+ .wf-stepbody { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; min-width: 0; }
735
+ .wf-steptitle { font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--ink2); }
736
+ .wf-step.active .wf-steptitle { color: var(--ink); font-weight: 600; }
737
+ .wf-step.todo .wf-steptitle { color: var(--meta); }
738
+ .wf-substatus { font-size: 11px; color: var(--meta); line-height: 1.35; }
739
+ .wf-step.active .wf-substatus { color: var(--amber); font-weight: 500; }
740
+
741
+ .wf-foot { flex-shrink: 0; border-top: 1px solid var(--hairline); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
742
+ .wf-handoffbanner { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-radius: 14px; background: var(--brandtint); border: 1px solid var(--brandline); color: var(--amber); font-size: 12px; line-height: 1.35; }
743
+ .wf-handoffbanner[hidden] { display: none; }
744
+ .wf-hbcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
745
+ .wf-hblink { text-align: left; word-break: break-all; font-size: 10.5px; color: var(--amber); background: var(--chrome); border: 1px solid var(--brandline); border-radius: 8px; padding: 5px 7px; cursor: pointer; line-height: 1.35; }
746
+ .wf-hblink[hidden] { display: none; }
747
+ .wf-hblink:hover { background: #fff; }
748
+ .wf-spin { flex-shrink: 0; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--brandline); border-top-color: var(--amber); animation: wfspin .8s linear infinite; }
749
+ @keyframes wfspin { to { transform: rotate(360deg); } }
750
+ .wf-agent { display: flex; align-items: center; gap: 10px; }
751
+ .wf-agentava { width: 30px; height: 30px; border-radius: 50%; background: var(--orb); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 16px color-mix(in srgb, var(--brand-a) 45%, transparent); }
752
+ .wf-agentid { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
753
+ .wf-agentname { font-family: var(--disp); font-size: 12.5px; font-weight: 500; color: var(--ink); }
754
+ .wf-agentstate { font-size: 10px; color: var(--meta); }
755
+ .wf-agent .eq { margin-left: auto; }
756
+ .wf-know { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink2); }
757
+ .wf-know[hidden] { display: none; }
758
+ .wf-know::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: #7A5AF8; flex-shrink: 0; }
759
+ .wf-handoff { height: 40px; border-radius: 999px; border: 1px solid var(--edge); background: var(--control); color: var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 500; }
760
+ .wf-handoff:hover { background: var(--active); }
761
+ .wf-handoff.active { border-color: var(--brandline); background: var(--brandtint); color: var(--amber); }
762
+ .wf-priv { font-size: 10px; color: var(--meta); line-height: 1.4; margin: 0; }
763
+ @media (max-width: 1180px) { #workflow { width: 262px; } }
764
+ @media (max-width: 720px) {
765
+ #workflow { width: auto; border-right: 0; border-bottom: 1px solid var(--hairline); }
766
+ #workflow .wf-steps, #workflow .wf-foot { display: none; }
767
+ #workflow .wf-head { padding: 10px 16px 12px; gap: 7px; border-bottom: 0; }
768
+ #workflow .wf-eta { display: none; }
769
+ }
770
+
771
+ /* composer focus + small-screen lobby card, landing-style */
772
+ #composer:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px var(--brandtint); }
773
+ /* laptop-height screens: keep the whole lobby form in view without scrolling */
774
+ @media (max-height: 860px) and (min-width: 881px) {
775
+ .ob-form { padding: 28px 48px; }
776
+ .ob-header { gap: 6px; padding-bottom: 18px; }
777
+ .ob-header h1 { font-size: 30px; }
778
+ .ob-section { gap: 10px; }
779
+ .ob-divider { margin: 18px 0; }
780
+ .ob-mode { padding: 13px 14px; }
781
+ .ob-gear { gap: 12px 18px; }
782
+ .ob-field { gap: 6px; }
783
+ .ob-select, .ob-ghost { height: 40px; }
784
+ .ob-footer { gap: 10px; margin-top: 20px; }
785
+ .ob-bigbtn { height: 46px; }
786
+ .ob-aside { padding: 32px 34px 30px; gap: 24px; }
787
+ .ob-amid { gap: 16px; }
788
+ .ob-features { gap: 10px; }
789
+ }
790
+ /* tiles follow the stage's own shape: stack when it's taller than wide (console open, narrow windows), shrink the orb when it's short (phones) */
791
+ #stage { container-type: size; }
792
+ @container (max-aspect-ratio: 87/100) { #meetgrid { grid-template-columns: 1fr; } }
793
+ @container (max-height: 460px) {
794
+ #meetgrid { padding: 10px; gap: 10px; }
795
+ .mt-orb, .mt-orb i { width: 92px; height: 92px; }
796
+ .mt-orbcore { width: 60px; height: 60px; }
797
+ .mt-avatar { width: 64px; height: 64px; font-size: 12px; }
798
+ .mt-foot { left: 12px; right: 12px; bottom: 10px; }
799
+ .mt-badge { top: 10px; left: 12px; }
800
+ }
801
+
802
+ /* ── phones: never offer a share button the browser can't honour ── */
803
+ .ob-noshare { display: none; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink2); padding: 10px 12px; border-radius: 12px; background: var(--canvas); }
804
+ .noshare .ob-noshare { display: block; }
805
+ .noshare #sharemain, .noshare #share, .noshare #meetShare { display: none !important; }
806
+
807
+ /* ── the call on phones ── */
808
+ body { height: 100dvh; }
809
+ @media (max-width: 720px) {
810
+ #topbar { height: 56px; padding: 0 14px; gap: 10px; }
811
+ #topbar .vdiv, #topsub, #modelchip, #privacy, #pipbtn { display: none !important; }
812
+ .apptitle { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
813
+ #main { flex-direction: column; }
814
+ #stagecol { padding: 10px 12px 8px; gap: 10px; }
815
+ #stage { border-radius: 18px; min-height: 240px; }
816
+ #cap { font-size: 16.5px; }
817
+ #composer { height: 46px; padding: 0 8px 0 16px; }
818
+ #composer input { height: 44px; font-size: 16px; }
819
+ #composer .kbd { display: none; }
820
+ .iconbtn.lg { width: 46px; height: 46px; }
821
+ #controlbar { height: auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
822
+ .footcenter { justify-content: flex-start; gap: 8px; }
823
+ .ctlbtn { width: 46px; height: 46px; }
824
+ .ctlbtn.wide { width: 46px; padding: 0; }
825
+ .ctlbtn.wide span { display: none; }
826
+ .footright { gap: 8px; }
827
+ #consolebtn { display: none; }
828
+ .leavebtn { height: 46px; padding: 0 18px; }
829
+ #console { top: 56px; bottom: 0; width: 100vw; border-left: 0; }
830
+ #report { padding: 10px; align-items: flex-end; }
831
+ .rep-card { width: 100%; max-height: 94dvh; border-radius: 24px; }
832
+ .rep-head, .rep-body, .rep-foot { padding-left: 20px; padding-right: 20px; }
833
+ .rep-right, .rep-replay, #repFootnote { display: none; }
834
+ .rep-foot { justify-content: flex-end; }
835
+ .rep-foot .ghostbtn { white-space: nowrap; }
836
+ }