/* Tema scuro (predefinito): nero #141414, grigio #3C3C3C, azzurro intestazioni #232d3e. */
:root, [data-theme="dark"] {
  --bg: #141414;          /* sfondo pagina */
  --surface: #1c1c1c;     /* riquadri */
  --raised: #3C3C3C;      /* grigio: bordi forti, etichette degli esiti, righe al passaggio */
  --line: #2c2c2c;        /* linee sottili */
  --head: #232d3e;        /* azzurro: barra in alto e intestazioni delle tabelle */
  --head-text: #dfe6f1;
  --head-muted: #9fb0c8;
  --text: #e8e8e6;
  --muted: #9a9a97;
  --accent: #9db4d8;      /* link */
  /* Verde e rosso delle spunte dei risultati: gli unici verde e rosso della dashboard (richiesta 13/10/2026). */
  --ok: #2FD27A; --ko: #FF4D3D; --neg: var(--ko); --on-ok: #0b2416; --on-ko: #ffffff;
  /* Esito aggiunto con l'allargamento e "base": azzurro dei nomi delle partite (richiesta 13/10/2026). */
  --add-bg: var(--accent); --add-fg: #141414;
  --s-totale: #e8e8e6; --s-singola: #1199b8; --s-doppia: #ea4a75; --s-tripla: #9470f0;
  --up: var(--ko); --down: var(--ok);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
/* Tema chiaro: gli stessi tre colori schiariti, stesso effetto. */
[data-theme="light"] {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --raised: #e6e6e3;
  --line: #e2e2df;
  --head: #e4e9f1;
  --head-text: #232d3e;
  --head-muted: #5b6a82;
  --text: #1d1d1d;
  --muted: #6d6d6a;
  --accent: #2f4a73;
  --add-bg: var(--accent); --add-fg: #ffffff;
  --ok: #0FA04E; --ko: #E3261A; --neg: var(--ko); --on-ok: #ffffff; --on-ko: #ffffff;
  --s-totale: #232d3e; --s-singola: #0b8fb0; --s-doppia: #e0336a; --s-tripla: #7c4ddb;
  --up: var(--ko); --down: var(--ok);
  --shadow: 0 1px 2px rgba(20, 20, 20, .06);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1480px; margin: 0 auto; padding: 20px 16px; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* Barra in alto */
.top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 10px 20px;
  background: var(--head); color: var(--head-text); }
.top a { color: var(--head-text); }
.brand { font-weight: 600; letter-spacing: .02em; font-size: 15px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; color: var(--head-muted); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--head-text); text-decoration: none; }
.tabs a.on { color: var(--head-text); border-bottom-color: currentColor; }
.prefs { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.who { color: var(--head-muted); }
.who a { color: var(--head-text); }

.langs { display: inline-flex; gap: 6px; }
.flag { display: inline-flex; padding: 2px; border-radius: 3px; opacity: .7; line-height: 0; }
.flag:hover { opacity: 1; }
.flag.on { opacity: 1; box-shadow: 0 0 0 2px var(--head-text); }
.flag svg { border-radius: 2px; }

/* Interruttore chiaro / scuro */
.themesw { position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 52px; height: 26px; padding: 0 6px; border-radius: 13px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); }
.top .themesw { color: var(--head-muted); }
[data-theme="light"] .themesw { background: rgba(35, 45, 62, .08); border-color: rgba(35, 45, 62, .18); }
.themesw:hover { text-decoration: none; }
.themesw .ico { display: inline-flex; line-height: 0; }
.themesw .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--head-text); transition: transform .2s ease; }
[data-theme="dark"] .themesw .knob { transform: translateX(26px); }

.head { margin: 4px 0 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }

/* Riquadri dello strike rate */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--raised);
  border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi.s-totale { border-top-color: var(--s-totale); }
.kpi.s-singola { border-top-color: var(--s-singola); }
.kpi.s-doppia { border-top-color: var(--s-doppia); }
.kpi.s-tripla { border-top-color: var(--s-tripla); }
.kpi.cur { border-color: var(--raised); border-top-color: var(--accent); }
.kpi .lbl { color: var(--muted); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.kpi .val { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0; }
.kpi .sub { color: var(--muted); font-size: 12px; }

/* Tabelle */
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--head); color: var(--head-muted); font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; border-bottom: 0; }
thead th:first-child { border-top-left-radius: 6px; }
thead th:last-child { border-top-right-radius: 6px; }
tbody tr:hover td { background: color-mix(in srgb, var(--raised) 35%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td.c, th.c { text-align: center; font-variant-numeric: tabular-nums; }
.matches td, .matches th { padding-left: 7px; padding-right: 7px; }
.matches td.team a { white-space: nowrap; }
.matches thead th { vertical-align: top; }
.matches thead th.vmid { vertical-align: middle; }
.model-tag.under { display: table; margin: 4px auto 0; }
.matches thead tr.sub th { padding-top: 0; font-size: 12px; color: var(--head-text); }
.matches .grp { border-left: 1px solid var(--line); }
.matches thead .grp { border-left-color: rgba(255, 255, 255, .08); }
[data-theme="light"] .matches thead .grp { border-left-color: rgba(35, 45, 62, .12); }
.matches thead tr:first-child th[rowspan] { border-top-left-radius: 0; border-top-right-radius: 0; }
.matches thead tr:first-child th:first-child { border-top-left-radius: 6px; }
.matches thead tr:first-child th:last-child { border-top-right-radius: 6px; }
.matches thead tr.sub th { border-radius: 0; }
td.up { color: var(--up); }
td.down { color: var(--down); }
/* Ultimo movimento della quota: sfondo che sfuma (utente 25/10/2026). */
td.mv-down { background: color-mix(in srgb, var(--ok) var(--mv, 0%), transparent); }
td.mv-up { background: color-mix(in srgb, var(--ko) var(--mv, 0%), transparent); }
td.mv-dpos { background: color-mix(in srgb, #4FA8E8 var(--mv, 0%), transparent); }
td.mv-dneg { background: color-mix(in srgb, #E0B400 var(--mv, 0%), transparent); }
td.neg { color: var(--neg); }
.tablewrap { overflow-x: auto; }

/* Pronostico */
.pick { display: inline-flex; gap: 3px; }
.pick .o { display: inline-block; min-width: 24px; text-align: center; padding: 1px 6px; border-radius: 4px;
  background: var(--raised); font-weight: 600; border: 1px solid transparent; }
.pick .o.added { background: var(--add-bg); color: var(--add-fg); }
.pick .o.res { border-color: var(--text); }
.pick .o.cur { border: 1px dashed var(--text); }
.base { color: var(--accent); font-size: 12px; font-weight: 600; }
.hit { font-weight: 800; font-size: 15px; margin-right: 8px; }
.res-out { margin-right: 6px; font-weight: 600; }
.hit.ok { color: var(--ok); }
.hit.ko { color: var(--ko); }
.live { display: inline-block; padding: 0 5px; border-radius: 4px; background: #c4321f; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; }

/* Filtri */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--raised); border-radius: 8px; overflow: hidden; }
.seg a { padding: 6px 14px; color: var(--muted); }
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a.on { background: var(--head); color: var(--head-text); }
select, input, button { font: inherit; padding: 6px 10px; border: 1px solid var(--raised); border-radius: 6px;
  background: var(--surface); color: var(--text); }
button { background: #232d3e; color: #dfe6f1; border-color: #232d3e; cursor: pointer; }
button:hover { filter: brightness(1.15); }

/* Grafici: strike rate nel tempo e per competizione, affiancati */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; margin-bottom: 18px; }
.charts .card { margin-bottom: 0; min-width: 0; }
.rank-switch { margin-bottom: 14px; }
.rank-switch .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.s-singola { background: var(--s-singola); } .dot.s-doppia { background: var(--s-doppia); }
.rank { max-height: 400px; overflow-y: auto; padding-right: 4px; }
.rank-row { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 62px 52px 56px; gap: 12px; align-items: center;
  padding: 7px 0; font-size: 13px; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-head { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.rank-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name .mult-badge { margin-right: 1px; }
.rank-track { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--raised) 45%, transparent); overflow: hidden; }
.rank-bar { display: block; height: 100%; border-radius: 5px; }
.rank-bar.s-singola { background: var(--s-singola); }
.rank-bar.s-doppia { background: var(--s-doppia); }
.rank-pct { font-weight: 600; }
.rank-row span.n { text-align: right; font-variant-numeric: tabular-nums; }
.rank-row:not(.rank-head):hover { background: color-mix(in srgb, var(--raised) 25%, transparent); }
.statfilters label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.statfilters { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
/* Calendario gg/mm/aaaa */
.dp { position: relative; display: inline-block; }
.dp-text { width: 120px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 252px; padding: 10px;
  background: var(--surface); border: 1px solid var(--raised); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.dp-head button { background: transparent; border: 0; color: var(--text); font-size: 18px; padding: 0 8px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-w { font-size: 11px; color: var(--muted); padding: 2px 0; }
.dp-d { background: transparent; border: 1px solid transparent; color: var(--text); padding: 4px 0; border-radius: 6px; font-size: 13px; }
.dp-d:hover { background: var(--raised); filter: none; }
.dp-d.today { border-color: var(--raised); }
.dp-d.on { background: var(--head); color: var(--head-text); border-color: var(--head); }
/* Grafico */
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); }
.chart .ax { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke-width: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; margin-bottom: 6px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
path.s-totale { stroke: var(--s-totale); stroke-width: 3; } circle.s-totale, .legend .s-totale i { fill: var(--s-totale); background: var(--s-totale); }
path.s-singola { stroke: var(--s-singola); } circle.s-singola, .legend .s-singola i { fill: var(--s-singola); background: var(--s-singola); }
path.s-doppia { stroke: var(--s-doppia); } circle.s-doppia, .legend .s-doppia i { fill: var(--s-doppia); background: var(--s-doppia); }
path.s-tripla { stroke: var(--s-tripla); } circle.s-tripla, .legend .s-tripla i { fill: var(--s-tripla); background: var(--s-tripla); }

.soglie summary { cursor: pointer; font-weight: 600; }
.soglie table { margin-top: 12px; }

/* Accesso */
.login { max-width: 360px; margin: 10vh auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.login label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.login .err { color: var(--neg); margin: 0; }

@media (max-width: 640px) {
  .top { padding: 10px 16px; gap: 10px; }
  .prefs { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* Pagina partita: pronostico a ogni update */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.adv-toggle { font-size: 12px; padding: 4px 10px; }
#upd .adv { display: none; }
#upd.show-adv .adv { display: table-cell; }
#upd td.c, #upd th.c { text-align: center; }
#upd .chg-mark { margin-left: 5px; color: var(--accent); font-size: 13px; }
.band { padding: 1px 5px; border-radius: 4px; }
.band.hi { background: #CFE8F7; color: #0B4F71; }
.band.lo { background: #FFF2B3; color: #6B5500; }

/* Banner scorrevole nella barra in alto */
.ticker { flex: 1; min-width: 0; overflow: hidden; position: relative; font-size: 13px; color: var(--head-muted);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 90s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: inline-flex; }
.ticker .ti { padding: 0 14px; border-right: 1px solid rgba(255, 255, 255, .12); }
[data-theme="light"] .ticker .ti { border-right-color: rgba(35, 45, 62, .15); }
.ticker b { color: var(--head-text); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }

/* Menu utente */
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; color: var(--head-text); padding: 4px 8px; border-radius: 6px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: rgba(255, 255, 255, .08); }
[data-theme="light"] .usermenu summary:hover, [data-theme="light"] .usermenu[open] summary { background: rgba(35, 45, 62, .08); }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); padding: 6px 0; }
.usermenu .menu a { display: block; padding: 7px 14px; color: var(--text); }
.usermenu .menu a:hover { background: color-mix(in srgb, var(--raised) 45%, transparent); text-decoration: none; }

/* Selezione modelli nella barra dei filtri */
.statfilters .models a { white-space: nowrap; }
.statfilters { margin-bottom: 18px; }
.soglie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }

/* Periodo della tabella partite */
.filters .seg.periods a { padding: 6px 11px; }
.filters label.day.on .dp-text { border-color: var(--head); box-shadow: 0 0 0 1px var(--head); }

#partite { scroll-margin-top: 12px; }
.model-tag { display: inline-block; margin: -2px 0 -2px 4px; padding: 0 6px; line-height: 1.5; border-radius: 4px; background: var(--raised); color: var(--text); font-weight: 600; letter-spacing: .03em; }
/* Impegni ravvicinati sotto la partita */
.impegni { margin-top: 2px; display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.impegni .imp-side b { color: var(--text); font-weight: 600; margin-right: 2px; }
.impegni .imp { white-space: nowrap; }
.impegni .imp.close, .imp-list .close { color: #E3B262; font-weight: 600; }
[data-theme="light"] .impegni .imp.close, [data-theme="light"] .imp-list .close { color: #A8650F; }
.played-on { margin-top: 2px; }
.imp-list { list-style: none; padding: 0; margin: 6px 0 0; color: var(--muted); }
.imp-list li { margin: 2px 0; }
.dp-d.off, .dp-d.off:hover { color: var(--muted); opacity: .35; background: transparent; cursor: default; }
.dp-text.bad { border-color: var(--ko); }
.ticker a { color: var(--head-text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
[data-theme="light"] .ticker a { text-decoration-color: rgba(35, 45, 62, .3); }
.ticker a:hover { text-decoration-color: currentColor; }
/* Banner: partite con pronostico cambiato, staccate dalla loro competizione */
.ticker .ti.ti-m { padding: 0 18px; border-right-style: dotted; }
.ticker .tg b { color: var(--head-text); }
.ticker .ti:has(.tg) { padding-right: 22px; }
/* Pallino "N live" per competizione (prova 12/11/2026); su schermi touch il primo tocco ferma il nastro. */
.ticker a.tl { text-decoration: none; font-weight: 600; color: var(--head-text); white-space: nowrap; }
.ticker a.tl .live-dot { margin-right: 4px; }
.ticker.ferma .ticker-track { animation-play-state: paused; }
.live-error { color: var(--ko); font-weight: 600; margin: 8px 0 0; }
/* Stato del sistema */
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.health .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.health.h-avviso .dot { background: #E3B262; }
.health.h-errore .dot { background: var(--ko); }
.health.h-errore { color: var(--ko); font-weight: 600; }
.hbadge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--on-ok); background: var(--ok); }
.hbadge.h-avviso { background: #B07D1E; color: #fff; }
.hbadge.h-errore { background: var(--ko); color: var(--on-ko); }
.health-list td { vertical-align: top; padding: 6px 8px; }
.health-list ul, .health-log { margin: 4px 0 0; padding-left: 18px; }
/* × sugli avvisi già controllati (18/11/2026), solo per il proprietario */
.cn-riga, .cn-lista li { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cn-lista { list-style: none; }
.nx { flex: none; border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1; padding: 1px 5px; cursor: pointer; border-radius: 4px; }
.nx:hover { color: var(--text); background: color-mix(in srgb, var(--raised) 45%, transparent); }
.cn-lista .nx { font-size: 13px; }
.health-list .cn-chiuso { opacity: .5; }
.cn-nota { margin: 10px 0 0; }
@media (max-width: 640px) { .nx { padding: 2px 8px; font-size: 17px; } }
/* Scelta di più competizioni */
.comp-pick { position: relative; display: inline-block; }
.comp-pick summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid var(--raised); border-radius: 6px;
  background: var(--surface); color: var(--text); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.comp-pick summary::-webkit-details-marker { display: none; }
.comp-pick .cp-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 300px; max-height: 380px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); padding: 6px 0; }
.comp-pick .cp-menu label { display: flex; align-items: center; gap: 8px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.comp-pick .cp-menu label:hover { background: color-mix(in srgb, var(--raised) 45%, transparent); }
.comp-pick .cp-menu input { padding: 0; margin: 0; }
.comp-pick .cp-actions { display: flex; justify-content: space-between; gap: 8px; padding: 4px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
  position: sticky; top: -6px; background: var(--surface); }
.linkbtn { border: 0; background: none; color: var(--accent); padding: 4px 0; cursor: pointer; white-space: nowrap; }
.comp-pick .cp-actions { align-items: center; }
.comp-pick .cp-actions label.cp-all { padding: 0; font-weight: 600; }
/* Colonne risultato: esito 1X2 e punteggio separati */
.matches td.res-score { padding-left: 18px; }
.matches th.res-score { padding-left: 18px; }
/* Pulsante Aggiorna ora */
.refresh-btn { font-size: 12px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: transparent; color: var(--head-text); border: 1px solid color-mix(in srgb, var(--head-text) 35%, transparent); }
.refresh-btn:hover { background: rgba(255, 255, 255, .08); filter: none; }
[data-theme="light"] .refresh-btn:hover { background: rgba(35, 45, 62, .08); }
.refresh-btn.busy span[aria-hidden] { display: inline-block; animation: spin 1.2s linear infinite; }
.refresh-btn:disabled { cursor: default; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.kpi .share { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.kpi .share strong { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
/* X di chiusura della pagina Stato del sistema */
.head-close { position: relative; padding-right: 48px; }
.close-x { position: absolute; top: 0; right: 0; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; color: var(--muted); border: 1px solid var(--raised); border-radius: 50%; text-decoration: none; }
.close-x:hover { color: var(--text); background: color-mix(in srgb, var(--raised) 45%, transparent); text-decoration: none; }

/* Pagina partita: calendario delle squadre, notizie, meteo */
.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
/* Sotto i 1400 px le due squadre vanno una sotto l'altra, così tabella e notizie stanno senza scorrere. */
@media (max-width: 1400px) { .cal-grid { grid-template-columns: 1fr; } }
.cal-team h3 { margin: 0 0 8px; font-size: 15px; }
/* Squadre affiancate: notizie sotto la tabella. Squadre una sotto l'altra (sotto i 1400 px): notizie a fianco. */
.cal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1400px) { .cal-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; } }
@media (max-width: 760px) { .cal-grid { grid-template-columns: 1fr; } .cal-body { grid-template-columns: 1fr; } }
table.cal { font-size: 13px; width: 100%; table-layout: fixed; }
/* Larghezze fisse: data, casa/trasferta e risultato; competizione e avversario si accorciano con i puntini,
   così la tabella non esce mai dal riquadro (niente barra di scorrimento). */
table.cal th:nth-child(1) { width: 86px; } table.cal th:nth-child(2) { width: 28%; }
table.cal th:nth-child(3) { width: 36px; } table.cal th:nth-child(5) { width: 96px; }
table.cal td:nth-child(2), table.cal td:nth-child(4) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.cal td, table.cal th { padding: 5px 7px; }
table.cal tr.cal-this td { background: var(--raised); font-weight: 600; }
table.cal tr.cal-next td { color: var(--muted); }
.wdl { display: inline-block; min-width: 18px; padding: 0 4px; margin-left: 4px; border-radius: 4px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; }
.wdl.w { background: var(--ok); color: var(--on-ok); } .wdl.d { background: #7A7F88; } .wdl.l { background: var(--ko); color: var(--on-ko); }
.cal-news h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
ul.news { margin: 0; padding-left: 18px; font-size: 13px; }
ul.news li { margin: 0 0 6px; }
.news-src { color: var(--muted); font-size: 11px; margin-left: 4px; }
.news-tag { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--raised); color: var(--text); }
.news-tag.t-infortunio, .news-tag.t-squalifica, .news-tag.t-assenza { color: #E3B262; }
.news-tag.t-allenatore { color: var(--ko); }
[data-theme="light"] .news-tag.t-infortunio, [data-theme="light"] .news-tag.t-squalifica, [data-theme="light"] .news-tag.t-assenza { color: #A8650F; }
.wx { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.wx-icon { font-size: 26px; line-height: 1; }
.wx-place { display: block; }

/* Tabella degli update nella pagina partita: più compatta, per stare nella pagina senza barra orizzontale. */
table.upd { font-size: 12.5px; }
table.upd td, table.upd th { padding: 6px 5px; }
table.upd .pick .o { min-width: 20px; padding: 1px 4px; }
@media (max-width: 1400px) { table.upd { font-size: 12px; } table.upd td, table.upd th { padding: 5px 4px; } }
@media (max-width: 1300px) { table.upd { font-size: 11.5px; } table.upd td, table.upd th { padding: 5px 3px; } }

/* Tabella principale: "base 12" sotto il pronostico, piccolo, per non allargare la colonna. */
.matches td.pickcell .base, .matches td.pickcell .rid-q { display: block; margin-top: 3px; font-size: 11px; line-height: 1.2; }
table.upd .base { display: none; }
/* Simbolo di cambio pronostico fuori dal flusso: non allarga né alza la casella. */
#upd td.pchg { position: relative; }
#upd td.pchg .chg-mark { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); margin: 0; }
/* Formazione ufficiale e orario delle notizie nella pagina partita */
.cal-news h4 + p.lineup, .cal-news .lineup { font-size: 13px; margin: 0 0 4px; line-height: 1.5; }
.cal-news ul.news + h4 { margin-top: 12px; }
.lineup-mod { font-weight: 700; color: var(--accent); margin-right: 2px; }
.lineup-ok { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ok); margin-left: 4px; }
.lineup-bench { margin: 0; }
.news-when { margin: 10px 0 2px; }

/* Totocalcio */
.matches.toto tr.toto-grp td { background: var(--raised); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; font-size: 12px; }
.matches.toto tr.toto-out td { opacity: .55; }
.matches.toto tr.toto-out:hover td { opacity: 1; }
.toto-mark { color: var(--accent); font-size: 15px; }
.band.ok { background: color-mix(in srgb, var(--ok) 24%, transparent); color: var(--text); }
/* Posizione dell'opzionale nelle classifiche H / Delta / Vs pubblico (Totocalcio, 06/11/2026): stesso stile del testo 'base' sotto i segni */
.matches td .pos { display: block; margin-top: 3px; font-size: 11px; line-height: 1.2; color: var(--muted); }
.toto-chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.toto-sug { color: var(--accent); font-size: 13px; }
.toto-actions { display: flex; align-items: center; gap: 12px; }
.toto-actions button[disabled] { opacity: .5; cursor: not-allowed; }
.seg.pools { margin-left: 4px; }
.toto-head { margin: 4px 0 14px; }
.toto-head h3 { margin: 0 0 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pool-pick { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); }
.match-filters { align-items: flex-end; }
.match-filters .mleft { display: inline-grid; gap: 10px; width: var(--ctlw); }
.match-filters .mrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.seg.models.big { display: flex; gap: 8px; border: 0; border-radius: 0; overflow: visible; }
.seg.models.big a { flex: 1; text-align: center; padding: 6px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid var(--raised); border-radius: 8px; }
.seg.models.big a:hover { border-color: var(--accent); }
.seg.models.big a.on { background: var(--accent); color: var(--add-fg); border-color: var(--accent); }
.seg.models.big a.on .model-tag { background: rgba(0, 0, 0, .18); color: inherit; }
.model-pick select { margin-left: 4px; }
.match-filters .mrow .comp-pick { flex: 1; }
.match-filters .mrow .comp-pick summary { display: flex; justify-content: space-between; }
.match-filters .mrow:empty, .match-filters .mrow:not(:has(label, button)) { display: none; }
.match-filters .mrow .comp-pick summary { box-sizing: border-box; width: 100%; max-width: none; }
.match-filters .mleft:not(:has(*:not(input))) { display: none; }
.toto-actions .seg.models.big { margin: 0; }
#schedina .card-head { flex-wrap: wrap; }
/* Barra del modello: unica scelta per statistiche, partite e Totocalcio, sempre visibile in cima */
.modelbar { position: sticky; top: var(--toph, 52px); z-index: 40; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: -20px -16px 18px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.modelbar .seg.models.big { width: var(--ctlw); }
.stats-toggle { margin-left: auto; background: none; border: 1px solid var(--raised); color: var(--muted); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.stats-toggle:hover { color: var(--text); border-color: var(--accent); }
.stats-toggle .chev { display: inline-block; transition: transform .15s; }
.stats-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (max-width: 700px) { .modelbar .seg.models.big { min-width: 0; width: 100%; } }
/* Intestazione (marchio, ticker, pulsanti) sempre ancorata in cima */
header.top { position: sticky; top: 0; z-index: 50; }
/* Larghezza comune: bottoni dei modelli = riga Dal ... Applica del riquadro partite */
:root { --ctlw: 640px; }
/* Filtri partite e intestazione della tabella ancorati sotto la barra dei modelli (schermi larghi) */
@media (min-width: 1000px) {
  .match-filters { position: sticky; top: calc(var(--toph, 52px) + var(--modelh, 56px)); z-index: 30;
    background: var(--surface); margin: -18px -18px 0; padding: 14px 18px 12px; border-radius: 10px 10px 0 0; }
  .tablewrap.stickwrap { overflow: visible; }
  .stickwrap table.matches thead { position: sticky; top: calc(var(--toph, 52px) + var(--modelh, 56px) + var(--filth, 60px)); z-index: 20; }
}
@media (max-width: 700px) { .modelbar .seg.models.big, .match-filters .mleft { width: 100%; } }
/* Menu competizioni: gruppi per nazione con bandiera (richiesta utente 15/10/2026) */
.comp-pick .cp-group { padding: 8px 12px 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.comp-pick .cp-group { border-top: 1px solid var(--line); margin-top: 4px; }
.comp-pick .cp-actions + .cp-group { border-top: 0; margin-top: 0; }
.cp-flag { display: inline-flex; width: 21px; justify-content: center; flex: none; }
.cp-flag svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
/* Pagina partita: nome dell'evento, campionato e data restano in vista scorrendo, fino a "Calendario, notizie e meteo" */
.match-top { position: sticky; top: var(--toph, 52px); z-index: 40; margin: -20px -16px 18px; padding: 10px 16px 2px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.match-top > p:first-child { margin: 0 0 4px; }
.match-top .head { margin: 0 0 8px; }
.match-top h1 { margin: 0 0 4px; }
.match-top .head > p { margin: 0 0 2px; }
/* Pagina partita: testata "Update" e intestazione della tabella ancorate sotto nome evento/campionato/data */
.upd-card .card-head { position: sticky; top: calc(var(--toph, 52px) + var(--matchh, 90px)); z-index: 25;
  background: var(--surface); margin: -18px -18px 14px; padding: 14px 18px 10px; border-radius: 10px 10px 0 0; }
@media (min-width: 1280px) {
  .tablewrap.updwrap { overflow: visible; }
  #upd thead { position: sticky; top: calc(var(--toph, 52px) + var(--matchh, 90px) + var(--updh, 56px)); z-index: 20; }
}
/* Concorsi: bandiera accanto al nome, link al regolamento, categorie della Quiniela */
.seg.pools a { display: inline-flex; align-items: center; gap: 6px; }
.pool-links { margin-top: 4px; }
.pool-links a { color: var(--accent); }
.quin-cat-title { margin: 18px 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.matches.quin-cats { width: 100%; }
.matches.quin-cats tr.quin-our td { background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 600; }
/* Quiniela: partite senza modello (es. calcio femminile senza quote) giocate tripla, ben riconoscibili */
.nomodel { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.nomodel .pick .o { background: #FFF2B3; color: #6B5500; }
.nomodel-lbl { font-size: 11px; font-weight: 600; color: #E0B400; letter-spacing: .02em; }

/* Quiniela: importi delle categorie su una riga */
.quin-cats td.n{white-space:nowrap}
.quin-pub-in{font-weight:700}
.quin-pub15{line-height:1.5}
.pleno-pick{font-size:12px;margin-top:2px;white-space:nowrap}
.pleno-regola{margin-top:3px;white-space:normal;max-width:760px}
.pleno-regola summary{cursor:pointer;display:inline-block}

/* Tab Multiple (paper trading MMF1, 15/10/2026) */
.mult-graph { margin-bottom: 18px; }
.mult-graph .chart { display: block; max-width: 860px; margin: 0 auto; }
.chart .mult-base { stroke: var(--muted); stroke-dasharray: 4 4; }
.chart .mult-line { stroke: var(--accent); }
.chart .mult-dot { fill: var(--accent); }
.kpi .val.neg { color: var(--ko); }
.mult-table tr.mult-first td { border-top: 2px solid var(--line); }
/* Gruppi delle multiple (utente 05/11/2026): righe di riassunto allineate alle colonne, che si aprono con un clic; pochi colori */
.mult-table tr.mult-grp > td { border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; vertical-align: middle; }
.mult-table tr.mult-grp[data-grp] { cursor: pointer; }
.mult-table tr.mult-grp[data-grp]:hover > td { background: var(--raised); }
.mg-chev { display: inline-block; width: 12px; color: var(--muted); transition: transform .12s; }
.mult-grp.aperto .mg-chev { transform: rotate(90deg); }
.mg-lbl { font-weight: 700; }
.mg-conti, .mg-roi { color: var(--muted); }
.mg-ut.pos { color: #2ecc71; } .mg-ut.neg { color: #e05a5a; }
.mult-grp.mg-w .mg-nome { padding-left: 26px; }
.mult-grp.mg-g .mg-nome { padding-left: 44px; }
.mult-grp.mg-g .mg-lbl { font-weight: 600; }
.mult-table tr.mult-grp > td.mg-titolo { background: transparent; border-top: 0; padding: 16px 8px 6px; font-weight: 700; font-size: 14px; }
.mult-table tr.mult-grp.mg-wc > td.mg-titolo { padding: 4px 8px 2px 26px; font-weight: 400; font-size: 12px; color: var(--muted); }
.mult-table td[rowspan] { vertical-align: middle; }
.mult-pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--raised); color: var(--text); }
.mult-pill.ok { background: var(--ok); color: var(--on-ok); }
.mult-pill.ko { background: var(--ko); color: var(--on-ko); }
.mult-rules { margin-top: 18px; }
.mult-rules ul { margin: 6px 0 0; padding-left: 20px; }
.mult-rules li { margin: 4px 0; color: var(--muted); }

/* Expected goals nella pagina partita (15/10/2026) */
.xg-avg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.xg-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-width: 0; }
.xg-box .lbl { color: var(--muted); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.xg-box .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xg-box .xg-comp { text-transform: none; letter-spacing: 0; }
.xg-box .xg-v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
table.cal.xg th:nth-child(6), table.cal.xg th:nth-child(7) { width: 46px; }
table.cal.xg td.xg-best { font-weight: 700; }
table.cal.xg td.xg-for { color: var(--accent); }

/* Multiple: metriche di bontà del modello (18/10/2026), tabella metrica / valore / spiegazione */
.mult-met .met-head, .mult-graph .met-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mult-met .met-head h3, .mult-graph .met-head h3 { margin: 0; }
.mult-met #metBody, .mult-graph #graphBody { margin-top: 10px; }
.mult-met .met-table td { vertical-align: top; }
.mult-met .met-name { font-weight: 600; white-space: nowrap; }
.mult-met .met-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mult-met .met-val.neg { color: var(--ko); }
.mult-met .met-exp { color: var(--muted); font-size: 13px; line-height: 1.4; white-space: normal; min-width: 260px; }
/* Storico concorsi (19/10/2026): netto positivo / negativo con i colori dei risultati */
td.pos, .kpi .sub.pos { color: var(--ok); }
.kpi .sub.neg { color: var(--ko); }
.quin-cats tr.muted td { color: var(--muted); }
.quin-hist { margin-top: 14px; }
/* Storico concorsi e categorie di premio Totocalcio (19/10/2026): tabelle a tutta larghezza, riepilogo e
   dettaglio affiancati sugli schermi larghi, uno sotto l'altro sotto i 1100 px. */
.hist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hist-head .quin-cat-title { margin: 0 0 8px; }
.hist-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 18px; align-items: start; }
.hist-sum, .hist-det { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.hist-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.matches.hist-tab { width: 100%; }
.hist-tab td, .hist-tab th { padding-top: 8px; padding-bottom: 8px; }
.hist-tab td.n, .hist-tab th.n { text-align: right; }
.hist-tab .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.s-tripla { background: var(--s-tripla); } .dot.s-totale { background: var(--s-totale); }
.hist-cell { padding-top: 10px; padding-bottom: 10px; min-width: 92px; }
.hist-val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hist-val.hist-best { color: var(--ok); }
.hist-bar { height: 4px; border-radius: 2px; background: var(--raised); margin: 5px 0 3px auto; overflow: hidden; display: flex; justify-content: flex-start; }
.hist-bar i { display: block; height: 100%; border-radius: 2px; }
.hist-bar.s-singola i { background: var(--s-singola); } .hist-bar.s-doppia i { background: var(--s-doppia); }
.hist-bar.s-tripla i { background: var(--s-tripla); } .hist-bar.s-totale i { background: var(--s-totale); }
.hist-tab td.hist-sel { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.hist-tab thead th.hist-sel { color: var(--head-text); box-shadow: inset 0 -2px 0 var(--accent); }
.hist-tab tr.hist-tot td { border-top: 1px solid var(--raised); font-weight: 600; }
.hist-tab tr.hist-cur td { background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 600; }
.hist-tab tr.hist-nocov td { line-height: 1.7; }
.toto-premi td, .toto-premi th { white-space: nowrap; }
@media (max-width: 1100px) { .hist-grid { grid-template-columns: minmax(0, 1fr); } }
/* Giorni senza multipla (19/10/2026): riga nella tabella, motivi in una tendina. */
.mult-why summary { cursor: pointer; }
.mult-why[open] summary { margin-bottom: 6px; }
.mult-why-body > div { margin-bottom: 4px; }
.matches.mult-vuoto-tab { width: 100%; margin-top: 6px; }
.matches.mult-vuoto-tab td { padding-top: 5px; padding-bottom: 5px; border-bottom: 0; }
/* Concorsi: quote prese dopo la chiusura delle giocate (regola utente 20/10/2026). */
.pool-late { color: #E0B400; margin-top: 2px; cursor: help; }
.pool-late-mark { cursor: help; font-size: 13px; color: #E0B400; }
/* Pagina partita: previsioni dei tre modelli accanto al nome (utente 20/10/2026) */
.head-row { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.head-preds { display: flex; gap: 10px; }
.kpi.mini { padding: 6px 14px; min-width: 104px; text-align: center; border-top-width: 3px; }
.kpi.mini .lbl { font-weight: 600; }
.kpi.mini .val { font-size: 18px; margin: 3px 0 1px; }
.kpi.mini .sub { font-size: 11px; }
.rank-excl { margin-top: 10px; font-size: 12px; color: var(--muted); }
.rank-excl summary { cursor: pointer; }
.rank-excl ul { list-style: none; margin: 6px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.rank-excl li { display: grid; grid-template-columns: 1fr 58px 44px; gap: 8px; padding: 2px 0; break-inside: avoid; }
.rank-excl li span.n { text-align: right; font-variant-numeric: tabular-nums; }
.mult-badge { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: 6px;
  border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 10px; font-weight: 700; line-height: 1; vertical-align: 1px; cursor: help; }
.mult-serie-bar { position: sticky; top: calc(var(--toph, 52px) + var(--modelh, 56px)); z-index: 35; margin: 0 -16px 14px; padding: 8px 16px; background: var(--surface); }
.mult-serie { max-width: 900px; flex-wrap: wrap; }
@media (max-width: 700px) { .mult-serie.seg.models.big a { white-space: normal; flex: 1 1 calc(50% - 8px); } }
/* Serie delle multiple su una riga, M1… in verde; sul telefono due righe da tre allineate (utente 05/11/2026) */
.mult-sei.seg.models.big { display: grid; grid-template-columns: repeat(var(--nserie, 6), minmax(0, 1fr)); gap: 6px; max-width: none; }
.mult-sei.seg.models.big a { min-width: 0; padding: 6px 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mult-m { color: #2ecc71; font-weight: 800; margin-right: 3px; }
.seg.models.big a.on .mult-m { color: #0b6b33; }
@media (max-width: 700px) {
  .mult-sei.seg.models.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mult-sei.seg.models.big a { white-space: normal; font-size: 12px; padding: 5px 4px; line-height: 1.35; flex: none; }
}
/* Intestazione della tabella delle multiple ferma sotto la barra delle serie (utente 05/11/2026) */
@media (min-width: 1000px) {
  .stickwrap table.mult-table thead { top: calc(var(--toph, 52px) + var(--modelh, 56px) + var(--filth, 56px) + var(--multh, 52px)); }
}

/* Stato del sistema: scelta ultimi 10 / giorno del registro (20/10/2026) */
.health-days { margin: 0 0 10px; }
/* Pagina Multiple: barra dei concorsi ancorata sotto la barra dei modelli, selettore serie sotto di essa (richiesta utente 20/10/2026) */
.match-filters.pool-multiple { position: sticky; top: calc(var(--toph, 52px) + var(--modelh, 56px)); z-index: 36;
  background: var(--surface); margin: -18px -18px 0; padding: 12px 18px 10px; border-radius: 10px 10px 0 0; }
.match-filters.pool-multiple ~ .mult-serie-bar { top: calc(var(--toph, 52px) + var(--modelh, 56px) + var(--filth, 56px)); }
@media (max-width: 700px) { .pool-pick { margin-left: 0; } .seg.pools { display: flex; flex-wrap: wrap; } .seg.pools a { white-space: nowrap; } }
.kpi.s-opt { border-top-color: var(--accent); }
.kpi.s-vsp { border-top-color: var(--s-singola); }

/* Riduzione consigliata (21/10/2026): riquadro sotto i KPI dei concorsi, con il download delle colonne. */
.rid-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--s-singola); border-radius: 8px;
  padding: 10px 14px; margin: 0 0 14px; box-shadow: var(--shadow); }
.rid-head { margin-bottom: 6px; }
.rid-body { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: flex-start; }
.rid-main { display: grid; gap: 3px; min-width: 0; }
.rid-big { font-size: 1.15em; font-weight: 700; }
.rid-side { display: grid; gap: 4px; justify-items: end; text-align: right; }
.rid-side .btn { display: inline-block; background: #232d3e; color: #dfe6f1; border-radius: 6px; padding: 6px 12px; margin-top: 4px; }
.rid-side .btn:hover { filter: brightness(1.15); }
.rid-box .warn-txt { color: #e0a020; }
.rid-box p { margin: 6px 0 0; }
@media (max-width: 700px) { .rid-side { justify-items: start; text-align: left; } }
.rid-box .rid-warn{color:#e0a800;margin-top:4px}
.rid-box .rid-form{display:inline;margin:0}.rid-box .rid-form .btn{cursor:pointer;border:0;font:inherit;margin-bottom:4px}
.rid-det { margin-top: 8px; }
.rid-det summary { cursor: pointer; color: var(--accent); }
.rid-det-bar { margin: 8px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rid-det-bar input { width: 90px; }
.rid-det-t { border-collapse: collapse; font-size: 13px; }
.rid-det-t th, .rid-det-t td { padding: 3px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.rid-det-t td:nth-child(2) { text-align: left; }
.rid-det-t .rid-max { font-weight: 700; }
.rid-box .rid-esito { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.rid-box .rid-esito .pos { color: var(--ok); font-weight: 600; }
.rid-box .rid-esito .neg { color: var(--ko); font-weight: 600; }
.rid-box .rid-riep-link { float: right; color: var(--accent); }
.rid-riep { margin-top: 14px; }
.rid-riep .pos { color: var(--ok); } .rid-riep .neg { color: var(--ko); }
.rid-riep table { width: 100%; }
.rid-sel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 4px; }
.rid-sel .btn.on { background: var(--accent); color: #141414; }
.rid-sel .sep { width: 16px; }
.rid-riep tr.rid-att td { background: rgba(120, 160, 220, .12); }

/* Un modello alla volta (22/10/2026): riquadro del modello largo quanto il testo, pulsante Confronta modelli accanto. */
.modelbar .seg.models.big.one { width: auto; }
.modelbar .cmp-toggle { text-decoration: none; margin-left: 0; }
.modelbar .cmp-toggle + .stats-toggle { margin-left: auto; }
.modelbar .seg.models.big:not(.one) { width: auto; min-width: var(--ctlw); flex-shrink: 0; }
@media (max-width: 700px) { .modelbar .seg.models.big:not(.one) { min-width: 0; width: 100%; flex-shrink: 1; } .modelbar .seg.models.big:not(.one) .mlbl { display: none; } }
/* Tabella partite corta (22/10/2026): colonne avanzate nascoste finché non si chiedono. */
table.matches.compact .adv { display: none; }
.adv-bar { display: flex; justify-content: flex-end; margin: 6px 0; }
.adv-bar .colx-toggle { margin-left: 0; text-decoration: none; }
details.hist-det > summary.hist-sub { cursor: pointer; list-style: none; margin-bottom: 0; }
details.hist-det > summary.hist-sub::-webkit-details-marker { display: none; }
details.hist-det[open] > summary.hist-sub { margin-bottom: 8px; }
details.hist-det[open] > summary .chev { display: inline-block; transform: rotate(180deg); }
.mult-serie a.mult-arch { opacity: .6; font-style: italic; }
.mult-serie a.mult-arch.on { opacity: 1; }
.kpis.mult-kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.mult-kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis.mult-kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.help { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 10px; font-weight: 700; line-height: 1; color: var(--muted); text-decoration: none; vertical-align: 1px; text-transform: none; }
a.help:hover { color: var(--accent); text-decoration: none; }
a.help-nav { width: auto; height: auto; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; color: var(--head-text); opacity: .85; }
.legenda summary { cursor: pointer; list-style: none; margin: 8px 0; }
.legenda summary::-webkit-details-marker { display: none; }
.gloss dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 18px; margin: 0; }
.gloss dt { font-weight: 600; } .gloss dd { margin: 0; color: var(--muted); }
.gloss dt:target, .gloss dt:target + dd { color: var(--accent); }
@media (max-width: 600px) { .gloss dl { grid-template-columns: 1fr; gap: 2px; } .gloss dd { margin-bottom: 10px; } }

/* Filigrana per utente (22/10/2026): sopra a tutto, non blocca i clic. */
.filigrana { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background-repeat: repeat; }
@media print { .filigrana { position: fixed; } }

/* Utenti tracciati (22/10/2026): niente selezione del testo, niente stampa, pagina sfocata fuori fuoco. */
body.protetto { -webkit-user-select: none; user-select: none; }
body.protetto input, body.protetto select, body.protetto textarea { -webkit-user-select: text; user-select: text; }
body.protetto.sfocato > *:not(.filigrana) { visibility: hidden; }
body.protetto.oscurato > *:not(.filigrana) { visibility: hidden; }
/* 24/10/2026: pagina nascosta finché la protezione non è attiva (buco Ctrl+R + Stamp durante il ricaricamento). */
body.protetto.avvio > *:not(.filigrana), body.protetto.tenuto > *:not(.filigrana), body.protetto.fuori > *:not(.filigrana) { visibility: hidden; }
body.manomesso > *:not(.filigrana) { display: none !important; }
@media print { body.protetto > * { display: none !important; } body.protetto::after { content: "Stampa non consentita"; display: block; padding: 40px; font: 20px sans-serif; } }

/* Marcatori sotto il risultato (24/10/2026). */
.marcatori { margin: 6px 0 8px; line-height: 1.6; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 0 24px; }
.marc-sq { font-weight: 600; border-bottom: 1px solid var(--border, rgba(127,127,127,.3)); margin-bottom: 2px; }
.marc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marc-tipo { font-size: .85em; padding: 0 5px; border-radius: 3px; background: var(--chip, rgba(127,127,127,.18)); }
.marc-tipo.t-rigore { color: var(--accent); }
/* Concorsi: interruttore spunte Pronostico / Ottimizzata e colonna scelta evidenziata (utente 24/10/2026) */
.adv-bar.with-spunte { justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.spunte-bar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.spunte-bar .seg a { padding: 5px 12px; font-size: 13px; }
.spunte-bar .seg a.on { background: var(--accent); color: var(--add-fg); }
.matches td.col-sel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.matches thead th.col-sel { color: var(--head-text); background: color-mix(in srgb, var(--accent) 22%, var(--head)); }
.matches .col-sel-tag { display: block; font-size: 10px; font-weight: 600; color: var(--accent); margin-top: 2px; }
/* Riduzione in tabella (utente 24/10/2026): quota di colonne ridotte che hanno preso il segno */
.matches .rid-q { font-weight: 600; }
/* Concorsi, partita finita: segni non usciti sfumati, si vede a colpo d'occhio la combinazione vincente (utente 29/10/2026) */
table.matches.toto .pick.fin .o:not(.res) { opacity: .3; }   /* misure come la scritta base dell'Ottimizzata (utente 29/10/2026) */
.matches .rid-q.ok { color: var(--ok); }
.matches .rid-q.ko { color: var(--ko); }
.rid-box .rid-and:empty { display: none; }
/* Partita in una multipla aperta (pagina principale, 25/10/2026): M+numero, in verde con ⏱ se il prezzo è cambiato dopo la scelta. */
.mult-mark { cursor: help; font-size: 11px; font-weight: 600; padding: 0 4px; border-radius: 3px; border: 1px solid var(--muted); color: var(--muted); white-space: nowrap; }
/* Informazione diversa dall'update dopo la chiusura del concorso: verde, non giallo (utente 25/10/2026). */
.mult-mark.late { border-color: var(--ok); color: var(--ok); }
.mult-late { color: var(--ok); cursor: help; }
.live-head { margin: 4px 0 2px; }
/* Pagina partita, colonne avanzate: "Prob. norm." centrato sopra 1 X 2 (utente 25/10/2026). */
.np3 { display: flex; justify-content: center; gap: 0; }
.np3 span { width: 3.4em; text-align: center; }
.np-th > div:first-child { text-align: center; }

.rank-card .rank-open { display: none; }

/* Telefono (sotto 600 px): intestazione su due righe, filtri richiudibili, partite come schede. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  html, body { overflow-x: clip; } /* clip e non hidden: hidden rompe le barre fisse (sticky) */
  main { padding-left: 10px !important; padding-right: 10px !important; }
  header.top { flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px !important; }
  header.top .brand { order: 1; font-size: 17px; }
  header.top .prefs { order: 2; margin-left: auto; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; width: auto !important; flex: 0 1 auto !important; }
  header.top { align-items: center; }
  .match-filters .pool-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  header.top .ticker { order: 3; flex: 1 0 100%; max-width: 100%; font-size: 12px; }
  header.top .refresh-btn .lbl, header.top .help-nav { display: none; }
  header.top .refresh-btn { padding: 4px 8px; }
  header.top .usermenu summary > span:first-child { display: none; }
  .modelbar { gap: 6px; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; padding-left: 10px; padding-right: 10px; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  /* Statistiche aperte = vista a sé: sotto non compaiono filtri e partite (utente 26/10/2026). */
  body:has(#statistiche:not([hidden])) #partite { display: none; }

  /* Pagina partita sul telefono (utente 26/10/2026): pronostici, risultato, calendario, xG, notizie, formazioni e meteo; niente aggiornamenti dei prezzi. */
  .upd-card { display: none !important; }
  /* Al telefono nessuna fonte dati (utente 26/10/2026): via note sulle fonti, avvisi tecnici live, legenda e snapshot Oddschecker del ticker. */
  .live-error, .news-when, .cal-card > p.small.muted, details.legenda, .ticker .ti:has(> b) { display: none !important; }
  .lineup-ok { font-size: 0; } .lineup-ok::after { content: "✓"; font-size: 13px; }
  table.cal { font-size: 12.5px; }
  table.cal td:first-child .muted { display: none; } /* partite future senza orario: spazio per la competizione */
  table.cal th:nth-child(1) { width: 46px; } table.cal th:nth-child(2) { width: 17%; } table.cal th:nth-child(3) { width: 30px; } table.cal th:nth-child(5) { width: 56px; }
  table.cal th { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.cal.xg th:nth-child(6), table.cal.xg th:nth-child(7) { width: 36px; }
  table.cal td, table.cal th { padding: 5px 4px; }
  .head-preds { flex-wrap: wrap; gap: 6px; }
  .head-main > p.muted .small { display: none; } /* fonte del risultato */
  .match-top.ridotta > p:first-child, .match-top.ridotta .head-preds, .match-top.ridotta .head-main > p.muted { display: none; }
  .match-top.ridotta h1 { font-size: 18px; margin: 0; }
  .match-top.ridotta .live-head { margin: 2px 0 4px; }
  .match-top { margin-left: -10px !important; margin-right: -10px !important; padding-left: 10px !important; padding-right: 10px !important; }
  /* Al telefono solo le informazioni principali (utente 26/10/2026): via anche apertura/ultimo con probabilità, Exp e KL. */
  section.card:has(> .tablewrap > table:not([class])) { display: none; }
  .charts .card { padding-left: 12px; padding-right: 12px; }
  .rank-card .rank-open { display: inline-flex; gap: 6px; font-size: 14px; text-transform: none; letter-spacing: 0; }
  .rank-card .rank-title { display: none; }
  .rank-card h2 { margin: 0; }
  .rank-card.chiusa > :not(h2) { display: none !important; }
  .rank-card:not(.chiusa) h2 { margin-bottom: 14px; }
  .charts .rank-card.chiusa { padding-top: 12px; padding-bottom: 12px; background: transparent; border: 0; padding-left: 0; }
  .modelbar .stats-toggle { font-size: 13px; padding: 5px 9px; }
  .match-filters { padding: 10px !important; gap: 8px; }
  .match-filters .mrow { flex-wrap: wrap; gap: 6px; align-items: center; } /* flex, non grid: con grid Chrome cambia di 1-2 toni i bordi su PC */
  .match-filters .mrow > * { flex: 1 1 calc(50% - 3px); min-width: 0; }
  .match-filters .mrow label { display: flex; align-items: center; gap: 4px; font-size: 13px; }
  .match-filters .dp-text { width: 100%; min-width: 0; font-size: 14px; padding: 5px 6px; }
  .match-filters .comp-pick { grid-column: 1; }
  .match-filters .apply { grid-column: 2; }
  .match-filters .pool-pick { font-size: 13px; }
  .match-filters .seg.pools a { padding: 5px 8px; font-size: 13px; }
  #partite > .adv-bar:not(.with-spunte) { display: none; } #partite > .adv-bar.with-spunte .colx-toggle { display: none; } /* sul telefono le schede mostrano sempre tutto */

  .tablewrap:has(> table.matches.home) { overflow: visible !important; }
  table.matches.home, table.matches.home tbody { display: block; width: 100%; }
  table.matches.home thead { display: none; }
  table.matches.home tr {
    display: grid; grid-template-columns: 38px 38px 1fr 1fr 1fr auto;
    grid-template-areas: "team team team team score pick" "date time q1 qx q2 res";
    gap: 4px 6px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--border, #333);
  }
  table.matches.home td { display: block; min-width: 0; padding: 0 !important; border: 0 !important; background-clip: padding-box; }
  table.matches.home td:nth-child(3) a { overflow-wrap: anywhere; }
  table.matches.home td.adv { display: none !important; }
  table.matches.home td:nth-child(1) { grid-area: date; font-size: 12px; opacity: .75; }
  table.matches.home td:nth-child(2) { grid-area: time; font-size: 12px; opacity: .75; }
  table.matches.home td:nth-child(3) { grid-area: team; font-size: 15px; line-height: 1.25; }
  table.matches.home td:nth-child(3) .small { font-size: 11.5px; }
  table.matches.home td:nth-child(7) { grid-area: q1; }
  table.matches.home td:nth-child(8) { grid-area: qx; }
  table.matches.home td:nth-child(9) { grid-area: q2; }
  table.matches.home td:nth-child(7), table.matches.home td:nth-child(8), table.matches.home td:nth-child(9) {
    text-align: center; font-size: 14px; border-radius: 6px; padding: 3px 0 !important; white-space: nowrap; }
  table.matches.home td:nth-child(7)::before { content: "1 "; }
  table.matches.home td:nth-child(8)::before { content: "X "; }
  table.matches.home td:nth-child(9)::before { content: "2 "; }
  table.matches.home td:nth-child(7)::before, table.matches.home td:nth-child(8)::before, table.matches.home td:nth-child(9)::before { font-size: 10.5px; opacity: .55; }
  table.matches.home td:nth-child(15) { grid-area: pick; justify-self: end; text-align: right; font-size: 13px; letter-spacing: -.02em; }
  table.matches.home td:nth-child(15) .base { display: block; font-size: 10.5px; }
  table.matches.home td:nth-child(16) { grid-area: res; justify-self: end; font-size: 13px; }
  table.matches.home td:nth-child(17) { grid-area: score; justify-self: end; font-size: 13px; }

  /* Colonne avanzate sul telefono (utente 26/10/2026): apertura e ultime quote su due righe, H e Δ a destra sotto il pronostico, sempre visibili. */
  table.matches.home tr {
    grid-template-columns: 30px 1fr 1fr 1fr 74px;
    grid-template-areas: "team team team team pick" "la o1 ox o2 hh" "lc q1 qx q2 dd" "date time . score res";
  }
  table.matches.home tr::before { content: "Ap"; grid-area: la; font-size: 10.5px; opacity: .55; }
  table.matches.home tr::after { content: "Ult"; grid-area: lc; font-size: 10.5px; opacity: .55; }
  table.matches.home td.adv { display: block !important; font-size: 13px; text-align: center; white-space: nowrap; }
  table.matches.home td:nth-child(4) { grid-area: o1; } table.matches.home td:nth-child(5) { grid-area: ox; } table.matches.home td:nth-child(6) { grid-area: o2; }
  table.matches.home td:nth-child(4), table.matches.home td:nth-child(5), table.matches.home td:nth-child(6) { opacity: .8; }
  table.matches.home td:nth-child(10) { grid-area: hh; text-align: right; }
  table.matches.home td:nth-child(11) { grid-area: dd; text-align: right; border-radius: 6px; padding: 2px 3px !important; }
  table.matches.home td:nth-child(12), table.matches.home td:nth-child(13), table.matches.home td:nth-child(14) { display: none !important; }
  table.matches.home td:nth-child(10)::before { content: "H "; } table.matches.home td:nth-child(11)::before { content: "Δ "; }
  table.matches.home td:nth-child(7)::before, table.matches.home td:nth-child(8)::before, table.matches.home td:nth-child(9)::before { content: none; }
  table.matches.home td:nth-child(10)::before, table.matches.home td:nth-child(11)::before { font-size: 10px; opacity: .6; }
  table.matches.home td:nth-child(15) { min-width: max-content; }
  table.matches.home td:nth-child(16) { grid-area: res; }
  table.matches.home td:nth-child(17) { grid-area: score; }

  /* Utenti senza colonne avanzate: scheda di due righe (squadre e pronostico, data, ora e ultime quote). */
  table.matches.home.noadv tr { display: grid; grid-template-columns: 38px 38px 1fr 1fr 1fr auto; grid-template-areas: "team team team team team pick" "date time q1 qx q2 res" "score score score score score ."; }
  table.matches.home.noadv td:nth-child(17) { justify-self: start; }
  table.matches.home.noadv tr::before, table.matches.home.noadv tr::after { content: none; }
  table.matches.home.noadv td.adv { display: none !important; }
  table.matches.home.noadv td:nth-child(7)::before { content: "1 "; } table.matches.home.noadv td:nth-child(8)::before { content: "X "; } table.matches.home.noadv td:nth-child(9)::before { content: "2 "; }
  table.matches.home.noadv td:nth-child(7)::before, table.matches.home.noadv td:nth-child(8)::before, table.matches.home.noadv td:nth-child(9)::before { font-size: 10.5px; opacity: .55; }

  /* Totocalcio sul telefono: una scheda per partita (n., squadre, pronostico / prezzi alla chiusura, H, Ottimizzata / data, SR, prob., Δ / esito). */
  .tablewrap { max-width: 100%; overflow-x: auto; }
  .tablewrap:has(> table.matches.toto) { overflow: visible !important; }
  table.matches.toto, table.matches.toto tbody { display: block; width: 100%; }
  table.matches.toto thead { display: none; }
  table.matches.toto tr { display: grid; grid-template-columns: 30px 1fr 1fr 1fr 1fr auto; gap: 5px 6px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line);
    grid-template-areas: "num team team team team pick" "sel q1 qx q2 opt pr" "score score score dd res res"; }
  table.matches.toto tr.toto-grp { display: block; padding: 8px 4px; }
  table.matches.toto td:empty::before { content: none !important; }
  table.quin-cats th, table.quin-cats td { font-size: 11.5px; padding: 6px 4px !important; }
  table.quin-cats th { white-space: normal; }
  table.matches.toto td { display: block; min-width: 0; padding: 0 !important; border: 0 !important; }
  table.matches.toto td:nth-child(1) { grid-area: date; font-size: 12px; opacity: .75; } table.matches.toto td:nth-child(2) { grid-area: time; font-size: 12px; opacity: .75; }
  table.matches.toto td:nth-child(3) { grid-area: num; font-weight: 700; font-size: 15px; text-align: left; }
  table.matches.toto td:nth-child(4) { grid-area: team; font-size: 15px; line-height: 1.25; }
  table.matches.toto td:nth-child(5) { grid-area: q1; } table.matches.toto td:nth-child(6) { grid-area: qx; } table.matches.toto td:nth-child(7) { grid-area: q2; }
  table.matches.toto td:nth-child(5), table.matches.toto td:nth-child(6), table.matches.toto td:nth-child(7) { text-align: center; font-size: 14px; white-space: nowrap; border-radius: 6px; padding: 2px 0 !important; }
  table.matches.toto td:nth-child(5)::before { content: "1 "; } table.matches.toto td:nth-child(6)::before { content: "X "; } table.matches.toto td:nth-child(7)::before { content: "2 "; }
  table.matches.toto td:nth-child(8) { grid-area: hh; justify-self: end; font-size: 12.5px; white-space: nowrap; } table.matches.toto td:nth-child(8)::before { content: "H "; }
  table.matches.toto td:nth-child(9) { grid-area: dd; justify-self: end; font-size: 12.5px; white-space: nowrap; } table.matches.toto td:nth-child(9)::before { content: "Δ "; }
  table.matches.toto td:nth-child(10) { grid-area: sr; font-size: 12.5px; white-space: nowrap; } table.matches.toto td:nth-child(10)::before { content: "SR "; }
  table.matches.toto td:nth-child(11) { grid-area: pr; justify-self: end; font-size: 12.5px; white-space: nowrap; } table.matches.toto td:nth-child(11)::before { content: "Prob "; }
  table.matches.toto td:nth-child(5)::before, table.matches.toto td:nth-child(6)::before, table.matches.toto td:nth-child(7)::before, table.matches.toto td:nth-child(8)::before, table.matches.toto td:nth-child(9)::before, table.matches.toto td:nth-child(10)::before, table.matches.toto td:nth-child(11)::before { font-size: 10px; opacity: .6; }
  table.matches.toto td:nth-child(12) { grid-area: sel; text-align: center; }
  table.matches.toto td:nth-child(13) { grid-area: pick; justify-self: end; min-width: max-content; }
  table.matches.toto td:nth-child(14) { grid-area: opt; justify-self: end; min-width: max-content; font-size: 12px; }
  table.matches.toto td:nth-child(14)::before { content: "Ott. "; font-size: 10px; opacity: .6; }
  table.matches.toto td:nth-child(15) { grid-area: res; justify-self: end; } table.matches.toto td:nth-child(16) { grid-area: score; }
  table.matches.toto td .base, table.matches.toto td .rid-q { display: block; font-size: 10.5px; text-align: right; }
  /* niente Colonne avanzate sul telefono (utente 27/10): via il tasto e H/Δ nelle schede dei concorsi */
  .colx-toggle { display: none !important; } table.matches.toto td.adv { display: none !important; }
  /* concorsi (utente 27/10): una sola colonna pronostico, quella scelta con "Spunte su"; ora accanto alla data; niente SR */
  table.matches.toto:has(td.col-sel) td.pickcell:not(.col-sel):is([data-lv$="p"], [data-lv$="o"]) { display: none !important; }
  table.matches.toto td.col-sel[data-lv$="o"] { grid-area: pick !important; font-size: inherit; } table.matches.toto td[data-lv$="o"]::before { content: none !important; }
  table.matches.toto:not(:has(td[data-lv^="q"])) td.col-sel[data-lv$="d"] { grid-area: pick !important; justify-self: end; min-width: max-content; } /* spunte su Ridotta (utente 29/10) */
  /* data e ora sulla riga della competizione, a sinistra prima del nome (utente 27/10) */
  table.matches.toto tr:not(.toto-grp) > td:nth-child(1) { grid-area: team !important; align-self: end; justify-self: start; }
  table.matches.toto tr:not(.toto-grp) > td:nth-child(2) { display: none !important; } /* ora solo nella pagina partita (utente 27/10) */
  table.matches.toto tr:not(.toto-grp) > td:nth-child(1) { color: var(--muted); opacity: 1 !important; }
  table.matches.toto tr:not(.toto-grp) > td.team { align-self: end; }
  table.matches.toto tr:not(.toto-grp) > td:nth-child(1), table.matches.toto tr:not(.toto-grp) > td:nth-child(2) { line-height: 1.25; font-size: 12px !important; }
  table.matches.toto td.team > div.muted.small { padding-left: 40px; }
  table.matches.toto td.team:not(:has(a)) { padding-bottom: 16px !important; }
  table.matches.toto td[data-lv$="p"] ~ td:nth-child(10), table.matches.toto td:nth-child(10) { align-self: center; }
  table.matches.toto:not(:has(td[data-lv^="q"])) td:nth-child(10) { display: none !important; }
  /* concorsi (utente 27/10): Montepremi a sinistra alto due righe, a destra Il nostro sistema e sotto la Schedina ottimizzata */
  section.kpis:has(> .kpi.s-opt) { grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; }
  section.kpis:has(> .kpi.s-opt) > .kpi:first-child { grid-row: span 2; grid-column: 1; }
  section.kpis:has(> .kpi.s-opt) > .kpi { padding: 10px 12px; }
  section.kpis:has(> .kpi.s-opt) .val { font-size: 19px !important; white-space: nowrap; }
  section.kpis:has(> .kpi.s-opt) .lbl { font-size: 11px; }
  section.kpis:has(> .kpi.s-opt) .sub { font-size: 11.5px; }
  /* Quiniela (utente 27/10): % pubblico incolonnate sotto le quote, etichette 1 X 2 solo sulle quote */
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) > td:is(:nth-child(5), :nth-child(6), :nth-child(7)), table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) > td:is(:nth-child(11), :nth-child(12), :nth-child(13)):not([data-lv]) { text-align: left !important; padding-left: 6px !important; justify-self: stretch !important; }
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) > td:is(:nth-child(5), :nth-child(6), :nth-child(7))::before, table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) > td:is(:nth-child(11), :nth-child(12), :nth-child(13)):not([data-lv])::before { display: inline-block; width: 11px; }
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) > td:is(:nth-child(11), :nth-child(12), :nth-child(13)):not([data-lv])::before { color: transparent; }
  /* concorsi (utente 27/10): niente scritte "base" e "senza modello", bastano i colori (azzurro = esito aggiunto, giallo = senza modello) */
  table.matches.toto td .base, table.matches.toto .nomodel-lbl { display: none !important; }
  table.matches.toto td.pickcell { align-self: center; }
  table.matches.toto:has(td[data-lv^="q"]) tr:has(> td.quin-pub15) > td:nth-child(10) { grid-area: auto !important; grid-row: 2 !important; grid-column: 6 !important; }
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) > td.quin-pub15 { grid-column: 2 / -1 !important; text-align: left !important; padding-left: 0 !important; justify-self: stretch !important; font-size: 12.5px; line-height: 1.5; }
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) > td.quin-pub15::before { content: none !important; }
  table.matches.toto:has(td[data-lv^="q"]) tr:has(> td.quin-pub15)::before { content: "Pubbl." !important; grid-row: 3; grid-column: 1; align-self: center; }
  /* concorsi sul telefono (utente 27/10): niente storico concorsi per nessuno, didascalie ridotte al minimo */
  .hist-head, .hist-grid, .hist-grid ~ p.muted.small { display: none !important; }
  body:has(table.matches.toto) main p.muted.small, body:has(table.matches.toto) .rid-head > .muted.small, table.matches.toto tr.toto-grp .muted.small { display: none !important; }
  /* nessuna tabella che scorre di lato sul telefono (utente 27/10): premi Toto/Quiniela a schede, indicatori Multiple in due righe */
  .tablewrap:has(> table.toto-premi), .tablewrap:has(> table.quin-cats), .tablewrap:has(> table.met-table) { overflow: visible !important; }
  table.toto-premi, table.toto-premi tbody, table.quin-cats, table.quin-cats tbody, table.met-table, table.met-table tbody { display: block; width: 100%; }
  table.toto-premi thead, table.quin-cats thead, table.met-table thead { display: none; }
  table.toto-premi tr, table.quin-cats tr { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
  table.toto-premi td, table.quin-cats td { display: flex; justify-content: space-between; gap: 6px; padding: 0 !important; border: 0 !important; font-size: 12.5px; white-space: nowrap; }
  table.toto-premi td:first-child, table.quin-cats td:first-child { grid-column: 1 / -1; font-weight: 600; font-size: 14px; white-space: normal; }
  table.toto-premi td:empty, table.quin-cats td:empty { display: none; }
  table.toto-premi td::before, table.quin-cats td::before { color: var(--muted); font-size: 11px; }
  table.toto-premi td:nth-child(2)::before { content: "Indovinare"; }
  table.toto-premi td:nth-child(3)::before { content: "Giocato"; }
  table.toto-premi td:nth-child(4)::before { content: "Montepremi"; }
  table.toto-premi td:nth-child(5)::before { content: "Jackpot"; }
  table.toto-premi td:nth-child(6)::before { content: "Totale"; }
  table.toto-premi td:nth-child(7)::before { content: "Vincenti"; }
  table.toto-premi td:nth-child(8)::before { content: "Premio"; }
  table.quin-cats td:nth-child(2)::before { content: "Quota"; }
  table.quin-cats td:nth-child(3)::before { content: "Jackpot"; }
  table.quin-cats td:nth-child(4)::before { content: "Montepremi"; }
  table.quin-cats td:nth-child(5)::before { content: "Vincitori"; }
  table.quin-cats td:nth-child(6)::before { content: "Premio"; }
  table.quin-cats td:nth-child(7)::before { content: "Tipico"; }
  html[lang=en-GB] table.toto-premi td:nth-child(2)::before { content: "Correct"; }
  html[lang=en-GB] table.toto-premi td:nth-child(3)::before { content: "Played"; }
  html[lang=en-GB] table.toto-premi td:nth-child(4)::before { content: "Pool"; }
  html[lang=en-GB] table.toto-premi td:nth-child(5)::before { content: "Jackpot"; }
  html[lang=en-GB] table.toto-premi td:nth-child(6)::before { content: "Total"; }
  html[lang=en-GB] table.toto-premi td:nth-child(7)::before { content: "Winners"; }
  html[lang=en-GB] table.toto-premi td:nth-child(8)::before { content: "Prize"; }
  html[lang=en-GB] table.quin-cats td:nth-child(2)::before { content: "Share"; }
  html[lang=en-GB] table.quin-cats td:nth-child(3)::before { content: "Jackpot"; }
  html[lang=en-GB] table.quin-cats td:nth-child(4)::before { content: "Pool"; }
  html[lang=en-GB] table.quin-cats td:nth-child(5)::before { content: "Winners"; }
  html[lang=en-GB] table.quin-cats td:nth-child(6)::before { content: "Prize"; }
  html[lang=en-GB] table.quin-cats td:nth-child(7)::before { content: "Typical"; }
  table.toto-premi tr.hist-cur { background: var(--raised); border-radius: 6px; } table.toto-premi tr.hist-cur td { background: transparent !important; }
  table.met-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
  table.met-table td { display: block; padding: 0 !important; border: 0 !important; }
  table.met-table td:nth-child(1) { font-weight: 600; } table.met-table td:nth-child(2) { text-align: right; white-space: nowrap; }
  table.met-table td:nth-child(3) { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
  pre { white-space: pre-wrap; word-break: break-word; }
  .met-full { display: none !important; } .met-short { display: inline !important; }
  /* Multiple NON visibili dal telefono (utente 27/10): ancora in simulazione e paper trading; da rimettere se e quando andranno in produzione */
  /* 08/11/2026: tolto il blocco, la linguetta era già visibile e la pagina restava vuota; le Multiple ora si vedono anche dal telefono */
  /* nessun riferimento allo scraper sul telefono (utente 27/10) */
  .cita-fonte, table.matches.toto td.team:not(:has(a)) > div.muted.small { display: none !important; }
  /* Multiple: registro a schede (testata #n + stato, riepilogo, una riga per gamba) */
  .tablewrap:has(> table.mult-table) { overflow: visible !important; }
  table.mult-table, table.mult-table tbody { display: block; width: 100%; } table.mult-table thead { display: none; }
  table.mult-table > tbody > tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; padding: 6px 4px; }
  table.mult-table > tbody > tr.mult-first { border-top: 2px solid var(--line); padding-top: 10px; margin-top: 4px; }
  table.mult-table > tbody > tr > td { display: block; padding: 0 !important; border: 0 !important; text-align: left; }
  table.mult-table > tbody > tr > td:first-child[rowspan] { order: 0; flex: 1 1 auto; font-size: 15px; }
  table.mult-table > tbody > tr > td:has(.mult-pill) { order: 1; margin-left: auto; }
  table.mult-table > tbody > tr.mult-first:not(.mult-none-row)::before { content: ""; order: 2; flex-basis: 100%; height: 0; }
  table.mult-table td[data-lv] ~ td:not(:has(.mult-pill)) { order: 3; font-size: 12.5px; white-space: nowrap; }
  table.mult-table td[data-lv] ~ td::before, table.mult-table td.team + td + td::before { font-size: 10px; opacity: .6; }
  table.mult-table > tbody > tr > td:has(+ td.team) { order: 5; flex-basis: 100%; font-size: 12px; opacity: .75; }
  table.mult-table td.team { order: 6; flex-basis: 100%; font-size: 14.5px; }
  table.mult-table td.team + td { order: 7; } table.mult-table td.team + td + td { order: 8; } table.mult-table td.team + td + td::before { content: "quota "; }
  table.mult-table td.team + td + td + td:not([data-lv]) { order: 9; } table.mult-table td.team + td + td + td:not([data-lv])::before { content: "Exp "; font-size: 10px; opacity: .6; }
  table.mult-table td[data-lv] { order: 10; margin-left: auto; }
  table.mult-table td.team ~ td { font-size: 13px; }
  table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(8)::before { content: "Exp "; } table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(9)::before { content: "Puntata "; }
  table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(10)::before { content: "Quota "; } table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(12)::before { content: "Vincita "; }
  table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(13)::before { content: "Bankroll dopo "; }
  table.mult-table:not(:has(thead th:nth-child(13))) td[data-lv] ~ td:nth-child(7)::before { content: "Quota "; }
  html[lang=en-GB] table.mult-table td.team + td + td::before { content: "odds "; } html[lang=en-GB] table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(9)::before { content: "Stake "; }
  html[lang=en-GB] table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(10)::before, html[lang=en-GB] table.mult-table:not(:has(thead th:nth-child(13))) td[data-lv] ~ td:nth-child(7)::before { content: "Odds "; }
  html[lang=en-GB] table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(12)::before { content: "Payout "; } html[lang=en-GB] table.mult-table:has(thead th:nth-child(13)) td[data-lv] ~ td:nth-child(13)::before { content: "Bankroll after "; }
  table.mult-table tr.mult-none-row > td:first-child { flex-basis: 100%; }
  table.mult-table table.mult-vuoto-tab { display: table; font-size: 12px; }
  /* Quiniela: stesse schede, colonne diverse (pubblico %, niente SR/selezione) */
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) { grid-template-areas: "num team team team team pick" "sel q1 qx q2 opt rid" "pl2 p1 px p2 . pr" "score score score dd res res"; }
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp)::before { content: "Pubbl."; grid-area: pl2; font-size: 10px; opacity: .6; }
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp):not(:has(td:nth-child(13):not([data-lv])))::before { content: none; }
  table.matches.toto:has(td[data-lv^="q"]) td:nth-child(10) { grid-area: pr; justify-self: end; } table.matches.toto:has(td[data-lv^="q"]) td:nth-child(10)::before { content: "Prob "; }
  table.matches.toto:has(td[data-lv^="q"]) td:nth-child(11):not([data-lv]) { grid-area: p1; } table.matches.toto:has(td[data-lv^="q"]) td:nth-child(12):not([data-lv]) { grid-area: px; } table.matches.toto:has(td[data-lv^="q"]) td:nth-child(13):not([data-lv]) { grid-area: p2; }
  table.matches.toto:has(td[data-lv^="q"]) td:nth-child(n+11):not([data-lv]) { text-align: center; font-size: 12.5px; white-space: nowrap; }
  table.matches.toto:has(td[data-lv^="q"]) td:nth-child(11):not([data-lv])::before { content: "1 "; } table.matches.toto:has(td[data-lv^="q"]) td:nth-child(12):not([data-lv])::before { content: "X "; } table.matches.toto:has(td[data-lv^="q"]) td:nth-child(13):not([data-lv])::before { content: "2 "; }
  table.matches.toto:has(td[data-lv^="q"]) td:nth-child(n+11):not([data-lv])::before { font-size: 10px; opacity: .6; }
  table.matches.toto:has(td[data-lv^="q"]) td.quin-pub15 { grid-area: auto !important; grid-column: 1 / -1 !important; grid-row: 3 !important; text-align: left !important; white-space: normal !important; }
  table.matches.toto:has(td[data-lv^="q"]) td.quin-pub15::before { content: "Pubblico · " !important; }
  table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="p"] { grid-area: pick; justify-self: end; min-width: max-content; text-align: right; }
  table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="o"] { grid-area: opt; justify-self: end; min-width: max-content; font-size: 12px; text-align: right; }
  table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="o"]::before { content: "Ott. "; font-size: 10px; opacity: .6; }
  table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="d"] { grid-area: rid; justify-self: end; min-width: max-content; }
  table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="r"] { grid-area: res; justify-self: end; text-align: right; } table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="s"] { grid-area: score; text-align: left; }
  table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="p"]::before, table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="r"]::before, table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="s"]::before, table.matches.toto:has(td[data-lv^="q"]) td[data-lv$="d"]::before { content: none; }
}

/* Telefoni stretti (schermo esterno Flip 6/7, 360px; utente 27/10/2026): calendario e date più compatti */
@media (max-width: 380px) {
  table.cal { font-size: 11.5px; }
  table.cal td, table.cal th { padding: 4px 2px; }
  table.cal th:nth-child(1) { width: 38px; } table.cal th:nth-child(2) { width: 14%; } table.cal th:nth-child(3) { width: 20px; } table.cal th:nth-child(5) { width: 44px; }
  table.cal.xg th:nth-child(6), table.cal.xg th:nth-child(7) { width: 30px; }
  form.filters .dp-text { font-size: 13.5px; padding-left: 5px !important; padding-right: 3px !important; min-width: 0; width: 100%; box-sizing: border-box; }
}

/* Colonne in corsa (28/10/2026) */
.cr-sub{margin:-4px 0 8px}
.cr-metodo{margin:8px 0 4px;max-width:860px;white-space:normal}
.cr-metodo summary{cursor:pointer;display:inline-block}
.cr-metodo ol{margin:6px 0 0 18px;padding:0}
.cr-metodo li{margin:3px 0}
/* Telefono (utente 28/10/2026): niente menu tenendo premuto un link o un'immagine (iPhone). Solo sui telefoni, il PC resta identico. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  body.protetto, body.protetto a, body.protetto img { -webkit-touch-callout: none; }
  body.protetto.sfondo > *:not(.filigrana) { visibility: hidden; }
  /* Telefono in inglese (utente 28/10/2026): etichette delle schede in inglese come sul PC. */
  html[lang=en-GB] table.matches.home tr::before { content: "SP"; }
  html[lang=en-GB] table.matches.home tr::after { content: "LP"; }
  html[lang=en-GB] table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp)::before { content: "Public"; }
  html[lang=en-GB] table.matches.toto:has(td[data-lv^="q"]) tr:has(> td.quin-pub15)::before { content: "Public" !important; }
  html[lang=en-GB] table.matches.toto:has(td[data-lv^="q"]) td.quin-pub15::before { content: "Public · " !important; }
}

/* Colonne in corsa su telefono (28/10/2026): etichette proprie al posto di quelle delle categorie di premio; righe di
   spiegazione visibili (le altre note dei concorsi restano nascoste). Solo regole aggiuntive, il web non cambia. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  body:has(table.matches.toto) main p.muted.small.cr-sub, body:has(table.matches.toto) main p.muted.small.cr-nota { display: block !important; }
  .cr-metodo ol { margin-left: 16px; }
  table.cr-quin td:nth-child(2)::before { content: "Ancora vive"; }
  table.cr-quin td:nth-child(3)::before { content: "Vincitori attesi"; }
  table.cr-quin td:nth-child(4)::before { content: "Forbice 80%"; }
  table.cr-quin td:nth-child(5)::before { content: "Alla Losilla"; }
  table.cr-quin td:nth-child(6)::before { content: "Vincitori reali"; }
  table.cr-toto td:nth-child(2)::before { content: "Colonne giocate"; }
  table.cr-toto td:nth-child(3)::before { content: "Ancora vive"; }
  table.cr-toto td:nth-child(4)::before { content: "Vincitori attesi"; }
  table.cr-toto td:nth-child(5)::before { content: "Forbice 80%"; }
  table.cr-toto td:nth-child(6)::before { content: "Nessun vincitore"; }
  table.cr-toto td:nth-child(7)::before { content: "Vincitori reali"; }
  html[lang=en-GB] table.cr-quin td:nth-child(2)::before, html[lang=en-GB] table.cr-toto td:nth-child(3)::before { content: "Still alive"; }
  html[lang=en-GB] table.cr-quin td:nth-child(3)::before, html[lang=en-GB] table.cr-toto td:nth-child(4)::before { content: "Expected winners"; }
  html[lang=en-GB] table.cr-quin td:nth-child(4)::before, html[lang=en-GB] table.cr-toto td:nth-child(5)::before { content: "80% range"; }
  html[lang=en-GB] table.cr-quin td:nth-child(5)::before { content: "Losilla-style"; }
  html[lang=en-GB] table.cr-quin td:nth-child(6)::before, html[lang=en-GB] table.cr-toto td:nth-child(7)::before { content: "Actual winners"; }
  html[lang=en-GB] table.cr-toto td:nth-child(2)::before { content: "Columns played"; }
  html[lang=en-GB] table.cr-toto td:nth-child(6)::before { content: "No winner"; }
}

/* Telefono (utente 29/10/2026): etichette corte, bandiere dei concorsi, calendario "al", intestazione partita compatta,
   testata e riquadri dei concorsi su una riga, riduzione sintetica. Solo sui telefoni: il PC resta identico. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  /* Modelli sempre abbreviati, "Modelli" e "Stats e grafici" sulla stessa riga */
  .modelbar { flex-wrap: nowrap; }
  .modelbar .seg.models.big.one { width: auto; flex: none; }
  .modelbar .seg.models.big.one a { font-size: 0; padding: 5px 8px; }
  .modelbar .seg.models.big.one a .model-tag { font-size: 13px; margin: 0; }
  .modelbar .seg.models.big:not(.one) { width: auto; flex: 0 1 auto; }
  .modelbar .stats-toggle { white-space: nowrap; flex: none; }
  .modelbar .cmp-toggle, .modelbar #statsToggle .lbl { font-size: 0; }
  .modelbar .cmp-toggle::before { content: "Modelli "; font-size: 13px; }
  .modelbar #statsToggle .lbl::before { content: "Stats e grafici"; font-size: 13px; }
  html[lang=en-GB] .modelbar .cmp-toggle::before { content: "Models "; }
  html[lang=en-GB] .modelbar #statsToggle .lbl::before { content: "Stats & Charts"; }
  .modelbar .cmp-toggle .chev, .modelbar #statsToggle .chev { font-size: 13px; }
  .modelbar .cmp-toggle + .stats-toggle { margin-left: auto; }
  /* Con "Modelli" aperto (utente 29/10/2026): i tre modelli, "Modelli" e "Stats" stretti sulla stessa riga */
  .modelbar { gap: 4px; }
  .modelbar .seg.models.big:not(.one) { flex: none; min-width: 0; width: auto; gap: 4px; }
  .modelbar .seg.models.big:not(.one) a { flex: none; padding: 4px 3px; font-size: 0; }
  .modelbar .seg.models.big:not(.one) a .model-tag { font-size: 12.5px; margin: 0; padding: 0 3px; }
  .modelbar:has(.seg.models.big:not(.one)) .stats-toggle { padding: 4px 6px; }
  .modelbar:has(.seg.models.big:not(.one)) .cmp-toggle::before, .modelbar:has(.seg.models.big:not(.one)) #statsToggle .lbl::before, .modelbar:has(.seg.models.big:not(.one)) .stats-toggle .chev { font-size: 12.5px; }
  /* Calendario del secondo campo data ("Al"): si apre verso sinistra, dentro lo schermo */
  form.filters label:nth-of-type(2) .dp-pop { left: auto; right: 0; }
  /* "Campionati" e "Applica" larghi uguali sulla stessa riga */
  .match-filters .mrow > details.comp-pick, .match-filters .mrow > button.apply { flex: 1 1 0; min-width: 0; }
  .match-filters .mrow > details.comp-pick > summary { width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
  form.filters details.comp-pick > summary[title=""] { font-size: 0; }
  form.filters details.comp-pick > summary[title=""]::before { content: "Campionati"; font-size: 13.5px; }
  html[lang=en-GB] form.filters details.comp-pick > summary[title=""]::before { content: "Leagues"; }
  form.filters details.comp-pick > summary[title=""] > span { font-size: 13.5px; margin-left: 4px; }
  /* Concorsi solo con le bandiere: Mondo, Italia, Spagna, Svezia */
  .match-filters .seg.pools a { font-size: 0; gap: 0; padding: 6px 12px; }
  .match-filters .seg.pools a:not(:has(.cp-flag))::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 3.5px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%228.5%22%20fill%3D%22%231E88E5%22/%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.2%22%3E%3Cellipse%20cx%3D%2210%22%20cy%3D%2210%22%20rx%3D%223.8%22%20ry%3D%228.5%22/%3E%3Cpath%20d%3D%22M1.5%2010h17M3%205.5h14M3%2014.5h14%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
  /* Pagina partita: in alto restano solo nome e previsioni dei tre modelli su una riga; "Indietro" e la riga
     competizione/data scorrono via sotto l'intestazione del sito (niente cambi di altezza, niente sfarfallio) */
  .match-top { display: flex; flex-direction: column; top: calc(var(--toph, 52px) - 52px); padding-top: 8px !important; }
  .match-top > p:first-child { order: 1; height: 20px; margin: 0 0 4px; line-height: 20px; }
  .match-top .head, .match-top .head-main { display: contents; }
  .match-top .head-main > p.muted { order: 2; height: 20px; margin: 0 0 6px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .match-top h1 { order: 3; font-size: 19px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .match-top .head-main > * { order: 4; }
  .match-top .head-preds { order: 5; display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 6px; }
  .match-top .head-preds .kpi.mini { display: flex; align-items: center; gap: 6px; padding: 3px 8px; min-width: 0; flex: 1 1 0; justify-content: center; }
  .match-top .head-preds .kpi.mini .lbl { margin: 0; font-size: 12px; }
  .match-top .head-preds .kpi.mini .val { margin: 0; font-size: 14px; }
  .match-top .head-preds .kpi.mini .sub { display: none; }
  /* Prova 13/11/2026: con triple e "base" i tre riquadri si sovrapponevano. Sigla sopra, segni sotto centrati con
     caselle più strette, "base" su una riga sua: le tre caselle stanno dentro anche a 360 px con tre triple. */
  .match-top .head-preds .kpi.mini { flex-direction: column; gap: 2px; padding: 4px 4px 5px; overflow: hidden; }
  .match-top .head-preds .kpi.mini .val { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; line-height: 1.15; }
  .match-top .head-preds .kpi.mini .pick { gap: 2px; }
  .match-top .head-preds .kpi.mini .pick .o { min-width: 18px; padding: 1px 3px; font-size: 13px; }
  .match-top .head-preds .kpi.mini .base { display: block; font-size: 11px; line-height: 1.2; white-space: nowrap; }
  .upd-card .card-head { top: calc(var(--toph, 52px) + var(--matchh, 90px) - 52px); }
  #upd thead { top: calc(var(--toph, 52px) + var(--matchh, 90px) - 52px + var(--updh, 56px)); }
  /* Concorsi: riquadri con un nome corto e solo il valore */
  #partite section.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #partite section.kpis > .kpi { grid-row: auto !important; grid-column: auto !important; padding: 8px 10px; }
  #partite section.kpis > .kpi .sub { display: none; }
  #partite section.kpis > .kpi .lbl { font-size: 0; }
  #partite section.kpis > .kpi .lbl::before { font-size: 12px; }
  #partite section.kpis > .kpi.s-singola .lbl::before { content: "Montepremi"; }
  #partite section.kpis > .kpi.s-doppia .lbl::before { content: "Modello"; }
  #partite section.kpis > .kpi.s-opt .lbl::before { content: "Ottimizzata"; }
  #partite section.kpis > .kpi.s-vsp .lbl::before { content: "Vs pubblico"; }
  #partite section.kpis > .kpi:not([class*="s-"]) .lbl::before { content: "Presi"; }
  html[lang=en-GB] #partite section.kpis > .kpi.s-singola .lbl::before { content: "Prize"; }
  html[lang=en-GB] #partite section.kpis > .kpi.s-doppia .lbl::before { content: "Model"; }
  html[lang=en-GB] #partite section.kpis > .kpi.s-opt .lbl::before { content: "Optimised"; }
  html[lang=en-GB] #partite section.kpis > .kpi.s-vsp .lbl::before { content: "Vs public"; }
  html[lang=en-GB] #partite section.kpis > .kpi:not([class*="s-"]) .lbl::before { content: "Hits"; }
  /* Testata del concorso: titolo corto e chiusura su una riga ciascuno (testi messi dallo script del telefono) */
  .toto-head .pool-links { display: none; }
  .toto-head h3.tel-corto { font-size: 17px; margin: 0 0 2px; white-space: nowrap; }
  /* Riduzione consigliata in sintesi: righe da giocare, costo e ritorno, Pleno; pulsanti affiancati */
  #rid .rid-main > div:nth-child(2):not(.rid-big):not([title]) { display: none; }
  #rid .rid-side > div { display: none; }
  #rid .rid-side { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  #rid .rid-side .rid-form { margin: 0; }
  #rid > p.muted.small { display: none; }
  #rid .rid-side .btn { margin: 0; }
  /* "Spunte su" tolto (utente 30/10/2026): restano le tre opzioni, centrate */
  .adv-bar.with-spunte { justify-content: center; }
  .spunte-bar > .muted { display: none; }
  .spunte-bar { justify-content: center; }
  /* Nomi lunghi nelle schede dei concorsi (360 px): tagliati con i puntini invece di finire sotto i segni */
  table.matches.toto td.team > a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Concorsi: delle colonne Pronostico / Ottimizzata / Ridotta si vede solo quella scelta con "Spunte su" (regola telefono 26/10) */
  table.matches.toto:has(td.col-sel) td.pickcell:not(.col-sel)[data-lv$="d"] { display: none !important; }
  table.matches.toto td.col-sel[data-lv$="d"] { grid-area: pick !important; justify-self: end; min-width: max-content; }
  .toto-head .card-head { flex-wrap: wrap; gap: 6px; }
  .toto-head .card-head > div:first-child { min-width: 0; flex: 1 1 auto; }
  .toto-head .card-head > form { margin-left: auto; }
}

/* Filtro stato partite (utente 02/11/2026) */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c4321f; margin-right: 6px; vertical-align: 1px; }
.stato-bar .seg a .n { font-size: 11px; color: var(--muted); margin-left: 2px; }
.stato-bar .seg a.on .n { color: inherit; opacity: .8; }
.stato-bar .seg a.vuoto { opacity: .45; }
table.matches tr[hidden] { display: none !important; }
.stato-bar .lbl-c { display: none; }
/* Telefono (utente 03/11/2026): filtro stato su una riga, nomi corti, numero accanto al nome */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  .stato-bar { display: flex; width: 100%; }
  .stato-bar .seg { display: flex; width: 100%; }
  .stato-bar .seg a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; white-space: nowrap; font-size: 13px; }
  .stato-bar .seg a .n { margin-left: 0; }
  .stato-bar .seg a .live-dot { width: 6px; height: 6px; margin-right: 1px; vertical-align: 0; }
  .stato-bar .lbl { display: none; } .stato-bar .lbl-c { display: inline; }
  /* Riga di solo messaggio (nessuna partita, filtro vuoto): niente scheda né etichette Ap/Ult (utente 03/11/2026) */
  table.matches.home tr:has(> td[colspan]) { display: block; padding: 14px 4px; }
  table.matches.home tr:has(> td[colspan])::before, table.matches.home tr:has(> td[colspan])::after { content: none; }
  table.matches.home tr > td[colspan] { font-size: 14px; opacity: 1; text-align: center; }
}

/* Stryktipset ed Europatipset sul telefono (03/11/2026): solo regole aggiuntive, il web non cambia. Euro sotto le corone
   (piccolo e grigio, come le altre sottoetichette), etichette proprie delle schede, lettera S / E accanto alle due
   bandiere svedesi per distinguere i concorsi. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  table.svs-cats td { flex-wrap: wrap; }
  table.svs-cats .svs-eur { flex-basis: 100%; text-align: right; font-size: 11px; color: var(--muted); }
  table.svs-cats td:nth-child(3)::before { content: "Riporto"; }
  html[lang=en-GB] table.svs-cats td:nth-child(3)::before { content: "Carry-over"; }
  table.cr-svs td:nth-child(5)::before { content: "Indipendenti"; }
  html[lang=en-GB] table.cr-svs td:nth-child(5)::before { content: "Independent"; }
  .match-filters .seg.pools a[href*="pool=stryktipset"]::after, .match-filters .seg.pools a[href*="pool=europatipset"]::after {
    font-size: 11px; font-weight: 700; margin-left: 3px; line-height: 1; }
  .match-filters .seg.pools a[href*="pool=stryktipset"]::after { content: "S"; }
  .match-filters .seg.pools a[href*="pool=europatipset"]::after { content: "E"; }
}

/* Condizioni alla Happysoft (utente 03/11/2026): riquadro a tendina sotto la riduzione consigliata */
.cond-box { border-left-color: #e0a020; margin-top: 10px; }
.cond-box > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cond-box > summary::-webkit-details-marker { display: none; }
.cond-box > summary .chev { margin-left: auto; color: var(--muted); }
.cond-box[open] > summary .chev { transform: rotate(180deg); }
.cond-body { margin-top: 8px; }
.cond-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.cond-seg label { padding: 5px 11px; color: var(--muted); cursor: pointer; }
.cond-seg label.on { background: var(--head); color: var(--head-text); }
.cond-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.cond-tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.cond-tot .kpi { padding: 8px 10px; }
.cond-tot .kpi .val { font-size: 20px; }
.cond-list { border-top: 1px solid var(--line); }
.cond-row { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.cond-top { display: grid; grid-template-columns: 34px minmax(150px, 1fr) minmax(260px, 2.4fr) minmax(110px, auto) 28px; gap: 8px 12px; align-items: center; }
.cond-strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 2px 46px; }
.cs-lab, .cs-cell { display: grid; grid-template-rows: 16px 22px auto; gap: 3px; justify-items: center; align-items: start; min-width: 60px;
  padding: 3px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.cs-lab { border-color: transparent; background: transparent; justify-items: end; min-width: 0; font-size: 11px; color: var(--muted); padding-right: 6px; }
.cs-lab .cs-n, .cs-lab .cs-base, .cs-lab .cs-ctl { font-size: 11px; color: var(--muted); align-self: center; }
.cs-cell.cs-off { opacity: .45; }
.cs-n { font-size: 11px; color: var(--muted); }
.cs-base .sg, .cs-ctl .sgp span { display: inline-block; min-width: 14px; text-align: center; border: 1px solid var(--line); border-radius: 4px; padding: 1px 3px; margin: 0 1px; font-size: 11px; color: var(--muted); }
.cs-base .sg.on { background: var(--head); color: var(--head-text); border-color: var(--raised); }
.cs-base .sg.hl { outline: 2px solid var(--s-singola); }
.cs-ctl { display: grid; justify-items: center; gap: 3px; }
.cs-ctl .sgp { cursor: pointer; }
.cs-ctl .sgp input, .cs-chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.cs-ctl .sgp input:checked + span { background: #5a4610; color: #fff; border-color: #e0a020; font-weight: 700; }
.cs-ctl .sgp.dim span { opacity: .4; }
.cs-ctl .sgp.dim input:checked + span { opacity: 1; }
.cs-chk { cursor: pointer; }
.cs-chk.dim, .cs-ctl .sgp.dim { cursor: default; }
.cs-chk span { display: inline-block; width: 18px; height: 18px; line-height: 16px; text-align: center; border: 1px solid var(--raised); border-radius: 4px; color: transparent; font-size: 12px; }
.cs-chk input:checked + span { color: #fff; background: var(--s-singola); border-color: var(--s-singola); }
.cs-perc { display: flex; gap: 3px; font-size: 10px; font-variant-numeric: tabular-nums; }
.cs-perc .on { color: var(--text); font-weight: 600; }
.cond-fill { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); }
/* Gruppi di condizioni, ognuno col suo colore: valore (viola), segni (azzurro), filtro (ambra), forma (verde) */
.cond-row { border-left: 3px solid transparent; padding-left: 8px; }
.cond-row.g-valore { border-left-color: var(--s-tripla); }
.cond-row.g-segni { border-left-color: var(--s-singola); }
.cond-row.g-filtro { border-left-color: #e0a020; }
.cond-row.g-forma { border-left-color: #3cb371; }
.g-valore .cs-chk input:checked + span, .g-valore .cond-sw input:checked + span { background: var(--s-tripla); border-color: var(--s-tripla); }
.g-filtro .cond-sw input:checked + span { background: #e0a020; }
.g-filtro .cs-chk input:checked + span { background: #e0a020; border-color: #e0a020; }
.g-forma .cond-sw input:checked + span { background: #3cb371; }
.cond-terne { display: flex; flex-wrap: wrap; gap: 4px; max-width: 720px; }
.cond-terne .sgp span { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 11px; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.cond-terne .sgp input { position: absolute; opacity: 0; width: 0; height: 0; }
.cond-terne .sgp input:checked + span { background: var(--s-singola); color: #fff; border-color: var(--s-singola); }
.cs-sez { font-size: 10px; color: #e0a020; font-weight: 700; }
.cond-agg { margin: 4px 0 10px; }
.cond-rec { color: var(--muted); white-space: nowrap; }
.cond-noeff { color: #e0a020; }
.cond-imb-head { padding: 6px 4px; color: var(--muted); border-bottom: 1px solid var(--line); }
.cond-rec select { font-size: 12px; }
.cond-recpan { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 8px 0 0; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 6px; }
.cond-recpan input { width: 56px; }
.cond-agg .cs-ctl { grid-auto-flow: column; }
.cond-agg .sgp.fisso span { border-color: transparent; color: var(--line); }
/* Schedina modificabile: segno della base tenuto = come la base, aggiunto = rosa, tolto = barrato */
.cond-agg .sgp.sched input { position: absolute; opacity: 0; width: 0; height: 0; }
.cond-agg .sgp.sched span { cursor: pointer; }
.cond-agg .sgp.sched input:checked + span { background: var(--head); color: var(--head-text); border-color: var(--raised); }
.cond-agg .sgp.sched.agg input:checked + span { background: var(--s-doppia); color: #fff; border-color: var(--s-doppia); font-weight: 700; }
.cond-agg .sgp.sched.tolto span { text-decoration: line-through; color: var(--s-doppia); border-color: var(--s-doppia); border-style: dashed; }
.cond-agg .cs-cell.cs-mod { border-color: var(--s-doppia); }
.cond-agg .cs-cell2, .cond-agg .cs-lab2 { grid-template-rows: 18px auto; }
/* Base e schedina più in vista delle condizioni sotto (utente 04/11/2026) */
.cond-head > .cond-seg label { font-size: 15px; padding: 7px 16px; font-weight: 600; }
.cond-head > .muted.small:first-child { font-size: 14px; }
.cond-agg .cs-cell2 { padding: 5px 7px; }
.cond-agg .cs-num { font-size: 13px; font-weight: 600; color: var(--text); }
.cond-agg .cs-lab2 .cs-n, .cond-agg .cs-lab2 .cs-ctl { font-size: 13px; }
.cond-agg .sgp.sched span { font-size: 14px; min-width: 20px; padding: 3px 5px; }
.cond-agg .sgp.sched.madd input:checked + span { background: var(--add-bg); color: var(--add-fg); border-color: var(--add-bg); }
/* Il doppio dello spazio tra la scelta della base, la schedina e il riepilogo (utente 04/11/2026) */
.cond-box .cond-head { margin-bottom: 16px; }
.cond-box .cond-agg { margin: 0 0 20px; }
/* Numero della partita: nome al passaggio del mouse */
.cs-num[title]:not([title=""]) { cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
.cond-agg .cs-reset { align-self: center; }
.cond-fin .cs-cell { min-width: 0; }
.cond-fin .cs-base { display: flex; gap: 4px; }
.cond-fin .cs-grp { white-space: nowrap; }
.cond-fin .cs-grp + .cs-grp { border-left: 1px solid var(--line); padding-left: 4px; }
.g-forma .cs-chk input:checked + span { background: #3cb371; border-color: #3cb371; }
.cond-gloss { margin-top: 10px; }
.cond-gloss summary { cursor: pointer; color: var(--accent); }
.cond-gloss dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 4px; font-size: 13px; }
.cond-gloss dt { font-weight: 600; border-left: 3px solid transparent; padding-left: 6px; }
.cond-gloss dt.g-valore { border-left-color: var(--s-tripla); }
.cond-gloss dt.g-segni { border-left-color: var(--s-singola); }
.cond-gloss dt.g-filtro { border-left-color: #e0a020; }
.cond-gloss dt.g-forma { border-left-color: #3cb371; }
.cond-gloss dd { margin: 0; color: var(--muted); }
.cond-acts .btn.small, .cond-fill .btn.small { padding: 3px 8px; font-size: 12px; }
.cond-seg.small label { padding: 3px 9px; }
.cond-row.off { opacity: .55; }
.cond-nm b { display: block; }
.cond-nm small { color: var(--muted); }
.cond-par { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cond-par input[type="number"] { width: 70px; }
.cond-par input[readonly] { opacity: .6; }
.cond-rng { white-space: nowrap; }
.cond-colf input { width: 30px; text-align: center; margin-right: 2px; padding: 3px 2px; }
.cond-pos summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.cond-pos label { margin-right: 6px; white-space: nowrap; font-size: 12px; }
.cond-eff { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cond-eff b { color: var(--text); }
.cond-sw { position: relative; display: inline-block; width: 30px; height: 16px; }
.cond-sw input { opacity: 0; width: 0; height: 0; }
.cond-sw span { position: absolute; inset: 0; border-radius: 9px; background: var(--raised); transition: .15s; }
.cond-sw span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: .15s; }
.cond-sw input:checked + span { background: var(--s-singola); }
.cond-sw input:checked + span::after { transform: translateX(14px); }
.cond-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 4px; }
.cond-x:hover { color: var(--text); }
/* Salvataggio automatico (utente 05/11/2026): pulsante di Invio invisibile, "Ricalcolo…" in ambra mentre salva */
.cond-invio { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cond-box.cond-busy .cond-sum-txt { color: #e0a020; }
.cond-box.cond-busy .cond-body { opacity: .6; pointer-events: none; }
.cond-acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-top: 10px; }
.cond-acts .r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cond-acts .btn, .cond-box .btn { display: inline-block; background: #232d3e; color: #dfe6f1; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; font: inherit; }
.cond-acts .btn.ghost { background: transparent; border: 1px solid var(--raised); color: var(--text); }
.cond-acts .btn[disabled] { opacity: .45; cursor: default; }
.cond-add, .cond-manual, .cond-preset { display: inline-flex; gap: 4px; align-items: center; }
.cond-add select { max-width: 320px; }
.cond-manual input { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.cond-mano { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cond-mano .pill { border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-family: ui-monospace, Consolas, monospace; }
.cond-mano .pill.ok { border-color: var(--s-singola); }
.cond-mano .pill.ko { border-color: var(--s-doppia); }
.cond-q { font-size: 11px; font-variant-numeric: tabular-nums; }
th.cond-th { color: #e0a020; }
@media (max-width: 700px) {
  .cond-top { grid-template-columns: 34px 1fr 28px; }
  .cond-top .cond-par, .cond-top .cond-eff { grid-column: 2 / span 2; }
  .cond-strip { margin-left: 0; }
  .cond-tot { grid-template-columns: repeat(2, 1fr); }
}

/* Storico delle multiple per periodo (05/11/2026) */
form.mult-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; }
form.mult-periodo label { display: inline-flex; align-items: center; gap: 6px; }
.mult-scorc a { padding: 4px 10px; }
/* Confronto delle serie di multiple in "Mostra statistiche" (05/11/2026) */
form.mult-periodo { position: relative; z-index: 30; }
.mc-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mc-kpi { border-top: 3px solid var(--mc) !important; }
.mc-kpi .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-charts { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); }
.mc-legend span i { background: var(--mc) !important; }
.mc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mc); margin-right: 6px; vertical-align: middle; }
.mc-table th, .mc-table td { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.mc-table td.pos { color: var(--ok); } .mc-table td.neg { color: var(--ko); }
@media (max-width: 1100px) { .mc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mc-charts { grid-template-columns: 1fr; } }
/* Tendina "Multiple" al posto dei modelli e sigle delle serie nell'elenco (05/11/2026) */
.mult-pick-form { display: inline-block; margin: 0; }
.mult-pick .cp-menu .mult-m { min-width: 24px; }
.mult-table .mult-m { margin-right: 4px; }
/* Barra dei concorsi sotto il banner scorrevole, nell'intestazione fissa (05/11/2026) */
header.top .poolbar { flex-basis: 100%; display: flex; align-items: flex-end; padding-top: 6px; margin: 2px 0 -10px; }
header.top .poolbar .pool-pick { margin-left: 0; align-items: flex-end; gap: 10px; }
/* Concorsi come linguette di cartella (utente 05/11/2026): quello scelto prende il colore della pagina e si unisce a lei. */
header.top .poolbar .seg.pools { border: 0; border-radius: 0; overflow: visible; gap: 4px; margin-left: 0; align-items: flex-end; }
header.top .poolbar .seg.pools a { border-radius: 9px 9px 0 0; padding: 7px 16px 8px; color: var(--head-muted); background: rgba(255,255,255,.05); }
header.top .poolbar .seg.pools a:hover { color: var(--head-text); background: rgba(255,255,255,.10); }
header.top .poolbar .seg.pools a.on { background: var(--bg); color: var(--text); font-weight: 700; padding-top: 9px; }
.match-filters:not(:has(label, button, a, .comp-pick)) { display: none !important; }
/* Multiple: periodo Dal / Al nella barra fissa accanto alla tendina (05/11/2026) */
.modelbar form.mult-periodo { margin: 0; gap: 8px 12px; }
[data-theme="light"] header.top .poolbar .seg.pools a { background: rgba(0,0,0,.05); }
[data-theme="light"] header.top .poolbar .seg.pools a:hover { background: rgba(0,0,0,.09); }
[data-theme="light"] header.top .poolbar .seg.pools a.on { background: var(--bg); }
/* Telefono: linguette dei concorsi in fondo all'intestazione, su una riga che scorre di lato (05/11/2026) */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  header.top .poolbar { order: 4; margin: 0 -10px -8px; padding: 2px 10px 0; overflow-x: auto; scrollbar-width: none; }
  header.top .poolbar .pool-pick { display: flex; flex-direction: row; font-size: 0; gap: 0; }
  header.top .poolbar .seg.pools { display: flex; flex-wrap: nowrap; font-size: 13px; }
  header.top .poolbar .seg.pools a { padding: 6px 10px 7px; white-space: nowrap; }
  header.top .poolbar .seg.pools a.on { padding-top: 7px; }
}
/* Partita in una multipla già chiusa (05/11/2026): sigla più spenta con la spunta dell'esito della multipla */
.mult-mark.chiusa { opacity: .8; border-style: dashed; }
.mult-mark.chiusa .hit { font-size: 10px; }
/* Totocalcio e Condizioni solo consultabili per chi non può modificare (07/11/2026) */
fieldset.cond-ro { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.cond-ro .cond-acts, fieldset.cond-ro .cond-x, fieldset.cond-ro .cond-add, fieldset.cond-ro #totoSave { display: none !important; }
.cond-ro-note { margin-bottom: 8px; }
fieldset.cond-ro .toto-actions { display: none !important; }
/* Sistemi condizionati salvati (07/11/2026) */
.cond-sis { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.cond-sis h4 { margin: 0 0 6px; font-size: 13px; }
.cond-sis table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cond-sis td { padding: 4px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.cond-sis td.nm { font-weight: 600; }
.cond-sis td.az { text-align: right; white-space: nowrap; }
.cond-sis td.az .btn, .cond-sis td.az a.btn { margin-left: 4px; }
.cond-sis .vive { color: var(--ok); font-weight: 600; } .cond-sis .vive.zero { color: var(--ko); }
fieldset.cond-ro .cond-sis button { display: none !important; }

/* Telefono, controllo dell'08/11/2026: solo schermi piccoli, il computer non cambia */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  /* Totocalcio (con o senza Condizionato, 22/11): una sola colonna di segni, quella scelta, ed esito al suo posto */
  table.matches.toto tr:not(.toto-grp) { grid-template-columns: 36px 1fr 1fr 1fr 1fr auto; }
  table.matches.toto tr:not(.toto-grp) > td:nth-child(12) { font-size: 11px; white-space: nowrap; text-align: left; font-variant-numeric: tabular-nums; }
  table.matches.toto:has(td.col-sel) td.pickcell[data-lv^="t"]:not(.col-sel) { display: none !important; }
  table.matches.toto td.pickcell.col-sel[data-lv^="t"] { grid-area: opt !important; justify-self: end; min-width: max-content; font-size: inherit; }
  table.matches.toto td.pickcell.col-sel[data-lv^="t"]::before { content: none !important; }
  table.matches.toto td[data-lv^="t"][data-lv$="r"] { grid-area: res !important; justify-self: end; }
  table.matches.toto td[data-lv^="t"][data-lv$="s"] { grid-area: score !important; justify-self: start; }
  table.matches.toto td[data-lv^="t"][data-lv$="r"]:empty, table.matches.toto td[data-lv^="t"][data-lv$="s"]:empty { display: none; }
  /* Colonne in corsa: riga della formula scelta evidenziata tutta insieme */
  table.quin-cats.cr-tab tr.quin-our { background: var(--raised); border-radius: 6px; }
  table.quin-cats.cr-tab tr.quin-our td { background: transparent !important; }
  /* Condizioni */
  .cond-top .cond-x { grid-column: 3; grid-row: 1; justify-self: end; }
  .cond-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cond-tot .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cond-tot .kpi .val small { font-size: 12px; white-space: nowrap; }
  .cond-strip.cond-agg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cond-strip.cond-agg .cs-reset { grid-column: 1 / -1; justify-self: start; }
  .cond-strip.cond-fin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cond-acts .r { width: 100%; }
  .cond-add, .cond-manual { display: flex; width: 100%; }
  .cond-add select, .cond-manual input { flex: 1 1 auto; min-width: 0; max-width: none; }
  .cond-add .btn, .cond-manual .btn { flex: none; white-space: nowrap; }
  .cond-preset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .cond-preset select { grid-column: 1 / -1; width: 100%; }
  .cond-preset .btn { white-space: nowrap; text-align: center; }
  /* Tutte le partite: i nomi lunghi vanno a capo invece di finire sotto i segni */
  table.matches.home td.team a { white-space: normal; }
  /* Multiple: barra compatta che non resta incollata, date e scorciatoie allineate */
  .modelbar:has(.mult-pick-form) { position: static; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mult-pick-form, .mult-pick-form .mult-pick, .mult-pick-form .mult-pick > summary { width: 100%; }
  form.mult-periodo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
  form.mult-periodo label { display: flex; min-width: 0; align-items: center; gap: 6px; }
  form.mult-periodo label input { flex: 1 1 auto; min-width: 0; width: 100%; }
  form.mult-periodo button { grid-column: 1 / -1; width: 100%; }
  form.mult-periodo .mult-scorc { grid-column: 1 / -1; display: flex; width: 100%; }
  form.mult-periodo .mult-scorc a { flex: 1 1 0; text-align: center; white-space: nowrap; padding: 6px 4px; }
  .modelbar:has(.mult-pick-form) .stats-toggle { width: 100%; margin: 0; justify-content: center; }
  table.mult-table td:empty { display: none !important; }
  .mult-pick-form .mult-pick { display: block; }
  /* 16/11/2026: il menu delle serie si apre sopra date e scorciatoie, non sotto */
  .modelbar:has(.mult-pick-form) .mult-pick-form { position: relative; z-index: 40; }
  .mult-pick-form .cp-menu { right: 0; min-width: 0; }
  .mc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Serie a confronto: schede invece della tabella da scorrere */
  .tablewrap:has(> table.mc-table) { overflow: visible !important; }
  table.mc-table, table.mc-table tbody { display: block; width: 100%; } table.mc-table thead { display: none; }
  table.mc-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
  table.mc-table td { display: flex; justify-content: space-between; gap: 6px; padding: 0 !important; border: 0 !important; font-size: 13px; min-width: 0; }
  table.mc-table td:first-child { grid-column: 1 / -1; justify-content: flex-start; align-items: center; font-size: 14px; padding-bottom: 2px !important; }
  table.mc-table td::before { color: var(--muted); font-size: 11px; font-weight: 400; }
  table.mc-table td:nth-child(2)::before { content: "Concluse"; } table.mc-table td:nth-child(3)::before { content: "Strike rate"; }
  table.mc-table td:nth-child(4)::before { content: "Utile"; } table.mc-table td:nth-child(5)::before { content: "ROI"; }
  table.mc-table td:nth-child(6)::before { content: "p-value"; } table.mc-table td:nth-child(7)::before { content: "Max DD"; }
  table.mc-table td:nth-child(8)::before { content: "Bankroll"; } table.mc-table td:nth-child(9)::before { content: "In corso"; }
  html[lang=en-GB] table.mc-table td:nth-child(2)::before { content: "Settled"; } html[lang=en-GB] table.mc-table td:nth-child(4)::before { content: "Profit"; }
  html[lang=en-GB] table.mc-table td:nth-child(9)::before { content: "Open"; }
  table.mc-table td:nth-child(2) { justify-content: flex-end; gap: 4px; } table.mc-table td:nth-child(2)::before { margin-right: auto; }
  /* Sistemi salvati: una scheda per sistema, pulsanti tutti dentro lo schermo */
  .cond-sis h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .cond-sis table, .cond-sis tbody, .cond-sis tr, .cond-sis td { display: block; width: 100%; }
  .cond-sis tr { padding: 8px 0; border-top: 1px solid var(--line); }
  .cond-sis td { padding: 1px 0; border: 0; }
  .cond-sis td.az { display: flex; gap: 6px; margin-top: 6px; text-align: left; white-space: normal; }
  .cond-sis td.az .btn, .cond-sis td.az a.btn { flex: 1 1 0; min-width: 0; margin-left: 0; text-align: center; }
}
@media (max-width: 380px) {
  /* nome utente lungo: resta dentro lo schermo */
  header.top .usermenu > summary { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Condizioni con i risultati (08/11/2026): segno uscito colorato nelle strisce, badge in piedi / saltata, riepilogo nell'Andamento */
.cond-strip .cs-chk.es-ok input:checked + span, .cond-strip .sgp.es-ok input:checked + span { background: var(--ok) !important; border-color: var(--ok) !important; color: var(--on-ok) !important; }
.cond-strip .cs-chk.es-ko input:checked + span, .cond-strip .sgp.es-ko input:checked + span { background: var(--ko) !important; border-color: var(--ko) !important; color: var(--on-ko) !important; }
.cond-fin-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; white-space: nowrap; margin-top: 3px; }
.cond-fin-badge.ok { color: var(--ok); border: 1px solid var(--ok); }
.cond-fin-badge.ko { color: var(--ko); border: 1px solid var(--ko); }
.cond-and .ok { color: var(--ok); font-weight: 600; }
.cond-and .ko { color: var(--ko); font-weight: 600; }
/* Modelli come linguette sempre in vista (proposta 08/11/2026): come i concorsi, quello scelto prende il colore della pagina. */
.modelbar:has(.model-tabs) { align-items: flex-end; padding-top: 8px; padding-bottom: 0; background: linear-gradient(rgba(255,255,255,.025), rgba(255,255,255,.025)), var(--bg); }
.modelbar:has(.model-tabs) .stats-toggle { align-self: center; margin-bottom: 0; }
.model-tabs { display: flex; gap: 4px; align-items: flex-end; margin-bottom: -1px; }
.model-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 8px; border-radius: 9px 9px 0 0; border: 1px solid transparent; border-bottom: 0;
  color: var(--muted); background: rgba(255,255,255,.05); text-decoration: none; white-space: nowrap; }
.model-tabs a:hover { color: var(--text); background: rgba(255,255,255,.09); text-decoration: none; }
.model-tabs a.on { background: var(--bg); color: var(--text); font-weight: 700; padding-top: 9px; padding-bottom: 9px; border-color: var(--line); }
.model-tabs .model-tag { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--raised); color: var(--text); }
.model-tabs a:not(.on) .model-tag { background: transparent; color: inherit; padding: 1px 0; }
[data-theme="light"] .modelbar:has(.model-tabs) { background: linear-gradient(rgba(0,0,0,.025), rgba(0,0,0,.025)), var(--bg); }
[data-theme="light"] .model-tabs a { background: rgba(0,0,0,.05); }
[data-theme="light"] .model-tabs a:hover { background: rgba(0,0,0,.09); }
[data-theme="light"] .model-tabs a.on { background: var(--bg); }
/* Telefono: solo la sigla del modello, così le tre linguette stanno sulla riga accanto a Statistiche */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  .modelbar:has(.model-tabs) { flex-wrap: nowrap; gap: 6px; }
  .model-tabs { flex: none; }
  .model-tabs a { padding: 6px 8px 7px; gap: 0; }
  .modelbar:has(.model-tabs) .stats-toggle { padding: 4px 7px; margin-left: auto; }
  .modelbar:has(.model-tabs) #statsToggle .lbl::before { font-size: 12.5px; }
  .model-tabs a.on { padding-top: 7px; padding-bottom: 8px; }
  .model-tabs .mlbl { display: none; }
  .model-tabs .model-tag, .model-tabs a:not(.on) .model-tag { font-size: 13px; padding: 1px 2px; background: transparent; }
}
/* Barra dei modelli azzurra come l'intestazione (utente 08/11/2026, variante A): il modello scelto prende il colore della pagina, come i concorsi */
.modelbar:has(.model-tabs) { background: var(--head); border-bottom-color: var(--head); }
.model-tabs a { color: var(--head-muted); background: rgba(255,255,255,.05); }
.model-tabs a:hover { color: var(--head-text); background: rgba(255,255,255,.10); }
.model-tabs a.on { background: var(--bg); color: var(--text); border-color: transparent; }
[data-theme="light"] .modelbar:has(.model-tabs) { background: var(--head); }
[data-theme="light"] .model-tabs a { background: rgba(0,0,0,.05); }
[data-theme="light"] .model-tabs a:hover { background: rgba(0,0,0,.09); }
[data-theme="light"] .model-tabs a.on { background: var(--bg); }
.modelbar:has(.model-tabs) .stats-toggle { color: var(--head-muted); border-color: rgba(255,255,255,.18); }
[data-theme="light"] .modelbar:has(.model-tabs) .stats-toggle { border-color: rgba(0,0,0,.15); }

/* Intestazione T-Edge (08/11/2026): marchio con esponente, pallino accanto alla bandiera italiana, voci spostate nel menu utente */
.brand sup.pot { font-size: .6em; margin-left: 1px; vertical-align: super; line-height: 0; }
header.top .langs { align-items: center; }
header.top .langs .health { margin-right: 4px; padding: 4px 2px; }
.usermenu .menu a, .usermenu .menu .menu-btn { font: inherit; font-size: 14px; }
.usermenu .menu .menu-btn { display: block; width: 100%; text-align: left; padding: 7px 14px; margin: 0; border: 0; border-radius: 0;
  background: none; color: var(--text); cursor: pointer; }
.usermenu .menu .menu-btn:hover { background: color-mix(in srgb, var(--raised) 45%, transparent); filter: none; }
.usermenu .menu .menu-btn:disabled { cursor: default; opacity: .7; }

/* Cambio di modello senza lampo (utente 09/11/2026): passaggio tra le due pagine con dissolvenza breve (attivo solo dalle linguette dei modelli, vedi lib/view.php); il telefono non ingrandisce da solo i testi. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Righe tutte alte uguale su PC (utente 09/11/2026): la scritta "base 1X" sotto il pronostico non allunga la riga, sta all'altezza della competizione sotto la partita. */
@media (min-width: 951px), (min-width: 601px) and (pointer: fine) {
  table.matches.home td.pickcell { position: relative; }
  table.matches.home td.pickcell .base { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; }
}

/* ===== PROVA USABILITA 09/11/2026: blocchi numerati [Un] ===== */
/* [U2] Contrasto tema chiaro: solo tema chiaro, il tema scuro non cambia */
[data-theme="light"] { --ok: #087A3B; --s-singola: #08748F; --s-doppia: #C4235A; }
[data-theme="light"] .pool-late, [data-theme="light"] .pool-late-mark, [data-theme="light"] .nomodel-lbl { color: #7A5C00; }
[data-theme="light"] .mult-m, [data-theme="light"] .mg-ut.pos { color: #087A3B; }
[data-theme="light"] .seg.models.big a.on .mult-m { color: #c9f7dc; }
[data-theme="light"] th.cond-th, [data-theme="light"] .cond-noeff, [data-theme="light"] .cs-sez,
[data-theme="light"] .rid-box .warn-txt, [data-theme="light"] .rid-box .rid-warn, [data-theme="light"] .cond-box.cond-busy .cond-sum-txt { color: #8A5A00; }

/* [U12] Pagina partita: tabella degli aggiornamenti alle dimensioni di 1440 anche da 1280 (cambia PC sotto i 1400 px) */
@media (min-width: 951px), (min-width: 601px) and (pointer: fine) {
  table.upd { font-size: 12.5px; }
}

/* [U13] Finestra PC stretta (601-760 px): concorsi su due file invece di testi a capo o sforamenti */
@media (min-width: 601px) and (max-width: 760px) and (pointer: fine) {
  header.top .poolbar .seg.pools { flex-wrap: wrap; font-size: 14px; }
  header.top .poolbar .seg.pools a { white-space: nowrap; }
  header.top .poolbar .pool-pick { font-size: 0; gap: 0; }
  .model-tabs a { padding-left: 10px; padding-right: 10px; }
  .spunte-bar { flex-wrap: wrap; }
}

/* [U10] Scorciatoie di data accanto a Dal/Al (cambia PC) */
.date-scorc a { padding: 6px 11px; white-space: nowrap; }
.match-filters .mleft:has(.date-scorc) { width: auto; max-width: 100%; }

/* [U11] Legenda e riepilogo Totocalcio (cambia PC) */
.toto-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.toto-legenda > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.toto-legenda .pick .o { min-width: 20px; padding: 0 4px; line-height: 16px; font-size: 12px; }
.toto-legenda .sfum { opacity: .3; }
.rid-riep-mini { font-weight: 600; color: var(--text); white-space: nowrap; }


/* [U6] Telefono con schermo basso (cover Flip 360x374): resta fissa solo la barra dei modelli */
@media (max-height: 500px) and (max-width: 600px), (max-height: 500px) and (max-width: 950px) and (pointer: coarse) {
  header.top { position: static; }
  :root { --toph: 0px !important; }
  .match-top, .mult-serie-bar, .match-filters.pool-multiple { position: static; }
  .modelbar { top: 0; }
}
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  /* [U11] */
  .toto-legenda { display: none; }   /* telefono: didascalie ridotte al minimo (decisione utente 27/10) */

  /* [U3] Soglie a 360 px: una colonna, testi a capo, nessun taglio. Solo telefono */
  .soglie-grid { grid-template-columns: minmax(0, 1fr); }
  .soglie-grid .card { padding: 12px; min-width: 0; }
  .soglie-grid td:first-child { overflow-wrap: anywhere; }
  .soglie-grid td.n { white-space: nowrap; }

  /* [U10] sul telefono le scorciatoie stanno su una riga propria */
  .date-scorc { order: 3; flex: 1 1 100% !important; display: flex; }
  .date-scorc a { flex: 1 1 0; text-align: center; }

  /* [U5] Aree di tocco di almeno 44x44 px, il disegno resta piccolo dove possibile. Solo telefono */
  .seg a, .model-tabs a, header.top .poolbar .seg.pools a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; box-sizing: border-box; }
  .model-tabs a.on, header.top .poolbar .seg.pools a.on { padding-top: 6px; padding-bottom: 7px; }
  a.help { position: relative; }
  a.help::after { content: ""; position: absolute; top: -15px; right: -15px; bottom: -15px; left: -15px; }
  .close-x { position: relative; }
  .close-x::after { content: ""; position: absolute; top: -5px; right: -5px; bottom: -5px; left: -5px; }
  .cond-top { grid-template-columns: 34px 1fr 44px; }
  .cond-x { min-width: 44px; min-height: 44px; }
  .comp-pick .cp-menu label, .comp-pick .cp-actions label.cp-all { min-height: 44px; }
  .toto-chk { min-width: 44px; min-height: 44px; justify-content: center; }
  .sgp, .cs-chk { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .cs-ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
  .cond-strip .cs-cell, .cond-strip.cond-agg .cs-cell2 { grid-template-rows: auto; height: auto; min-width: 0; padding: 3px 0; }
  .cond-strip.cond-agg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-left: -6px; margin-right: -6px; }
  .cond-strip { gap: 4px; }
  .cond-terne .sgp { min-width: 56px; }
  .cond-auto { display: inline-flex; align-items: center; min-height: 44px; }
  .cond-sw { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .cond-sw span { inset: 14px 7px; }

  /* [U8] Totocalcio: dati principali a 12 px, secondari tutti uguali. Solo telefono */
  table.matches.toto tr:not(.toto-grp) > td:nth-child(12) { font-size: 12px; }
  .cs-base .sg, .cs-ctl .sgp span, .cond-terne .sgp span { font-size: 12px; }
  .cs-num, .cs-lab .cs-n { font-size: 12px; }
  table.matches.toto td::before { font-size: 11px !important; }
  table.matches.toto td .rid-q, table.matches.toto td .pos, table.matches.toto td .base { font-size: 11px; }
  .cs-perc { font-size: 11px; }

  /* [U7] Barra Concorsi: variante A = sfumatura e freccia finche' resta altro a destra; variante B = due file senza scorrimento */
  html[data-concorsi="A"] header.top .poolbar::after { content: "\203A"; position: sticky; right: -10px; flex: none; align-self: stretch; display: flex; align-items: center; justify-content: flex-end;
    width: 34px; margin-left: -34px; padding-right: 4px; font-size: 20px; line-height: 1; color: var(--head-text); background: linear-gradient(90deg, transparent, var(--head) 70%); pointer-events: none; }
  html[data-concorsi="A"] header.top .poolbar.fine::after { visibility: hidden; }
}
/* Scelta della base delle Condizioni: su telefono le tre voci stanno intere, a capo se serve (utente 09/11/2026) */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  .cond-head > .cond-seg { display: flex; width: 100%; }
  .cond-head > .cond-seg label { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 5px; font-size: 13.5px; line-height: 1.2; overflow-wrap: anywhere; }
}

/* Menu dei concorsi Quiniela: giornate con 14 della Ridotta evidenziate (utente 09/11/2026) */
option.quin-opt-14 { font-weight: 600; color: #1f9d55; }

/* Telefono (utente 11/11/2026): le quote non cambiano mai larghezza passando tra Pronostico, Ottimizzata e Ridotta;
   l'ultima colonna delle schede ha una larghezza fissa invece di seguire i segni mostrati. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  table.matches.toto tr:not(.toto-grp) { grid-template-columns: 36px 1fr 1fr 1fr minmax(80px, auto) auto; }
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) { grid-template-columns: 36px 1fr 1fr 1fr 1fr 84px; }
}

/* Telefono (utente 12/11/2026): nelle schede dei concorsi niente 1 / X / 2 davanti alle quote e alle % del pubblico,
   così le quote restano più distanziate; dettaglio delle colonne della riduzione tutto visibile anche a 360 px. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  table.matches.toto td:nth-child(5)::before, table.matches.toto td:nth-child(6)::before, table.matches.toto td:nth-child(7)::before,
  table.matches.toto:has(td[data-lv^="q"]) td:nth-child(n+11):not([data-lv])::before { content: none !important; }
  table.matches.toto td:nth-child(5), table.matches.toto td:nth-child(6), table.matches.toto td:nth-child(7) { font-variant-numeric: tabular-nums; }
  .rid-det-t { width: 100%; font-size: 12.5px; }
  .rid-det-t th, .rid-det-t td { padding: 3px 4px; }
  .rid-det-t td:nth-child(1), .rid-det-t th:nth-child(1) { width: 1.6em; }
}

/* Telefono (utente 12/11/2026): quote e % del pubblico più distanziate nelle schede Quiniela, Stryktipset, Europatipset;
   la quinta colonna (vuota sul telefono) non occupa più spazio. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  table.matches.toto:has(td[data-lv^="q"]) tr:not(.toto-grp) { grid-template-columns: 36px 1fr 1fr 1fr 0px 84px; column-gap: 4px; }
}

/* Telefono (utente 12/11/2026): pagina principale, quote più distanziate; il riquadro colorato dell'ultima quota non tocca più quello accanto. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  table.matches.home tr { column-gap: 10px; }
  table.matches.home td:nth-child(7), table.matches.home td:nth-child(8), table.matches.home td:nth-child(9) { justify-self: center; padding: 3px 6px !important; box-sizing: border-box; font-variant-numeric: tabular-nums; }
  table.matches.home td:nth-child(4), table.matches.home td:nth-child(5), table.matches.home td:nth-child(6) { font-variant-numeric: tabular-nums; }
}

/* Telefono (utente 12/11/2026, schermata di Linus: la colonna del 2 usciva dallo schermo): colonne che si stringono con lo schermo
   e con il testo ingrandito; senza colonne avanzate la scheda è squadre | pronostico, poi le tre quote senza 1 X 2, poi data e ora. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  table.matches.home:not(.noadv) tr { grid-template-columns: 30px repeat(3, minmax(0, 1fr)) 74px; }
  table.matches.home.noadv tr { grid-template-columns: repeat(3, minmax(0, 1fr)) 80px; column-gap: 10px;
    grid-template-areas: "team team team pick" "q1 qx q2 res" "date time . score"; }
  table.matches.home.noadv td:nth-child(7)::before, table.matches.home.noadv td:nth-child(8)::before, table.matches.home.noadv td:nth-child(9)::before { content: none !important; }
  table.matches.home.noadv td:nth-child(7), table.matches.home.noadv td:nth-child(8), table.matches.home.noadv td:nth-child(9) { justify-self: stretch; min-width: 0; padding: 3px 0 !important; }
  table.matches.home.noadv td:nth-child(1), table.matches.home.noadv td:nth-child(2) { white-space: nowrap; }
  table.matches.home.noadv td:nth-child(17) { justify-self: end; }
}

/* Telefono (utente 12/11/2026, controllo di tutte le pagine): tabella "Colonne ancora in corsa" e premi tutte dentro lo schermo;
   quote del Totocalcio più larghe (colonna Ottimizzata un po' più stretta); menu dei concorsi non più largo della scheda. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  table.toto-premi tr, table.quin-cats tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
  table.toto-premi td:not(:first-child), table.quin-cats td:not(:first-child) { min-width: 0; flex-wrap: wrap; justify-content: flex-end; column-gap: 6px; row-gap: 0; }
  table.toto-premi td:not(:first-child)::before, table.quin-cats td:not(:first-child)::before { margin-right: auto; }
  table.toto-premi td:first-child, table.quin-cats td:first-child { flex-wrap: wrap; min-width: 0; }
  table.matches.toto:not(:has(td[data-lv^="q"])) tr:not(.toto-grp) { grid-template-columns: 36px 1fr 1fr 1fr minmax(64px, auto) auto; column-gap: 5px; }
  .toto-head form, .toto-head select { max-width: 100%; min-width: 0; }
}
/* Telefoni stretti o testo ingrandito: nel Totocalcio i segni dell'Ottimizzata vanno sulla riga sotto le quote, così le quote non si toccano. */
@media (max-width: 380px), (max-width: 950px) and (pointer: coarse) and (max-width: 380px) {
  table.matches.toto:not(:has(td[data-lv^="q"])) tr:not(.toto-grp) { grid-template-columns: 36px 1fr 1fr 1fr auto auto;
    grid-template-areas: "num team team team team pick" "sel q1 qx q2 . pr" "score score opt opt opt res"; }
}

/* Telefono in inglese (utente 12/11/2026): nelle schede semplici (utenti senza colonne avanzate, es. Linus) niente "SP"/"LP",
   come già in italiano; la regola dell'inglese del 28/10 le rimetteva. */
@media (max-width: 600px), (max-width: 950px) and (pointer: coarse) {
  html[lang] table.matches.home.noadv tr::before, html[lang] table.matches.home.noadv tr::after { content: none; }
}

/* Colonne vive (17/11/2026): segni che restano solo in colonne gia' sbagliate, chiari e barrati. */
.pick .o.morto{opacity:.6;text-decoration:line-through;text-decoration-color:var(--ko);text-decoration-thickness:2px}
