openvibers/openvibe.shared thread.css

thread.css

main 30.0 KB · 312 lines · css

1/* openvibe-shared/thread.css — one conversation UI for the network (plan L55 C4), drawn by openvibe-shared/thread and
2 ov-thread.js. The page scrolls as a whole (no inner box to trap a thumb); the composer stays at the bottom of the
3 screen, above a phone's app bar; the chats are a column on a wide screen and a drawer on a phone. Theme tokens only,
4 so every OpenVibe look applies. Nothing spins: a working turn breathes. */
5.ovt { --ovt-top: 56px; --ovt-rail: 272px; --ovt-line: color-mix(in srgb, var(--border, #1f2d47) 80%, transparent);
6 --ovt-accent: var(--accent, #3b82f6);
7 display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - var(--ovt-top)); color: var(--text-primary, #e6edf7); }
8/* The network's one sidebar (kit.sidebar): a column from 761 px, where kit.css makes it one, and sticky under the navbar. */
9@media (min-width: 761px) {
10 .ovt:has(> .ovk-sidebar) { grid-template-columns: var(--ovk-sidebar-w, var(--ovt-rail)) minmax(0, 1fr); }
11 .ovt > .ovk-sidebar { position: sticky; top: var(--ovt-top); height: calc(100dvh - var(--ovt-top)); overflow-y: auto; overscroll-behavior: contain; }
12}
13@media (max-width: 760px) { .ovt > .ovk-sidebar-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 59; } }
14.ovt-head .ovk-sidebar-open { flex: none; }
15/* The hidden attribute always wins inside the kit (a rule's display never shows what a page hid). */
16.ovt [hidden] { display: none !important; }
17.ovt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
18.ovt-muted { color: var(--text-muted, #7386a3); }
19.ovt-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
20
21/* ── The chats (kit.sidebar) ──────────────────────────────────────────────────────────────────────────────────────────────── */
22.ovt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ovt-accent); animation: ovt-breathe 1.6s ease-in-out infinite; }
23.ovk-sidebar-foot .ovt-side-foot { border-top: 0; padding-top: 0; }
24.ovt-side-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 10px 8px 0; border-top: 1px solid var(--ovt-line); font-size: 13px; }
25.ovt-side-foot a { color: var(--text-secondary, #96a7c2); text-decoration: none; }
26.ovt-side-foot a:hover { color: var(--text-primary, #e6edf7); }
27
28/* ── The conversation ───────────────────────────────────────────────────────────────────────────────────────── */
29.ovt-main { display: flex; flex-direction: column; min-width: 0; min-height: calc(100dvh - var(--ovt-top) - var(--ovnav-appbar-h, 0px)); }
30.ovt-head { position: sticky; top: var(--ovt-top); z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 52px;
31 padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
32 background: color-mix(in srgb, var(--bg-primary, #0a0f1c) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
33.ovt-head.is-stuck { border-bottom-color: var(--ovt-line); }
34.ovt-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
35.ovt-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: none; color: var(--text-secondary, #b4c0d4); cursor: pointer; text-decoration: none; }
36.ovt-btn:hover, .ovt-btn:focus-visible { background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 6%, transparent)); color: var(--text-primary, #e6edf7); }
37.ovt-btn .ovt-ic { width: 22px; height: 22px; }
38.ovt-scroll { flex: 1; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
39.ovt-thread { list-style: none; max-width: 780px; margin: 0 auto; padding: 0; display: grid; gap: 30px; }
40.ovt-empty-state { max-width: 780px; margin: 8vh auto 0; text-align: center; }
41.ovt-empty-state:empty { display: none; }
42
43.ovt-turn { display: grid; gap: 14px; scroll-margin-top: calc(var(--ovt-top) + 60px); }
44.ovt-you { display: grid; justify-items: end; gap: 8px; }
45.ovt-bubble { max-width: min(85%, 620px); margin: 0; padding: 10px 15px; border-radius: 20px 20px 6px 20px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5;
46 background: color-mix(in srgb, var(--ovt-accent) 14%, var(--bg-card, #131c2e)); color: var(--text-primary, #e6edf7); }
47.ovt-turn.is-new .ovt-bubble { animation: ovt-rise .32s cubic-bezier(.2, .8, .2, 1) both; }
48.ovt-bot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
49.ovt-bot:not(:has(.ovt-avatar)) { grid-template-columns: minmax(0, 1fr); }
50.ovt-avatar { width: 28px; height: 28px; margin-top: 2px; border-radius: 9px;
51 background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--ovt-accent) 70%, #fff), var(--ovt-accent) 55%, color-mix(in srgb, var(--ovt-accent) 60%, #000));
52 box-shadow: 0 0 0 1px color-mix(in srgb, var(--ovt-accent) 35%, transparent); }
53/* While it thinks or writes, the agent's picture shows the thinking sign (the mark's own: three dots rising in turn,
54 openvibe-shared 4.187.0); a face or initials (is-who) keeps breathing instead, so it is never covered. */
55.ovt-avatar { position: relative; }
56.ovt-turn[data-open] .ovt-avatar.is-who { animation: ovt-breathe 1.6s ease-in-out infinite; }
57.ovt-turn[data-open] .ovt-avatar:not(.is-who)::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
58 --d: radial-gradient(circle closest-side, #fff 88%, transparent) no-repeat;
59 background: var(--d) 5px 11.5px / 5px 5px, var(--d) 11.5px 11.5px / 5px 5px, var(--d) 18px 11.5px / 5px 5px;
60 animation: ovt-think 1.2s ease-in-out infinite; }
61.ovt-reply { min-width: 0; display: grid; gap: 10px; }
62/* Grid items size to their content by default: a tool row's long input would widen the page. */
63.ovt-reply > *, .ovt-work, .ovt-w-tool > details { min-width: 0; max-width: 100%; }
64.ovt-w-tool > details > summary { min-width: 0; }
65
66/* The work, folded: "Worked for 12 s · 3 tools". Open while the turn works, so its live line shows. */
67.ovt-work > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0 10px 0 2px; border-radius: 10px; cursor: pointer;
68 color: var(--text-secondary, #96a7c2); font-size: 14px; }
69.ovt-work > summary::-webkit-details-marker { display: none; }
70.ovt-work > summary:hover { color: var(--text-primary, #e6edf7); }
71.ovt-chev { width: 16px; height: 16px; transition: transform .2s; }
72.ovt-work[open] > summary .ovt-chev { transform: rotate(180deg); }
73.ovt-w-live { background: linear-gradient(90deg, var(--text-secondary, #96a7c2) 40%, var(--text-primary, #e6edf7) 50%, var(--text-secondary, #96a7c2) 60%) 0 0 / 300% 100%;
74 -webkit-background-clip: text; background-clip: text; color: transparent; animation: ovt-shimmer 2.4s linear infinite; }
75.ovt-w-list { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--ovt-line); display: grid; gap: 6px; font-size: 14px; color: var(--text-secondary, #96a7c2); }
76.ovt-w-list > li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
77.ovt-w-list > li > .ovt-ic { width: 16px; height: 16px; margin-top: 2px; }
78.ovt-w-list p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
79.ovt-w-note.is-warn { color: var(--warning-text, #fbbf24); }
80.ovt-w-tool { display: block !important; }
81.ovt-w-tool > details > summary, .ovt-w-tool > .ovt-w-row { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 28px; min-width: 0; }
82.ovt-w-tool > .ovt-w-row { cursor: default; }
83.ovt-w-tool > details > summary::-webkit-details-marker { display: none; }
84.ovt-w-tool b { flex: none; font-weight: 600; color: var(--text-primary, #e6edf7); white-space: nowrap; }
85.ovt-w-in { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted, #7386a3); }
86.ovt-w-st { margin-left: auto; display: inline-flex; }
87.ovt-w-tool.is-ok .ovt-w-st { color: var(--success-text, #4ade80); }
88.ovt-w-tool.is-bad .ovt-w-st { color: var(--danger-text, #f87171); }
89.ovt-w-out { margin: 6px 0 4px 24px; max-height: 260px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--bg-primary, #0a0f1c); border: 1px solid var(--ovt-line);
90 font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
91
92/* The answer: comfortable reading, code with Copy, tables that scroll inside themselves. */
93.ovt-answer { line-height: 1.65; font-size: 16px; overflow-wrap: anywhere; }
94.ovt-answer > :first-child { margin-top: 0; }
95.ovt-answer > :last-child { margin-bottom: 0; }
96.ovt-answer pre { position: relative; overflow-x: auto; padding: 12px 14px; border-radius: 12px; background: var(--bg-secondary, #0f1729); border: 1px solid var(--ovt-line); font-size: 13.5px; }
97.ovt-answer table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
98.ovt-answer th, .ovt-answer td { padding: 6px 10px; border-bottom: 1px solid var(--ovt-line); text-align: left; }
99.ovt-answer a { color: var(--accent-light, var(--ovt-accent)); }
100.ovt-turn.is-fresh .ovt-answer { animation: ovt-fade .4s ease-out both; }
101/* An answer that types in (ov-thread.js reveal): only opacity, so a screen reader reads it all at once. */
102.ovt-answer.is-revealing .ovt-sw { opacity: 0; transition: opacity .28s ease-out; }
103.ovt-answer.is-revealing .ovt-sw.on { opacity: 1; }
104html[data-ov-motion=off] .ovt-answer.is-revealing .ovt-sw{opacity: 1 !important}
105.ovt-answer pre:has(.ovt-code-copy) { padding-right: 68px; }
106.ovt-code-copy { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); color: var(--text-secondary, #96a7c2); font-size: 12px; cursor: pointer; }
107.ovt-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
108.ovt-files img { display: block; max-width: 220px; max-height: 180px; border-radius: 12px; border: 1px solid var(--ovt-line); object-fit: cover; }
109.ovt-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); color: inherit; text-decoration: none; }
110.ovt-file span { display: grid; }
111.ovt-file small { color: var(--text-muted, #7386a3); }
112.ovt-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
113.ovt-sources a { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ovt-line); color: var(--text-secondary, #96a7c2); font-size: 13px; text-decoration: none; }
114.ovt-sources a:hover { color: var(--text-primary, #e6edf7); border-color: var(--ovt-accent); }
115.ovt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--text-muted, #7386a3); }
116.ovt-acts { display: inline-flex; gap: 4px; margin-left: auto; }
117.ovt-act { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 9px; border: 0; background: none; color: var(--text-secondary, #96a7c2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
118.ovt-act:hover, .ovt-act:focus-visible { background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 6%, transparent)); color: var(--text-primary, #e6edf7); }
119.ovt-act .ovt-ic { width: 16px; height: 16px; }
120.ovt-card { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); }
121.ovt-card p { margin: 0 0 6px; }
122.ovt-card > :last-child { margin-bottom: 0; }
123.ovt-card.is-wait { border-color: color-mix(in srgb, var(--ovt-accent) 50%, var(--ovt-line)); }
124.ovt-card.is-bad { border-color: color-mix(in srgb, var(--danger-text, #f87171) 50%, var(--ovt-line)); }
125
126/* ── The panel (4.99.0): what the work produced. A third column from 1180 px, a drawer from the right below. ─────── */
127.ovt { --ovt-panel-w: 300px; }
128.ovt-panel { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 16px; background: var(--bg-secondary, #0f1729); border-left: 1px solid var(--ovt-line); }
129.ovt-panel-head { display: flex; align-items: center; gap: 8px; min-height: 42px; }
130.ovt-panel-head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 650; }
131.ovt-panel-sec { padding: 10px 0; border-top: 1px solid var(--ovt-line); }
132.ovt-panel-head + .ovt-panel-sec { border-top: 0; padding-top: 2px; }
133.ovt-panel-sec h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
134.ovt-panel-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
135.ovt-panel-rows > li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 14px; }
136.ovt-panel-rows > li > svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--text-secondary, #96a7c2); }
137.ovt-panel-rows > li > span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; }
138.ovt-panel-rows small { color: var(--text-muted, #7386a3); font-size: 12.5px; }
139.ovt-panel-rows .ovt-avatar { width: 24px; height: 24px; margin-top: 0; font-size: 10.5px; border-radius: 8px; }
140.ovt-panel a { color: var(--accent-light, var(--ovt-accent)); }
141.ovt-panel code { font-size: 12.5px; overflow-wrap: anywhere; }
142@media (min-width: 1180px) {
143 .ovt.has-panel { grid-template-columns: minmax(0, 1fr) var(--ovt-panel-w); }
144 .ovt.has-panel:has(> .ovk-sidebar) { grid-template-columns: var(--ovk-sidebar-w, var(--ovt-rail)) minmax(0, 1fr) var(--ovt-panel-w); }
145 .ovt-panel { position: sticky; top: var(--ovt-top); height: calc(100dvh - var(--ovt-top)); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; }
146 .ovt-panel-open, .ovt-panel-close, .ovt-panel-scrim { display: none !important; }
147}
148@media (max-width: 1179px) {
149 .ovt-panel { position: fixed; z-index: 10060; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
150 padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
151 border-left: 0; translate: 100% 0; visibility: hidden; transition: translate .25s ease, visibility 0s linear .25s; box-shadow: -12px 0 32px rgba(0, 0, 0, .25); }
152 .ovt.is-panel .ovt-panel { translate: 0 0; visibility: visible; transition: translate .25s ease; }
153 .ovt-panel-scrim { position: fixed; inset: 0; z-index: 10050; background: rgba(0, 0, 0, .4); }
154}
155
156/* An agent's face and name over its reply (turn({ who })), and the line across the thread when another takes over. */
157.ovt-avatar.is-who { display: grid; place-items: center; background: color-mix(in srgb, var(--ovt-who, var(--ovt-accent)) 22%, var(--bg-card, #131c2e));
158 color: color-mix(in srgb, var(--ovt-who, var(--ovt-accent)) 70%, var(--text-primary, #e6edf7)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ovt-who, var(--ovt-accent)) 45%, transparent);
159 font-size: 11.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1; }
160.ovt-avatar.is-who .ovt-ic, .ovt-avatar.is-who svg { width: 16px; height: 16px; }
161/* A face in the sidebar (a chat's agent) or a panel row: smaller, beside a line of text. */
162.ovk-sidebar-item .ovt-avatar.is-who { flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; font-size: 10px; }
163.ovk-sidebar-item .ovt-avatar.is-who svg { width: 13px; height: 13px; }
164.ovt-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 3px 0 -4px; font-size: 14px; }
165.ovt-who b { font-weight: 650; color: var(--text-primary, #e6edf7); }
166.ovt-who span { color: var(--text-muted, #7386a3); font-size: 13px; }
167.ovt-caption { font-size: 12px; color: var(--text-muted, #7386a3); }
168.ovt-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted, #7386a3); font-size: 13px; }
169.ovt-divider::before, .ovt-divider::after { content: ""; flex: 1; height: 1px; background: var(--ovt-line); }
170.ovt-divider > span { display: inline-flex; align-items: center; gap: 6px; max-width: min(80%, 560px); text-align: center; }
171.ovt-divider .ovt-ic { width: 16px; height: 16px; }
172
173/* A card that asks (an approval): what it wants to run, then Allow and Deny. */
174.ovt-card-h { display: flex; align-items: flex-start; gap: 8px; }
175.ovt-card-h > .ovt-ic { margin-top: 2px; color: var(--text-secondary, #96a7c2); }
176.ovt-card.is-wait .ovt-card-h > .ovt-ic { color: var(--ovt-accent); }
177.ovt-card-code { margin: 4px 0 8px; max-height: 220px; overflow: auto; padding: 8px 10px; border-radius: 10px; background: var(--bg-primary, #0a0f1c); border: 1px solid var(--ovt-line);
178 font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: break-word; }
179.ovt-card-acts { display: flex; flex-wrap: wrap; gap: 8px; }
180.ovt-card-btn { min-height: 38px; padding: 0 16px; border-radius: 11px; border: 0; background: var(--ovt-accent); color: var(--on-accent, #fff); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
181.ovt-card-btn.is-quiet { background: none; color: var(--text-primary, #e6edf7); box-shadow: inset 0 0 0 1px var(--ovt-line); }
182.ovt-card-btn:hover { filter: brightness(1.08); }
183.ovt-card-btn.is-quiet:hover { background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 6%, transparent)); filter: none; }
184
185/* A start page (page({ center })): the welcome and the composer together in the middle, not the composer at the bottom. */
186/* The head stays at the top; only the welcome and the composer are centred, by auto margins (centring the whole column
187 floated the head into the middle of a tall screen, above an empty band). */
188.ovt.is-start .ovt-scroll { flex: none; padding-bottom: 4px; margin-top: auto; }
189.ovt.is-start .ovt-empty-state { margin-top: 0; }
190.ovt.is-start .ovt-dock { position: static; background: none; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); margin-bottom: auto; }
191@media (max-width: 760px) { .ovt.is-start .ovt-scroll { margin-top: 0; } .ovt.is-start .ovt-dock { margin-bottom: 0; } .ovt.is-start .ovt-empty-state { margin-top: 4vh; } }
192
193/* A plain page in the conversation's place (page({ main })). */
194.ovt-page { max-width: 980px; width: 100%; box-sizing: border-box; margin: 0 auto; }
195
196/* ── The composer ───────────────────────────────────────────────────────────────────────────────────────────── */
197.ovt-dock { position: sticky; bottom: var(--ovnav-appbar-h, 0px); z-index: 15; padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
198 background: linear-gradient(to top, var(--bg-primary, #0a0f1c) 70%, transparent); }
199.ovt-starters { display: flex; flex-wrap: wrap; gap: 8px; max-width: 780px; margin: 0 auto 10px; }
200.ovt-starter { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); color: var(--text-secondary, #b4c0d4); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
201.ovt-starter:hover, .ovt-starter:focus-visible { border-color: var(--ovt-accent); color: var(--text-primary, #e6edf7); }
202.ovt-composer { max-width: 780px; margin: 0 auto; padding: 10px 10px 8px 14px; border-radius: 22px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e);
203 box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
204.ovt-composer:focus-within { border-color: color-mix(in srgb, var(--ovt-accent) 60%, var(--ovt-line)); }
205.ovt-composer textarea { display: block; width: 100%; box-sizing: border-box; min-height: 26px; max-height: 40vh; padding: 4px 0; border: 0; outline: 0; resize: none; background: none;
206 color: var(--text-primary, #e6edf7); font: inherit; font-size: 16px; line-height: 1.5; }
207.ovt-c-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
208.ovt-c-tools { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
209.ovt-send, .ovt-stop { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 650; }
210.ovt-send { background: var(--ovt-accent); color: var(--on-accent, #fff); }
211.ovt-send:disabled { opacity: .45; cursor: default; }
212.ovt-stop { display: inline-flex; gap: 6px; background: var(--bg-hover, color-mix(in srgb, var(--text-primary, #fff) 8%, transparent)); color: var(--text-primary, #e6edf7); }
213.ovt-send .ovt-ic, .ovt-stop .ovt-ic { width: 18px; height: 18px; }
214.ovt-c-note { margin: 6px 4px 0; font-size: 12.5px; color: var(--text-muted, #7386a3); }
215.ovt-c-note:empty { display: none; }
216
217@keyframes ovt-breathe { 50% { opacity: .45; } }
218@keyframes ovt-think {
219 0%, 60%, 100% { background-position: 5px 11.5px, 11.5px 11.5px, 18px 11.5px; }
220 15% { background-position: 5px 7.5px, 11.5px 11.5px, 18px 11.5px; }
221 30% { background-position: 5px 11.5px, 11.5px 7.5px, 18px 11.5px; }
222 45% { background-position: 5px 11.5px, 11.5px 11.5px, 18px 7.5px; }
223}
224@keyframes ovt-rise { from { opacity: 0; transform: translateY(8px); } }
225@keyframes ovt-fade { from { opacity: 0; } }
226@keyframes ovt-shimmer { to { background-position: -300% 0; } }
227html[data-ov-motion=off] .ovt-answer.is-revealing .ovt-sw{opacity: 1 !important}html[data-ov-motion=off] .ovt-w-live{color: var(--text-secondary, #96a7c2);background: none}
228
229/* ── The composer's Options (11-09, the owner: "too many options… hidden under a cog… less cluttered but still has the power
230 features"): one button; the pickers in a panel above it on a computer, a sheet on a phone; what differs from the defaults
231 shows as chips beside the button. ── */
232.ovt-opts { position: relative; flex: none; }
233.ovt-opts > summary { list-style: none; position: relative; }
234.ovt-opts > summary::-webkit-details-marker { display: none; }
235.ovt-opts-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; cursor: pointer; color: var(--text-secondary, #96a7c2); transition: background-color .15s, color .15s, transform .18s cubic-bezier(.2, 1.4, .3, 1); }
236.ovt-opts-btn:hover, .ovt-opts[open] > .ovt-opts-btn { background: color-mix(in srgb, var(--ovt-accent) 14%, transparent); color: var(--text-primary, #e6edf7); }
237.ovt-opts-btn:active { transform: scale(.92); }
238.ovt-opts-btn .ovt-ic { width: 20px; height: 20px; }
239.ovt-opts-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ovt-accent); box-shadow: 0 0 0 2px var(--bg-card, #131c2e); }
240.ovt-opts-dot[hidden] { display: none; }
241.ovt-opts-panel { position: absolute; z-index: 40; left: -6px; bottom: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); box-sizing: border-box; padding: 10px 10px 12px;
242 border-radius: 18px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transform-origin: 20px 100%;
243 animation: ovt-opts-in .2s cubic-bezier(.2, .9, .3, 1) both; }
244.ovt.is-start .ovt-opts-panel { bottom: auto; top: calc(100% + 10px); transform-origin: 20px 0; }
245@keyframes ovt-opts-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
246.ovt-opts-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px 8px; }
247.ovt-opts-head b { font-size: 15px; font-weight: 700; }
248.ovt-opts-x { width: 36px; height: 36px; }
249.ovt-opts-body { display: grid; gap: 6px; }
250/* Each picker is a full row: icon, what it is, the value. Low specificity, so a site's own picker styles still win. */
251:where(.ovt-opts-body) > :where(label, .ovt-opt) { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px; box-sizing: border-box;
252 background: color-mix(in srgb, var(--text-primary, #e6edf7) 5%, transparent); color: var(--text-primary, #e6edf7); }
253:where(.ovt-opts-body) :where(select, input[type="text"], input[type="url"], input:not([type])) { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 15px; }
254.ovt-opts-chips { display: contents; }
255.ovt-opt-chip { display: inline-flex; align-items: center; gap: 2px; height: 32px; max-width: 200px; padding: 0 2px 0 12px; border-radius: 999px; box-sizing: border-box; cursor: pointer;
256 background: color-mix(in srgb, var(--ovt-accent) 13%, transparent); color: var(--accent-light, #93c5fd); font-size: 13px; font-weight: 600; animation: ovt-chip-in .18s ease both; }
257.ovt-opt-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
258.ovt-opt-chip-x { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
259.ovt-opt-chip-x:hover { background: color-mix(in srgb, var(--ovt-accent) 20%, transparent); }
260@keyframes ovt-chip-in { from { opacity: 0; transform: scale(.9); } }
261html.ovt-sheet-open, html.ovt-sheet-open body { overflow: hidden; }
262@media (max-width: 640px) {
263 .ovt-opts[open]::before { content: ''; position: fixed; inset: 0; z-index: 10064; background: rgba(0, 0, 0, .45); animation: ovt-fade .2s ease both; }
264 .ovt-opts-panel, .ovt.is-start .ovt-opts-panel { position: fixed; z-index: 10065; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: min(80dvh, 640px); overflow-y: auto; overscroll-behavior: contain;
265 padding: 8px 14px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; border-width: 1px 0 0; transform-origin: 50% 100%; animation: ovt-sheet-up .26s cubic-bezier(.2, .9, .3, 1) both; }
266 .ovt-opts-panel::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: color-mix(in srgb, var(--text-primary, #e6edf7) 22%, transparent); }
267}
268@keyframes ovt-sheet-up { from { transform: translateY(100%); } }
269@keyframes ovt-fade { from { opacity: 0; } }
270
271/* The examples walk through the placeholder with a fade. */
272.ovt-composer textarea::placeholder { transition: opacity .22s ease; }
273.ovt-composer textarea.is-ph-out::placeholder { opacity: 0; }
274
275/* The keyboard (navbar.js sets html.ov-kb-open and --ov-kb): a start page folds what it marks data-ovt-fold, so the box
276 and what you type stay on the screen above the keyboard. */
277:where([data-ovt-fold]) { transition: opacity .2s ease, max-height .28s cubic-bezier(.2, .9, .3, 1), margin .28s ease; max-height: 240px; }
278@media (max-width: 760px) {
279 html.ov-kb-open .ovt.is-start [data-ovt-fold] { opacity: 0; max-height: 0; margin-top: 0; margin-bottom: 0; overflow: hidden; pointer-events: none; }
280 html.ov-kb-open .ovt.is-start .ovt-empty-state { margin-top: 6px; }
281 /* A kit sidebar's button lives in the navbar (ov-thread.js); a head with nothing else in it goes. */
282 .ovt.has-nav-lead .ovt-head [data-ovk-sidebar-open] { display: none; }
283 .ovt.has-nav-lead .ovt-head:not(:has(> :not([data-ovk-sidebar-open], span.ovt-title:empty))) { display: none; }
284}
285
286/* Answers' actions are icon buttons (11-09): 32 px, the word as tooltip; a copy shows a tick for a moment. */
287.ovt-acts .ovt-act { width: 32px; padding: 0; justify-content: center; }
288.ovt-acts .ovt-act .ovt-ic { width: 17px; height: 17px; }
289.ovt-act.is-done { color: var(--success, #22c55e); }
290
291/* Attach: one + button; with a menu, the choices in a small pop-over above it (a sheet's look on a phone). */
292.ovt-attach { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 14px; cursor: pointer; color: var(--text-secondary, #96a7c2); transition: background-color .15s, color .15s, transform .18s cubic-bezier(.2, 1.4, .3, 1); }
293.ovt-attach:hover, .ovt-attach-menu[open] > .ovt-attach { background: color-mix(in srgb, var(--ovt-accent) 14%, transparent); color: var(--text-primary, #e6edf7); }
294.ovt-attach:active { transform: scale(.92); }
295.ovt-attach .ovt-ic { width: 20px; height: 20px; }
296.ovt-attach-menu { position: relative; flex: none; }
297.ovt-attach-menu > summary { list-style: none; }
298.ovt-attach-menu > summary::-webkit-details-marker { display: none; }
299.ovt-attach-pop { position: absolute; z-index: 40; left: -6px; bottom: calc(100% + 10px); min-width: 230px; padding: 6px; border-radius: 16px; border: 1px solid var(--ovt-line); background: var(--bg-card, #131c2e); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: ovt-opts-in .18s cubic-bezier(.2, .9, .3, 1) both; transform-origin: 20px 100%; }
300.ovt.is-start .ovt-attach-pop { bottom: auto; top: calc(100% + 10px); transform-origin: 20px 0; }
301.ovt-attach-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 11px; color: var(--text-primary, #e6edf7); font-size: 14.5px; text-decoration: none; cursor: pointer; }
302.ovt-attach-row:hover, .ovt-attach-row:focus-within { background: color-mix(in srgb, var(--text-primary, #e6edf7) 7%, transparent); }
303.ovt-attach-row .ovt-ic { width: 19px; height: 19px; color: var(--text-secondary, #96a7c2); }
304.ovt-attach-cam { display: none; }
305@media (pointer: coarse) { .ovt-attach-cam { display: flex; } }
306
307/* The quiet line ("can get things wrong", "Sending…") sits under the box, not inside it. */
308.ovt-composer { position: relative; }
309.ovt-composer > .ovt-c-note { position: absolute; left: 14px; right: 14px; top: calc(100% + 6px); margin: 0; text-align: center; font-size: 12px; line-height: 1.4; }
310.ovt-dock:has(.ovt-c-note:not(:empty)) { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
311.ovt.is-start .ovt-dock:has(.ovt-c-note:not(:empty)) { padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
312