/* Social 2.0: gli stessi colori e dimensioni della grafica Tecnoaccess. */
.social20{container-type:inline-size;min-width:0;overflow-wrap:anywhere}
.social20 :is(input,select,textarea),.s20-dialog :is(input,select,textarea){max-width:100%;box-sizing:border-box;font:inherit}
.social20 textarea,.s20-dialog textarea{display:block;width:100%;min-height:6rem;resize:vertical;padding:.75rem;border:1px solid var(--line-strong);border-radius:12px;background:var(--paper);color:var(--ink)}
.social20 select,.s20-dialog select{min-height:48px;width:100%}
.social20 label,.s20-dialog label{display:block;font-weight:650;margin:.9rem 0 .4rem}
.s20-relationship-row{padding:.7rem 0;border-bottom:1px solid var(--line);min-width:0}
.s20-relationship-row>.s20-identity{max-width:100%;width:100%;min-height:44px;justify-content:flex-start;text-align:left;white-space:normal;margin:0;padding:.4rem 0}
.s20-relationship-row :is(.s20-identity-name,.s20-identity-handle){white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.s20-relationship-date{margin:.25rem 0 0;line-height:1.5;color:var(--ink-3)}
.s20-relationship-list .btn{margin-inline:0}
.s20-relationship-dialog .s20-dialog-bar{position:static;padding:12px 16px}
.s20-relationship-dialog .s20-dialog-bar>.btn{width:auto;min-width:44px;min-height:44px;margin:0;padding:.35rem .5rem}
.s20-relationship-dialog .s20-dialog-body{padding:1rem 16px}
.s20-relationship-dialog .s20-dialog-body>h2{font-size:1.35rem;line-height:1.2}
.s20-connection-counts{display:flex;flex-wrap:wrap;gap:.35rem .8rem}
.s20-connection-counts>.btn{width:auto;min-height:44px;min-width:44px;margin:0;padding:.65rem .2rem;white-space:normal;overflow-wrap:anywhere;text-align:left}
.social20 fieldset{border:0;padding:0;margin:0;min-width:0}
.social20 .btn,.s20-dialog .btn{min-width:44px;min-height:44px;white-space:normal;overflow-wrap:anywhere;height:auto;max-width:100%;padding:.65rem .8rem}
.s20-heading{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.8rem}
.s20-heading :is(h1,h2,h3){margin:0;min-width:0;overflow-wrap:anywhere}
.s20-heading>.function-info{flex:0 0 44px}
.s20-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}
.s20-actions>.btn,.s20-actions>.s20-file-action{flex:1 1 8rem;min-width:0}
.s20-file-action>.btn{width:100%;height:100%}
.s20-piazza{display:block;width:100%;margin:.8rem 0 1.1rem;text-align:left;background:var(--paper-2);border:1px solid var(--line)}
.s20-status,.s20-error,.s20-pending{margin:.8rem 0;overflow-wrap:anywhere}
.s20-status:empty,.s20-error:empty{display:none}
.s20-error{padding:.8rem;border:1px solid var(--bad);border-left-width:4px;border-radius:8px;background:var(--bad-bg);color:var(--bad)}
.s20-pending,.s20-audience{padding:.5rem .75rem;background:var(--paper-2);border:1px solid var(--line);border-radius:8px;color:var(--ink)}
.s20-confirmed{color:var(--ok)}
.s20-stories-list{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}
.s20-story{flex:0 1 8rem;min-width:0;border:2px solid var(--btn-p-bg);border-radius:18px;background:var(--paper);padding:.85rem!important;text-align:center}
.s20-feed-toolbar{display:flex;justify-content:flex-end;margin:.65rem 0}
.s20-post{padding:1.15rem 0;border-bottom:1px solid var(--line);min-width:0}
.s20-post-header{display:flex;gap:.5rem;align-items:flex-start;justify-content:space-between}
.s20-post-header>div{min-width:0;flex:1}
.s20-author-title{font-size:1.1rem;margin:0}
.s20-author{font-weight:700;border:0;background:transparent;padding:.3rem 0!important;text-align:left}
.s20-more{flex:0 1 6rem;font-size:.9rem}
.s20-post-meta{display:flex;flex-wrap:wrap;column-gap:.65rem}
.s20-post-meta .hint{margin:.1rem 0 .4rem;font-size:.875rem}
.s20-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.s20-post-actions .btn{font-size:.95rem}
.s20-post-actions .btn[aria-pressed=true]{background:var(--club-active-bg);color:var(--club-active-ink)}
.s20-source,.s20-attachment{padding:1rem;margin:.8rem 0;border:1px solid var(--line);border-radius:14px;background:var(--paper-2);min-width:0}
.s20-attachment :is(img,video),.s20-post :is(img,video){display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;border-radius:10px}
.s20-attachment audio,.s20-post audio,.s20-dialog audio{display:block;width:100%;max-width:100%;height:54px;margin:.7rem 0}
.s20-dialog{padding:0;border:1px solid var(--line);border-radius:20px;width:calc(100% - 2rem);max-width:42rem;max-height:calc(100dvh - 2rem);color:var(--ink);background:var(--paper);overflow:auto;overflow-wrap:anywhere}
.s20-dialog::backdrop{background:#081934b3}
.s20-dialog-bar{position:sticky;top:0;z-index:1;display:flex;justify-content:flex-end;padding:.8rem 1rem;border-bottom:1px solid var(--line);background:var(--paper)}
.s20-dialog-body{padding:1.1rem;min-width:0}
.s20-dialog>.s20-actions{padding:0 1.1rem 1rem;margin:0}
.s20-menu-actions{display:grid;gap:.65rem}
.s20-draft{padding:1rem;margin:.8rem 0}
@container(max-width:18rem){.s20-post-header{flex-wrap:wrap}.s20-post-header>.s20-more{flex-basis:100%}.s20-actions>.btn,.s20-actions>.s20-file-action{flex-basis:100%}.s20-story{flex-basis:100%}.s20-attachment{padding:.7rem}}
@media(max-width:520px){.s20-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}}
@media(forced-colors:active){.s20-post,.s20-story,.s20-source,.s20-attachment,.s20-dialog,.s20-pending{border-color:CanvasText}.s20-post-actions .btn[aria-pressed=true]{border:2px solid Highlight}}
.s20-account-group{margin:1.5rem 0}.s20-account-row{padding:1rem 0;border-bottom:1px solid var(--line);min-width:0;overflow-wrap:anywhere}.s20-account-row h2{font-size:1.15rem}.s20-contact-form input{display:block;width:100%;min-height:48px;padding:.6rem;background:var(--paper);color:var(--ink);border:1px solid var(--line-strong);border-radius:10px}.s20-contact-form>.btn{margin-top:.7rem}.s20-account-menu{display:grid;gap:.65rem;margin:1rem 0}.s20-story-count{font-weight:650}

/* Verifica accesso: etichette leggibili anche con testo al massimo. */
.social-access :is(fieldset,details,label,span){min-width:0;max-width:100%;overflow-wrap:anywhere}
.social-access label.radio-line{display:flex;align-items:flex-start;gap:.65rem;min-height:44px;padding:.55rem 0}
.social-access label.radio-line input{flex:0 0 auto;width:1.4rem;height:1.4rem;min-width:24px;min-height:24px;margin:.15rem 0 0}
.social-access :is(button,summary){min-height:44px;white-space:normal}

.social20 .s20-consent{display:flex;align-items:flex-start;gap:.75rem;min-height:44px;padding:.65rem 0;overflow-wrap:anywhere}
.social20 .s20-consent input{flex:0 0 auto;width:1.5rem;height:1.5rem;min-width:24px;min-height:24px;margin:.15rem 0 0}
.social20 .s20-consent span{min-width:0}

/* Il pannello del responsabile riusa controlli e reflow Social. */
.social-moderation .row>.btn{flex:1 1 9rem;min-width:0}
.social-moderation .check-control{display:grid;font-weight:400}
.social-moderation .social-media{min-width:0;max-width:100%}
.social-moderation .social-media :is(img,video){display:block;max-width:100%;height:auto;max-height:65vh;object-fit:contain}
.social-moderation .social-media audio{display:block;width:100%;max-width:100%;height:54px}
.social-moderation>.row[role=group]{margin-bottom:.65rem}
.social-moderation>.row[role=group]>.btn[aria-pressed=true]{background:var(--btn-p-bg);color:var(--btn-p-fg)}
.s20-identity{
  display:inline-flex;align-items:center;gap:.65rem;min-width:44px;min-height:44px;
  max-width:100%;padding:.35rem!important;border:0;background:transparent;color:var(--ink);
  text-align:left;white-space:normal;line-height:1.3;
}
.s20-identity-portrait{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 44px;width:44px;height:44px;overflow:hidden;border-radius:50%;
  background:#dae6fc;color:#16386e;border:1px solid #5276ac;
}
.s20-identity-initials{font-size:17px;font-weight:750;line-height:1;}
.s20-identity .s20-identity-photo,.s20-post .s20-identity .s20-identity-photo{
  position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;
  margin:0;object-fit:cover;border-radius:50%;
}
.s20-identity-caption{display:flex;flex:1 1 auto;flex-direction:column;gap:.15rem;min-width:0;max-width:100%;overflow-wrap:anywhere;}
.s20-identity-title{display:flex;align-items:center;flex-wrap:nowrap;gap:.3em;min-width:0;max-width:100%;}
.s20-identity-name{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.s20-identity-handle{display:block;font-size:.9em;font-weight:500;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.s20-verified{
  --verified-fill:#0757c5;--verified-ink:#fff;
  display:inline-flex;align-items:center;justify-content:center;vertical-align:-.15em;flex:0 0 auto;
  width:1.25em;height:1.25em;min-width:20px;min-height:20px;margin:0;
  background:transparent;color:var(--verified-fill);line-height:1;
}
.s20-verified svg{display:block;width:100%;height:100%;overflow:visible;}
.s20-verified-seal{fill:var(--verified-fill);}
.s20-verified-tick{fill:none;stroke:var(--verified-ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.s20-identity-stacked{flex-direction:column;text-align:center;justify-content:flex-start;}
.s20-identity-stacked .s20-identity-caption{flex:0 1 auto;width:100%;}
.s20-identity-stacked .s20-identity-portrait{width:56px;height:56px;flex-basis:56px;}
:root[data-theme="dark"] .s20-identity-portrait{background:#1e3e6f;color:#e9f1ff;border-color:#89aae0;}
:root[data-theme="dark"] .s20-verified{--verified-fill:#7db6ff;--verified-ink:#082c65;}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .s20-identity-portrait{background:#1e3e6f;color:#e9f1ff;border-color:#89aae0;}
  :root:not([data-theme="light"]) .s20-verified{--verified-fill:#7db6ff;--verified-ink:#082c65;}
}
@media(forced-colors:active){
  .s20-verified{--verified-fill:CanvasText;--verified-ink:Canvas;forced-color-adjust:none;}
  .s20-identity-portrait{border:1px solid CanvasText;background:Canvas;color:CanvasText;}
}

/* A single, wrapping editor for audio in posts, Stories and profiles. */
.s20-transcription{min-width:0;max-width:100%;display:grid;gap:.6rem}
.s20-transcription textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;font:inherit;resize:vertical}
.s20-transcription .s20-actions{display:flex;flex-wrap:wrap;gap:.5rem;min-width:0}
.s20-transcription button{min-width:44px;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.s20-transcription p,.s20-transcription label{overflow-wrap:anywhere}

/* Menzioni: risultati stabili da percorrere, testo e comandi sempre leggibili. */
.s20-mention-picker{display:grid;gap:.6rem;min-width:0}
.s20-mention-picker input{box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:44px;font:inherit}
.s20-mention-results,.s20-mention-list ul{list-style:none;padding:0;margin:.25rem 0;display:grid;gap:.5rem;min-width:0}
.s20-mention-results li{min-width:0}
.s20-mention-result{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;width:100%;min-height:48px;min-width:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
.s20-mention-name{font-weight:700}
.s20-mention-handle{font-size:.95em;color:var(--ink-2);overflow-wrap:anywhere}
.s20-mention-list:empty{display:none}
.s20-mention-list li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0;max-width:100%}
.s20-mention-list li>span{overflow-wrap:anywhere;min-width:0}
.s20-mention-list button{min-height:44px;min-width:44px;white-space:normal;overflow-wrap:anywhere}
.s20-mention-link{display:inline;min-height:44px;min-width:44px;padding:.3rem .15rem;border:0;border-radius:3px;background:transparent;color:var(--ink);font:inherit;line-height:inherit;text-decoration:underline;text-underline-offset:.18em;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.s20-mention-link:focus-visible{outline:3px solid var(--ring);outline-offset:2px}

/* Person discovery remains readable within a page, profile or action dialog. */
.s20-people-suggestions{container-type:inline-size;min-width:0;margin-top:1.4rem;padding-top:1rem;border-top:1px solid var(--line);overflow-wrap:anywhere}
.s20-people-suggestions h2{font-size:1.2rem;line-height:1.35;margin:0 0 .5rem}
.s20-people-list{display:grid;gap:0;min-width:0;margin:.65rem 0}
.s20-people-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .65rem;align-items:start;min-width:0;padding:.9rem 0;border-bottom:1px solid var(--line)}
.s20-people-row>button:first-child{grid-column:1;grid-row:1;justify-self:start;text-align:left;font-weight:700;background:transparent;border:0;color:var(--ink);padding:.35rem 0;min-width:44px;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.s20-people-row>button:last-child:not(:first-child){grid-column:2;grid-row:1;max-width:100%;min-height:44px;white-space:normal}
.s20-people-row .s20-identity{width:100%;min-width:0}
.s20-people-row :is(.s20-identity-name,.s20-identity-handle){white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.s20-people-row>.hint{grid-column:1/-1;margin:0;color:var(--ink-3);line-height:1.5}
.s20-people-suggestions>.btn{margin:.35rem 0;max-width:100%;min-height:44px}
.s20-people-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;min-width:0;margin:1rem 0}
.s20-people-search>label{grid-column:1/-1;margin:0}
.s20-people-search>input{width:100%;min-width:0;min-height:48px;font:inherit;padding:.7rem;border:1px solid var(--line-strong);border-radius:12px;color:var(--ink);background:var(--paper)}
.s20-people-search>.btn{min-height:48px;min-width:44px;max-width:100%;white-space:normal}
@container(max-width:20rem){.s20-people-row{grid-template-columns:minmax(0,1fr)}.s20-people-row>button:last-child:not(:first-child){grid-column:1;grid-row:3;justify-self:start}.s20-people-search{grid-template-columns:minmax(0,1fr)}}

.s20-identity-portrait>.s20-identity-official-symbol{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;padding:24%;margin:0;border:0;background:var(--paper-2);color:var(--btn-p-bg);box-sizing:border-box}
.s20-identity-portrait>.s20-identity-official-symbol svg{width:100%;height:100%}
@media(forced-colors:active){.s20-identity-portrait>.s20-identity-official-symbol{background:Canvas;color:CanvasText}}

/* Story activity keeps its current list distinct without relying on colour alone. */
.s20-story-activity-switch>.btn{padding:.65rem 10px;text-align:center;border:2px solid var(--line-strong)}
.s20-story-activity-switch>.btn[aria-pressed="true"]{background:var(--btn-p-bg);color:var(--btn-p-fg);border-color:var(--btn-p-bg);text-decoration:underline;text-underline-offset:.2em}
@media(forced-colors:active){.s20-story-activity-switch>.btn[aria-pressed="true"]{border-color:Highlight}}
