body { margin: 0; background: #F5F5F7; color: #1D1D1F; font-family: var(--lt-font, -apple-system, sans-serif); }
.pagina { max-width: 980px; margin: 0 auto; padding: 16px 16px 40px; }
.sotto { color: #6E6E73; }
.barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.barra input { flex: 1; min-width: 220px; font: inherit; padding: 9px 12px; border: 1px solid #D2D2D7; border-radius: 10px; }
.barra button, #copia { font: inherit; border: 1px solid #D2D2D7; background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.barra button.primario { background: #1D1D1F; color: #fff; border-color: #1D1D1F; }
.gruppo { display: inline-flex; border: 1px solid #D2D2D7; border-radius: 10px; overflow: hidden; }
.gruppo button { border: 0 !important; border-radius: 0 !important; }
.gruppo button + button { border-left: 1px solid #D2D2D7 !important; }
.gruppo button.attivo { background: #1D1D1F; color: #fff; }
.errore { color: #B3261E; background: #FBE3E1; border-radius: 10px; padding: 9px 14px; }
#prompt-box textarea { width: 100%; box-sizing: border-box; font: 13px/1.4 ui-monospace, Menlo, monospace; border: 1px solid #D2D2D7; border-radius: 10px; padding: 10px; }
.voce { display: flex; gap: 12px; background: #fff; border: 1px solid #E8E8ED; border-left: 5px solid #6E6E73; border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.voce.problema { border-left-color: #E23838; } .voce.proposta { border-left-color: #009CDF; } .voce.impressione { border-left-color: #5EBD3E; }
.voce > input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.voce .testa { font-size: 13px; color: #6E6E73; margin-bottom: 4px; }
.voce .testo { white-space: pre-wrap; cursor: text; user-select: text; }
.voce .pagina-link { display: inline-block; margin-top: 4px; font-size: 12px; color: #6E6E73; word-break: break-all; }
.voce .nota { margin-top: 4px; font-size: 13px; color: #3B4BC8; }
.voce .nota.risposta { color: #1E6B3A; white-space: pre-wrap; }
.voce .allegati { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.voce .allegati img { height: 90px; max-width: 160px; object-fit: cover; border-radius: 8px; border: 1px solid #D2D2D7; }
.voce .rispondi { margin-top: 8px; }
.voce .rispondi textarea { width: 100%; box-sizing: border-box; font: inherit; border: 1px solid #D2D2D7; border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; }
.voce .rispondi button { margin-right: 6px; }
.voce .nota.collegata { color: #8A5A00; }
/* per argomenti (11/11/2026): una scheda = un dialogo */
.voce .corpo { flex: 1; min-width: 0; }
.voce .titolo { display: flex; align-items: center; gap: 8px; }
.voce .titolo label { font-weight: 600; font-size: 16px; cursor: pointer; overflow-wrap: anywhere; }
.voce .titolo input { flex: 1; min-width: 0; font: 600 16px var(--lt-font, -apple-system, sans-serif); border: 1px solid #D2D2D7; border-radius: 8px; padding: 4px 8px; }
.voce .matita { border: 0; background: none; cursor: pointer; color: #6E6E73; font-size: 15px; padding: 0 2px; }
.voce .tocca { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 3px 10px; background: #F0F0F3; color: #6E6E73; }
.voce .tocca.fabio { background: #FBE3E1; color: #B3261E; }
.voce .tocca.claude { background: #E8F0FA; color: #3B4BC8; }
.voce .tocca.incollare { background: #FFE2C7; color: #9A4500; border: 1px solid #F0B27A; }
.voce .tocca.claude, .voce .tocca.incollare { flex: 0 1 auto; max-width: 60%; text-align: right; }
.voce .tocca.autore { background: #FFF1D6; color: #8A5A00; }
.voce.chiusa { background: #FAFAFC; }
.voce.chiusa .filo { opacity: .75; }
.voce .filo { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.voce .msg { border-radius: 10px; padding: 7px 10px; background: #F5F5F7; }
.voce .msg.risposta { background: #E3F3EA; margin-left: 28px; }
.voce .msg .chi { font-size: 12px; color: #6E6E73; margin-bottom: 2px; }
.voce .msg.risposta .chi { color: #1E6B3A; }
.voce .rispondi button, #elenco .doc button { font: inherit; border: 1px solid #D2D2D7; background: #fff; border-radius: 10px; padding: 6px 12px; cursor: pointer; }
.voce .rispondi button.primario { background: #1D1D1F; color: #fff; border-color: #1D1D1F; }
.voce .doc { font-size: 13px; }
@media (max-width: 600px) { .voce .titolo { flex-wrap: wrap; } .voce .msg.risposta { margin-left: 12px; } }
