/* YouppyRec: barra spostabile con il box IA (scheda Chat) */
.yrCorpo { display: flex; gap: 10px; align-items: flex-start; }
.yrMain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.yrBarra { display: flex; flex-direction: column; gap: 6px; flex: none; position: sticky; top: 8px; }
.yrCb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 54px; min-height: 54px; padding: 0; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.yrCb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yrCb small { font-size: 10px; font-weight: 700; }
.yrCorpo[data-barra="sinistra"] .yrBarra { order: -1; }
.yrCorpo[data-barra="destra"] .yrBarra { order: 1; }
.yrCorpo[data-barra="su"] { flex-direction: column; }
.yrCorpo[data-barra="su"] .yrBarra { flex-direction: row; overflow-x: auto; position: static; width: 100%; max-width: 100%; order: 1; }
.yrCorpo[data-barra="su"] .yrMain { display: contents; }
.yrCorpo[data-barra="su"] .yrIa, .yrCorpo[data-barra="su"] .yrChat { width: 100%; box-sizing: border-box; min-width: 0; }
.yrCorpo[data-barra="su"] .yrIa { order: 0; }
.yrCorpo[data-barra="su"] .yrChat { order: 2; }
.yrCorpo[data-barra="nessuna"] .yrBarra { display: none; }
.yrChat { min-width: 0; }
.yrIa { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.yrIaTesta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.yrIa h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.yrIa h3 svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yrIa .hint { margin: 0; }
.yrPosiz { display: inline-flex; gap: 2px; }
.yrPos { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.yrPos svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yrPos.on { color: var(--text); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--accent); }
.yrIa select, .yrIa textarea { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.yrIa textarea { resize: vertical; min-height: 64px; }
.yrIaVai { align-self: flex-end; }
.yrIaOut { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.yrErr { color: var(--accent); }
