/* =====================================================================
   Pannello Minecraft di vgt9 - aspetto
   Gli stessi colori scuri del portale (vgt9.eu), con il verde dell'erba
   come accento.
   ===================================================================== */
:root {
  --bg: #14171b; --pannello: #1f242a; --pannello-2: #262c33; --pannello-3: #2d343c; --linea: #323944; --linea-2: #3d4652;
  --testo: #edf0f4; --testo-2: #9aa5b2; --testo-3: #6c7783;
  --acc: #4fb35a; --acc-2: #7fd48a; --acc-tenue: rgba(79, 179, 90, .14);
  --giallo: #e3b341; --giallo-tenue: rgba(227, 179, 65, .14);
  --rosso: #f0605d; --rosso-tenue: rgba(240, 96, 93, .13);
  --blu: #6ba4ff; --blu-tenue: rgba(107, 164, 255, .13);
  --ff: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-d: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-m: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--testo); }
body { font-family: var(--ff); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--acc-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; }
code, .mono { font-family: var(--ff-m); font-size: .92em; }

/* ---- bottoni e campi ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--linea-2);
  background: var(--pannello-2); color: var(--testo); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: var(--pannello-3); border-color: #4a5461; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .ic { width: 17px; height: 17px; }
.btn-primario { background: var(--acc); border-color: var(--acc); color: #0c1a0e; }
.btn-primario:hover:not(:disabled) { background: #5cc467; border-color: #5cc467; }
.btn-pericolo { background: var(--rosso-tenue); border-color: rgba(240, 96, 93, .45); color: #ff8e8b; }
.btn-pericolo:hover:not(:disabled) { background: rgba(240, 96, 93, .22); border-color: var(--rosso); }
.btn-giallo { background: var(--giallo-tenue); border-color: rgba(227, 179, 65, .45); color: #f2cc6d; }
.btn-piccolo { height: 30px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }
.btn-largo { width: 100%; height: 44px; }
.btn-icona {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0;
  background: transparent; color: var(--testo-2); cursor: pointer;
}
.btn-icona:hover { background: var(--pannello-3); color: var(--testo); }
.btn-icona .ic { width: 18px; height: 18px; }

.campo { display: grid; gap: 6px; font-size: 13.5px; color: var(--testo-2); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--linea-2);
  background: #171b20; color: var(--testo); font-weight: 400; font-size: 15px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-tenue); }
select { cursor: pointer; }
.spunta { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--testo-2); cursor: pointer; }
.spunta input { width: 17px; height: 17px; accent-color: var(--acc); }

/* interruttore si'/no */
.interruttore { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; }
.interruttore input { opacity: 0; width: 0; height: 0; position: absolute; }
.interruttore i { position: absolute; inset: 0; border-radius: 12px; background: #3a434e; transition: .15s; cursor: pointer; }
.interruttore i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfd6de; transition: .15s; }
.interruttore input:checked + i { background: var(--acc); }
.interruttore input:checked + i::after { transform: translateX(20px); background: #fff; }
.interruttore input:disabled + i { opacity: .45; cursor: not-allowed; }
.interruttore input:focus-visible + i { outline: 2px solid var(--acc-2); outline-offset: 2px; }

/* ---- accesso -------------------------------------------------------- */
.accesso { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.accesso-scheda {
  width: 100%; max-width: 400px; background: var(--pannello); border: 1px solid var(--linea); border-radius: 18px;
  padding: 30px 28px; display: grid; gap: 16px;
}
.accesso-scheda h1 { font-family: var(--ff-d); font-size: 25px; margin: 0; letter-spacing: -.3px; }
.accesso-sub { margin: -8px 0 4px; color: var(--testo-2); font-size: 14.5px; }
.accesso-nota { margin: 0; color: var(--testo-3); font-size: 13px; }
.errore { margin: 0; min-height: 1em; color: #ff8e8b; font-size: 14px; }
.marchio {
  width: 48px; height: 48px; border-radius: 13px; background: var(--acc); color: #0c1a0e;
  display: grid; place-items: center; box-shadow: 0 4px 18px rgba(79, 179, 90, .35);
}
.marchio .ic { width: 28px; height: 28px; }
.marchio.piccolo { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px; }
.marchio.piccolo .ic { width: 22px; height: 22px; }
.marchio.grigio { background: var(--pannello-3); color: var(--testo-2); box-shadow: none; }

/* ---- struttura ------------------------------------------------------ */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.lato {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  background: #171a1f; border-right: 1px solid #252b32; padding: 18px 12px;
}
.lato-testa { display: flex; gap: 11px; align-items: center; padding: 0 6px 14px; }
.lato-titolo { font-family: var(--ff-d); font-weight: 800; font-size: 16px; line-height: 1.2; }
.lato-sub { font-size: 12.5px; color: var(--testo-3); }
.menu { display: grid; gap: 2px; flex: 1; align-content: start; overflow-y: auto; }
.menu a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--testo-2); text-decoration: none; font-weight: 600; font-size: 15px;
}
.menu a:hover { background: var(--pannello); color: var(--testo); }
.menu a.attivo { background: var(--acc-tenue); color: var(--acc-2); }
.menu a .conta { margin-left: auto; font-size: 12px; background: var(--pannello-3); color: var(--testo-2); border-radius: 20px; padding: 0 8px; }
.lato-piede { display: flex; align-items: center; gap: 8px; border-top: 1px solid #252b32; padding: 12px 6px 0; }
.io { flex: 1; min-width: 0; }
.io-nome { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.io-ruolo { font-size: 12.5px; color: var(--testo-3); text-transform: capitalize; }

.corpo { min-width: 0; padding: 22px 28px 60px; }
.testata { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.testata h2 { font-family: var(--ff-d); font-size: 24px; margin: 0; letter-spacing: -.3px; flex: 1; }
.testata-destra { display: flex; gap: 10px; align-items: center; }

.pillola {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 20px;
  background: var(--pannello-2); border: 1px solid var(--linea); font-size: 13.5px; font-weight: 700; color: var(--testo-2); white-space: nowrap;
}
.pillola i { width: 9px; height: 9px; border-radius: 50%; background: var(--testo-3); }
.pillola.acceso { color: var(--acc-2); border-color: rgba(79, 179, 90, .4); background: var(--acc-tenue); }
.pillola.acceso i { background: var(--acc); box-shadow: 0 0 0 3px rgba(79, 179, 90, .25); }
.pillola.avvio, .pillola.arresto, .pillola.riavvio, .pillola.pausa { color: #f2cc6d; border-color: rgba(227, 179, 65, .4); background: var(--giallo-tenue); }
.pillola.avvio i, .pillola.arresto i, .pillola.riavvio i, .pillola.pausa i { background: var(--giallo); animation: pulsa 1.2s infinite; }
.pillola.pausa i { animation: none; }
.pillola.irraggiungibile { color: #ff8e8b; border-color: rgba(240, 96, 93, .4); background: var(--rosso-tenue); }
.pillola.irraggiungibile i { background: var(--rosso); }
@keyframes pulsa { 50% { opacity: .35; } }

.avviso {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px;
  background: var(--giallo-tenue); border: 1px solid rgba(227, 179, 65, .35); color: #f2cc6d; font-size: 14.5px;
}
.avviso.rosso { background: var(--rosso-tenue); border-color: rgba(240, 96, 93, .35); color: #ff9b98; }
.avviso .ic { flex: 0 0 auto; }

.progresso { margin-bottom: 16px; background: var(--pannello); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 16px; }
.progresso-testo { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; color: var(--testo-2); }
.progresso-testo span:first-child { color: var(--testo); font-weight: 600; }
.progresso-barra { height: 6px; border-radius: 3px; background: #2b323a; overflow: hidden; position: relative; }
.progresso-barra i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--acc); border-radius: 3px; transition: width .3s; }
.progresso-barra.indefinita i { width: 30% !important; animation: scorri 1.2s ease-in-out infinite; }
.progresso.errore .progresso-barra i { background: var(--rosso); width: 100% !important; animation: none; }
@keyframes scorri { 0% { left: -30%; } 100% { left: 100%; } }

/* ---- blocchi -------------------------------------------------------- */
.griglia { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c7 { grid-column: span 7; } .c6 { grid-column: span 6; }
.c5 { grid-column: span 5; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; }
.scheda { background: var(--pannello); border: 1px solid var(--linea); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.scheda-testa { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.scheda-testa h3 { font-family: var(--ff-d); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--testo-3); margin: 0; flex: 1; font-weight: 700; }
.scheda-testa .ic { color: var(--testo-3); width: 18px; height: 18px; }
.vuoto { color: var(--testo-3); font-size: 14.5px; padding: 6px 0; }
.nota { color: var(--testo-3); font-size: 13.5px; margin: 8px 0 0; }
.fila { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fila-larga { display: flex; gap: 10px; align-items: center; }
.fila-larga > input, .fila-larga > select { flex: 1; min-width: 0; }
.separa { height: 1px; background: var(--linea); margin: 16px 0; border: 0; }

/* ---- panoramica ----------------------------------------------------- */
.eroe { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.eroe-icona {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--pannello-3); color: var(--testo-3);
}
.eroe-icona .ic { width: 34px; height: 34px; }
.eroe-icona.acceso { background: var(--acc-tenue); color: var(--acc-2); }
.eroe-icona.avvio, .eroe-icona.arresto, .eroe-icona.riavvio { background: var(--giallo-tenue); color: var(--giallo); }
.eroe-stato { font-family: var(--ff-d); font-size: 27px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.eroe-sub { color: var(--testo-2); font-size: 14.5px; margin-top: 3px; }
.eroe-azioni { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.conto { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--giallo-tenue); color: #f2cc6d; font-weight: 600; }
.indirizzo { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linea); flex-wrap: wrap; }
.indirizzo .etichetta { color: var(--testo-3); font-size: 13.5px; }
.indirizzo code { font-size: 16px; color: var(--testo); background: #171b20; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--linea); }

.misure { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.misura { background: var(--pannello); border: 1px solid var(--linea); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.misura-nome { font-size: 12.5px; color: var(--testo-3); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.misura-valore { font-family: var(--ff-d); font-size: 23px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.misura-valore small { font-size: 14px; color: var(--testo-2); font-weight: 600; margin-left: 4px; }
.misura-extra { font-size: 12.5px; color: var(--testo-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barretta { height: 5px; border-radius: 3px; background: #2b323a; margin-top: 9px; overflow: hidden; }
.barretta i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 3px; transition: width .4s; }
.barretta.gialla i { background: var(--giallo); }
.barretta.rossa i { background: var(--rosso); }

.rapide { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rapida {
  display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 11px; border: 1px solid var(--linea);
  background: var(--pannello-2); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--testo-2);
}
.rapida:hover:not(:disabled) { border-color: var(--acc); color: var(--testo); }
.rapida:disabled { opacity: .45; cursor: not-allowed; }
.rapida .ic { width: 22px; height: 22px; color: var(--acc-2); }

.teste { display: flex; flex-wrap: wrap; gap: 10px; }
.testa-g { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 10px; background: var(--pannello-2); border: 1px solid var(--linea); cursor: pointer; font-weight: 600; }
.testa-g:hover { border-color: var(--acc); }
.avatar { width: 32px; height: 32px; border-radius: 7px; background: var(--pannello-3); image-rendering: pixelated; flex: 0 0 auto; object-fit: cover; }
.avatar.grande { width: 72px; height: 72px; border-radius: 12px; }

.grafico { width: 100%; height: 120px; display: block; }
.grafico-legenda { display: flex; gap: 16px; font-size: 12.5px; color: var(--testo-3); margin-top: 6px; flex-wrap: wrap; }
.grafico-legenda b { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* ---- console -------------------------------------------------------- */
.console-scheda { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 420px; padding: 0; overflow: hidden; }
.console-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
.console-barra input[type=search] { max-width: 260px; min-height: 32px; padding: 4px 10px; font-size: 14px; }
.filtro { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--linea-2); background: transparent; color: var(--testo-3); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.filtro.su { color: var(--testo); background: var(--pannello-3); }
.console {
  flex: 1; overflow-y: auto; padding: 10px 14px; font-family: var(--ff-m); font-size: 13px; line-height: 1.55;
  background: #111418; white-space: pre-wrap; word-break: break-word; tab-size: 4;
}
.riga { display: block; color: #c5ccd4; }
.riga .ora { color: #5d6773; margin-right: 8px; }
.riga .filo { color: #6f7b88; margin-right: 6px; }
.riga.WARN { color: #f2cc6d; }
.riga.ERROR, .riga.FATAL { color: #ff8e8b; }
.riga.cmd { color: var(--acc-2); margin-top: 6px; }
.riga.uscita { color: #e6ebf0; background: #181d22; border-left: 2px solid var(--acc); padding: 2px 8px; margin-bottom: 6px; }
.riga.uscita.errore { border-left-color: var(--rosso); color: #ff9b98; }
.console-ingresso { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--linea); position: relative; }
.console-ingresso .barra { font-family: var(--ff-m); color: var(--acc-2); font-size: 16px; padding-left: 4px; }
.console-ingresso input { font-family: var(--ff-m); font-size: 14px; }
.suggerimenti {
  position: absolute; bottom: calc(100% + 4px); left: 12px; right: 12px; max-height: 220px; overflow-y: auto;
  background: var(--pannello-2); border: 1px solid var(--linea-2); border-radius: 10px; padding: 4px; z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.suggerimenti div { padding: 5px 10px; border-radius: 7px; font-family: var(--ff-m); font-size: 13.5px; cursor: pointer; }
.suggerimenti div.su, .suggerimenti div:hover { background: var(--acc-tenue); color: var(--acc-2); }

/* ---- tabelle e liste ------------------------------------------------ */
.tabella { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabella th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--testo-3); font-weight: 700; padding: 0 10px 8px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabella td { padding: 10px; border-bottom: 1px solid #292f37; vertical-align: middle; }
.tabella tr:last-child td { border-bottom: 0; }
.tabella tr.cliccabile { cursor: pointer; }
.tabella tr.cliccabile:hover td { background: var(--pannello-2); }
.tabella .azioni { text-align: right; white-space: nowrap; }
.tabella .azioni .btn { margin-left: 4px; }
.scorre { overflow-x: auto; }
.nome-g { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.nome-g .avatar { width: 26px; height: 26px; border-radius: 6px; }
.dim { color: var(--testo-3); }

.etichetta { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--pannello-3); color: var(--testo-2); white-space: nowrap; }
.etichetta.verde { background: var(--acc-tenue); color: var(--acc-2); }
.etichetta.gialla { background: var(--giallo-tenue); color: #f2cc6d; }
.etichetta.rossa { background: var(--rosso-tenue); color: #ff8e8b; }
.etichetta.blu { background: var(--blu-tenue); color: #8fbcff; }
.etichette { display: flex; gap: 5px; flex-wrap: wrap; }

.elenco { display: grid; gap: 6px; }
.voce { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--pannello-2); min-width: 0; }
.voce .testo { flex: 1; min-width: 0; }
.voce .testo div:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voce .testo div + div { font-size: 12.5px; color: var(--testo-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- impostazioni --------------------------------------------------- */
.impostazione { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 280px); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid #292f37; }
.impostazione:last-child { border-bottom: 0; }
.impostazione .nome { font-weight: 600; }
.impostazione .chiave { font-family: var(--ff-m); font-size: 12px; color: var(--testo-3); margin-left: 6px; }
.impostazione .aiuto { font-size: 13px; color: var(--testo-3); margin-top: 2px; }
.impostazione .controllo { display: flex; justify-content: flex-end; }
.impostazione.cambiata .nome::after { content: "modificata"; margin-left: 8px; font-size: 11px; color: #f2cc6d; background: var(--giallo-tenue); padding: 1px 6px; border-radius: 5px; vertical-align: 2px; }
.vivo { font-size: 11px; font-weight: 700; color: var(--acc-2); margin-left: 6px; }
.salva-barra {
  position: sticky; bottom: 16px; z-index: 4; display: flex; gap: 12px; align-items: center; justify-content: flex-end;
  padding: 12px 16px; border-radius: 12px; background: #20262d; border: 1px solid var(--linea-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); margin-top: 16px;
}
.salva-barra span { flex: 1; color: var(--testo-2); font-size: 14px; }

/* gamerule */
.regole { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.regola { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--pannello-2); min-width: 0; }
.regola .testo { flex: 1; min-width: 0; }
.regola .testo div:first-child { font-weight: 600; font-size: 14.5px; }
.regola .testo div + div { font-family: var(--ff-m); font-size: 11.5px; color: var(--testo-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regola input[type=number] { width: 96px; min-height: 34px; padding: 4px 8px; }

/* ---- dialogo e notifiche --------------------------------------------- */
.dialogo-velo { position: fixed; inset: 0; background: rgba(6, 8, 10, .66); display: grid; place-items: center; padding: 16px; z-index: 50; backdrop-filter: blur(3px); }
.dialogo { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--pannello); border: 1px solid var(--linea-2); border-radius: 16px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.dialogo.largo { max-width: 640px; }
.dialogo-testa { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dialogo-testa h3 { flex: 1; margin: 0; font-family: var(--ff-d); font-size: 19px; }
.dialogo p { margin: 0 0 12px; color: var(--testo-2); }
.dialogo .campo { margin-bottom: 12px; }
.dialogo-piede { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.statistiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 14px 0; }
.statistiche div { background: var(--pannello-2); border-radius: 10px; padding: 10px 12px; }
.statistiche b { display: block; font-family: var(--ff-d); font-size: 18px; }
.statistiche span { font-size: 12.5px; color: var(--testo-3); }

.notifiche { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; max-width: min(420px, calc(100vw - 32px)); }
.notifica { background: #262c33; border: 1px solid var(--linea-2); border-left: 3px solid var(--acc); border-radius: 10px; padding: 11px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 14.5px; animation: entra .2s ease-out; }
.notifica.errore { border-left-color: var(--rosso); }
.notifica.info { border-left-color: var(--blu); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }

/* ---- schermi stretti ------------------------------------------------ */
@media (max-width: 1100px) {
  .c8, .c7, .c6, .c5, .c4, .c3 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .lato { position: sticky; top: 0; height: auto; z-index: 20; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #252b32; }
  .lato-testa { padding: 0; flex: 1; }
  .lato-piede { border-top: 0; padding: 0; }
  .io { display: none; }
  .menu { order: 3; flex: 0 0 100%; display: flex; overflow-x: auto; gap: 4px; padding-top: 8px; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { padding: 7px 11px; font-size: 14px; white-space: nowrap; }
  .menu a .ic { width: 17px; height: 17px; }
  .corpo { padding: 16px 16px 60px; }
  .testata h2 { font-size: 21px; }
  .eroe { grid-template-columns: auto 1fr; }
  .eroe-azioni { grid-column: 1 / -1; justify-content: flex-start; }
  .impostazione { grid-template-columns: 1fr; gap: 8px; }
  .impostazione .controllo { justify-content: flex-start; }
  .console-scheda { height: calc(100vh - 190px); }
  .tabella .nascondi-stretto { display: none; }
}
