/* YouppyHealth: schema comune Office (come YouppyStudy, correzioni 02.11.2026) */
#barra a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 3px; color: var(--tenue); font-size: 11px; font-weight: 600; border-radius: 14px; text-decoration: none; }
#barra a .ic { width: 44px; height: 27px; padding: 3px 11px; border-radius: 12px; }
#barra button.piu { flex: 0 0 58px; width: 58px; height: 58px; margin: -20px 6px 0; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--su-accento);
  background: linear-gradient(135deg, var(--accento), var(--accento-forte)); box-shadow: 0 6px 18px color-mix(in srgb, var(--accento) 50%, transparent); transition: transform .1s; }
#barra button.piu:active { transform: scale(.92); }
#barra button.piu svg { width: 28px; height: 28px; }
.sotto-nav { display: flex; flex-direction: column; gap: 10px; }
.sezioni { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.sezioni::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--campo); color: var(--tenue); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--accento-tenue); color: var(--accento-forte); }
.ricerca { display: flex; gap: 8px; align-items: center; }
.ricerca .campo { flex: 1; min-width: 0; }
.bottone.voce { justify-content: flex-start; text-decoration: none; margin-top: 8px; }
a.carta.corsi { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--testo); }
a.carta.corsi > svg { width: 22px; height: 22px; flex: none; color: var(--accento-forte); }
a.carta.corsi span { flex: 1; display: flex; flex-direction: column; } a.carta.corsi small { color: var(--tenue); font-size: 12.5px; }
.profiloTesta { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accento); color: var(--su-accento); font-weight: 800; font-size: 24px; }
.carta.privato { border: 1px dashed var(--linea); }
.carta.privato h3 { font-size: 16px; margin-bottom: 6px; }
.foglio.intera { top: 0; max-width: none; border-radius: 0; overflow-y: auto; padding-top: calc(22px + env(safe-area-inset-top)); }
.foglio.intera .chiudiX { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; }
.chatPag { gap: 12px; }
.chatCorpo { display: flex; gap: 10px; align-items: flex-start; }
.cmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cbarra { display: flex; flex-direction: column; gap: 6px; flex: none; position: sticky; top: 8px; }
.cb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 54px; min-height: 54px; border-radius: 16px; background: var(--carta); box-shadow: var(--ombra); color: var(--tenue); text-decoration: none; }
.cb svg { width: 22px; height: 22px; } .cb small { font-size: 10px; font-weight: 700; }
.chatCorpo[data-barra="sinistra"] .cbarra { order: -1; }
.chatCorpo[data-barra="destra"] .cbarra { order: 1; }
.chatCorpo[data-barra="su"] { flex-direction: column; }
.chatCorpo[data-barra="su"] .cbarra { flex-direction: row; overflow-x: auto; position: static; width: 100%; }
.chatCorpo[data-barra="su"] .cmain { width: 100%; }
.chatCorpo[data-barra="su"] .cmain { display: contents; }
.chatCorpo[data-barra="su"] .cmain > * { width: 100%; box-sizing: border-box; min-width: 0; order: 2; }
.chatCorpo[data-barra="su"] .cmain > .iaBox { order: 0; }
.chatCorpo[data-barra="su"] .cbarra { order: 1; }
.chatCorpo[data-barra="nessuna"] .cbarra { display: none; }
.iaBox, .chatCarta { display: flex; flex-direction: column; gap: 10px; }
.iaBox h3, .chatCarta h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.iaBox h3 svg, .chatCarta h3 svg { width: 20px; height: 20px; color: var(--accento-forte); }
.iaBox .bottone svg { width: 18px; height: 18px; }
.iaRis:empty { display: none; }
.iaTestoRis { white-space: pre-wrap; word-break: break-word; line-height: 1.5; background: var(--campo); border-radius: 14px; padding: 12px 14px; }
.ycBox { height: 440px; min-height: 360px; border-radius: 14px; overflow: hidden; }
.anteprimaMedia { width: 100%; max-height: 50dvh; object-fit: contain; border-radius: 14px; background: var(--campo); display: block; }
