Elffuss BraidHub

utopia-ia/elffuss-claw public

94f3b5dab8d1 · 45.9 KiBRawPermalink
1/* Elffuss — tema "aurora local": charcoal, brass y un secundario índigo */
2:root {
3 --bg: #090a11;
4 --bg2: #101317;
5 --bg3: #161a24;
6 --line: #20252c;
7 --fg: #eae8f2;
8 --muted: #8b929c;
9 --accent: #c8a06a;
10 --accent2: #6e63c5;
11 --ok: #7faa7f;
12 --warn: #c9a15a;
13 --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
14}
15* { box-sizing: border-box; }
16html, body { height: 100%; }
17body {
18 margin: 0;
19 font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
20 background: var(--bg);
21 color: var(--fg);
22 display: flex;
23 flex-direction: column;
24 overflow: hidden;
25}
26
27/* ---------- header ---------- */
28header {
29 display: flex;
30 align-items: center;
31 justify-content: space-between;
32 gap: 12px;
33 padding: 10px 16px;
34 border-bottom: 1px solid var(--line);
35 background: var(--bg2);
36}
37.brand { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-family: var(--serif); letter-spacing: .2px; }
38.logo { width: 30px; height: 30px; }
39.beta { color: var(--accent2); font-size: .75rem; }
40.claim { color: var(--muted); font-size: .8rem; font-style: italic; }
41.controls { display: flex; align-items: center; gap: 10px; }
42.model-pick { font-size: .9rem; color: var(--muted); }
43
44/* Cabecera en UNA línea. Se partía en dos y tres (2026-09-13) por tres cosas a
45 la vez: el <select> de modelo toma el ancho de su opción más larga —la del 27B
46 pasa de 120 caracteres— y sin tope aplastaba al resto; la etiqueta que lo
47 envuelve es en línea, así que el icono se iba a una fila y el selector a otra;
48 y ni la marca, ni el lema, ni el chip de disco tenían nowrap, de modo que en vez
49 de encoger se partían. Regla: NADA en la cabecera parte línea; lo que sobra se
50 recorta. Va antes del bloque responsive para que en móvil siga mandando ese. */
51.brand { min-width: 0; }
52.brand b, .beta { white-space: nowrap; flex: none; }
53.claim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
54#build { flex: none; }
55#build a { color: inherit; text-decoration: none; }
56#build a:hover { text-decoration: underline; }
57.controls { flex: none; }
58.model-pick { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
59.model-pick select { max-width: min(30vw, 380px); text-overflow: ellipsis; }
60#disk-chip { white-space: nowrap; flex: none; padding: 4px 10px; font-size: .78rem; border-radius: 999px; }
61.model-card { color: var(--muted); text-decoration: none; font-size: .9rem; flex: none; }
62.model-card:hover { color: var(--fg); }
63.model-card[hidden] { display: none; }
64#model-select:disabled { opacity: .6; cursor: progress; }
65select {
66 background: var(--bg3);
67 color: var(--fg);
68 border: 1px solid var(--line);
69 border-radius: 8px;
70 padding: 6px 8px;
71 font-size: .85rem;
72}
73.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
74.dot.off { background: #4a5062; }
75.dot.loading { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
76.dot.on { background: var(--ok); }
77.dot.gpu { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
78/* Un mensaje del chat al que se acaba de llevar (ui.irAlMensaje). */
79.msg.resaltado { outline: 2px solid var(--accent2); outline-offset: 2px; transition: outline-color .3s; }
80/* El estado del cerebro en palabras, junto al punto (el color solo no basta).
81 El margen negativo lo arrima al punto: el hueco entre controles es mayor. */
82.model-st-txt { font-size: .72rem; color: var(--muted); white-space: nowrap; flex: none; margin-left: -5px; }
83.model-st-txt.loading { color: var(--warn); }
84@keyframes pulse { 50% { opacity: .35; } }
85
86/* ---------- layout ---------- */
87main {
88 flex: 1;
89 display: grid;
90 grid-template-columns: minmax(360px, 42%) 1fr;
91 min-height: 0;
92}
93
94/* botón flotante chat↔vista: solo existe en móvil */
95#btn-flip {
96 display: none;
97 position: fixed; bottom: 86px; right: 14px; z-index: 60;
98 padding: 10px 16px; font-size: .9rem; color: #fff; border: none;
99 border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2));
100 box-shadow: 0 8px 24px rgba(0, 0, 0, .5); cursor: pointer;
101}
102
103
104/* ---------- chat ---------- */
105#chat {
106 display: flex;
107 flex-direction: column;
108 border-right: 1px solid var(--line);
109 min-height: 0;
110 min-width: 0; /* los chips en nowrap no deben ensanchar la columna */
111}
112#log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
113.msg { padding: 10px 14px; border-radius: 14px; max-width: 92%; white-space: pre-wrap; word-break: break-word; line-height: 1.45; font-size: .93rem; }
114.msg.sys { background: linear-gradient(135deg, #1c1430, #14202e); border: 1px solid var(--line); white-space: normal; }
115.msg.user { background: var(--accent2); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
116.msg.assistant { background: var(--bg3); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
117.msg.err { border-color: #a03050; }
118/* lo que se oye en la llamada del copiloto: no es un mensaje del usuario */
119.msg.transcript { align-self: flex-start; background: none; border-left: 3px solid var(--accent2); border-radius: 4px; color: var(--muted); font-size: .86rem; padding: 4px 10px; }
120.msg.transcript b { color: var(--fg); font-weight: 600; }
121.msg.thinking {
122 display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
123 background: var(--bg3); border: 1px dashed var(--line);
124 align-self: flex-start; color: var(--muted); font-size: .85rem;
125}
126.msg.thinking .mini { width: 22px; height: 22px; }
127.msg.thinking .dots i {
128 display: inline-block; width: 6px; height: 6px; margin-left: 4px;
129 border-radius: 50%; background: var(--accent);
130 animation: bounce 1.2s ease-in-out infinite;
131}
132.msg.thinking .dots i:nth-child(2) { animation-delay: .2s; }
133.msg.thinking .dots i:nth-child(3) { animation-delay: .4s; }
134@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
135.msg.thinking .gen {
136 width: 100%; font-family: ui-monospace, monospace; font-size: .72rem;
137 white-space: pre-wrap; word-break: break-word;
138 max-height: 168px; overflow-y: auto; color: #5f6880;
139 background: rgba(0,0,0,.16); border-radius: 8px; padding: 6px 8px; margin-top: 4px;
140}
141.msg.thinking .gen:empty { display: none; }
142.msg.thinking .gen.tool-preview {
143 font-family: inherit; font-size: .8rem; color: #a9b2c8;
144 background: none; max-height: none; overflow: visible; padding: 2px 0;
145}
146.msg.tool { color: var(--accent); font-size: .8rem; background: none; padding: 0 14px; }
147.msg.tool-result { font-size: .8rem; color: var(--muted); background: var(--bg2); border: 1px dashed var(--line); border-radius: 10px; padding: 6px 10px; }
148.msg.tool-result.err summary { color: var(--warn); }
149.msg.tool-result pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow: auto; }
150.msg.tool-result summary { cursor: pointer; }
151
152#chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; }
153.chip {
154 font: inherit;
155 font-size: .78rem;
156 color: var(--muted);
157 background: none;
158 border: 1px solid var(--line);
159 border-radius: 999px;
160 padding: 4px 12px;
161 cursor: pointer;
162 transition: all .15s;
163}
164.chip:hover, .chip:focus-visible { color: var(--fg); border-color: var(--accent); }
165.chip:focus-visible { outline: 2px solid var(--accent2); outline-offset: 1px; }
166
167/* El campo de texto va en SU PROPIA FILA y los botones debajo.
168 Antes compartía fila con ellos, y como los botones se inyectan desde el JS la
169 fila fue creciendo hasta seis: el sitio donde se escribe acabó siendo una
170 píldora estrecha, del mismo tamaño y forma que sus vecinas, distinguible solo
171 por un borde de un píxel. O sea el elemento MENOS visible de la barra, que es
172 justo al revés de lo que tiene que ser en un chat. */
173#composer {
174 display: flex;
175 flex-wrap: wrap;
176 gap: 8px;
177 padding: 12px 14px 16px;
178}
179#prompt {
180 /* Fila entera y la primera, pase lo que pase con los botones de al lado. */
181 flex: 1 0 100%;
182 order: -1;
183 background: var(--bg2, var(--bg3));
184 border: 1.5px solid var(--line);
185 border-radius: 14px;
186 color: var(--fg);
187 padding: 15px 16px;
188 font-size: 1rem;
189 outline: none;
190 transition: border-color .15s ease, box-shadow .15s ease;
191}
192/* El marcador de posición tiene que LEERSE: es lo único que dice para qué
193 sirve la caja cuando está vacía. */
194#prompt::placeholder { color: var(--fg3, #8b8b9e); opacity: 1; }
195#prompt:focus {
196 border-color: var(--accent2);
197 box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 22%, transparent);
198}
199#send {
200 background: linear-gradient(135deg, var(--accent), var(--accent2));
201 color: #fff;
202 border: none;
203 border-radius: 12px;
204 padding: 0 18px;
205 font-size: 1rem;
206 cursor: pointer;
207}
208.cbtn.hardwork {
209 display: inline-flex; align-items: center; gap: 5px;
210 background: var(--bg3); border: 1px solid var(--line); color: var(--fg-dim, #9aa0ab);
211 border-radius: 12px; padding: 0 12px; font-size: .78rem; cursor: pointer; white-space: nowrap;
212}
213.cbtn.hardwork:hover { border-color: var(--accent2); color: var(--fg); }
214.cbtn.hardwork.on { color: #fff; border-color: var(--accent); background: linear-gradient(135deg, #3a2a18, #2a1f40); box-shadow: 0 0 0 1px var(--accent) inset; }
215/* En estrecho la palabra no cabe y solo se ve ⛏, pero se sigue LEYENDO: con
216 display:none el nombre accesible del botón se quedaba en el pico «⛏». */
217@media (max-width: 560px) { .cbtn.hardwork .hw-txt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } }
218
219/* ---------- visualizador ---------- */
220/* min-width: 0 para que la fila de pestañas se desplace DENTRO y no ensanche la
221 columna: en un teléfono, con 7 pestañas, #viz medía 447 px en una pantalla de
222 390 y la página entera se desplazaba de lado (y «💬 Chat» quedaba fuera). */
223#viz { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg2); }
224#tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
225#tabs button {
226 background: none;
227 border: none;
228 border-bottom: 2px solid transparent;
229 color: var(--muted);
230 padding: 8px 14px;
231 font-size: .88rem;
232 cursor: pointer;
233}
234#tabs button.active { color: var(--fg); border-bottom-color: var(--accent); }
235#tabs button:focus-visible { outline: 2px solid var(--accent2); outline-offset: -2px; border-radius: 4px; }
236/* lo que señala una ruta (#/tareas/<id>, #/skills/<nombre>…) */
237.resaltado { outline: 2px solid var(--accent); outline-offset: 2px; }
238/* enlaces en el chat: URL de fuera y rutas de Claw */
239.msg a, .msg.tool-result pre a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
240.msg.tool .tool-link { text-decoration: none; margin-left: 2px; }
241.panel { display: none; flex: 1; overflow-y: auto; padding: 16px; min-height: 0; }
242.panel.active { display: block; }
243#panel-vista { padding: 0; position: relative; }
244#panel-vista.active { display: flex; }
245#appframe { flex: 1; width: 100%; height: 100%; border: none; background: #0d1117; }
246#vista-empty[hidden] { display: none; }
247#vista-empty {
248 position: absolute; inset: 0;
249 display: flex; flex-direction: column; align-items: center; justify-content: center;
250 color: var(--muted); text-align: center; gap: 8px;
251}
252#vista-empty .big { width: 120px; opacity: .5; }
253
254/* ---------- escaparate de descarga (mini-UIs mientras baja el modelo) ---------- */
255#loading-stage {
256 position: absolute; inset: 0; z-index: 4; overflow: hidden;
257 display: flex; align-items: center; justify-content: center;
258 background: radial-gradient(1100px 700px at 50% 32%, #1a1236, #0b0d12 72%);
259}
260#loading-stage .ls-galaxy { position: absolute; inset: 0; }
261#loading-stage .ls-galaxy canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; }
262#loading-stage .ls-content {
263 position: relative; z-index: 1; width: 100%; max-width: 520px; padding: 24px;
264 display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
265}
266#loading-stage .ls-window {
267 width: min(440px, 82vw); aspect-ratio: 4 / 3; display: flex; flex-direction: column;
268 background: #0b0d12; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
269 box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 92, 255, .12),
270 0 0 60px rgba(124, 92, 255, .18);
271}
272#loading-stage .ls-bar-top {
273 display: flex; align-items: center; gap: 6px; padding: 8px 12px;
274 background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line);
275}
276#loading-stage .ls-bar-top .d { width: 9px; height: 9px; border-radius: 50%; opacity: .8; }
277#loading-stage .ls-bar-top .d.r { background: #ff6b6b; }
278#loading-stage .ls-bar-top .d.y { background: #ffc94a; }
279#loading-stage .ls-bar-top .d.g { background: #5fbf6e; }
280#loading-stage .ls-badge {
281 margin-left: 8px; font-size: .72rem; color: var(--muted);
282 overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
283}
284#loading-stage .ls-frames { position: relative; flex: 1; }
285#loading-stage .ls-frame {
286 position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #090a11;
287 opacity: 0; transition: opacity .6s ease; pointer-events: none;
288}
289#loading-stage .ls-frame.on { opacity: 1; }
290#loading-stage .ls-head {
291 margin-top: 4px; font-size: 1.18rem; font-weight: 600;
292 background: linear-gradient(90deg, var(--accent), var(--accent2));
293 -webkit-background-clip: text; background-clip: text; color: transparent;
294}
295#loading-stage .ls-sub { margin: -4px 0 2px; color: var(--muted); font-size: .86rem; line-height: 1.5; max-width: 420px; }
296#loading-stage .ls-sub b { color: var(--fg); }
297#loading-stage .ls-prog { width: min(320px, 76vw); height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; }
298#loading-stage .ls-bar {
299 height: 100%; width: 0; border-radius: 3px;
300 background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s ease;
301}
302#loading-stage .ls-bar.indet { width: 38%; animation: indet 1.1s ease-in-out infinite; }
303#loading-stage .ls-progtext { font-size: .74rem; color: var(--muted); font-family: ui-monospace, monospace; min-height: 1.1em; }
304@media (prefers-reduced-motion: reduce) {
305 #loading-stage .ls-frame { transition: none; }
306 #loading-stage .ls-bar.indet { animation: none; }
307}
308@media (max-width: 820px) {
309 #loading-stage .ls-window { width: min(360px, 86vw); }
310 #loading-stage .ls-head { font-size: 1.05rem; }
311}
312.msg.sys .avatar { width: 44px; height: 44px; float: left; margin: 2px 10px 4px 0; }
313
314/* ---------- tarjetas y controles de paneles ---------- */
315.card {
316 display: flex; align-items: center; gap: 10px;
317 background: var(--bg3);
318 border: 1px solid var(--line);
319 border-radius: 10px;
320 padding: 10px 12px;
321 margin-bottom: 8px;
322 font-size: .9rem;
323}
324.card b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
325.card code { background: var(--bg); padding: 2px 8px; border-radius: 6px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
326.card.col { flex-direction: column; align-items: stretch; gap: 8px; }
327/* Solo el título de la tarjeta (hijo directo). Con `.card.col b` también caía
328 en el nombre de la fila de cada skill y de cada repo, que ya no podía encoger
329 ni partirse: hasta 1280 px, «Explorar» y «Quitar» quedaban fuera del panel. */
330.card.col > b { flex: none; }
331/* Skills: enlaces a repos y SKILL.md, la lista de un repo dentro de su tarjeta y
332 el texto que se le da al modelo. La fila de cada tarjeta (nombre, repo,
333 enlace, botones) baja a otra línea lo que no cabe: el nombre va primero, entero
334 si cabe, y los nombres largos se parten en vez de empujar los botones fuera. */
335.repo-link { color: var(--accent2); font-size: .74rem; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
336.skills-instaladas .row.between, .skills-fuentes .row.between, .repo-skills .card { flex-wrap: wrap; gap: 6px 10px; }
337.skills-instaladas .row.between > :not(button), .skills-fuentes .row.between > :not(button), .repo-skills .card > :not(button) { min-width: 0; overflow-wrap: anywhere; }
338.skills-instaladas .row.between > button, .skills-fuentes .row.between > button, .repo-skills .card > button { flex: none; }
339.skills-instaladas .row.between > b, .skills-fuentes .row.between > b, .repo-skills .card > b { flex: 1 1 auto; }
340.prov-name { font-weight: 700; flex: 1; cursor: pointer; }
341.panel .card a { color: var(--accent2); }
342.repo-link:hover { text-decoration: underline; }
343.repo-skills { display: flex; flex-direction: column; gap: 6px; }
344.repo-skills[hidden] { display: none; }
345.repo-skills .card { margin-bottom: 0; background: var(--bg2); }
346.skill-text { white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; font-size: .76rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; }
347.card details summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
348.row.between { justify-content: space-between; align-items: center; }
349.field { display: flex; flex-direction: column; gap: 3px; }
350.field .muted { font-size: .74rem; }
351.msg.user.queued { opacity: .55; }
352.msg.user.queued::after { content: ' ⏳'; }
353/* en cola cuando pulsaste ■: no se llegó a procesar ni se procesará */
354.msg.user.cancelled { opacity: .45; text-decoration: line-through; }
355.muted { color: var(--muted); font-size: .82rem; }
356.row { display: flex; gap: 8px; margin: 10px 0; }
357.row.right { justify-content: flex-end; }
358.panel input {
359 background: var(--bg);
360 border: 1px solid var(--line);
361 border-radius: 8px;
362 color: var(--fg);
363 padding: 9px 12px;
364 flex: 1;
365}
366button.primary {
367 background: linear-gradient(135deg, var(--accent), var(--accent2));
368 color: #fff; border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; font-size: .88rem;
369}
370button.ghost {
371 background: none; color: var(--muted);
372 border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: .85rem;
373}
374button.ghost:hover { color: var(--fg); border-color: var(--accent); }
375/* Ocupado o ya hecho (una skill instalada): aria-disabled en vez de disabled,
376 para que el botón no pierda el foco (ver btn en ui.js). */
377.panel button[aria-disabled="true"], .mobile-gate button[aria-disabled="true"] { opacity: .6; cursor: default; }
378.panel button[aria-busy="true"], .mobile-gate button[aria-busy="true"] { cursor: progress; }
379h3 { margin: 6px 0 12px; font-size: .95rem; }
380
381/* ---------- modal de permisos ---------- */
382dialog {
383 background: var(--bg2);
384 color: var(--fg);
385 border: 1px solid var(--line);
386 border-radius: 16px;
387 padding: 22px 24px;
388 max-width: 420px;
389 box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
390}
391dialog::backdrop { background: rgba(5, 6, 10, .7); backdrop-filter: blur(3px); }
392dialog h3 { margin: 0 0 8px; }
393dialog p { margin: 6px 0; font-size: .9rem; }
394
395/* ---------- toasts y progreso ---------- */
396/* Por ENCIMA de la Mente (z-index 300): sus avisos tienen que verse y poder
397 pulsarse con ella abierta (modal.js los deja vivos). Con el splash de
398 bienvenida delante no se enseñan (siguen inertes detrás, como antes). */
399#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 310; }
400body:has(#splash:not([hidden])) #toasts { visibility: hidden; }
401.toast {
402 background: var(--bg3);
403 border: 1px solid var(--line);
404 border-left: 3px solid var(--accent);
405 border-radius: 10px;
406 padding: 10px 14px;
407 font-size: .85rem;
408 max-width: 340px;
409 box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
410 animation: slidein .2s ease-out;
411 display: flex; align-items: flex-start; gap: 8px;
412}
413@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }
414.toast .toast-txt { flex: 1; min-width: 0; }
415.toast .toast-accion {
416 flex: none; background: none; border: 1px solid var(--accent); color: var(--fg);
417 border-radius: 6px; padding: 2px 8px; font-size: .8rem; cursor: pointer; white-space: nowrap;
418}
419.toast .toast-accion:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
420.toast .toast-x {
421 flex: none; background: none; border: none; color: var(--muted); cursor: pointer;
422 font-size: .8rem; padding: 0 2px; line-height: 1.4;
423}
424.toast .toast-x:hover { color: var(--fg); }
425@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
426#model-progress {
427 position: fixed; bottom: 18px; left: 18px; z-index: 50;
428 background: var(--bg3); border: 1px solid var(--line); border-radius: 10px;
429 padding: 10px 14px; font-size: .8rem; color: var(--muted); width: 300px;
430}
431#model-progress .track { height: 4px; background: var(--bg); border-radius: 2px; margin-bottom: 6px; overflow: hidden; }
432#model-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
433#model-bar.indet { width: 35%; animation: indet 1.1s ease-in-out infinite; }
434@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
435
436/* ---------- splash de primera visita ---------- */
437#splash {
438 position: fixed; inset: 0; z-index: 100;
439 display: flex; align-items: center; justify-content: center;
440 background: radial-gradient(1100px 700px at 50% 28%, #16182a, #090a11 72%);
441 text-align: center; transition: opacity .6s ease;
442}
443#splash[hidden] { display: none; }
444#splash canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; }
445#splash .s-inner { position: relative; z-index: 1; max-width: 540px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
446#splash svg { width: 190px; height: 190px; animation: sfloat 5s ease-in-out infinite; filter: drop-shadow(0 12px 40px rgba(124, 92, 255, .35)); }
447@keyframes sfloat { 50% { transform: translateY(-9px); } }
448#splash .spark { animation: spark 2.4s ease-in-out infinite; transform-origin: center; }
449#splash .spark.s2 { animation-delay: 1.2s; }
450@keyframes spark { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
451#splash h1 { margin: 10px 0 2px; font-size: 1.7rem; }
452#splash h1 b { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
453#splash .l { margin: 0; color: var(--muted); font-size: 1.02rem; opacity: 0; animation: srise .7s ease-out forwards; }
454#splash .l b { color: var(--accent); }
455#splash .l1 { animation-delay: .6s; }
456#splash .l2 { animation-delay: 1.7s; }
457#splash .l3 { animation-delay: 2.8s; }
458#splash .l4 { animation-delay: 3.9s; font-size: 1.12rem; color: var(--fg); }
459@keyframes srise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
460/* el guiño: el ojo derecho se cierra un instante, sincronizado con «entre tú y yo» */
461#splash .eye-r { transform-origin: 76px 73px; animation: wink 5s ease-in-out 4.1s infinite; }
462@keyframes wink { 0%, 7%, 100% { transform: scaleY(1); } 3.5% { transform: scaleY(.06); } }
463#splash button {
464 margin-top: 16px; padding: 13px 38px; font-size: 1.05rem; cursor: pointer;
465 color: #fff; border: none; border-radius: 999px;
466 background: linear-gradient(135deg, var(--accent), var(--accent2));
467 box-shadow: 0 8px 30px rgba(255, 77, 141, .35);
468 opacity: 0; animation: srise .7s ease-out 4.9s forwards;
469}
470#splash button:hover { filter: brightness(1.1); }
471/* con el teclado, «Entrar» se ve en cuanto tiene el foco (no tras la animación) */
472#splash button:focus-visible { opacity: 1; animation: none; outline: 2px solid #fff; outline-offset: 3px; }
473/* sin animaciones si el sistema lo pide: todo a la vista desde el principio */
474@media (prefers-reduced-motion: reduce) {
475 #splash, #splash .l, #splash button, #splash svg, #splash .spark, #splash .eye-r { animation: none !important; transition: none !important; }
476 #splash .l, #splash button { opacity: 1; }
477}
478
479/* ---------- móvil: una columna, chat ↔ visualizador conmutables ---------- */
480@media (max-width: 700px) {
481 main { grid-template-columns: minmax(0, 1fr); }
482 #btn-flip { display: block; }
483 /* por encima de los chips y del compositor (su alto lo mide ui.js en
484 --alto-pie): antes tapaba la fila de chips */
485 #btn-flip { bottom: calc(var(--alto-pie, 150px) + 8px); }
486 body.show-viz #btn-flip { bottom: 14px; }
487 #viz { display: none; }
488 body.show-viz #viz { display: flex; }
489 body.show-viz #chat { display: none; }
490 #chat { border-right: none; }
491
492 header { padding: 8px 10px; gap: 6px; }
493 .claim { display: none; }
494 .beta { display: none; }
495 .brand { font-size: .95rem; gap: 6px; }
496 .logo { width: 26px; height: 26px; }
497 .controls { gap: 6px; }
498 /* En móvil la cabecera no cabe entera, así que aquí SÍ se encoge — pero lo
499 que encoge es el selector (se queda con el hueco que sobre), no los botones.
500 Sin esto, el nowrap de la regla general cambiaba «se parte en líneas» por
501 «Permisos se sale de la pantalla», que es peor: medido a 390 px. */
502 .controls { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
503 .model-pick { flex: 1 1 auto; min-width: 0; }
504 .model-pick select { max-width: none; width: 100%; min-width: 0; font-size: .78rem; }
505 #disk-chip { padding: 4px 7px; font-size: .72rem; }
506 /* Solo el logo como marca. El nombre y el icono del selector no caben en un
507 teléfono, y con el nombre dentro el selector se le montaba ENCIMA: medido a
508 390 px, «Elffu» asomaba por detrás de la caja del selector. Al tocarlo se
509 abre el selector nativo del sistema, que sí enseña los nombres enteros. */
510 .brand { flex: none; }
511 .brand b, #model-ico, .model-card { display: none; }
512 #btn-clear, #btn-perms { padding: 7px 9px; font-size: .78rem; }
513 .model-st-txt { margin-left: -2px; font-size: .68rem; }
514
515 #log { padding: 10px; }
516 .msg { max-width: 100%; font-size: .9rem; }
517 .msg.sys .avatar { width: 36px; height: 36px; }
518
519 #chips { flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; scrollbar-width: none; }
520 #chips::-webkit-scrollbar { display: none; }
521 .chip { flex: 0 0 auto; }
522
523 #composer { padding: 8px 10px 12px; }
524 #prompt { font-size: 16px; } /* evita el zoom automático de iOS */
525 #send { padding: 0 16px; min-width: 48px; }
526
527 #tabs { overflow-x: auto; scrollbar-width: none; }
528 #tabs button { padding: 8px 10px; font-size: .82rem; white-space: nowrap; }
529 .panel { padding: 12px; }
530 .card { flex-wrap: wrap; }
531
532 dialog { max-width: 92vw; margin: auto; }
533 /* Los avisos van ENCIMA del compositor y del botón ⇄, como la caja de
534 progreso, y encima de ella si está a la vista (--alto-progreso, ui.js).
535 Abajo del todo tapaban ■, ⛏ y /, y en un teléfono ■ es la única forma de
536 parar: el toque caía en el aviso. */
537 #toasts { left: 12px; right: 12px; bottom: calc(var(--alto-pie, 150px) + 56px + var(--alto-progreso, 0px)); }
538 body.show-viz #toasts { bottom: calc(60px + var(--alto-progreso, 0px)); }
539 .toast { max-width: none; }
540 /* Encima del compositor y del botón ⇄, que ya flota sobre --alto-pie: a 390 px
541 la caja de progreso tapaba la caja de texto durante toda la descarga (el
542 camino normal tras «Descargarlo igualmente»). En la Vista no hay
543 compositor: basta con dejar sitio al botón. */
544 #model-progress { left: 12px; right: 12px; width: auto; bottom: calc(var(--alto-pie, 150px) + 56px); }
545 body.show-viz #model-progress { bottom: 60px; }
546
547 #splash svg { width: 140px; height: 140px; }
548 #splash h1 { font-size: 1.35rem; }
549 #splash .l { font-size: .92rem; }
550 #splash .s-inner { padding: 18px; }
551}
552
553
554/* ---------- markdown en el chat (estilo plugin de Claude Code) ---------- */
555.msg.md { white-space: normal; }
556.msg.md code {
557 background: #0d1117; border: 1px solid var(--line); border-radius: 5px;
558 padding: 1px 6px; font-family: ui-monospace, monospace; font-size: .8em; color: #ffb3c9;
559}
560.msg.md pre.codeblock {
561 position: relative; background: #0d1117; border: 1px solid var(--line);
562 border-radius: 8px; padding: 10px 12px; margin: 8px 0; overflow-x: auto;
563}
564.msg.md pre.codeblock code {
565 background: none; border: none; padding: 0; color: #c9d1d9;
566 font-size: .78rem; line-height: 1.5; white-space: pre;
567}
568.msg.md pre.codeblock .lang {
569 position: absolute; top: 4px; right: 8px; font-size: .64rem;
570 color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
571}
572.msg.md h4 { margin: 10px 0 4px; font-size: .95rem; }
573.msg.md ul { margin: 4px 0; padding-left: 18px; }
574.msg.md li { margin: 2px 0; }
575.msg.md b { color: #fff; }
576
577/* ---------- iconos vectoriales + menú de comandos (/) ---------- */
578.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; padding: 0; }
579.icon-btn svg, .icon-inline svg { width: 16px; height: 16px; }
580.icon-inline { display: inline-flex; vertical-align: middle; color: var(--muted); }
581#send { display: inline-flex; align-items: center; justify-content: center; }
582#send svg { width: 18px; height: 18px; }
583/* mientras trabaja, el mismo botón PARA (como en Elffuss Code) */
584#send.is-stop { background: linear-gradient(135deg, #e5484d, #c0353a); }
585#send.is-stop svg { width: 14px; height: 14px; }
586/* ■ ya pulsado y el turno aún soltando el modelo: «Parando…», sin más clics */
587#send.is-stopping { background: #7a2a2d; color: #f3d6d7; cursor: progress; font-size: .78rem; white-space: nowrap; }
588.msg.thinking.stopping .dots i { animation: none; opacity: .35; }
589/* lo que llegó a escribir antes de parar: se queda, apagado */
590.msg.assistant.partial { opacity: .75; }
591#btn-clear[aria-busy="true"] { opacity: .5; cursor: progress; }
592/* solo para lectores de pantalla */
593.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
594#btn-slash { background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
595#btn-slash:hover { color: var(--fg); border-color: var(--accent2); }
596#cmd-menu {
597 position: absolute; left: 14px; right: 14px; bottom: 72px; z-index: 40;
598 background: var(--bg3); border: 1px solid var(--accent2); border-radius: 12px;
599 box-shadow: 0 -8px 30px rgba(0,0,0,.5); max-height: 320px; overflow-y: auto; padding: 4px;
600}
601#cmd-menu[hidden] { display: none; }
602.cmd-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: none; color: var(--fg); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: .86rem; }
603.cmd-item:hover, .cmd-item.activo, .cmd-item:focus-visible { background: #ffffff14; outline: none; }
604.cmd-item.activo { box-shadow: inset 2px 0 0 var(--accent2); }
605.cmd-vacio { padding: 8px 12px; color: var(--muted); font-size: .82rem; }
606/* atajos de teclado («?» o /atajos) */
607dl.atajos { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 4px; font-size: .88rem; }
608dl.atajos dt { text-align: right; }
609dl.atajos dd { margin: 0; color: var(--muted); }
610kbd { font-family: ui-monospace, monospace; font-size: .8rem; background: var(--bg3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
611.cmd-item b { font-family: ui-monospace, monospace; font-weight: 600; }
612.cmd-item span { color: var(--muted); font-size: .76rem; }
613#chat { position: relative; }
614
615/* ── Mente de Elffuss (cerebro CEO · mundo trance) ─────────────────────── */
616#mind-overlay { position: fixed; inset: 0; z-index: 300; background: radial-gradient(1200px 800px at 50% 45%, #1a0a2e, #05030c 78%); overflow: hidden; }
617#mind-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
618#mind-title { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); text-align: center; font-size: 1.1rem; font-weight: 800; letter-spacing: .18em; color: #fff; text-shadow: 0 0 22px #ff4d8d; pointer-events: none; }
619#mind-title span { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .06em; color: #b9a7ff; margin: 4px auto 0; text-shadow: none; max-width: min(520px, 44vw); }
620/* en estrecho la explicación no cabe sin tapar los botones: se queda solo para
621 el lector de pantalla (aria-describedby la sigue leyendo) */
622@media (max-width: 900px) { #mind-title span { display: none; } }
623#mind-close { position: absolute; top: 14px; right: 16px; z-index: 6; background: rgba(255,77,141,.14); border: 1px solid #ff4d8d; color: #ffd7e6; border-radius: 999px; padding: 7px 14px; font-size: .8rem; cursor: pointer; backdrop-filter: blur(6px); }
624#mind-close:hover { background: rgba(255,77,141,.28); }
625#mind-history { position: absolute; top: 14px; right: 182px; z-index: 6; background: rgba(73,232,221,.14); border: 1px solid #49e8ff; color: #bfeef6; border-radius: 999px; padding: 7px 12px; font-size: .78rem; cursor: pointer; backdrop-filter: blur(6px); }
626#mind-history:hover { background: rgba(73,232,221,.28); }
627#mind-playstop { position: absolute; top: 14px; right: 278px; z-index: 6; background: rgba(63,185,112,.16); border: 1px solid #3fb970; color: #b7f2cf; border-radius: 999px; padding: 7px 12px; font-size: .78rem; cursor: pointer; backdrop-filter: blur(6px); }
628#mind-playstop:hover { background: rgba(63,185,112,.3); }
629#mind-playstop.paused { background: rgba(255,180,70,.16); border-color: #ffb446; color: #ffe0b0; }
630#mind-playstop.paused:hover { background: rgba(255,180,70,.3); }
631#mind-config { position: absolute; top: 14px; right: 96px; z-index: 6; background: rgba(124,92,255,.16); border: 1px solid #7c5cff; color: #d8ccff; border-radius: 999px; padding: 7px 12px; font-size: .78rem; cursor: pointer; backdrop-filter: blur(6px); }
632#mind-config:hover { background: rgba(124,92,255,.3); }
633/* leyenda de perfiles: fija, no flota (siempre legible) */
634#mind-legend { position: absolute; top: 60px; left: 14px; z-index: 5; display: flex; flex-direction: column; gap: 5px; background: rgba(8,5,18,.5); border: 1px solid rgba(124,92,255,.3); border-radius: 10px; padding: 8px 12px; backdrop-filter: blur(6px); pointer-events: auto; }
635.ml-item { font: inherit; font-size: .68rem; color: #cfe8f0; display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 2px 4px; border-radius: 5px; background: none; border: none; text-align: left; }
636.ml-item:hover, .ml-item:focus-visible { background: rgba(255,255,255,.08); }
637.ml-sw { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 6px currentColor; flex: none; }
638/* solo etiquetas de propuestas forjadas flotan ancladas al mundo */
639#mind-anchors { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
640/* la capa no recibe clics (deja girar el mundo), pero cada etiqueta SÍ: es un
641 botón y su clic abre la propuesta. Antes heredaba pointer-events:none y solo
642 funcionaba atinar a la malla 3D que hubiera debajo. */
643.mind-node-label { position: absolute; font: inherit; font-size: .6rem; color: #ffd7e6; background: rgba(255,77,141,.18); border: 1px solid rgba(255,77,141,.5); border-radius: 6px; padding: 1px 6px; pointer-events: auto; cursor: pointer; white-space: nowrap; text-shadow: 0 0 8px #ff4d8d; }
644.mind-node-label:hover, .mind-node-label:focus-visible { background: rgba(255,77,141,.34); outline: 1px solid #ffd7e6; }
645#mind-overlay button:focus-visible { outline: 2px solid #ffd7e6; outline-offset: 2px; }
646.ml-open { margin-left: 6px; background: none; border: 1px solid rgba(73,232,221,.45); color: #bfeef6; border-radius: 5px; padding: 0 6px; font-size: .62rem; cursor: pointer; }
647.cfg-status { font-size: .72rem; color: #bfeef6; min-height: 1em; }
648.cfg-status:empty { display: none; }
649.mind-music-btn { position: absolute; bottom: 14px; right: 14px; z-index: 6; background: rgba(255,77,141,.14); border: 1px solid rgba(255,77,141,.5); color: #ffd7e6; border-radius: 999px; padding: 6px 12px; font-size: .74rem; cursor: pointer; backdrop-filter: blur(6px); }
650.mind-music-btn:hover { background: rgba(255,77,141,.28); }
651.mind-music-cap a { color: #ffd7e6; }
652/* historial completo: TODO lo que ha llegado, sin recortar */
653#mind-log { position: absolute; top: 0; right: -380px; width: 360px; height: 100%; z-index: 8; display: flex; flex-direction: column; background: rgba(6,4,14,.92); border-left: 1px solid rgba(73,232,221,.35); backdrop-filter: blur(10px); transition: right .25s ease; }
654#mind-log.show { right: 0; }
655.ml-head { display: flex; align-items: center; padding: 12px 14px; font-size: .82rem; font-weight: 700; color: #bfeef6; border-bottom: 1px solid rgba(73,232,221,.25); }
656.ml-head button { margin-left: auto; background: none; border: none; color: #7fd9d0; cursor: pointer; font-size: .9rem; }
657#mind-log-body { flex: 1; overflow-y: auto; padding: 8px 10px; }
658.ml-row { font-size: .68rem; line-height: 1.6; padding: 3px 4px; border-radius: 5px; display: flex; gap: 6px; align-items: baseline; }
659.ml-row:hover { background: rgba(255,255,255,.04); }
660.ml-row .ml-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
661.ml-row .ml-t { color: #dfeef2; word-break: break-word; }
662/* panel flotante con el .md del pensamiento (clic en un nodo) */
663#mind-panel { position: absolute; top: 70px; right: 16px; width: min(420px, 40vw); max-height: 70vh; z-index: 6; display: none; flex-direction: column; background: rgba(8,5,18,.9); border: 1px solid #7c5cff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 50px rgba(0,0,0,.6); }
664#mind-panel.show { display: flex; }
665#mind-panel .mp-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: .74rem; color: #d8ccff; background: rgba(124,92,255,.14); border-bottom: 1px solid rgba(124,92,255,.3); }
666#mind-panel .mp-head button { margin-left: auto; background: none; border: none; color: #b9a7ff; cursor: pointer; font-size: .9rem; }
667#mind-panel .mp-body { flex: 1; overflow: auto; margin: 0; padding: 12px; font-size: .78rem; line-height: 1.55; color: #cfe8f0; }
668#mind-panel .mp-body h1, #mind-panel .mp-body h2, #mind-panel .mp-body h3 { color: #fff; margin: 12px 0 6px; }
669#mind-panel .mp-body code { background: rgba(124,92,255,.18); padding: 1px 5px; border-radius: 4px; font-size: .82em; }
670#mind-panel .mp-body pre { background: #0b0716; border: 1px solid rgba(124,92,255,.3); border-radius: 8px; padding: 8px; overflow-x: auto; }
671#mind-panel .mp-body ul, #mind-panel .mp-body ol { padding-left: 1.2em; }
672.mp-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
673.mp-exec { flex: 1; background: linear-gradient(135deg, #ff4d8d, #7c5cff); border: none; color: #fff; border-radius: 8px; padding: 9px; cursor: pointer; font-size: .78rem; font-weight: 600; }
674.mp-open { flex: 1; background: rgba(124,92,255,.15); border: 1px solid #7c5cff; color: #d8ccff; border-radius: 8px; padding: 9px; cursor: pointer; font-size: .78rem; }
675/* panel de configuración del cerebro */
676#mind-cfg { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: min(520px, 92vw); z-index: 7; display: none; flex-direction: column; gap: 6px; background: rgba(8,5,18,.94); border: 1px solid #7c5cff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 60px rgba(0,0,0,.6); }
677#mind-cfg.show { display: flex; }
678.cfg-head { display: flex; align-items: center; font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
679.cfg-head button { margin-left: auto; background: none; border: none; color: #b9a7ff; cursor: pointer; }
680.cfg-notif { font-size: .68rem; color: #9fb; background: rgba(63,185,112,.1); border: 1px solid rgba(63,185,112,.3); border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
681.cfg-notif-btn { background: #3fb970; border: none; color: #06180d; border-radius: 6px; padding: 3px 10px; font-size: .68rem; font-weight: 700; cursor: pointer; }
682#mind-cfg label { font-size: .68rem; color: #b9a7ff; margin-top: 4px; }
683#mind-cfg textarea, #mind-cfg input:not([type=color]) { background: #0b0716; border: 1px solid rgba(124,92,255,.4); color: #e8ebf4; border-radius: 8px; padding: 8px 10px; font-size: .78rem; font-family: inherit; resize: vertical; }
684#cfg-profiles { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
685.cfg-prof { display: grid; grid-template-columns: 30px 1fr 1.4fr 26px; gap: 6px; align-items: center; }
686.cfg-prof input[type=color] { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(124,92,255,.4); border-radius: 6px; background: none; cursor: pointer; }
687.cfg-prof input[type=text] { background: #0b0716; border: 1px solid rgba(124,92,255,.4); color: #e8ebf4; border-radius: 6px; padding: 6px 8px; font-size: .72rem; }
688.cp-del { background: none; border: none; color: #ff8fb0; cursor: pointer; font-size: .8rem; }
689.cfg-add { align-self: flex-start; background: rgba(124,92,255,.15); border: 1px dashed rgba(124,92,255,.5); color: #d8ccff; border-radius: 8px; padding: 6px 12px; font-size: .74rem; cursor: pointer; margin-top: 4px; }
690.cfg-actions { display: flex; gap: 8px; margin-top: 8px; }
691.cfg-ghost { flex: 1; background: rgba(73,232,221,.14); border: 1px solid #49e8ff; color: #bfeef6; border-radius: 8px; padding: 9px; cursor: pointer; font-size: .78rem; }
692.cfg-save { flex: 1; margin-top: 0; background: linear-gradient(135deg, #ff4d8d, #7c5cff); border: none; color: #fff; border-radius: 8px; padding: 9px; cursor: pointer; font-size: .8rem; font-weight: 600; }
693.cfg-note { font-size: .64rem; color: #8a7bb8; margin-top: 4px; }
694.mind-music { position: absolute; bottom: 52px; right: 14px; z-index: 5; width: 300px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,77,141,.4); box-shadow: 0 8px 30px rgba(0,0,0,.5); }
695.mind-music-cap { font-size: .62rem; color: #ffd7e6; background: rgba(10,6,24,.8); padding: 4px 8px; text-align: center; }
696.proposal-exec-btn { display: block; margin-top: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: #fff; border-radius: 8px; padding: 8px 14px; font-size: .78rem; font-weight: 600; cursor: pointer; }
697.proposal-exec-btn:hover { filter: brightness(1.1); }
698.proposal-exec-btn:disabled { opacity: .6; cursor: default; filter: none; }
699/* En Básico no hay con qué ejecutar una propuesta: el botón se esconde y en su
700 sitio se dice que hace falta un modelo, con un botón para elegirlo. */
701.proposal-needs-model { display: none; margin-top: 10px; font-size: .78rem; color: var(--muted); align-items: center; gap: 8px; flex-wrap: wrap; }
702.proposal-needs-model button { background: none; border: 1px solid var(--line); color: var(--fg, inherit); border-radius: 8px; padding: 5px 10px; font-size: .78rem; cursor: pointer; }
703body.modo-basico .proposal-exec-btn, body.modo-basico #mp-exec { display: none; }
704body.modo-basico .proposal-needs-model { display: flex; }
705
706/* modelos externos: sección plegada, al final y visualmente secundaria */
707.ext-block{opacity:.72}
708.ext-block:hover,.ext-block[open]{opacity:1}
709.ext-block>summary{cursor:pointer;font-weight:600;font-size:.9rem;list-style:none;padding:2px 0}
710.ext-block>summary::-webkit-details-marker{display:none}
711.ext-block>summary::before{content:'▸ ';color:var(--accent)}
712.ext-block[open]>summary::before{content:'▾ '}
713
714/* ── Velocímetro ─────────────────────────────────────────────────────────────
715 Panel anclado a la derecha de la cabecera. Posición fija y no absoluta
716 respecto al header a propósito: el header tiene overflow y recortaba la
717 gráfica por abajo. */
718#speed-panel {
719 position: fixed; top: 52px; right: 12px; z-index: 60;
720 width: min(280px, calc(100vw - 24px));
721 background: var(--panel, #15161c); color: var(--fg, #e8e8ef);
722 border: 1px solid var(--line, #2a2b36); border-radius: 10px;
723 padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45);
724 font-size: .82rem; line-height: 1.35;
725}
726#speed-panel[hidden] { display: none; }
727.vm-tit { font-weight: 600; margin-bottom: 8px; }
728.vm-tit2 { margin-top: 14px; }
729.vm-filas { display: grid; gap: 6px; }
730.vm-filas > div { display: flex; align-items: baseline; gap: 8px; }
731.vm-filas b { font-variant-numeric: tabular-nums; font-size: 1.05rem; min-width: 4.2em; }
732.vm-filas span { opacity: .72; }
733.vm-graf { margin: 10px 0 2px; }
734.vm-graf-top, .vm-graf-pie { display: flex; justify-content: space-between; opacity: .6; font-size: .72rem; }
735.vm-graf svg { width: 100%; height: 38px; display: block; margin: 3px 0; }
736.vm-vacio { opacity: .55; font-size: .76rem; margin: 6px 0; }
737.vm-nota { margin-top: 12px; opacity: .5; font-size: .7rem; line-height: 1.3; }
738.vm-modelo { font-weight: 400; opacity: .6; font-size: .78rem; }
739/* El aviso de «leer va tan lento como escribir»: es un sintoma, no un dato. */
740.vm-alerta { margin: 10px 0 2px; padding: 8px 10px; border-radius: 8px; font-size: .75rem;
741 line-height: 1.35; background: rgba(255,176,32,.10); border: 1px solid rgba(255,176,32,.28); }
742
743/* Barra del PREFILL dentro de la burbuja de «pensando». El prefill es la espera
744 larga antes de la primera letra y no se veía: con un prompt de arnés en el
745 modelo grande son decenas de segundos de burbuja quieta, que se leen como un
746 cuelgue. Sin animación propia: el ancho lo mueve el motor por lote terminado
747 en la GPU, así que la barra avanza cuando hay trabajo hecho y se para cuando
748 de verdad está parada — que es justo la información que hace falta. */
749.msg.thinking .prefill { height: 3px; border-radius: 2px; background: #ffffff1a; margin: 6px 0 2px; overflow: hidden; }
750.msg.thinking .prefill > i { display: block; height: 100%; width: 0; border-radius: 2px; background: currentColor; opacity: .7; transition: width .18s linear; }
751
752/* ── Dedos, no ratón ────────────────────────────────────────────────────────
753 Medido en un iPhone (393 px de ancho): los controles de las barras salían a
754 30-36 px de alto. La guía de Apple pide 44 y no es capricho: por debajo de
755 eso se falla el toque y se pulsa el de al lado, que en una barra con el botón
756 de limpiar al lado del de enviar es caro.
757 Va bajo `pointer: coarse` y no bajo un ancho: lo que decide no es el tamaño
758 de la pantalla sino con qué se toca. Una tablet grande con dedo lo necesita;
759 una ventana estrecha con ratón, no — y encajonar el escritorio a 44 px le
760 estropearía la densidad sin motivo. */
761@media (pointer: coarse) {
762 #composer button, #composer select, #composer input,
763 .bar button, .bar select, #tabs button, button.ghost,
764 #model-select, #send, #btn-clear, #btn-mind, #btn-perms,
765 #btn-slash, #btn-hardwork, #btn-flip {
766 min-height: 44px;
767 }
768 /* Los que además son estrechos: un cuadrado de 44 se falla por los lados. */
769 #btn-clear, #btn-mind, #btn-slash, #btn-hardwork { min-width: 44px; }
770 /* El alto crece, así que el espacio entre ellos puede bajar sin apelotonarse. */
771 #composer { gap: 6px; }
772}