/* Il gestore dei file che usa LexNova (22/11/2026, static/gestore-file.js): una finestra sola per chat e redazione. */
.gf-aperto, .gf-aperto body { overflow: hidden; }
.gf-velo { position: fixed; inset: 0; z-index: 280; display: grid; place-items: center; padding: 28px;
           background: rgba(8,28,20,.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: gfVelo .18s ease both; }
@keyframes gfVelo { from { opacity: 0; } to { opacity: 1; } }
.gf-finestra { position: relative; width: min(760px, 100%); height: min(720px, 100%); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
               border-radius: 20px; overflow: hidden; background: #f5f7f6; color: #0d1f19;
               font-family: Inter, -apple-system, "Segoe UI", sans-serif;
               box-shadow: 0 0 0 1px rgba(10,40,30,.1), 0 40px 80px -30px rgba(3,26,20,.55); animation: gfFin .26s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gfFin { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gf-velo, .gf-finestra { animation: none; } }

.gf-testa { display: flex; align-items: center; gap: 12px; padding: 18px 18px 12px 22px; }
.gf-tit { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gf-tit b { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.gf-tit small { font-size: 13px; color: #5c6b65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-tot::before { content: '· '; }
.gf-aggiungi { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #0f6b4c; color: #fff;
               font: 600 13.5px/36px Inter, sans-serif; cursor: pointer; }
.gf-aggiungi:hover { background: #0b5a3f; }
.gf-aggiungi[hidden] { display: none; }
.gf-chiudi { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #5c6b65; display: grid; place-items: center; cursor: pointer; }
.gf-chiudi:hover { background: rgba(10,74,55,.08); color: #0d1f19; }
.gf-chiudi svg { width: 18px; height: 18px; }

.gf-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 18px 12px 22px; border-bottom: 1px solid rgba(10,74,55,.1); }
.gf-schede { display: flex; gap: 4px; }
.gf-schede:empty { display: none; }
.gf-scheda { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #3c4a45; font: 550 13px/32px Inter, sans-serif; cursor: pointer; }
.gf-scheda span { color: #6b7c75; font-weight: 500; }
.gf-scheda:hover { background: rgba(10,74,55,.07); }
.gf-scheda[aria-selected="true"] { background: #0d1f19; color: #fff; }
.gf-scheda[aria-selected="true"] span { color: rgba(255,255,255,.75); }
.gf-cerca { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px;
            box-shadow: inset 0 0 0 1px rgba(10,40,30,.16); color: #6b7c75; }
.gf-cerca:focus-within { box-shadow: inset 0 0 0 2px #0f6b4c; }
.gf-cerca svg { flex: none; width: 16px; height: 16px; }
.gf-cerca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px/1.2 Inter, sans-serif; color: #0d1f19; }

.gf-corpo { overflow: auto; padding: 10px 14px 16px; }
.gf-nota { margin: 2px 8px 10px; font-size: 13px; line-height: 1.45; color: #5c6b65; }
.gf-vuoto { margin: 24px 8px; font-size: 14px; color: #5c6b65; }
.gf-righe { display: grid; gap: 2px; }
.gf-riga { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; }
.gf-riga:hover { background: rgba(10,74,55,.05); }
.gf-riga.scelta { background: rgba(15,107,76,.09); }
.gf-ck { flex: none; display: grid; place-items: center; width: 22px; height: 22px; cursor: pointer; }
.gf-ck input { width: 17px; height: 17px; accent-color: #0f6b4c; cursor: pointer; }
.gf-tipo { flex: none; min-width: 42px; height: 24px; padding: 0 6px; border-radius: 6px; text-align: center; font: 700 10.5px/24px Inter, sans-serif;
           letter-spacing: .02em; color: #fff; background: #6b7c75; }
.gf-tipo.pdf { background: #d6453b; } .gf-tipo.word { background: #2f6fdb; } .gf-tipo.img { background: #8a5bd0; }
.gf-testo { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gf-testo b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-testo small { font-size: 12.5px; color: #6b7c75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-stato.letto { color: #1f8a5b; } .gf-stato.parte { color: #9a6200; } .gf-stato.no { color: #b3261e; }
.gf-az { flex: none; display: flex; gap: 4px; }
.gf-az button, .gf-massa button { height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: rgba(10,74,55,.08); color: #24332d;
                                  font: 550 12.5px/30px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.gf-az button:hover, .gf-massa button:hover { background: rgba(10,74,55,.15); }
.gf-az button.tenue { background: transparent; color: #6b7c75; }
.gf-az button.tenue:hover { background: rgba(179,38,30,.08); color: #b3261e; }
.gf-az button:disabled, .gf-massa button:disabled { opacity: .5; cursor: default; }

.gf-massa { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 22px; border-top: 1px solid rgba(10,74,55,.1); background: rgba(15,107,76,.06); font-size: 13.5px; }
.gf-massa[hidden] { display: none; }
.gf-massa span { flex: 1; font-weight: 600; }
.gf-massa .gf-pericolo { background: #b3261e; color: #fff; }
.gf-massa .gf-pericolo:hover { background: #95201a; }
.gf-massa .tenue { background: transparent; }

.gf-sopra { position: absolute; inset: 10px; display: none; place-items: center; border-radius: 16px; border: 2px dashed #0f6b4c;
            background: rgba(245,247,246,.92); color: #0f6b4c; font-size: 16px; pointer-events: none; }
.gf-finestra.trascina .gf-sopra { display: grid; }

@media (max-width: 600px) {
  .gf-velo { padding: 0; place-items: stretch; }
  .gf-finestra { width: 100%; height: 100%; border-radius: 0; }
  .gf-riga { flex-wrap: wrap; }
  .gf-az { width: 100%; padding-left: 54px; }
}
