/* Widget Statcade (widget/index.html e anteprima di generatore-widget.html). Nessun font o immagine esterna. */
.scw-page{margin:0;background:transparent}
.scw{--w-bg:#161a33;--w-bd:#2a2f52;--w-tx:#f5f7ff;--w-mu:#b3b9d6;--w-ac:#22d3ee;--w-br:#a48dff;
  color-scheme:dark;font:14px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--w-tx);text-align:left}
.scw[data-tema="chiaro"]{--w-bg:#fff;--w-bd:#cfd4e6;--w-tx:#12152b;--w-mu:#474d6b;--w-ac:#0b6577;--w-br:#5135c9;color-scheme:light}
@media (prefers-color-scheme:light){.scw[data-tema="auto"]{--w-bg:#fff;--w-bd:#cfd4e6;--w-tx:#12152b;--w-mu:#474d6b;--w-ac:#0b6577;--w-br:#5135c9;color-scheme:light}}
.scw *,.scw *::before,.scw *::after{box-sizing:border-box}
.scw-card{box-sizing:border-box;margin:0;background:var(--w-bg);border:1px solid var(--w-bd);border-radius:12px;padding:12px 14px;width:100%;overflow:hidden}
.scw a{color:var(--w-ac);text-decoration:none}.scw a:hover{text-decoration:underline}
.scw a:focus-visible{outline:2px solid var(--w-ac);outline-offset:2px;border-radius:4px}
.scw-head{display:flex;align-items:baseline;gap:10px;min-width:0}
.scw-name{flex:1;min-width:0;font-weight:700;font-size:1.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scw .scw-name{color:var(--w-tx)}
.scw-brand{flex:none;font-size:.78em;font-weight:800;letter-spacing:.02em}
.scw .scw-brand{color:var(--w-br)}
.scw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0;padding:0}
.scw-stats div{min-width:0}
.scw-stats dt{font-size:.74em;text-transform:uppercase;letter-spacing:.05em;color:var(--w-mu)}
.scw-stats dd{margin:2px 0 0;font-size:1.2em;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scw-stats small{font-size:.62em;font-weight:600;color:var(--w-mu)}
.scw abbr{text-decoration:none;cursor:help}
.scw-foot{margin:10px 0 0;font-size:.74em;color:var(--w-mu)}
.scw-msg{color:var(--w-tx)}
.scw-soon{font-size:.72em;font-weight:700;color:var(--w-mu)}
.scw-msg .scw-brand{margin-right:8px}
/* Formato compatto: due righe, numeri in linea */
.scw--compatto .scw-card{padding:6px 10px;border-radius:10px}
.scw--compatto .scw-name{font-size:.95em}
.scw--compatto .scw-stats{display:flex;gap:12px;margin:2px 0 0}
.scw--compatto .scw-stats div{display:flex;align-items:baseline;gap:4px}
.scw--compatto .scw-stats dt{font-size:.72em;letter-spacing:.02em}
.scw--compatto .scw-stats dd{margin:0;font-size:.92em}
.scw--compatto .scw-foot{display:none}
.scw--compatto .scw-msg{font-size:.9em}
/* Top 5 del giorno */
.scw .scw-top-h{margin:0;font-size:1.05em}
.scw-top{list-style:none;margin:8px 0 0;padding:0}
.scw-top li{display:flex;align-items:baseline;gap:8px;padding:5px 0;border-top:1px solid var(--w-bd);min-width:0}
.scw-top li:first-child{border-top:0}
.scw-pos{flex:none;width:2.2em;font-weight:800;color:var(--w-mu);font-variant-numeric:tabular-nums}
.scw .scw-tname{flex:1;min-width:0;color:var(--w-tx);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scw-tnum{flex:none;font-weight:800;font-variant-numeric:tabular-nums}
