/* YouppySchool: schema comune Office (correzioni 30.10 e 01.11.2026, come YouppyStudy) */
/* sfondo uniforme: niente bande ai lati su schermo largo; il contenuto resta centrato */
#app { max-width: none; box-shadow: none !important; }
@media (min-width: 720px) { body { background: var(--sfondo); } }
.pagina { width: 100%; max-width: 760px; margin: 0 auto; }
.foglio.intera { top: 0; max-width: none; border-radius: 0; }
/* barre di scorrimento sottili, senza freccette */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--tenue) 45%, transparent); border-radius: 8px; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--tenue) 45%, transparent) transparent; } }

/* barra in basso: School · ConvertLink · «+» · File · Profilo */
#barra { justify-content: center; }
#barra > button, #barra > a { flex: 1; max-width: 150px; }
#barra a { min-width: 0; 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; white-space: nowrap; }
#barra a .ic { position: relative; width: 46px; height: 28px; padding: 3px 12px; 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; }
.fab { display: none !important; }

/* sezioni a chip e ricerca assistita */
.sotto-nav { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.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; }
.tondo.pieno { background: var(--accento); color: var(--su-accento); }
.tondo svg { width: 20px; height: 20px; }
.voceCrea { justify-content: flex-start; text-decoration: none; margin-top: 8px; }
.voceCrea svg { width: 20px; height: 20px; flex: none; }
.voceCrea svg.dopo { margin-left: auto; width: 16px; height: 16px; opacity: .6; }
.nota.errore { color: var(--rosso); }

/* calendario come YouppyAgenda */
.meseTesta { display: flex; align-items: center; gap: 8px; }
.meseTesta h2 { flex: 1; min-width: 0; font-size: 19px; font-weight: 800; text-transform: capitalize; }
.freccia { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--testo); background: var(--carta); box-shadow: var(--ombra); flex: none; }
.freccia svg { width: 20px; height: 20px; }
.griglia7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.griglia7 .gs { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--tenue); padding: 2px 0 4px; }
.giorno { min-height: 54px; border-radius: 12px; padding: 5px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--carta); color: var(--testo); min-width: 0; }
.giorno.fuori { background: transparent; color: var(--tenue); opacity: .55; }
.giorno .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.giorno.oggi .n { background: var(--accento); color: var(--su-accento); }
.giorno.scelto { box-shadow: inset 0 0 0 2px var(--accento); }
.giorno.festa .n { color: var(--rosso); }
.giorno.oggi.festa .n { color: var(--su-accento); }
.puntini { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; max-width: 100%; min-height: 6px; }
.puntini i { width: 6px; height: 6px; border-radius: 50%; background: var(--t); }
.puntini b { font-size: 9px; line-height: 6px; color: var(--tenue); }
@media (min-width: 760px) { .giorno { min-height: 72px; } .giorno .n { width: 30px; height: 30px; font-size: 15px; } }
a.corsiLink { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--testo); }
a.corsiLink > svg { width: 22px; height: 22px; flex: none; color: var(--accento-forte); }
a.corsiLink span { flex: 1; min-width: 0; display: flex; flex-direction: column; } a.corsiLink small { color: var(--tenue); font-size: 12.5px; }

/* temi e video */
.area { padding: 0; overflow: hidden; }
.areaTesta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; }
.areaTesta > svg { width: 22px; height: 22px; flex: none; color: var(--accento-forte); }
.areaTesta .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; } .areaTesta small { color: var(--tenue); font-size: 12.5px; }
.areaTesta svg.giro { color: var(--tenue); width: 18px; height: 18px; }
.area.aperta .areaTesta svg.giro { transform: rotate(-90deg); }
.tema { border-top: 1px solid var(--linea); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.temaTesta { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.temaAzioni { display: flex; gap: 8px; flex-wrap: wrap; }
.temaAzioni .bottone svg { width: 17px; height: 17px; }

/* mazzi e giochi */
.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, .carta .bottone svg { width: 18px; height: 18px; }
.cartaMazzo { display: flex; gap: 8px; align-items: flex-start; }
.cartaMazzo .num { width: 24px; flex: none; text-align: center; font-weight: 800; color: var(--tenue); padding-top: 10px; }
.cartaMazzo .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.domandaQuiz { font-size: 18px; font-weight: 700; margin: 8px 0 12px; }
.bottone:disabled { opacity: .5; cursor: default; }

/* chat Youppy + IA con barra impostazioni spostabile */
.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; flex: 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%; padding-bottom: 4px; }
.chatCorpo[data-barra="su"] .cmain { width: 100%; }
.chatCorpo[data-barra="su"] .cmain { display: contents; }
.chatCorpo[data-barra="su"] .iaBox, .chatCorpo[data-barra="su"] .chatCarta { width: 100%; box-sizing: border-box; min-width: 0; }
.chatCorpo[data-barra="su"] .iaBox { order: 0; }
.chatCorpo[data-barra="su"] .cbarra { order: 1; }
.chatCorpo[data-barra="su"] .chatCarta { order: 2; }
.chatCorpo[data-barra="nessuna"] .cbarra { display: none; }
.iaRis:empty { display: none; }
.iaRis { display: flex; flex-direction: column; gap: 8px; }
.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; }

/* profilo */
.righeProfilo { padding: 4px 14px; }
.righeProfilo .riga { text-decoration: none; color: var(--testo); font-weight: 600; }
.righeProfilo .riga + .riga { border-top: 1px solid var(--linea); }
.righeProfilo .riga > svg { width: 20px; height: 20px; color: var(--accento-forte); flex: none; }
.righeProfilo .riga > span { flex: 1; }
.righeProfilo .riga svg.dopo { width: 16px; height: 16px; color: var(--tenue); }
.testVisivo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 16px; background: var(--accento-tenue); color: var(--testo); }
.testVisivo > svg { width: 22px; height: 22px; flex: none; color: var(--accento-forte); }
.testVisivo .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; } .testVisivo small { color: var(--tenue); font-size: 12.5px; }
.carta.privato { border: 1px dashed var(--linea); }
.carta.privato h3 { display: flex; gap: 8px; align-items: center; font-size: 16px; margin-bottom: 6px; }
.carta.privato h3 svg { width: 18px; height: 18px; color: var(--tenue); }

/* modello OSI */
.osi .sotto { margin-top: -6px; }
.osiVideoBox { display: flex; flex-direction: column; gap: 10px; }
.osiVideoBox h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.osiVideoBox h3 svg { width: 20px; height: 20px; color: var(--accento-forte); }
.osiScena { background: var(--campo); border-radius: 14px; padding: 8px 6px; color: var(--testo); }
.osiScena svg { display: block; width: 100%; height: auto; max-height: 420px; }
.osiScena .liv.on text { fill: #fff; }
.osiAvanz { height: 4px; border-radius: 4px; background: var(--campo); overflow: hidden; }
.osiAvanz i { display: block; height: 100%; width: 0; background: var(--accento); transition: width .4s; }
.osiDidascalia { min-height: 3em; font-size: 15px; line-height: 1.4; }
.osiComandi { display: flex; align-items: center; justify-content: center; gap: 14px; }
.osiPila { display: flex; flex-direction: column; gap: 6px; }
.osiRiga { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--l) 14%, var(--carta)); }
.osiRiga .cuore { flex: 1; min-width: 0; display: flex; flex-direction: column; } .osiRiga small { color: var(--tenue); font-size: 12.5px; }
.osiRiga > svg { width: 18px; height: 18px; color: var(--tenue); flex: none; }
.osiN { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--l); color: #fff; font-weight: 800; font-size: 17px; }
.osiPost { display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--l); scroll-margin-top: 12px; }
.osiTesta { display: flex; align-items: center; gap: 10px; }
.osiTesta .cuore { display: flex; flex-direction: column; } .osiTesta small { color: var(--tenue); font-size: 12.5px; }
.osiIll { border-radius: 14px; overflow: hidden; background: #fff; }
.osiIll svg { display: block; width: 100%; height: auto; }
.osiPost h3 { font-size: 19px; } .osiPost h3 small { color: var(--tenue); font-weight: 600; font-size: 14px; }
.osiDett summary { cursor: pointer; font-weight: 700; color: var(--accento-forte); padding: 6px 0; }
.osiDett h4 { margin: 10px 0 4px; font-size: 15px; }
.osiDett p, .osiDett li { line-height: 1.5; }
.osiDett ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.osiDati { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 12px 0 0; }
.osiDati dt { font-weight: 800; font-size: 13px; color: var(--tenue); margin-top: 6px; }
.osiDati dd { margin: 0; line-height: 1.45; }
@media (min-width: 640px) { .osiDati { grid-template-columns: 170px minmax(0, 1fr); column-gap: 12px; } .osiDati dt { margin-top: 0; } }
.osiTag { color: var(--accento-forte); font-size: 13px; font-weight: 600; }
/* pagina «Entra»: scheda del test visivo senza profilo */
.pagina > .vuoto + .carta > svg { width: 24px; height: 24px; flex: none; color: var(--accento-forte); }
.pagina > .vuoto + .carta > p { min-width: 0; }
.pagina > .vuoto + .carta > .bottone { flex: none; }
.rifTest { margin-top: -6px; font-weight: 600; }
