@font-face { font-family: "Archivo"; font-weight: 500 900; font-display: swap; src: url(/caratteri/archivo-normal-500-900.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400 700; font-display: swap; src: url(/caratteri/ibm-plex-sans-normal-400-700.woff2) format("woff2"); }

/* ---------- token ---------- */
:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #f8f8f6;
  --surface-hover: #f1f1ee;
  --border: #e4e4df;
  --border-strong: #d2d2cb;
  --text: #171716;
  --text-2: #55544f;
  --text-3: #8a8983;
  --accent: #f6b81e;          /* giallo E-Line: azioni e selezione, mai per i dati */
  --accent-hover: #e8a90b;
  --accent-ink: #1a1a18;
  --accent-soft: #fdf1cf;
  --focus: #f6b81e;
  --series-1: #2a78d6;        /* serie unica dei grafici */
  --grid: #ececE8;
  --good: #1f7a44; --good-soft: #e3f2e8;
  --warn: #8a5a00; --warn-soft: #fdf0d2;
  --bad: #b42d23; --bad-soft: #fbe4e1;
  --info: #1f5f9e; --info-soft: #e2edf8;
  --violet: #5a3fb0; --violet-soft: #ece7fa;
  --side-bg: #151514; --side-text: #c9c8c2; --side-text-3: #7d7c76; --side-hover: #22221f; --side-active: #2b2a26;
  --shadow-sm: 0 1px 2px rgba(20, 20, 18, .05);
  --shadow: 0 1px 2px rgba(20, 20, 18, .04), 0 4px 16px rgba(20, 20, 18, .06);
  --shadow-lg: 0 12px 40px rgba(20, 20, 18, .18);
  --r: 8px; --r-sm: 6px; --r-lg: 12px;
  --side: 248px;
  --titoli: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --testo: "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --surface-2: #1f1f1d; --surface-hover: #262624;
    --border: #2c2c2a; --border-strong: #3a3a37; --text: #f0efec; --text-2: #b9b8b1; --text-3: #85847e;
    --accent-soft: #3a3014; --series-1: #3987e5; --grid: #2a2a28;
    --good: #5cc488; --good-soft: #17301f; --warn: #e7b44a; --warn-soft: #36290e; --bad: #f07a6f; --bad-soft: #3a1c19;
    --info: #78aee8; --info-soft: #172a3d; --violet: #a897ee; --violet-soft: #272040;
    --side-bg: #0c0c0b; --side-hover: #1b1b19; --side-active: #242421;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25); --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --surface-2: #1f1f1d; --surface-hover: #262624;
  --border: #2c2c2a; --border-strong: #3a3a37; --text: #f0efec; --text-2: #b9b8b1; --text-3: #85847e;
  --accent-soft: #3a3014; --series-1: #3987e5; --grid: #2a2a28;
  --good: #5cc488; --good-soft: #17301f; --warn: #e7b44a; --warn-soft: #36290e; --bad: #f07a6f; --bad-soft: #3a1c19;
  --info: #78aee8; --info-soft: #172a3d; --violet: #a897ee; --violet-soft: #272040;
  --side-bg: #0c0c0b; --side-hover: #1b1b19; --side-active: #242421;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25); --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--testo); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--titoli); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
svg.ic { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
svg.ic.sm { width: 15px; height: 15px; }
svg.ic.lg { width: 22px; height: 22px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- struttura ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; z-index: 40; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; border-bottom: 1px solid #2a2a27; margin-bottom: 10px; }
.side .brand img { height: 26px; }
.side .brand span { font: 600 11px var(--testo); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid #3b3a35; border-radius: 4px; padding: 1px 6px; }
.side .sez { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-text-3); padding: 12px 10px 4px; }
.side a.voce { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--side-text); font-weight: 500; position: relative; }
.side a.voce:hover { background: var(--side-hover); color: #fff; }
.side a.voce[aria-current="page"] { background: var(--side-active); color: #fff; }
.side a.voce[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side .badge-n { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side .piede { margin-top: auto; border-top: 1px solid #2a2a27; padding-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 12px var(--titoli); flex: none; }
.side .piede .chi { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.top { position: sticky; top: 0; z-index: 30; height: 58px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.top .cerca { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); color: var(--text-3); cursor: text; box-shadow: var(--shadow-sm); }
.top .cerca:hover { border-color: var(--border-strong); }
.top .cerca kbd { margin-left: auto; }
.top .spazio { flex: 1; }
kbd { font: 600 11px var(--testo); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--text-2); background: var(--surface-2); }
.contenuto { padding: 28px 28px 64px; max-width: 1440px; width: 100%; }
.solo-mobile { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .side.aperto { transform: none; }
  .velo { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
  .top { padding: 0 14px; }
  .contenuto { padding: 18px 14px 80px; }
  .solo-mobile { display: inline-flex; }
  .top .cerca kbd { display: none; }
}

/* ---------- intestazione di pagina ---------- */
.pagina-testa { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.pagina-testa h1 { font-size: 24px; font-weight: 750; }
.pagina-testa .sotto { color: var(--text-2); margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.briciole { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; margin-bottom: 8px; }
.briciole a { text-decoration: none; color: var(--text-2); }
.briciole a:hover { color: var(--text); }
.azioni { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-hover); }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primario:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.fantasma { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.fantasma:hover { background: var(--surface-hover); color: var(--text); }
.btn.pericolo { color: var(--bad); }
.btn.piccolo { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.icona { width: 34px; padding: 0; }
.btn.piccolo.icona { width: 28px; }
.btn:disabled { opacity: .55; cursor: progress; }
.gruppo { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gruppo button { border: 0; background: var(--surface); padding: 0 11px; height: 32px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; }
.gruppo button + button { border-left: 1px solid var(--border); }
.gruppo button[aria-pressed="true"] { background: var(--surface-hover); color: var(--text); }

/* ---------- schede ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-testa { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-testa h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-testa .sotto { color: var(--text-3); font-size: 12.5px; font-weight: 400; font-family: var(--testo); }
.card-corpo { padding: 16px 18px; }
.card-corpo.stretto { padding: 6px 0; }
.griglia { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.g-3-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g-3-1 { grid-template-columns: 1fr; } }
.spazio-sotto { margin-bottom: 16px; }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi .etichetta { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.kpi .etichetta .ic-box { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.kpi .valore { font: 750 26px var(--titoli); letter-spacing: -.02em; }
.kpi .nota { color: var(--text-3); font-size: 12.5px; }
.kpi.cliccabile { cursor: pointer; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.kpi.cliccabile:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); margin-bottom: 16px; flex-wrap: wrap; }
.banner .testo { flex: 1; min-width: 220px; }
.banner strong { font-weight: 700; }

/* ---------- etichette di stato ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.pill .punto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.richiesta, .pill.sopralluogo { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.preventivo { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.accettato, .pill.in_corso { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.chiuso { background: var(--text); color: var(--surface); border-color: transparent; }
.pill.perso { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.da_verificare { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.pill.scaduto { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.vicino { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* ---------- tabelle ---------- */
.barra-filtri { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.campo-cerca { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); min-width: 240px; flex: 1 1 260px; max-width: 420px; color: var(--text-3); }
.campo-cerca input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); }
select.filtro { height: 34px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); padding: 0 30px 0 10px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; font-weight: 500; color: var(--text); }
.tabella-wrap { overflow-x: auto; }
table.tabella { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tabella th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font: 600 12px var(--testo); color: var(--text-2); padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; }
.tabella th.ordinabile { cursor: pointer; }
.tabella th.ordinabile:hover { color: var(--text); }
.tabella th .ic { width: 13px; height: 13px; vertical-align: -2px; margin-left: 3px; opacity: .7; }
.tabella td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tabella tbody tr { cursor: pointer; transition: background .08s; }
.tabella tbody tr:hover { background: var(--surface-hover); }
.tabella tbody tr:last-child td { border-bottom: 0; }
.tabella .titolo-cella { font-weight: 600; color: var(--text); }
.tabella .destra { text-align: right; }
.piede-tabella { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }

@media (max-width: 760px) {
  .tabella.adattiva thead { display: none; }
  .tabella.adattiva tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .tabella.adattiva td { padding: 0; border: 0; }
  .tabella.adattiva td.nascondi-m { display: none; }
}

/* ---------- elenchi ---------- */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.lista > li:last-child { border-bottom: 0; }
.lista > li.link { cursor: pointer; }
.lista > li.link:hover { background: var(--surface-hover); }
.lista .corpo { flex: 1; min-width: 0; }
.lista .riga1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .riga2 { color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icona-tonda { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); flex: none; }
.vuoto { padding: 28px 18px; text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vuoto .ic { width: 28px; height: 28px; opacity: .6; }

/* ---------- bacheca a colonne ---------- */
.bacheca { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.colonna { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.colonna.sopra { border-color: var(--accent); background: var(--accent-soft); }
.colonna-testa { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; font-weight: 700; font-size: 13px; }
.colonna-testa .tot { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 12px; }
.colonna-corpo { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; }
.carta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow-sm); cursor: grab; display: flex; flex-direction: column; gap: 4px; }
.carta:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.carta.trascina { opacity: .45; }
.carta .t { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.carta .m { display: flex; justify-content: space-between; color: var(--text-2); font-size: 12px; gap: 6px; }

/* ---------- scheda dettaglio ---------- */
.schede { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.schede button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.schede button:hover { color: var(--text); }
.schede button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.schede .n { background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; font-size: 11px; padding: 0 6px; }
.dettagli { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; font-size: 13.5px; }
.dettagli dt { color: var(--text-3); }
.dettagli dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- moduli ---------- */
.modulo { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.modulo .largo { grid-column: 1 / -1; }
.campo label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.campo input, .campo select, .campo textarea { width: 100%; height: 36px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); padding: 0 10px; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.campo textarea { height: auto; min-height: 90px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.piede-modulo { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- pannello laterale e finestre ---------- */
.velo-scuro { position: fixed; inset: 0; background: rgba(10, 10, 9, .45); z-index: 60; animation: appare .12s; }
.pannello { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); z-index: 61; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: entra .18s ease-out; }
.pannello-testa { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pannello-testa h2 { font-size: 17px; }
.pannello-corpo { padding: 20px; overflow-y: auto; flex: 1; }
.pannello-piede { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); }
@keyframes entra { from { transform: translateX(24px); opacity: 0; } }
@keyframes appare { from { opacity: 0; } }

.tavolozza { position: fixed; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); z-index: 61; overflow: hidden; animation: appare .1s; }
.tavolozza .ingresso { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.tavolozza .ingresso input { flex: 1; border: 0; outline: 0; height: 52px; font-size: 16px; background: transparent; color: var(--text); }
.tavolozza .risultati { max-height: 52vh; overflow-y: auto; padding: 6px; }
.tavolozza .gruppo-ris { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 10px 10px 4px; }
.tavolozza .ris { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.tavolozza .ris[aria-selected="true"] { background: var(--surface-hover); }
.tavolozza .ris .corpo { flex: 1; min-width: 0; }
.tavolozza .ris .r1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tavolozza .ris .r2 { font-size: 12px; color: var(--text-3); }

/* ---------- grafici ---------- */
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .asse { fill: var(--text-3); font-size: 11px; font-family: var(--testo); }
.grafico .valore-etichetta { fill: var(--text-2); font-size: 11px; font-weight: 600; font-family: var(--testo); }
.grafico .griglia-l { stroke: var(--grid); stroke-width: 1; }
.grafico .barra { fill: var(--series-1); }
.grafico .barra.attiva { fill: color-mix(in srgb, var(--series-1) 78%, var(--text)); }
.grafico .bersaglio { fill: transparent; cursor: default; }
.suggerimento { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--r-sm); padding: 6px 10px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; z-index: 5; }
.suggerimento strong { display: block; font-size: 13.5px; }
.barre-o { display: flex; flex-direction: column; gap: 9px; }
.barre-o .riga { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.barre-o .riga .nome { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-o .traccia { height: 12px; }
.barre-o .riempi { height: 12px; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.barre-o .riga .n { text-align: right; font-weight: 600; }

/* ---------- avvisi ---------- */
.avvisi { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.avviso { background: var(--text); color: var(--surface); padding: 10px 14px; border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 13.5px; display: flex; gap: 8px; align-items: center; animation: entra .15s; max-width: 380px; }
.avviso.errore { background: var(--bad); color: #fff; }

.scheletro { background: linear-gradient(90deg, var(--surface-2), var(--surface-hover), var(--surface-2)); background-size: 200% 100%; animation: luccica 1.2s infinite; border-radius: var(--r-sm); }
@keyframes luccica { to { background-position: -200% 0; } }

.file-albero { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.file-albero li { padding: 4px 0; }
.file-albero ul { list-style: none; padding-left: 22px; margin: 2px 0; }
.file-albero a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.file-albero a:hover { text-decoration: underline; }

.linea-tempo { list-style: none; margin: 0; padding: 0 18px; }
.linea-tempo li { position: relative; padding: 12px 0 12px 28px; border-left: 1px solid var(--border); margin-left: 8px; }
.linea-tempo li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.linea-tempo li.promemoria::before { border-color: var(--accent); }
.linea-tempo li.fatto::before { background: var(--good); border-color: var(--good); }
.linea-tempo .quando { font-size: 12px; color: var(--text-3); }

/* ---------- accesso ---------- */
.accesso { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--bg); }
.accesso-scheda { width: min(420px, 100%); overflow: hidden; box-shadow: var(--shadow-lg); }
.accesso-marchio { background: var(--side-bg); padding: 22px 28px; border-bottom: 3px solid var(--accent); }
.accesso-marchio img { height: 32px; display: block; }
