/* El asistente de chat (13-oct). Usa los colores de app.css. */
.ass-bolla {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.1em; border: 0; border-radius: 999px;
  background: var(--brand, #0e6b4e); color: #fff;
  font: 600 1rem/1.2 inherit; box-shadow: var(--shadow); cursor: pointer;
}
.ass-bolla:focus-visible { outline: 3px solid var(--mint, #7ce0b8); outline-offset: 2px; }
.ass-pannello {
  position: fixed; right: 16px; bottom: 76px; z-index: 61;
  width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px));
  display: flex; flex-direction: column;
  background: var(--surface, #fcfdfc); color: var(--ink, #0d1b16);
  border: 1px solid var(--line, #d6e0da); border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
}
.ass-pannello[hidden] { display: none; }
.ass-testa {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75em 1em; border-bottom: 1px solid var(--line, #d6e0da); font-weight: 600;
}
.ass-chiudi { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; }
.ass-log { flex: 1; overflow-y: auto; padding: 1em; display: flex; flex-direction: column; gap: .6em; }
.ass-msg { max-width: 88%; padding: .6em .85em; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ass-msg.assistente { align-self: flex-start; background: var(--brand-tint, #e3efe8); }
.ass-msg.utente { align-self: flex-end; background: var(--brand, #0e6b4e); color: #fff; }
.ass-msg.nota { align-self: stretch; max-width: none; font-size: .85rem; background: none; padding: 0; color: #46564f; }
.ass-link {
  align-self: flex-start; display: inline-block; padding: .5em .9em; border-radius: 999px;
  background: var(--accent, #ff6a4d); color: var(--accent-ink, #0d1b16); font-weight: 600; text-decoration: none;
}
.ass-modulo { display: flex; gap: .5em; padding: .75em; border-top: 1px solid var(--line, #d6e0da); }
.ass-modulo textarea {
  flex: 1; resize: none; min-height: 2.6em; max-height: 6em; padding: .55em .7em;
  border: 1px solid var(--line, #d6e0da); border-radius: var(--radius-field, 10px); font: inherit;
}
.ass-modulo button {
  border: 0; border-radius: var(--radius-field, 10px); padding: 0 1em;
  background: var(--brand, #0e6b4e); color: #fff; font-weight: 600; cursor: pointer;
}
.ass-modulo button[disabled] { opacity: .6; cursor: wait; }
@media (prefers-reduced-motion: no-preference) {
  .ass-pannello:not([hidden]) { animation: ass-entra .18s ease-out; }
  @keyframes ass-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
