/* Asistente con IA (ai.js): la caja que se abre desde la bola, común a la portada, TrialReels, los editores y Cloud.
   Va aparte de portal.css / style.css / el de Cloud, con sus propias variables, para verse igual en todas. */
:root {
  --ai-ink: #f5f5f7; --ai-muted: #8e8e93; --ai-line: rgba(255, 255, 255, .1); --ai-err: #ff6961;
  --ai-glass: rgba(22, 22, 24, .78); --ai-glass-solid: #161618; --ai-card: rgba(255, 255, 255, .055); --ai-me: rgba(255, 255, 255, .12);
  --ai-sans: "Geist", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ai-lq: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 .5px rgba(255, 255, 255, .15), 0 24px 60px rgba(0, 0, 0, .65);
}
.ai-hidden { display: none !important; }

/* ---------- la bola ---------- */
.ai-orb { display: block; flex: none; overflow: visible; color: var(--ai-ink); }
.ai-orb ellipse { fill: none; stroke: url(#aiOrbShade); stroke-width: 2.6px; vector-effect: non-scaling-stroke; }
.ai-orb .ai-o { fill: none; stroke: currentColor; stroke-width: 8; }
.ai-orb .ai-r { transform-box: view-box; transform-origin: 50px 50px; }
.ai-orb .ai-r1 { animation: aiOrbA 7s cubic-bezier(.45, .05, .55, .95) infinite; }
.ai-orb .ai-r2 { animation: aiOrbB 9s cubic-bezier(.45, .05, .55, .95) infinite; }
.ai-busy .ai-orb .ai-r1 { animation-duration: 1.6s; }
.ai-busy .ai-orb .ai-r2 { animation-duration: 2.1s; }
@keyframes aiOrbA { 0% { transform: rotate(-35deg) scaleY(1); } 25% { transform: rotate(10deg) scaleY(.12); } 50% { transform: rotate(55deg) scaleY(1); } 75% { transform: rotate(100deg) scaleY(.12); } 100% { transform: rotate(145deg) scaleY(1); } }
@keyframes aiOrbB { 0% { transform: rotate(62deg) scaleY(.55); } 33% { transform: rotate(-20deg) scaleY(1.6); } 66% { transform: rotate(-95deg) scaleY(.08); } 100% { transform: rotate(-118deg) scaleY(.55); } }

/* Botón de la IA: la bola sola (editores) o la bola con «IA» (barras de arriba) */
.ai-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 6px; flex: none;
  border: 0; border-radius: 999px; cursor: pointer; color: var(--ai-ink); font: 500 13px/1 var(--ai-sans);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 .5px rgba(255, 255, 255, .14);
  transition: background .2s, transform .2s; -webkit-touch-callout: none; user-select: none; }
.ai-btn:hover { background: rgba(255, 255, 255, .12); }
.ai-btn:active { transform: scale(.96); }
.ai-btn .ai-orb { width: 24px; height: 24px; }
.ai-btn.ai-solo { width: 36px; height: 36px; padding: 0; justify-content: center; }
.ai-btn.ai-solo .ai-orb { width: 26px; height: 26px; }
.ai-btn.ai-open { background: rgba(255, 255, 255, .16); }
/* mantener pulsada la bola de arriba: se nota que algo va a pasar */
.ai-press { transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .45s; transform: scale(1.18); filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)); }
.ai-hold { -webkit-touch-callout: none; user-select: none; }

/* ---------- la caja ---------- */
.ai-panel { position: fixed; z-index: 2147483000; right: 12px; top: 12px; bottom: 12px; width: min(400px, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; color: var(--ai-ink);
  font: 14px/1.5 var(--ai-sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  background: var(--ai-glass); box-shadow: var(--ai-lq);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  transform: translateX(calc(100% + 24px)); opacity: 0; visibility: hidden;
  transition: transform .42s cubic-bezier(.2, .9, .2, 1), opacity .3s, visibility 0s .42s; }
.ai-panel.ai-show { transform: none; opacity: 1; visibility: visible; transition: transform .42s cubic-bezier(.2, .9, .2, 1), opacity .3s; }
.ai-panel * { box-sizing: border-box; }
.ai-panel button { font: inherit; color: inherit; }

.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 10px 14px; border-bottom: 1px solid var(--ai-line); }
.ai-head .ai-orb { width: 30px; height: 30px; }
.ai-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ai-title b { font-weight: 600; font-size: 15px; }
.ai-title span { color: var(--ai-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-ib { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ai-muted); }
.ai-ib:hover { background: rgba(255, 255, 255, .08); color: var(--ai-ink); }
.ai-ib svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ai-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 92%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg.me { align-self: flex-end; background: var(--ai-me); border-bottom-right-radius: 6px; }
.ai-msg.bot { align-self: flex-start; background: var(--ai-card); border-bottom-left-radius: 6px; }
.ai-msg.bot ul { margin: 4px 0; padding-left: 18px; white-space: normal; }
.ai-msg.bot .ai-h { display: block; margin-top: 4px; font-weight: 600; }
/* mientras la respuesta se va escribiendo (ai.js, typeOut): un cursor que late al final */
.ai-msg.bot.ai-typing::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: currentColor; opacity: .6; vertical-align: middle; animation: aiCaret .9s ease-in-out infinite; }
@keyframes aiCaret { 50% { opacity: .15; transform: scale(.7); } }
.ai-msg.err { align-self: stretch; max-width: none; color: var(--ai-err); background: rgba(255, 69, 58, .1); font-size: 13px; }
.ai-act { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 12px; color: var(--ai-muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.ai-act i { width: 14px; height: 14px; display: grid; place-items: center; font-style: normal; }
.ai-act.ok i::before { content: "✓"; color: #30d158; }
.ai-act.bad i::before { content: "!"; color: var(--ai-err); font-weight: 700; }
.ai-act.run i::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: aiSpin .8s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-think { align-self: flex-start; display: flex; align-items: center; gap: 8px; color: var(--ai-muted); font-size: 13px; padding: 2px 4px; }
.ai-think .ai-orb { width: 22px; height: 22px; }
.ai-think .th { color: var(--ai-ink, var(--ink, #f5f5f7)); }

.ai-ask { align-self: stretch; padding: 12px; border-radius: 14px; background: var(--ai-card); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.ai-ask p { margin: 0 0 10px; }
.ai-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-pill { border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; background: rgba(255, 255, 255, .09); font-size: 13px; }
.ai-pill:hover { background: rgba(255, 255, 255, .15); }
.ai-pill.main { background: #f5f5f7; color: #000 !important; font-weight: 600; }
.ai-pill:disabled { opacity: .45; cursor: default; }

.ai-empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 4px 14px; }
.ai-empty .ai-orb { width: 74px; height: 74px; margin-bottom: 4px; }
.ai-empty .ai-orb ellipse { stroke-width: 4px; }
.ai-empty .ai-orb .ai-o { stroke-width: 6; }
.ai-empty h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.ai-empty p { margin: 0; color: var(--ai-muted); font-size: 13px; max-width: 300px; }
.ai-hints { display: flex; flex-direction: column; gap: 7px; width: 100%; margin-top: 8px; }
.ai-hints button { text-align: left; border: 0; border-radius: 12px; padding: 9px 12px; cursor: pointer; font-size: 13px;
  background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.ai-hints button:hover { background: rgba(255, 255, 255, .1); }
.ai-off { width: 100%; text-align: left; padding: 11px 13px; border-radius: 14px; font-size: 13px; color: #ffd60a;
  background: rgba(255, 214, 10, .08); box-shadow: inset 0 0 0 .5px rgba(255, 214, 10, .25); }
.ai-off b { display: block; color: var(--ai-ink); margin-bottom: 2px; }

.ai-foot { padding: 10px 12px 12px; border-top: 1px solid var(--ai-line); }
.ai-box { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); }
.ai-box:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.ai-in { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--ai-ink);
  font: 14px/1.45 var(--ai-sans); padding: 6px 0; max-height: 140px; }
.ai-box .ai-in { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 6px 0; margin: 0; }
.ai-box .ai-in:focus { border: 0; box-shadow: none; }
.ai-in::placeholder { color: var(--ai-muted); }
.ai-send { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: #f5f5f7; color: #000; transition: opacity .2s, transform .2s; }
.ai-box .ai-send { padding: 0; color: #000; }      /* .ai-panel button { color: inherit } le ganaba y la flecha salía blanca sobre blanco */
.ai-box .ai-send:disabled { opacity: 1; cursor: default; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); }
.ai-send:not(:disabled):active { transform: scale(.92); }
.ai-send svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-note { margin: 7px 4px 0; font-size: 11px; color: var(--ai-muted); text-align: center; }

/* Modo libre: adjuntar archivos (clip a la izquierda de la caja), los que van a salir y los de cada mensaje, e imágenes creadas */
.ai-box .ai-att { width: 34px; height: 34px; flex: none; margin-left: -9px; padding: 0; }
.ai-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 8px; }
.ai-fchip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 4px 4px 5px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.ai-fchip.wait { opacity: .55; }
.ai-fchip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ai-fchip > svg, .ai-doc svg, .ai-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ai-fchip > svg { margin-left: 4px; color: var(--ai-muted); }
.ai-fchip span { min-width: 0; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-fx { width: 22px; height: 22px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--ai-muted); }
.ai-fx:hover { background: rgba(255, 255, 255, .16); color: var(--ai-ink); }
.ai-fx svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ai-atts { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 92%; }
.ai-atts img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.ai-doc { display: inline-flex; align-items: center; gap: 7px; max-width: 220px; padding: 8px 12px; border-radius: 14px; font-size: 12.5px;
  background: var(--ai-me); }
.ai-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-gen { align-self: flex-start; margin: 0; max-width: 92%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ai-gen img { display: block; max-width: 100%; max-height: 420px; border-radius: 16px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.ai-gen .ai-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--ai-ink); text-decoration: none; }

/* Modo Ultra: lista de chats guardados y memoria (ocupan el sitio de la conversación; la caja de escribir se esconde) */
.ai-in-side .ai-foot { display: none; }
#aiChats.on { background: rgba(255, 255, 255, .1); color: var(--ai-ink); }
.ai-side { display: flex; flex-direction: column; gap: 8px; }
.ai-side-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ai-side-head h3 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ai-side-head .ai-ib { margin-left: -6px; }
.ai-side-empty { margin: 0 2px 4px; color: var(--ai-muted); font-size: 13px; }
.ai-chat { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 4px 6px 4px 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.ai-chat.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.ai-chat > .ai-chat-t { flex: 1; min-width: 0; padding: 6px 8px; font-size: 13px; }
.ai-chat-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 8px; border: 0; border-radius: 11px;
  background: none; cursor: pointer; text-align: left; }
.ai-chat-open:hover { background: rgba(255, 255, 255, .05); }
.ai-chat-open .ai-chat-t { max-width: 100%; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-d { color: var(--ai-muted); font-size: 11.5px; }
.ai-ib.ai-sm { width: 30px; height: 30px; flex: none; }
.ai-ib.ai-sm svg { width: 16px; height: 16px; }
.ai-chat-in { flex: 1; min-width: 0; margin: 2px; padding: 8px 10px; border: 0; border-radius: 10px; outline: 0; font: 13.5px var(--ai-sans);
  color: var(--ai-ink); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ai-memo .ai-chat-t { white-space: normal; overflow-wrap: anywhere; }
.ai-side-foot { align-items: center; margin-top: 4px; font-size: 13px; color: var(--ai-muted); }
.ai-side-foot .ai-pill:not(.danger) { color: var(--ai-ink); }
.ai-pill.danger { background: rgba(255, 69, 58, .16); color: #ff6961; }
.ai-pill.danger:hover { background: rgba(255, 69, 58, .26); }

/* Mover y cambiar de tamaño (pantalla grande) */
.ai-panel.ai-moved { right: auto; bottom: auto; }
.ai-panel.ai-dragging { transition: none !important; user-select: none; }
.ai-head { cursor: grab; }
.ai-dragging .ai-head { cursor: grabbing; }
.ai-reset { display: none; }
.ai-moved .ai-reset { display: grid; }
.ai-rz { position: absolute; z-index: 3; touch-action: none; }
.ai-rz-n, .ai-rz-s { left: 14px; right: 14px; height: 8px; cursor: ns-resize; }
.ai-rz-e, .ai-rz-w { top: 14px; bottom: 14px; width: 8px; cursor: ew-resize; }
.ai-rz-n { top: 0; } .ai-rz-s { bottom: 0; } .ai-rz-e { right: 0; } .ai-rz-w { left: 0; }
.ai-rz-ne, .ai-rz-nw, .ai-rz-se, .ai-rz-sw { width: 16px; height: 16px; }
.ai-rz-ne { top: 0; right: 0; cursor: nesw-resize; } .ai-rz-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.ai-rz-nw { top: 0; left: 0; cursor: nwse-resize; } .ai-rz-se { bottom: 0; right: 0; cursor: nwse-resize; }

/* Móvil: hoja que sube desde abajo */
@media (max-width: 699px) {
  .ai-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: min(82vh, 82dvh); border-radius: 22px 22px 0 0;
    transform: translateY(105%); padding-bottom: env(safe-area-inset-bottom); }
  .ai-rz, .ai-reset, .ai-moved .ai-reset { display: none; }
  .ai-head { cursor: auto; }
  .ai-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
  .ai-head { position: relative; padding-top: 16px; }
  .ai-in { font-size: 16px; }   /* sin zoom al escribir en el iPhone */
}
@media (prefers-reduced-motion: reduce) { .ai-panel, .ai-panel.ai-show { transition: none; } }
/* Con Halo abierto en el móvil o la tableta, la página de detrás no se mueve (ai.js además frena el dedo: lockTouch) */
@media (pointer: coarse) { html.ai-lock, html.ai-lock body { overflow: hidden; overscroll-behavior: none; } }
.ai-panel { overscroll-behavior: contain; }

/* sitios donde va el botón */
.p-top-r { display: flex; align-items: center; gap: 10px; }
.vx-ai, .fe-ai { margin-right: 4px; }
.ai-btn[hidden] { display: none !important; }

/* Bola de Halo de cristal (25/10/2026): vídeo hecho con IA, en AVIF animado (static/brand/halo.*; se hace con prototipos/halo-ia/make_halo.py)
   con transparencia. Sustituye a los anillos SVG en Halo y en las esperas (el SVG sigue dentro, oculto). */
.ai-orb {
  background: url(brand/halo.png?v=2) center / contain no-repeat;
  background-image: image-set(url(brand/halo.avif?v=2) type("image/avif"), url(brand/halo.png?v=2) type("image/png"));
  overflow: hidden;
}
.ai-orb > * { display: none; }
.ai-orb .ai-r { animation: none; }   /* los anillos ocultos no se animan: si no, la página se recalcula en cada fotograma */
@media (prefers-reduced-motion: reduce) { .ai-orb { background-image: url(brand/halo.png?v=2); } }

.ai-mic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .6); transition: background .2s, color .2s, transform .2s; }
.ai-mic:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ai-mic:active { transform: scale(.92); }
.ai-mic svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-mic.on { background: #ff453a; color: #fff; animation: ai-mic-pulse 1.3s ease-in-out infinite; }
.ai-mic.wait { color: #fff; opacity: .5; cursor: default; animation: ai-mic-wait 1s ease-in-out infinite; }
@keyframes ai-mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, .55); } 50% { box-shadow: 0 0 0 7px rgba(255, 69, 58, 0); } }
@keyframes ai-mic-wait { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .ai-mic.on, .ai-mic.wait { animation: none; } }


/* iPhone/iPad (clase ai-ios, la pone ai.js): sin difuminado. En Safari, con la caja difuminando la página, cada fotograma
   de los logos animados de detrás (nudo, bola) obligaba a volver a difuminar: tirones al abrir y todo lento mientras
   estaba abierta (en Android no pasa). Opaca se ve casi igual. */
.ai-ios .ai-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ai-glass-solid); }


/* tarjeta de compra que enseña Halo (show_offer, halo_sell.py) */
.ai-offer { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 16px;
  background: var(--ai-card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.ai-offer-top { display: flex; flex-direction: column; gap: 2px; }
.ai-offer-top b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.ai-offer-price { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ai-offer-price s { color: var(--ai-muted); font-weight: 400; }
.ai-offer-price small { color: var(--ai-muted); font-size: 12px; font-weight: 400; }
.ai-offer p { margin: 0; color: var(--ai-muted); font-size: 13px; line-height: 1.45; }
.ai-offer-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--ai-muted); cursor: pointer; }
.ai-offer-agree input { margin: 2px 0 0; flex: none; accent-color: #f5f5f7; }
.ai-offer-agree a { color: var(--ai-ink); }
.ai-offer .ai-pill.main { padding: 9px 18px; font-size: 13.5px; }
.ai-offer .ai-offer-err { color: var(--ai-err); font-size: 12px; }
.ai-offer .ai-offer-err:empty { display: none; }

/* ---------- Tema claro: retoques a mano (el resto lo genera web/tema_claro.py al final de este archivo) ---------- */
[data-theme="light"] .ai-orb { filter: invert(1); }


/* ===== TEMA CLARO (generado por web/tema_claro.py: no editar a mano) ===== */
:root:where([data-theme="light"]) { --ai-ink: #0b0b0d; --ai-muted: #5f5f64; --ai-line: rgba(0, 0, 0, .08); --ai-err: #e00b00; --ai-glass: rgba(255, 255, 255, .94); --ai-glass-solid: #fdfdfd; --ai-card: rgba(0, 0, 0, .04); --ai-me: rgba(0, 0, 0, .086); --ai-lq: inset 0 1px 0 rgba(255, 255, 255, .84), inset 0 0 0 .5px rgba(0, 0, 0, .09), 0 24px 60px rgba(40, 40, 70, .273); }
:where([data-theme="light"]) .ai-orb { color: var(--ai-ink); }
:where([data-theme="light"]) .ai-orb ellipse { fill: none; stroke: url(#aiOrbShade); }
:where([data-theme="light"]) .ai-orb .ai-o { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .ai-btn { border: 0; color: var(--ai-ink); background: rgba(0, 0, 0, .05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .63), inset 0 0 0 .5px rgba(0, 0, 0, .084); }
:where([data-theme="light"]) .ai-btn:hover { background: rgba(0, 0, 0, .086); }
:where([data-theme="light"]) .ai-btn.ai-open { background: rgba(0, 0, 0, .115); }
:where([data-theme="light"]) .ai-press { filter: drop-shadow(0 0 10px rgba(0, 0, 0, .275)); }
:where([data-theme="light"]) .ai-panel { color: var(--ai-ink); background: var(--ai-glass); box-shadow: var(--ai-lq); }
:where([data-theme="light"]) .ai-panel button { color: inherit; }
:where([data-theme="light"]) .ai-head { border-bottom: 1px solid var(--ai-line); }
:where([data-theme="light"]) .ai-title span { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-ib { border: 0; background: transparent; color: var(--ai-muted); }
:where([data-theme="light"]) .ai-ib:hover { background: rgba(0, 0, 0, .058); color: var(--ai-ink); }
:where([data-theme="light"]) .ai-ib svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .ai-msg.me { background: var(--ai-me); }
:where([data-theme="light"]) .ai-msg.bot { background: var(--ai-card); }
:where([data-theme="light"]) .ai-msg.bot.ai-typing::after { background: currentColor; }
:where([data-theme="light"]) .ai-msg.err { color: var(--ai-err); background: rgba(255, 69, 58, .1); }
:where([data-theme="light"]) .ai-act { color: var(--ai-muted); background: rgba(0, 0, 0, .029); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); }
:where([data-theme="light"]) .ai-act.ok i::before { color: #29b84c; }
:where([data-theme="light"]) .ai-act.bad i::before { color: var(--ai-err); }
:where([data-theme="light"]) .ai-act.run i::before { border: 1.5px solid currentColor; border-right-color: transparent; }
:where([data-theme="light"]) .ai-think { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-think .th { color: var(--ai-ink, var(--ink, #0b0b0d)); }
:where([data-theme="light"]) .ai-ask { background: var(--ai-card); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .084); }
:where([data-theme="light"]) .ai-pill { border: 0; background: rgba(0, 0, 0, .065); }
:where([data-theme="light"]) .ai-pill:hover { background: rgba(0, 0, 0, .108); }
:where([data-theme="light"]) .ai-pill.main { background: #191920; color: #ffffff !important; }
:where([data-theme="light"]) .ai-empty p { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-hints button { border: 0; background: rgba(0, 0, 0, .04); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); }
:where([data-theme="light"]) .ai-hints button:hover { background: rgba(0, 0, 0, .072); }
:where([data-theme="light"]) .ai-off { color: #e0bb00; background: rgba(255, 214, 10, .08); box-shadow: inset 0 0 0 .5px rgba(255, 214, 10, .25); }
:where([data-theme="light"]) .ai-off b { color: var(--ai-ink); }
:where([data-theme="light"]) .ai-foot { border-top: 1px solid var(--ai-line); }
:where([data-theme="light"]) .ai-box { background: rgba(0, 0, 0, .05); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .096); }
:where([data-theme="light"]) .ai-box:focus-within { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
:where([data-theme="light"]) .ai-in { border: 0; outline: 0; background: transparent; color: var(--ai-ink); }
:where([data-theme="light"]) .ai-box .ai-in { border: 0; background: transparent; box-shadow: none; }
:where([data-theme="light"]) .ai-box .ai-in:focus { border: 0; box-shadow: none; }
:where([data-theme="light"]) .ai-in::placeholder { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-send { border: 0; background: #191920; color: #ffffff; }
:where([data-theme="light"]) .ai-box .ai-send { color: #ffffff; }
:where([data-theme="light"]) .ai-box .ai-send:disabled { background: rgba(0, 0, 0, .101); color: rgba(12, 12, 12, .5); }
:where([data-theme="light"]) .ai-send svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .ai-note { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-fchip { background: rgba(0, 0, 0, .043); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .084); }
:where([data-theme="light"]) .ai-fchip > svg, :where([data-theme="light"]) .ai-doc svg, :where([data-theme="light"]) .ai-pill svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .ai-fchip > svg { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-fx { border: 0; background: rgba(0, 0, 0, .058); color: var(--ai-muted); }
:where([data-theme="light"]) .ai-fx:hover { background: rgba(0, 0, 0, .115); color: var(--ai-ink); }
:where([data-theme="light"]) .ai-fx svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .ai-atts img { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .084); }
:where([data-theme="light"]) .ai-doc { background: var(--ai-me); }
:where([data-theme="light"]) .ai-gen img { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .084); }
:where([data-theme="light"]) .ai-gen .ai-pill { color: var(--ai-ink); text-decoration: none; }
:where([data-theme="light"]) #aiChats.on { background: rgba(0, 0, 0, .072); color: var(--ai-ink); }
:where([data-theme="light"]) .ai-side-empty { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-chat { background: rgba(0, 0, 0, .04); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); }
:where([data-theme="light"]) .ai-chat.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
:where([data-theme="light"]) .ai-chat-open { border: 0; background: none; }
:where([data-theme="light"]) .ai-chat-open:hover { background: rgba(0, 0, 0, .036); }
:where([data-theme="light"]) .ai-chat-d { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-chat-in { border: 0; outline: 0; color: var(--ai-ink); background: rgba(0, 0, 0, .058); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
:where([data-theme="light"]) .ai-side-foot { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-side-foot .ai-pill:not(.danger) { color: var(--ai-ink); }
:where([data-theme="light"]) .ai-pill.danger { background: rgba(255, 69, 58, .16); color: #e00b00; }
:where([data-theme="light"]) .ai-pill.danger:hover { background: rgba(255, 69, 58, .26); }
@media (max-width: 699px) {
  :where([data-theme="light"]) .ai-head::before { background: rgba(0, 0, 0, .158); }
}
:where([data-theme="light"]) .ai-orb { background: url(brand/halo.png?v=2) center / contain no-repeat; background-image: image-set(url(brand/halo.avif?v=2) type("image/avif"), url(brand/halo.png?v=2) type("image/png")); }
@media (prefers-reduced-motion: reduce) {
  :where([data-theme="light"]) .ai-orb { background-image: url(brand/halo.png?v=2); }
}
:where([data-theme="light"]) .ai-mic { border: 0; background: transparent; color: rgba(12, 12, 12, .6); }
:where([data-theme="light"]) .ai-mic:hover { color: #0c0c0c; background: rgba(0, 0, 0, .072); }
:where([data-theme="light"]) .ai-mic svg { fill: none; stroke: currentColor; }
:where([data-theme="light"]) .ai-mic.on { background: #ff453a; color: #fff; }
:where([data-theme="light"]) .ai-mic.wait { color: #0c0c0c; }
:where([data-theme="light"]) .ai-ios .ai-panel { background: var(--ai-glass-solid); }
:where([data-theme="light"]) .ai-offer { background: var(--ai-card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 0 0 .5px rgba(0, 0, 0, .084); }
:where([data-theme="light"]) .ai-offer-price s { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-offer-price small { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-offer p { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-offer-agree { color: var(--ai-muted); }
:where([data-theme="light"]) .ai-offer-agree input { accent-color: #0b0b0d; }
:where([data-theme="light"]) .ai-offer-agree a { color: var(--ai-ink); }
:where([data-theme="light"]) .ai-offer .ai-offer-err { color: var(--ai-err); }
