/* Claudbar — diseño propio (se carga el último y manda sobre los estilos anteriores) */

/* ===== Base ===== */
body { font-size: 16px; }
.bubble { font-size: 15.5px; line-height: 1.55; }
textarea, input { font-size: 15px; }
html.no-anim *, html.no-anim *::before, html.no-anim *::after { animation: none !important; transition: none !important; }

/* Color de acento según el plan */
html[data-plan=free] { --accent-primary: #8e9bb0; --grad: #8e9bb0; }
html[data-plan=student] { --accent-primary: #30d158; --grad: #30d158; }
html[data-plan=premium] { --accent-primary: #0a84ff; --grad: #0a84ff; }
html[data-plan=ultimate] { --accent-primary: #bf5af2; --grad: #bf5af2; }
html[data-plan=premium] .student-badge, html[data-plan=ultimate] .student-badge { display: none !important; }

/* ===== Panel lateral: sin la franja oscura de iconos ===== */
html:not(.cb-full) .rail { display: none !important; }
.cloud-bubble, #cloud-bubble-mini { display: none !important; } /* sin burbujitas de texto */

/* Cabecera: avatar arriba a la derecha */
.top-avatar { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  background: var(--grad) center / cover no-repeat; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-primary), 0 0 12px 2px color-mix(in srgb, var(--accent-primary) 50%, transparent); }
.top-menu { position: absolute; top: 52px; right: 14px; z-index: 50; min-width: 220px; padding: 6px; border-radius: 14px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.top-menu[hidden] { display: none; }
.top-menu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.top-menu-head small { color: var(--muted); font-size: 12.5px; }
.top-menu button { text-align: left; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; cursor: pointer; }
.top-menu button:hover { background: var(--surface-2); }

/* Inicio: nube grande al centro y la pregunta */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-mascot { width: 170px !important; height: 140px !important; margin: 0 auto; }
.hero-task { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 10px 0 0; }
html.cb-full .hero-task { font-size: 28px; }
.hero-top .wx-chip { position: static; display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; }
.hero-top .wx-chip[hidden] { display: none; }

/* Fila sobre el cuadro: modelo · historial · nueva tarea */
.composer-tools { display: flex; align-items: center; gap: 6px; padding: 4px 14px 8px; position: relative; }
.composer-tools .model-btn { display: inline-flex; align-items: center; gap: 6px; max-width: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; }
.composer-tools .model-text small { display: none; }
.composer-tools .model-text strong { font-size: 14.5px; }
.composer-tools .tool-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.composer-tools .tool-icon:hover { color: var(--text); background: var(--surface-2); }
.new-task { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--accent-primary); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.new-task:hover { background: color-mix(in srgb, var(--accent-primary) 12%, transparent); }
#history-menu { position: absolute; right: 14px; bottom: 44px; width: min(320px, calc(100vw - 28px)); max-height: 60vh; overflow-y: auto; }
#history-menu .menu-item small { display: block; color: var(--muted); font-size: 12px; }

/* Cuadro de texto */
.composer { margin: 0 14px 8px; padding: 12px 14px 8px; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 6px 24px rgba(0, 0, 0, .2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.composer:focus-within { border-color: var(--accent-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-primary) 16%, transparent), 0 6px 24px rgba(0, 0, 0, .2); }
#user-input { font-size: 16px; min-height: 56px; }
.composer-row { display: flex; align-items: center; gap: 4px; }
.composer-row .icon-btn { width: 32px; height: 32px; border-radius: 10px; color: var(--muted); }
.composer-row .icon-btn:hover { color: var(--text); background: var(--surface-2); }
html.cb-full .composer, html.cb-full .composer-tools { max-width: 780px; width: 100%; margin-left: auto; margin-right: auto; }
html.cb-full #user-input { min-height: 72px; font-size: 17px; }

/* Pie: créditos · mejorar | me gusta · ayuda · personalización */
.panel-foot { display: flex; align-items: center; gap: 8px; padding: 2px 16px 10px; }
.foot-credits { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.credit-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.foot-upgrade { border: 0; background: transparent; color: var(--accent-primary); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.foot-upgrade[hidden] { display: none; }
.foot-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.foot-icon:hover { color: var(--text); background: var(--surface-2); }
html.cb-full .panel-foot { max-width: 780px; width: 100%; margin: 0 auto; }

/* ===== Pantalla grande: barra izquierda ===== */
html.cb-full .rail { padding: 18px 12px 12px; gap: 2px; }
html.cb-full .fs-brand { padding: 4px 12px 14px; gap: 10px; }
html.cb-full .fs-brand b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
html.cb-full .fs-logo { font-size: 30px; }
html.cb-full .rail .rail-sep { display: none; }
html.cb-full .rail .fs-item { flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--text); }
html.cb-full .rail .fs-item .rl { display: inline !important; font-size: 16px; font-weight: 600; }
html.cb-full .rail .fs-item .ri { width: 24px; height: 24px; }
html.cb-full .rail .fs-item:hover { background: var(--surface-2); }
html.cb-full .rail .rail-group { font-size: 13px; font-weight: 600; color: var(--muted); padding: 18px 14px 6px; border-top: 1px solid var(--border); margin-top: 8px; text-transform: none; letter-spacing: 0; }
html.cb-full .fs-chat { font-size: 14.5px; padding: 8px 14px; border-radius: 10px; }
html.cb-full .rail-avatar { width: 40px !important; height: 40px !important; font-size: 20px !important; }

/* Chats con papelera (pantalla grande) */
.fs-chat { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.fs-chat-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-act { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); opacity: 0; cursor: pointer; }
.fs-chat:hover .fs-chat-act, .fs-chat:focus-within .fs-chat-act { opacity: 1; }
.fs-chat-act:hover { background: var(--surface-2); color: var(--accent-danger, #f87171); }
.fs-trash-btn, .fs-empty-trash { display: flex; align-items: center; gap: 8px; margin: 8px 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.fs-trash-btn:hover, .fs-empty-trash:hover { color: var(--text); border-color: var(--accent-primary); }

/* Ajustes tras revisar en pantalla */
.composer-row .icon-btn { background: transparent !important; border: 0 !important; }
.composer-row .icon-btn:hover { background: var(--surface-2) !important; }
#model-menu { position: absolute; left: 14px; right: 14px; bottom: 150px; max-height: 60vh; overflow-y: auto; z-index: 40; }

/* Esquina superior izquierda: pantalla grande */
.top-full { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; }
.top-full:hover { color: var(--text); border-color: var(--accent-primary); }

/* Créditos: color según lo que queda (azul bien, amarillo se acaban, rojo casi nada) */
.foot-credits[data-level="ok"] .credit-ring { border-color: #60a5fa; }
.foot-credits[data-level="mid"] .credit-ring { border-color: #fbbf24; }
.foot-credits[data-level="low"] .credit-ring { border-color: #f87171; }
.foot-credits[data-level="low"] b { color: #f87171; }
.panel-foot { position: relative; }
.credit-pop { position: absolute; left: 12px; bottom: 44px; z-index: 50; width: min(280px, calc(100vw - 24px)); padding: 14px; border-radius: 14px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 8px; }
.credit-pop[hidden] { display: none; }
.credit-pop b { font-size: 15px; }
.credit-pop p { margin: 0; color: var(--muted); font-size: 13.5px; }
.credit-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.credit-bar i { display: block; height: 100%; border-radius: 99px; background: #60a5fa; }
.credit-bar[data-level="mid"] i { background: #fbbf24; }
.credit-bar[data-level="low"] i { background: #f87171; }
.hero-task.say-in { animation: say-in .45s var(--ease) both; }
@keyframes say-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Frases de la nube debajo del saludo ===== */
.hero-say { margin: 6px 0 0; min-height: 1.4em; color: var(--muted); font-size: 15px; max-width: 520px; }
.hero-say.say-in { animation: say-in .45s var(--ease) both; }
.hero-task.say-in { animation: none; }

/* ===== Barra lateral (panel): más claro y más grande ===== */
html:not(.cb-full) .top-full { padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font: inherit; font-size: 13px; font-weight: 600; }
html:not(.cb-full) .top-full::after { content: attr(aria-label); } /* aria-label lo traduce i18n */
.foot-credits { padding: 4px 12px 4px 6px; font-size: 15px; }
.foot-credits b { font-size: 15px; }
.credit-ring { width: 16px; height: 16px; }
html:not(.cb-full) .composer, html:not(.cb-full) .composer-tools { margin-left: 12px; margin-right: 12px; }
html:not(.cb-full) .composer-tools { padding-left: 2px; padding-right: 2px; }

/* ===== Pantalla grande: como ChatGPT ===== */
html.cb-full #top-menu, html.cb-full .cb-full-btn, html.cb-full .rail-avatar, html.cb-full #toggle-settings { display: none !important; }
html.cb-full .rail { display: flex; flex-direction: column; }
html.cb-full .fs-chats { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
html.cb-full .cb-acct-wrap { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
html.cb-full .cb-acct { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
html.cb-full .cb-acct:hover { background: var(--surface-2); }
html.cb-full .cb-acct-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad); object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent-primary); flex: none; }
html.cb-full .cb-acct-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
html.cb-full .cb-acct-info b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.cb-full .cb-acct-info small { color: var(--muted); font-size: 12.5px; }
.fs-brand { display: flex; align-items: center; gap: 10px; }
.fs-logo-img { width: 30px; height: 30px; }
.fs-fold, .fs-unfold { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.fs-fold:hover, .fs-unfold:hover { background: var(--surface-2); color: var(--text); }
.fs-unfold img { width: 28px; height: 28px; }
.fs-unfold { display: none; }
html.cb-full.fs-folded .rail { display: none !important; }
html.cb-full.fs-folded .fs-unfold { display: grid; }
html.cb-full #app { position: relative; }
/* Nube grande, saludo, frase y el cuadro más abajo */
html.cb-full .hero-mascot { width: 260px !important; height: 215px !important; }
html.cb-full .hero-task { font-size: 30px; }
html.cb-full .hero-say { font-size: 17px; }
html.cb-full #app:not(.has-chat) .hero { margin-top: 12vh; margin-bottom: 7vh !important; }
html.cb-full .panel-foot { display: flex; }
html.cb-full .hero-say { max-width: 680px; }
html.cb-full #app:not(.has-chat) .hero { margin-top: 16vh; margin-bottom: 9vh !important; }

/* Nube animada en la barra (en vez del logo) */
.fs-cloud { width: 46px; height: 38px; flex: none; display: inline-block; }
.fs-cloud.small { width: 36px; height: 30px; }
/* Con mucho historial los mensajes NO se encogen: la conversación sigue hacia abajo */
.chat > * { flex-shrink: 0; }
/* Títulos de chats completos (no se cortan por la izquierda) */
.fs-chat { padding-left: 12px !important; text-indent: 0; }
.fs-chat-t { padding-left: 2px; }

/* Clima más grande */
.hero-top .wx-chip { font-size: 16px !important; padding: 7px 16px !important; font-weight: 600; }
html.cb-full .hero-top .wx-chip { font-size: 17px !important; }

/* Pantalla grande: la conversación centrada y pegada al cuadro de texto (no arriba con un hueco) */
html.cb-full #app.has-chat .chat { width: 100%; max-width: none !important; padding-left: 16px; padding-right: 16px; }
html.cb-full #app.has-chat .chat > :first-child { margin-top: auto; }
html.cb-full #app.has-chat .chat > * { width: 100%; max-width: var(--chat-max, 760px); margin-left: auto; margin-right: auto; }

/* La nube (mascota) como avatar de Claudbar junto a sus respuestas */
.message.assistant { position: relative; padding-left: 52px; }
.msg-cloud { position: absolute; left: 0; top: 0; width: 42px; height: 36px; display: grid; place-items: center; }
.msg-cloud:empty::before { content: ''; width: 34px; height: 26px; background: url("../icons/icon48.png") center / contain no-repeat; opacity: .8; }
.msg-cloud #mascot-mini { width: 42px !important; height: 36px !important; opacity: 1 !important; visibility: visible !important; }
html:not(.cb-full) .message.assistant { padding-left: 46px; }
html:not(.cb-full) .msg-cloud { width: 38px; height: 32px; }
html:not(.cb-full) .msg-cloud #mascot-mini { width: 38px !important; height: 32px !important; }

/* ===== Agente ===== */
.agent-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s var(--ease); }
.agent-pill:hover { color: var(--text); border-color: var(--accent-primary); }
.agent-pill[aria-pressed="true"], html.cb-full .fs-agent-item[aria-pressed="true"] { color: #fff; background: var(--accent-primary); border-color: var(--accent-primary); }
html.agent-on .composer { border-color: var(--accent-primary); }
.agent-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.agent-steps li { display: flex; gap: 8px; align-items: baseline; color: var(--muted); }
.agent-steps li::before { content: '•'; width: 14px; text-align: center; flex: none; }
.agent-ctls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.agent-ctl { border: 1px solid var(--line, rgba(127,127,127,.3)); background: var(--surface, transparent); color: inherit; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.agent-ctl:hover { border-color: #7c5cff; }
.agent-hint { font-size: 12px; color: var(--muted); }
.agent-steps li[data-state="ok"]::before { content: '✓'; color: #34d399; }
.agent-steps li[data-state="err"]::before { content: '!'; color: #fbbf24; }
.agent-steps li[data-state="run"], .agent-steps li[data-state="think"] { color: var(--text); }
.agent-steps li[data-state="run"]::before, .agent-steps li[data-state="think"]::before { content: '◌'; color: var(--accent-primary); animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.agent-card { align-self: stretch; margin-left: 46px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent-primary); background: color-mix(in srgb, var(--accent-primary) 8%, var(--surface)); display: flex; flex-direction: column; gap: 8px; }
html.cb-full .agent-card { max-width: var(--chat-max, 760px); margin-left: auto; margin-right: auto; width: 100%; }
.agent-card p { margin: 0; font-size: 14px; }
.agent-card-acts { display: flex; gap: 8px; justify-content: flex-end; }
.agent-input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }

.agent-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.agent-mode { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.agent-mode small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.agent-mode:hover, .agent-mode:focus-visible { border-color: var(--accent-primary); }
.agent-mode.rec { border-color: color-mix(in srgb, var(--accent-primary) 60%, var(--border)); }

/* Menú de la foto: opaco y por encima de todo (antes se veían los mensajes a través) */
.top-menu { background: var(--surface) !important; backdrop-filter: none !important; z-index: 1000 !important; opacity: 1 !important; }
html[data-theme="dark"] .top-menu, html:not([data-theme]) .top-menu { background: #16171f !important; }
/* Cada respuesta con su nube animada */
.msg-cloud .mascot { width: 100% !important; height: 100% !important; }
.msg-cloud:empty::before { content: none; }


/* Pantalla completa: el chat va en un recuadro flotante (no pegado a los bordes), con animaciones (diseño: director de arte NVIDIA). */
html.cb-full body, html.cb-full .shell { background: var(--surface); }
html.cb-full #app { margin: 14px 14px 14px 0; height: auto; align-self: stretch; flex: 1 1 auto; min-height: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  animation: cb-card-entry 450ms cubic-bezier(.2, .8, .2, 1) both, cb-card-glow 6s ease-in-out 450ms infinite; }
@keyframes cb-card-entry { from { opacity: 0; transform: scale(.98) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cb-card-glow {
  0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, .18), 0 0 0 0 rgba(124, 92, 255, 0); }
  50% { box-shadow: 0 8px 28px rgba(0, 0, 0, .18), 0 0 22px 2px rgba(124, 92, 255, .22); }
}
@media (prefers-reduced-motion: reduce) { html.cb-full #app { animation: none; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); } }

/* Con muchos chats las filas no se aplastan: la lista se desplaza. */
html.cb-full .fs-chat { flex-shrink: 0; }
html.cb-full .shell { height: 100vh; }

/* Convert to Anything dentro del recuadro del chat. */
#app { position: relative; }
.convert-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2147483000; background: var(--bg); }
.convert-frame[hidden] { display: none; }

/* Tarjeta de documento creada por la IA en el chat */
.doc-card { margin: 10px 0; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,.12); animation: cv-card-in .35s ease both; }
@keyframes cv-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.doc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.doc-card-ico { font-size: 28px; }
.doc-card-head b { display: block; font-size: 15px; }
.doc-card-head small { color: var(--muted); font-size: 12px; }
.doc-card-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-card-btn { border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.doc-card-btn:hover { border-color: #7c5cff; }
.doc-card-btn.main { background: #7c5cff; border-color: #7c5cff; color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .doc-card { animation: none; } }

/* Comparar con otro modelo: segunda respuesta en cristal bajo la original */
.cmp { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--lg-fill, rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.08); }
.cmp-head { display: block; margin-bottom: 6px; color: #a78bfa; font-weight: 600; }

/* Biblioteca de prompts («/» en el chat) */
.prompt-menu { position: fixed; z-index: 1000; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--lg-fill, rgba(255,255,255,.08)), rgba(26,24,42,.82); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 14px 34px rgba(0,0,0,.4); scrollbar-width: thin; }
.prompt-item { position: relative; display: block; width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; padding: 7px 28px 7px 10px; border-radius: 10px; cursor: pointer; }
.prompt-item b { display: block; font-size: 13px; } .prompt-item small { opacity: .6; font-size: 11px; }
.prompt-item:hover, .prompt-item:first-child { background: rgba(124,58,237,.28); }
.prompt-add { color: #a78bfa; font-weight: 600; }
.prompt-del { position: absolute; right: 8px; top: 8px; opacity: .5; } .prompt-del:hover { opacity: 1; }
:root[data-theme="light"] .prompt-menu { background: rgba(255,255,255,.92); border-color: #e3e3ea; }

.quick-row { display: flex; gap: 6px; padding: 0 2px 6px; overflow-x: auto; scrollbar-width: none; }
.quick-chip { flex: none; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.quick-chip:hover { background: rgba(124,58,237,.28); }
:root[data-theme="light"] .quick-chip { background: #fff; border-color: #e3e3ea; }
@media (max-width: 480px) { .quick-chip { font-size: 11px; padding: 4px 9px; } .prompt-menu { max-height: 46vh; } }
@media (max-width: 260px) { .quick-row { gap: 4px; padding-bottom: 4px; } .quick-chip { font-size: 10px; padding: 3px 7px; } .prompt-item small { display: none; } }
.fs-quick { display: none; }
html.cb-full .fs-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; flex: none; }
html.cb-full .rail .fs-quick .fs-item { min-height: 0; height: 34px; padding: 0 8px; gap: 6px; min-width: 0; }
html.cb-full .rail .fs-quick .fs-item .rl { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.cb-full .rail .fs-quick .fs-item .ri { width: 18px; height: 18px; flex: none; }
html.cb-full nav.rail { overflow-y: auto; scrollbar-width: thin; }
html.cb-full .fs-chats { min-height: 120px; }

/* Herramientas de la barra lateral: sección plegable, una sola columna, nombres completos. */
html.cb-full .rail .rail-toggle { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 16px); box-sizing: border-box; background: none; border: 0; border-top: 1px solid var(--border); cursor: pointer; text-align: left; font-family: inherit; flex: none; }
html.cb-full .rail .rail-toggle:hover { color: var(--text); opacity: 1; }
.rail-toggle::after { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .22s ease; opacity: .7; }
.rail-toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
html.cb-full .fs-quick { display: flex; flex-direction: column; gap: 2px; flex: none; overflow: hidden; max-height: 0; transition: max-height .28s ease; }
html.cb-full .rail-toggle[aria-expanded="true"] + .fs-quick { max-height: 34vh; overflow-y: auto; scrollbar-width: thin; }
html.cb-full .rail .fs-quick .fs-item { min-height: 0; height: 36px; padding: 0 12px; gap: 10px; min-width: 0; flex: none; }
html.cb-full .rail .fs-quick .fs-item .rl { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.cb-full .rail .fs-quick .fs-item .ri { width: 18px; height: 18px; flex: none; }
