/* Pannello Installazioni — asistente técnico (botón flotante, panel lateral, página completa).
   Prefijo ch-. Solo variables de tokens.css + un acento violeta propio del asistente. Tema claro. */
:root { --ch-ai: #6D4AE0; --ch-ai-2: #5B3FC4; --ch-ai-50: #F4F0FF; --ch-ai-100: #E4DBFD; --ch-w: 420px; }

/* ------------------------------------------------------------------ botón flotante */
.ch-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 65; display: inline-flex; align-items: center; gap: 9px; height: 46px;
  padding: 0 18px 0 6px; border: 0; border-radius: 999px; background: #1E2A23; color: #fff; font: inherit; font-size: 13.5px; font-weight: 650;
  box-shadow: 0 10px 28px rgba(16, 32, 20, .28), 0 2px 6px rgba(16, 32, 20, .14); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s; animation: ch-in .25s ease-out;
}
.ch-fab:hover { transform: translateY(-2px); background: #26352C; box-shadow: 0 14px 34px rgba(16, 32, 20, .32), 0 3px 8px rgba(16, 32, 20, .14); }
.ch-fab:active { transform: translateY(0) scale(.98); }
.ch-fab:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(109, 74, 224, .35), 0 10px 28px rgba(16, 32, 20, .28); }
.ch-fab-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #8B6CF0, var(--ch-ai-2) 55%, #3E9E4A); }
.ch-fab-ic .i { width: 18px; height: 18px; color: #fff; stroke-width: 2; }
.ch-fab-dot {
  position: absolute; top: -4px; right: -2px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--bg);
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ch-fab.ch-pulse { animation: ch-pulse 1.2s ease-out 2; }
@keyframes ch-pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, .45), 0 10px 28px rgba(16, 32, 20, .28); } 100% { box-shadow: 0 0 0 16px rgba(217, 45, 32, 0), 0 10px 28px rgba(16, 32, 20, .28); } }
@keyframes ch-in { from { opacity: 0; transform: translateY(8px); } }
/* los toasts van por encima del botón y, con el panel abierto, a su izquierda */
body.ch-fab-on .ui-toasts { bottom: 82px; }
/* con el panel abierto, toasts y avisos de promemoria (E1) se apartan a su izquierda para no taparlo */
@media (min-width: 900px) {
  body.ch-aperta .ui-toasts { right: calc(var(--ch-w) + 20px); }
  body.ch-aperta .nt-stack { right: calc(var(--ch-w) + 16px); }
}

/* ------------------------------------------------------------------ panel lateral */
.ch-pannello {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(var(--ch-w), 100vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(10, 25, 14, .16);
  transform: translateX(104%); transition: transform .18s ease-out;
}
.ch-pannello.ch-on { transform: translateX(0); }
/* con la scheda abierta y pantalla ancha, la scheda se aparta para dejar sitio al asistente */
@media (min-width: 1180px) {
  body.ch-aperta .ui-drawer { right: var(--ch-w); width: min(1060px, calc(100vw - var(--ch-w))); transition: right .18s ease-out; }
}

/* ------------------------------------------------------------------ estructura común */
.ch-ui { display: flex; flex: 1; min-height: 0; height: 100%; background: var(--surface); }
.ch-main { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.ch-head { display: flex; flex: none; align-items: center; gap: 10px; height: 58px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #FBFAFF, var(--surface)); }
.ch-logo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #8B6CF0, var(--ch-ai-2)); box-shadow: 0 2px 8px rgba(91, 63, 196, .28); }
.ch-logo .i { width: 18px; height: 18px; color: #fff; }
.ch-head-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ch-head-t b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ch-head-t span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-spento .ch-head-t span { color: var(--warn); font-weight: 600; }
.ch-hb { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.ch-hb:hover { background: var(--surface-3); color: var(--ink); }
.ch-hb:focus-visible { outline: none; box-shadow: var(--focus); }
.ch-hb .i { width: 17px; height: 17px; }
.ch-body { position: relative; flex: 1; min-height: 0; display: flex; }
.ch-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 22px; scroll-behavior: auto; outline: none; }
.ch-giu {
  position: absolute; left: 50%; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow); transform: translateX(-50%); cursor: pointer; animation: ch-in .15s ease-out;
}
.ch-giu .i { width: 14px; height: 14px; }
.ch-faint { color: var(--faint); }

/* ------------------------------------------------------------------ mensajes */
.ch-row { display: flex; gap: 10px; margin-bottom: 16px; animation: ch-in .18s ease-out; }
.ch-user { flex-direction: column; align-items: flex-end; gap: 3px; }
.ch-bub {
  max-width: 86%; padding: 9px 13px; border: 1px solid var(--brand-100); border-radius: 16px 16px 5px 16px; background: #EEF7EC;
  color: var(--ink); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal;
}
.ch-meta { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ch-av { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: linear-gradient(135deg, #8B6CF0, var(--ch-ai-2)); }
.ch-av .i { width: 14px; height: 14px; color: #fff; }
.ch-ab { flex: 1; min-width: 0; }
.ch-ab:hover .ch-acts { opacity: 1; }
.ch-md { font-size: 13.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.ch-md > :first-child { margin-top: 0; }
.ch-md > :last-child { margin-bottom: 0; }
.ch-md p { margin: 0 0 .7em; }
.ch-md h3, .ch-md h4, .ch-md h5 { margin: 1em 0 .4em; line-height: 1.3; color: var(--ink); }
.ch-md h3 { font-size: 15.5px; } .ch-md h4 { font-size: 14.5px; } .ch-md h5 { font-size: 13.5px; }
.ch-md ul, .ch-md ol { margin: 0 0 .7em; padding-left: 1.35em; }
.ch-md li { margin: .2em 0; }
.ch-md li > ul, .ch-md li > ol { margin: .2em 0 .2em; }
.ch-md strong { font-weight: 700; color: var(--ink); }
.ch-md a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.ch-md code { padding: 1px 5px; border-radius: 5px; background: var(--surface-3); font-family: var(--mono); font-size: 12px; color: #3B2F7A; }
.ch-md pre.ch-code { position: relative; margin: 0 0 .8em; padding: 11px 13px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #F6F8F6; }
.ch-md pre.ch-code[data-lang]::before { content: attr(data-lang); position: absolute; top: 4px; right: 8px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.ch-md pre.ch-code code { padding: 0; background: none; color: var(--ink-2); font-size: 12px; line-height: 1.5; white-space: pre; }
.ch-md blockquote { margin: 0 0 .7em; padding: 4px 0 4px 12px; border-left: 3px solid var(--ch-ai-100); color: var(--ink-2); }
.ch-md hr { margin: 1em 0; border: 0; border-top: 1px solid var(--line); }
.ch-md del { color: var(--muted); }
.ch-tbl { margin: 0 0 .8em; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.ch-tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ch-tbl th { padding: 7px 10px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.ch-tbl td { padding: 7px 10px; border-top: 1px solid var(--line-2); vertical-align: top; }
.ch-tbl .ch-r { text-align: right; font-variant-numeric: tabular-nums; }
.ch-tbl .ch-c { text-align: center; }
.ch-cursor { display: inline-block; width: 7px; height: 15px; margin-left: 2px; border-radius: 2px; background: var(--ch-ai); vertical-align: -2px; animation: ch-blink 1s steps(2) infinite; }
@keyframes ch-blink { 50% { opacity: 0; } }
.ch-pensa { display: inline-flex; align-items: center; gap: 4px; height: 26px; color: var(--muted); font-size: 12.5px; }
.ch-pensa span { width: 6px; height: 6px; border-radius: 50%; background: var(--ch-ai); opacity: .35; animation: ch-dot 1.1s infinite ease-in-out; }
.ch-pensa span:nth-child(2) { animation-delay: .15s; } .ch-pensa span:nth-child(3) { animation-delay: .3s; }
.ch-pensa em { margin-left: 6px; font-style: normal; }
@keyframes ch-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ch-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.ch-tool {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--ch-ai-100);
  border-radius: 999px; background: var(--ch-ai-50); color: var(--ch-ai-2); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ch-tool > .i { width: 13px; height: 13px; flex: none; }
.ch-tool .ch-tool-ic { opacity: .7; }
.ch-tool small { overflow: hidden; font-size: 11.5px; font-weight: 500; text-overflow: ellipsis; opacity: .85; }
.ch-tool.ch-ok { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.ch-tool.ch-ok > .i:first-child { color: var(--ok); stroke-width: 2.6; }
.ch-spin { display: inline-block; width: 12px; height: 12px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ch-rot .7s linear infinite; }
@keyframes ch-rot { to { transform: rotate(360deg); } }
.ch-err { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--danger-100); border-radius: 10px; background: var(--danger-50); color: #7A1D15; font-size: 12.5px; }
.ch-err > .i { width: 15px; height: 15px; flex: none; color: var(--danger); }
.ch-tool.ch-ko { border-color: var(--warn-100); background: var(--warn-50); color: var(--warn); }
.ch-tool.ch-ko > .i:first-child { color: var(--warn); }
.ch-avv { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--info-50); border-radius: 10px; background: #F5F8FF; color: #1E3A8A; font-size: 12.5px; }
.ch-avv > .i { width: 15px; height: 15px; flex: none; color: var(--info); }
.ch-nota.ch-nota-lim { color: var(--warn); font-weight: 600; }
.ch-int { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ch-int .i { width: 12px; height: 12px; }
.ch-acts { display: flex; align-items: center; gap: 8px; margin-top: 6px; opacity: .55; transition: opacity .12s; }
.ch-act { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.ch-act:hover { background: var(--surface-3); color: var(--ink); }
.ch-act:focus-visible { outline: none; box-shadow: var(--focus); }
.ch-act .i { width: 13px; height: 13px; }
.ch-pc { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--ch-ai-100); border-radius: 11px; background: var(--ch-ai-50); font-size: 12.5px; }
.ch-pc > .i { width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 8px; background: #fff; color: var(--ch-ai-2); box-sizing: border-box; }
.ch-pc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ch-ai-2); }
.ch-pc-t { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }

/* burbuja de promemoria (aviso) */
.ch-sys { justify-content: center; }
.ch-prom { width: 100%; padding: 11px 13px 12px; border: 1px solid #F0DF9C; border-radius: 14px; background: linear-gradient(180deg, #FFFCEC, #FFF6D2); box-shadow: 0 4px 14px rgba(160, 120, 0, .1); }
.ch-prom-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6B5200; }
.ch-prom-h > .i { width: 16px; height: 16px; color: #C99A06; }
.ch-prom-h b { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ch-prom-h span:not(.sp) { font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-prom-t { margin-top: 5px; font-size: 14px; font-weight: 700; color: #2E2400; overflow-wrap: anywhere; }
.ch-prom-m { margin-top: 2px; font-size: 12.5px; color: #6E5A1B; overflow-wrap: anywhere; }
.ch-prom-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ch-prom-st { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ok); }
.ch-prom-st .i { width: 13px; height: 13px; stroke-width: 2.6; }
.ch-prom.ch-prom-off { border-color: var(--line); background: var(--surface-2); box-shadow: none; }
.ch-prom.ch-prom-off .ch-prom-h, .ch-prom.ch-prom-off .ch-prom-t { color: var(--muted); }
.ch-prom.ch-prom-off .ch-prom-h > .i { color: var(--faint); }
.ch-x { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 0; border-radius: 6px; background: none; color: inherit; opacity: .55; cursor: pointer; }
.ch-x:hover { background: rgba(0, 0, 0, .06); opacity: 1; }
.ch-x:focus-visible { outline: none; box-shadow: var(--focus); opacity: 1; }
.ch-x .i { width: 13px; height: 13px; }

/* vacío, no configurado, cargando */
.ch-empty { display: flex; flex-direction: column; align-items: center; padding: 22px 6px 6px; text-align: center; }
.ch-empty-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #8B6CF0, var(--ch-ai-2)); box-shadow: 0 8px 22px rgba(91, 63, 196, .28); }
.ch-empty-ic .i { width: 26px; height: 26px; color: #fff; }
.ch-empty h3 { margin: 14px 0 6px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.ch-empty p { max-width: 360px; margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ch-sugg { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 420px; }
.ch-sugg-i {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550; text-align: left; cursor: pointer;
  transition: border-color .12s, background .12s, transform .12s;
}
.ch-sugg-i:hover { border-color: var(--ch-ai-100); background: var(--ch-ai-50); color: var(--ink); transform: translateX(2px); }
.ch-sugg-i:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(109, 74, 224, .2); }
.ch-sugg-i .i { width: 16px; height: 16px; flex: none; color: var(--ch-ai); }
.ch-off { display: flex; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid #F5D79F; border-radius: 12px; background: var(--warn-50); color: #7A3306; font-size: 13px; }
.ch-off > .i { width: 20px; height: 20px; flex: none; color: var(--warn); }
.ch-off b { font-size: 13.5px; color: #5C2A04; }
.ch-off p { margin: 4px 0 10px; }
.ch-load { padding: 6px 4px; }

/* ------------------------------------------------------------------ pie: contexto + entrada */
.ch-foot { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--line-2); background: var(--surface); }
.ch-ctx { margin-bottom: 8px; }
.ch-ctx-c { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 4px 0 9px; border: 1px solid var(--ch-ai-100); border-radius: 999px; background: var(--ch-ai-50); color: var(--ch-ai-2); font-size: 12px; }
.ch-ctx-c > .i { width: 13px; height: 13px; flex: none; }
.ch-ctx-n { min-width: 0; overflow: hidden; border: 0; background: none; color: inherit; font: inherit; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.ch-ctx-n:hover { text-decoration: underline; }
.ch-ctx-n b { font-weight: 700; }
.ch-form { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.ch-form:focus-within { border-color: #B9A6F5; box-shadow: 0 0 0 3px rgba(109, 74, 224, .14); }
.ch-ta { flex: 1; min-height: 24px; max-height: 200px; margin: 5px 0; padding: 0; border: 0; background: none; outline: none; resize: none; font: 13.5px/1.5 var(--font); color: var(--ink); }
.ch-ta::placeholder { color: var(--faint); }
.ch-ta:disabled { cursor: not-allowed; }
.ch-send { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; cursor: pointer; transition: background .12s, transform .12s; }
.ch-send:hover { background: var(--brand-600); }
.ch-send:active { transform: scale(.95); }
.ch-send:disabled { background: #C9D2CB; cursor: not-allowed; }
.ch-send:focus-visible { outline: none; box-shadow: var(--focus); }
.ch-send .i { width: 17px; height: 17px; }
.ch-send.ch-stop { background: #1E2A23; }
.ch-send.ch-stop .i { width: 14px; height: 14px; fill: currentColor; }
.ch-nota { margin-top: 6px; font-size: 11px; line-height: 1.4; color: var(--faint); }

/* ------------------------------------------------------------------ página completa (#/assistente) */
.ch-ui.ch-m-pagina { height: 100%; min-height: 480px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.ch-m-pagina .ch-side { display: flex; flex: none; flex-direction: column; width: 280px; min-height: 0; border-right: 1px solid var(--line-2); background: var(--surface-2); }
.ch-side-h { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px 16px; font-size: 13px; color: var(--ink); }
.ch-side-s { padding: 0 12px 10px; }
.ch-convs { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 12px; }
.ch-convs-v { padding: 12px 8px; font-size: 12.5px; }
.ch-conv { position: relative; display: flex; align-items: center; border-radius: 10px; }
.ch-conv + .ch-conv { margin-top: 2px; }
.ch-conv:hover { background: var(--surface); }
.ch-conv.ch-on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ch-ai-100); }
.ch-conv-b { display: flex; flex: 1; align-items: flex-start; gap: 9px; min-width: 0; padding: 9px 30px 9px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ch-conv-b:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
.ch-conv-b > .i { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--faint); }
.ch-conv.ch-on .ch-conv-b > .i { color: var(--ch-ai); }
.ch-conv-t { display: flex; flex-direction: column; min-width: 0; }
.ch-conv-n { overflow: hidden; font-size: 13px; font-weight: 600; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.ch-conv.ch-on .ch-conv-n { color: var(--ink); }
.ch-conv-m { font-size: 11px; color: var(--faint); }
.ch-conv-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: 0; color: var(--danger); }
.ch-conv:hover .ch-conv-del, .ch-conv-del:focus-visible { opacity: .7; }
.ch-m-pagina .ch-msgs, .ch-m-pagina .ch-foot > * { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }
.ch-m-pagina .ch-msgs { padding: 24px 24px 28px; }
.ch-m-pagina .ch-foot { padding: 12px 24px 16px; }
.ch-m-pagina .ch-head { padding: 0 16px 0 20px; }
.ch-m-pagina .ch-empty { padding-top: 48px; }
.ch-m-pagina .ch-sugg { max-width: 560px; }

/* menú de conversaciones (panel) */
.ch-pop {
  position: fixed; z-index: 96; min-width: 260px; max-width: 340px; max-height: min(64vh, 460px); overflow: auto; padding: 5px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 36px rgba(16, 32, 20, .16), 0 2px 6px rgba(16, 32, 20, .06); animation: pop .12s ease-out;
}
.ch-pop-h { padding: 8px 10px 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ch-pop-i { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ch-pop-i:hover, .ch-pop-i:focus-visible { outline: none; background: var(--surface-3); color: var(--ink); }
.ch-pop-i:disabled { opacity: .5; cursor: default; background: none; }
.ch-pop-i > .i { width: 16px; height: 16px; flex: none; color: var(--muted); }
.ch-pop-i.ch-on { font-weight: 650; color: var(--ink); }
.ch-pop-i.ch-on > .i { color: var(--ch-ai); }
.ch-pop-tx { display: flex; flex-direction: column; min-width: 0; }
.ch-pop-tx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-pop-tx small { font-size: 11px; color: var(--faint); }
.ch-pop-sep { height: 1px; margin: 4px 6px; background: var(--line-2); }

/* ------------------------------------------------------------------ pantallas estrechas y movimiento reducido */
@media (max-width: 760px) {
  .ch-fab-l { display: none; }
  .ch-fab { padding: 0 6px; }
  .ch-m-pagina .ch-side { display: none; }
  .ch-m-pagina .ch-msgs { padding: 16px 14px; }
  .ch-m-pagina .ch-foot { padding: 10px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-fab, .ch-row, .ch-giu, .ch-pannello, .ch-sugg-i, .ch-fab.ch-pulse { animation: none; transition: none; }
  .ch-cursor, .ch-pensa span, .ch-spin { animation-duration: 2.4s; }
}
@media print { .ch-fab, .ch-pannello { display: none !important; } }
