/* TotoSig8 v0.3 - tema schedina bianco / verde. Nessuna libreria esterna. */
:root{color-scheme:light;--bg:#f5f8f1;--paper:#fff;--card:#fff;--card2:#edf6ed;--text:#18352a;--muted:#596c62;--line:#d4e5d5;--brand:#087b38;--brand2:#16a451;--brand-dark:#095c30;--danger:#b23232;--warn:#a96b09;--ok:#087b38;--shadow:0 10px 30px rgba(19,88,38,.07);font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);min-height:100vh;background:radial-gradient(circle at 88% 5%,#e0f3e1 0,transparent 24%),linear-gradient(90deg,rgba(14,115,50,.025) 1px,transparent 1px),var(--bg);background-size:auto,38px 38px,auto;line-height:1.5}a{color:var(--brand);text-underline-offset:3px}a:hover{color:#004b22}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px clamp(16px,4vw,44px);background:rgba(255,255,255,.98);border-bottom:3px solid var(--brand);box-shadow:0 4px 14px rgba(0,60,25,.06)}.brand{display:flex;align-items:center;gap:11px;font-size:1.23rem;font-weight:900;color:var(--brand-dark);text-decoration:none;letter-spacing:-.03em}.brand img{width:41px;height:41px}.nav{display:flex;align-items:center;gap:9px}.nav a{display:inline-block;color:#3c5949;padding:10px 11px;text-decoration:none;font-size:.95rem;font-weight:750;border-radius:9px}.nav a:hover,.nav a:focus-visible{background:#e7f5e9;color:var(--brand-dark)}.nav-toggle{display:none;font-size:1.5rem;background:#095c30;color:#fff;border:1px solid #064922;border-radius:9px;cursor:pointer;padding:5px 12px}.page{width:min(1200px,100%);margin:0 auto;padding:30px 19px 66px}.page>h1,.section-heading h1{font-size:clamp(1.7rem,3vw,2.4rem);font-weight:850;letter-spacing:-.035em;margin:0 0 16px;color:#153f29}h2{color:#194b31;font-size:1.34rem}h3{color:#1f5035}.helper,.muted{color:var(--muted)}.helper{font-size:.9rem}.kicker{color:var(--brand);font-weight:900;text-transform:uppercase;letter-spacing:.13em;font-size:.75rem}.hero{display:grid;grid-template-columns:1.12fr .88fr;gap:34px;align-items:center;padding:42px 0}.hero h1{font-weight:900;letter-spacing:-.052em;font-size:clamp(2.25rem,5.4vw,4.15rem);line-height:1.09;margin:9px 0 19px;color:#13432a}.hero p{font-size:1.11rem;color:var(--muted);line-height:1.65}.hero-card{padding:14px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}.hero-card img{width:100%;display:block;height:auto}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow);min-width:0}.card h2,.card h3{margin-top:0}.card h2{padding-bottom:8px;border-bottom:2px solid #e2f1e3}.admin-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.admin-menu .card{display:block;text-decoration:none;border-top:4px solid var(--brand)}.admin-menu .card:hover{background:#f6fcf6;transform:translateY(-1px)}.btn,button,input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--brand);color:#fff;border:1px solid var(--brand);border-radius:10px;padding:11px 16px;min-height:42px;font:inherit;font-weight:790;line-height:1.25;text-decoration:none;cursor:pointer;box-shadow:none;transition:background .15s,color .15s}.btn:hover,button:hover,input[type=submit]:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}.btn.secondary,button.secondary{background:#eff9ef;color:var(--brand-dark);border:1px solid #bdddc2}.btn.secondary:hover,button.secondary:hover{background:#ddf2e0;color:#074c27}.btn.danger,button.danger{background:#fff3f1;color:#ad3333;border-color:#edc9c4}.btn.danger:hover,button.danger:hover{background:#b23232;color:#fff}.btn.small,button.small{padding:7px 10px;min-height:35px;font-size:.84rem}.btn:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #90d3a8;outline-offset:2px}button:disabled,input[type=submit]:disabled{opacity:.5;cursor:not-allowed}form{display:grid;gap:14px}.field{display:grid;gap:6px}label{font-weight:750;font-size:.91rem;color:#325c42}input,select,textarea{width:100%;min-height:43px;padding:11px 13px;color:#203b2a;border:1px solid #bfd6c3;border-radius:10px;background:#fff;outline:none;font:inherit}input[type=number]{font-variant-numeric:tabular-nums}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(33,148,61,.1)}.inline-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.inline-form .field{min-width:180px;flex:1}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}.table-wrap.card{padding:0}table{width:100%;border-collapse:collapse;background:#fff;font-variant-numeric:tabular-nums}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid #e5eee6;vertical-align:middle}th{font-size:.79rem;color:var(--brand-dark);background:#e9f5e9;letter-spacing:.04em;text-transform:uppercase;font-weight:900}tbody tr:nth-child(even){background:#fbfdfb}tbody tr:hover{background:#f2faf3}td form{display:inline-flex;gap:8px;align-items:center}.pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:5px;border:1px solid #b6dbbe;background:#eef8ef;color:#14633c;font-size:.77rem;font-weight:820}.pill.warning{border-color:#ecd49d;background:#fff8df;color:#83550a}.pill.danger{border-color:#eac9c5;background:#fff4f1;color:#943a36}.score-inputs{display:flex;align-items:center;gap:8px}.score-inputs input{width:64px;text-align:center;font-weight:850;font-size:1.07rem;padding:8px}.match-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:15px}.match-item{padding:15px 5px;border-bottom:1px dashed #b6d8be}.match-item:last-child{border-bottom:0}.match-meta{font-size:.84rem;margin-top:5px}.alert,.notice{padding:14px 16px;margin:12px 0;border-radius:10px;border:1px solid #b6dbbe;background:#ecf8ef;color:#205437}.alert.error{background:#fff3f1;border-color:#ecc5bc;color:#923f35}.notice{border-left:4px solid var(--brand)}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.footer{border-top:1px solid var(--line);color:#5c7363;background:#fff;text-align:center;padding:20px}.stat{font-size:2rem;font-weight:900;color:var(--brand)}.stat-box{background:#f1faf2;padding:16px;border-radius:12px;border:1px solid #cde8d2;flex:1;min-width:140px}.stat-box b{display:block;color:var(--brand-dark);font-size:1.65rem}.stats-strip{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.auth-card{max-width:530px;margin:28px auto}.password-wrap{display:flex;position:relative}.password-wrap input{padding-right:58px}.password-toggle{position:absolute;right:6px;top:5px;bottom:5px;width:42px;min-height:auto;padding:5px;background:#e5f4e9;border:1px solid #b7ddbe;border-radius:8px;color:var(--brand-dark)}.password-toggle:hover{background:#d3ebd9;border-color:var(--brand-dark)}.password-toggle img{width:20px;height:20px;display:block}.password-toggle[aria-pressed=true]{background:#cfedda}.date-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.section-heading h1{margin:5px 0}.google-signin{display:flex;justify-content:center;align-items:center;gap:10px;padding:11px 16px;border:1px solid #c9d3cf;color:#324439;background:#fff;border-radius:10px;font-weight:760;text-decoration:none;margin-top:12px}.google-signin:hover{background:#f4f8f5}.google-icon{font-weight:900;color:#4285f4}.ticket{background:#fff;border:1px solid #bad6c2;border-top:6px solid var(--brand);border-bottom:2px dashed #76b388;border-radius:11px;padding:17px}.ticket-header{font-weight:900;letter-spacing:.07em;color:var(--brand);font-size:.82rem;text-transform:uppercase;border-bottom:1px dashed #b3d8bb;padding-bottom:9px;margin-bottom:12px}.ticket-row{padding:12px 6px;border-bottom:1px dashed #cfe2d2;display:flex;gap:12px;align-items:center;justify-content:space-between}.ticket-row:last-child{border:0}.ticket-score{font-weight:900;font-variant-numeric:tabular-nums;background:#e5f6e9;color:var(--brand-dark);padding:6px 11px;border:1px solid #b4d9c0;border-radius:6px;white-space:nowrap}.hint{font-size:.85rem;color:#607466}.data-warning{display:block;font-size:.88rem;color:#915e18;margin-top:8px}.confirm-form{display:inline-flex;margin:0}.card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.table-wrap .btn{white-space:nowrap}.history-note{background:#fff9e8;border-left:4px solid #c79234;padding:12px 15px;border-radius:8px}.empty-state{padding:20px;color:var(--muted);text-align:center;border:1px dashed #bcd9c5;border-radius:12px;background:#fbfffb}.grid-feature{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.badge-number{display:inline-block;background:var(--brand);color:#fff;border-radius:50%;min-width:28px;padding:2px 6px;text-align:center;font-weight:800}.card .table-wrap{margin-top:10px}
@media(max-width:1160px){.hero{grid-template-columns:1fr}.grid,.grid.two,.admin-menu,.grid-feature{grid-template-columns:1fr}.nav-toggle{display:block}.nav{display:none;position:absolute;right:13px;top:66px;flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);width:min(280px,calc(100vw - 28px));padding:10px}.nav.open{display:flex}.topbar{padding:10px 17px}}
@media(max-width:580px){.page{padding:20px 13px 48px}.card{padding:16px}.date-time-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.match-row{grid-template-columns:1fr}.score-inputs{justify-content:flex-start}.score-inputs input{width:57px}.hero{padding:16px 0}.hero h1{font-size:2.3rem}th,td{padding:9px}.ticket-row{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.nav-logout{display:inline-flex;gap:0;margin:0}.nav-logout button{background:transparent;border:0;color:#3c5949;box-shadow:none;padding:10px 11px;font-size:.95rem;font-weight:750;min-height:auto}.nav-logout button:hover{background:#e7f5e9;color:var(--brand-dark)}.nav-logout input{display:none}

/* v0.4: contrast and Totocalcio ticket details. Dark-green controls use white text. */
.btn:not(.secondary):not(.danger),
button:not(.secondary):not(.danger):not(.password-toggle):not(.nav-toggle),
input[type=submit]{background:#09632e;border-color:#09632e;color:#fff}
.btn:not(.secondary):not(.danger):hover,
button:not(.secondary):not(.danger):not(.password-toggle):not(.nav-toggle):hover,
input[type=submit]:hover{background:#064922;border-color:#064922;color:#fff}
.nav-logout button,.nav-logout button:hover{background:transparent;border:0;color:#254a32}
.nav-logout button:hover{background:#e7f5e9}
.btn.secondary,button.secondary{background:#eaf6eb;border-color:#b5d6bb;color:#12512c}
.btn.secondary:hover,button.secondary:hover{background:#d9efdd;color:#084722}
.btn.danger,button.danger{background:#fff3f1;color:#9c2828;border-color:#eac0bb}
.btn.danger:hover,button.danger:hover{background:#992a2a;border-color:#992a2a;color:#fff}
.round-state{display:inline-block;font-weight:850;border-radius:8px;padding:5px 10px;font-size:.81rem;letter-spacing:.01em}
.state-draft{background:#fff5da;color:#704b06;border:1px solid #ebcf84}
.state-public{background:#09632e;color:#fff;border:1px solid #09632e}
.share-ticket{background:#f3fbf3;border:1px dashed #92bd9c;border-radius:12px;padding:14px 16px;margin:12px 0}
.share-ticket>span{display:block;font-weight:850;color:#1a5430}
.share-ticket .toolbar{margin:8px 0}
.receipt-card{max-width:830px;margin:10px auto 18px;padding:24px;background:linear-gradient(#fff 0%,#fbfefb 100%)}
.receipt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0 15px;border-bottom:1px dashed #a5c9ad}
.receipt-head h2{margin:0 0 6px;border:0;padding:0}
.receipt-head p{margin:0}
.receipt-counter{text-align:center;min-width:135px;padding:12px;border-radius:10px;background:#09632e;color:#fff}
.receipt-counter strong{display:block;font-size:1.55rem;line-height:1.1;color:#fff}
.receipt-counter span{display:block;font-size:.76rem;color:#fff;margin-top:5px}
.receipt-list{margin-top:16px}.receipt-teams{display:grid;gap:4px}.receipt-result{display:flex;align-items:center;gap:9px}
.status-ok,.status-missing{font-size:.79rem;font-weight:800;border-radius:6px;padding:4px 8px}
.status-ok{background:#e2f4e6;color:#08612d}.status-missing{background:#fff3e3;color:#875409}
.receipt-footer{font-size:.77rem;color:#5c7262;border-top:1px dashed #a5c9ad;margin-top:12px;padding-top:15px}
.filter-links{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 18px}
.filter-links a{border:1px solid #c4ddc8;background:#f7fcf7;border-radius:9px;padding:8px 12px;text-decoration:none;font-weight:730}
.filter-links a[aria-current=page]{background:#09632e;color:#fff;border-color:#09632e}
.honours-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:740px){.receipt-head{align-items:flex-start}.receipt-counter{min-width:110px}.honours-grid{grid-template-columns:1fr}}
@media(max-width:440px){.receipt-card{padding:14px}.receipt-counter{min-width:94px;padding:9px}.receipt-result{align-items:flex-end;flex-direction:column}}
@media print{
 .topbar,.footer,.no-print,.nav,.nav-toggle{display:none!important}
 html,body{background:#fff!important;color:#000}
 .page{width:100%;max-width:none;padding:0}
 .receipt-card{border:1px solid #999;box-shadow:none;max-width:none}
 .receipt-counter,.round-state.state-public{background:#09632e!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* v0.5 - selezione Jolly, leggibilita' alta del verde scuro */
.jolly-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 17px;padding:17px;border-radius:13px;border:1px solid #b6d7b5;background:#f0f9ec;color:#183d29}
.jolly-banner strong{font-size:1.08rem;color:#095c30}
.jolly-banner p{margin:5px 0 0;font-size:.89rem;color:#435b47;max-width:660px}
.jolly-choice{display:inline-flex;align-items:center;gap:6px;color:#174b2b;font-size:.87rem;font-weight:800;cursor:pointer;white-space:nowrap}
.jolly-choice input[type=radio]{width:17px;height:17px;min-height:17px;accent-color:#095c30;padding:0;margin:0}
.jolly-choice:has(input:checked){background:#d3eed8;border-radius:8px;padding:5px 8px}
.jolly-locked{display:inline-block;color:#fff!important;background:#095c30;border-radius:8px;padding:5px 9px;font-size:.8rem;font-weight:800;white-space:nowrap}
.match-item .score-inputs{flex-wrap:wrap}
.btn:not(.secondary):not(.danger),button:not(.secondary):not(.danger),input[type=submit],.round-state.state-public,.badge-number{color:#fff!important}
.btn:not(.secondary):not(.danger):hover,button:not(.secondary):not(.danger):hover{color:#fff!important}
.text-error{color:#a22d2d;font-weight:800}
.reverse-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.reverse-form input[type=text]{min-width:160px;max-width:230px}
@media(max-width:600px){.jolly-banner{align-items:flex-start}.match-item .score-inputs{width:100%;justify-content:flex-start}.reverse-form input[type=text]{max-width:100%}}


/* TotoSig8 v0.5 - SOLO accessibilita' e guida utenti. Nessuna regola motore modificata. */
.guide-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);align-items:center;gap:22px;padding:26px 0 18px}
.guide-hero h1{font-size:clamp(2rem,4.6vw,3.4rem);letter-spacing:-.04em;color:#153f29;line-height:1.12;margin:8px 0 16px}
.guide-hero p{font-size:1.09rem;max-width:650px;color:#425d4a}
.guide-ticket{background:#fff;border:2px solid #0b7236;border-radius:14px;box-shadow:var(--shadow);overflow:hidden;transform:rotate(1deg)}
.guide-ticket-top,.guide-ticket-bottom{padding:12px 16px;background:#086332;color:#fff;font-size:.86rem;font-weight:850;display:flex;align-items:center;justify-content:space-between;gap:8px}
.guide-ticket-top *, .guide-ticket-bottom *{color:#fff!important}
.guide-ticket-bottom{background:#f0f9ee;color:#27513a;font-weight:600;justify-content:flex-start}
.guide-ticket-tag{background:#fff;color:#08512c!important;padding:5px 9px;border-radius:7px;white-space:nowrap}
.guide-ticket-fixture{padding:25px 15px;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;text-align:center}
.guide-ticket-fixture strong{display:inline-flex;justify-content:center;align-items:center;width:50px;height:57px;border:2px solid #09632e;color:#09632e;font-size:1.6rem;border-radius:8px}
.guide-ticket-fixture span:not(.guide-ticket-dash){font-size:.86rem;color:#45664e;font-weight:720}
.guide-ticket-dash{font-size:1.6rem;color:#255137}
.guide-section{margin:22px 0 28px;scroll-margin-top:95px}.guide-section h2{margin:0 0 15px;font-size:1.5rem}
.guide-step-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.guide-step{position:relative;padding:17px;border:1px solid #d0e6d1;background:#fff;border-radius:14px;box-shadow:var(--shadow)}
.guide-step-number{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;background:#09632e;color:#fff!important;border-radius:10px;font-weight:900;font-size:1.1rem}
.guide-step h3{margin:10px 0 4px;font-size:1.04rem}.guide-step p{margin:0;font-size:.92rem;color:#46604f}
.guide-league-filter{margin-bottom:12px}.guide-league-filter form{margin:0}.guide-context{border-left:5px solid #087b38;background:#eaf7ec;border-radius:10px;padding:13px 15px;margin-bottom:15px;color:#254a31;display:grid;gap:3px}
.guide-context strong{color:#0c562c}.guide-context span{font-size:.9rem}
.guide-rule-layout{align-items:stretch}.guide-points-table td:first-child{width:82%}.guide-points-table td span:not(.guide-points-value){display:block;font-size:.81rem;color:#576e60;margin-top:3px}
.guide-points-table td:last-child{text-align:center}.guide-points-value{display:inline-flex;justify-content:center;align-items:center;min-width:48px;padding:7px 10px;background:#09632e;border-radius:8px;color:#fff!important;font-weight:900;font-size:1rem}
.guide-rule-emphasis{padding:12px 13px;margin:13px 0 2px;background:#e6f5e9;border:1px solid #c4e2ca;border-radius:9px;color:#224e33}
.guide-examples .guide-example{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px dashed #c2dfc9}.guide-example>div{display:flex;flex-direction:column;gap:4px}.guide-example strong{font-size:.93rem}.guide-example small{color:#59705d;font-size:.79rem}
.guide-match-score{font-size:1.14rem;font-variant-numeric:tabular-nums;font-weight:950;color:#09632e}
.guide-example b{white-space:nowrap;color:#09632e;background:#e8f4e9;border-radius:8px;padding:7px 10px}
.guide-legend{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.guide-legend span{padding:5px 8px;background:#f1f8f1;border:1px solid #cde4d0;border-radius:8px;font-size:.82rem}
.guide-simulator{max-width:860px}.guide-sim-sets{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guide-score-group{border:1px solid #d5e6d7;border-radius:11px;padding:12px 16px 16px;margin:0;min-width:0}
.guide-score-group legend{font-weight:850;color:#255034;padding:0 5px}.guide-number-fields{display:flex;align-items:flex-end;gap:9px}.guide-number-fields label{display:grid;gap:5px;flex:1;min-width:0;font-size:.8rem}
.guide-number-fields input{width:100%;max-width:112px;font-size:1.2rem;text-align:center;font-weight:900;padding:8px;min-height:50px;font-variant-numeric:tabular-nums}.guide-number-fields>span{font-size:1.7rem;padding-bottom:7px}
.guide-sim-jolly{display:inline-flex;gap:10px;align-items:center;margin:14px 0;cursor:pointer}.guide-sim-jolly input{width:19px;height:19px;min-height:19px;accent-color:#09632e}
.guide-sim-result{margin:15px 0 8px;background:#09632e;border-radius:12px;padding:17px 20px;color:#fff!important}
.guide-sim-result strong,.guide-sim-result p{color:#fff!important}.guide-sim-result strong{display:block;font-size:1.55rem}.guide-sim-result p{margin:4px 0 0;font-size:.9rem}
.guide-extra-grid{margin-top:14px}.guide-extra-grid .card h3{margin-bottom:8px}.guide-extra-grid .card p{margin:0;color:#45604e}
.guide-faq{display:grid;gap:10px}.guide-faq details,.guide-details{border:1px solid #cee2d1;background:#fff;border-radius:11px;padding:13px 16px}.guide-faq summary,.guide-details summary{cursor:pointer;font-weight:850;color:#0b5e30}.guide-faq details[open],.guide-details[open]{background:#f6fbf6}.guide-faq p,.guide-details p{margin:10px 0 0;color:#34533b;font-size:.95rem}
.guide-details{margin:12px 0 20px}.guide-bottom-cta{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;background:#ecf7ed;border:1px solid #cae0ce;border-radius:14px;padding:18px 20px;margin:22px 0}
.guide-home-strip,.guide-inline-note{border:1px solid #c2dfc8;background:#eff9ef;border-left:5px solid #09632e;border-radius:11px;padding:13px 16px;margin:10px 0 18px;color:#244e32}
.guide-home-strip a,.guide-inline-note a{font-weight:850}.guide-inline-score{display:inline-block;border:1px solid #a6d0ae;padding:2px 8px;border-radius:5px;background:#fff;font-weight:850}
.guide-heading-actions{margin:0}.guide-save-information{display:grid;gap:3px;padding:11px 14px;background:#f4faf4;border:1px solid #d2e8d5;border-radius:10px;margin-top:14px}.guide-save-information p{margin:0}
.guide-save-status.guide-unsaved{color:#7a4504;font-weight:850}.guide-short-list{padding-left:22px;color:#3c5a46}.guide-short-list li{margin:9px 0}
/* Buttons and headings on saturated greens must remain white and legible. */
.guide-sim-result a,.guide-ticket-top a{color:#fff!important}
@media(max-width:950px){.guide-step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-hero{grid-template-columns:1fr}.guide-ticket{transform:none;max-width:510px}}
@media(max-width:620px){.guide-step-grid,.guide-sim-sets{grid-template-columns:1fr}.guide-section{margin:20px 0}.guide-ticket-fixture{gap:9px}.guide-ticket-fixture strong{width:42px;height:49px}.guide-bottom-cta .btn{width:100%}.guide-simulator{padding:17px}.guide-rule-layout{grid-template-columns:1fr}.guide-heading-actions{justify-content:flex-start}}
@media print{.guide-hero .toolbar,.guide-league-filter,.guide-simulator,.guide-bottom-cta,.guide-inline-note,.guide-home-strip{display:none!important}}

/* TotoSig8 v0.6 - Campionato generale e import calendario */
.champ-home-card{border-top:5px solid #09632e;margin:6px 0 24px}
.champ-explain{background:#edf8ed;border-left:5px solid #09632e;margin-bottom:18px}
.champ-explain p{margin:7px 0;color:#244733}
.champ-provisional{background:#fff9ec!important;color:#5d4b2d}
.champ-table td.align-right,.champ-table th.align-right{text-align:right}
.champ-table .status-ok{background:#dcf3e1;color:#075b2c}
.import-example{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f7ee;color:#123d27;border:1px dashed #98cda7;border-radius:12px;padding:15px;font-size:.86rem;line-height:1.75;overflow-x:auto}
.champ-home-card .section-heading{margin-bottom:8px}
.champ-home-card .section-heading h2{margin:0;border:0;padding:0}
/* All controls on saturated dark green must have readable white foreground. */
.btn:not(.secondary):not(.danger),button:not(.secondary):not(.danger),input[type=submit],.round-state.state-public,.guide-step-number,.guide-points-value,.guide-sim-result,.guide-ticket-top{color:#fff!important}
.btn:not(.secondary):not(.danger) *,button:not(.secondary):not(.danger) *,.guide-sim-result *,.guide-ticket-top *{color:#fff!important}
@media(min-width:871px) and (max-width:1110px){.nav{gap:1px}.nav a{padding:9px 6px;font-size:.83rem}.brand{font-size:1.08rem}}
@media(max-width:700px){.champ-home-card .section-heading{align-items:stretch}.champ-home-card .section-heading .btn{max-width:100%}.import-example{font-size:.73rem;padding:10px}}

/* TotoSig8 v0.6.3: roles, scoped administration, and batch official results. */
.nav-role{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:9px;border:1px solid #cadfce;background:#f1faf2;font-size:.74rem;font-weight:850;white-space:nowrap;color:#18502e}
.nav-role-global{background:#09632e;color:#fff!important;border-color:#09632e}
.nav-role-league{background:#e3f3e6;color:#0a5129;border-color:#b5d5bc}
.nav-role-player{background:#f3f6f2;color:#365343;border-color:#d9e4d9}
.nav a.nav-global-link{border:1px solid #09632e;background:#09632e;color:#fff!important;border-radius:8px}
.nav a.nav-global-link:hover{background:#064a22;color:#fff!important}
.nav a.nav-admin-link{border:1px solid #9bcaa6;background:#e8f6eb;color:#0a5129;border-radius:8px}
.role-alert{margin:14px 0 23px;padding:14px 17px;border:1px solid #c0dec8;border-left:5px solid #087b38;background:#eef9ef;border-radius:10px;color:#204d30}
.role-alert strong{color:#0a4a26}
.role-section{margin:25px 0 34px}.role-section h2{font-size:1.35rem;color:#183b26;margin:0 0 13px}
.role-area-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.role-admin-card{border-top:4px solid #087b38}.role-league-cta{margin:16px 0 23px;background:#f1faf2}
.role-league-cta h2{margin:4px 0}.role-league-cta p{max-width:820px;color:#476150}
.role-home-note{margin:17px 0;padding:12px 15px;border:1px solid #b8d8c2;background:#fff;border-left:4px solid #087b38;border-radius:9px;font-size:.9rem}
.results-batch-header{display:grid;gap:5px;margin:10px 0 20px}
.results-batch-table input[type=number]{width:72px;min-width:68px;max-width:90px;text-align:center;font-weight:800}
.results-batch-table th{white-space:nowrap}
.results-batch-table td{vertical-align:middle}
.results-batch-table .result-locked{color:#486454;font-weight:700}
.results-batch-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:16px}
.results-batch-notice{margin:12px 0;color:#385942}
@media(max-width:930px){.nav-role{margin:5px 0 5px 8px}.role-area-grid{grid-template-columns:1fr}}
@media(max-width:520px){.results-batch-table input[type=number]{width:55px;min-width:49px}.role-alert{padding:12px}.nav-role{margin-left:0}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* v0.6.4: lifecycle controls */
.lifecycle-warning{border:1px solid #c69c54;background:#fff8ec;padding:16px;border-radius:12px;margin:16px 0;color:#563d12}
.lifecycle-danger{border:1px solid #cb7272;background:#fff5f4;padding:16px;border-radius:12px;margin:16px 0;color:#632e2e}
.lifecycle-warning strong,.lifecycle-danger strong{color:inherit}
.lifecycle-form{margin-top:12px}.lifecycle-form .field{max-width:560px}
/* TotoSig8 v0.7.0: conferme semplici, leggibili, senza checkbox a larghezza piena. */
.lifecycle-form label:has(input[type="checkbox"]),
.admin-check-label{display:flex;align-items:flex-start;gap:9px;line-height:1.45}
.lifecycle-form input[type="checkbox"],
.admin-check-label input[type="checkbox"]{flex:none;width:19px;min-width:19px;height:19px;min-height:19px;margin:2px 0 0;padding:0;accent-color:#166e39}
/* v0.7.4: profilazione, leggibilita' anche su smartphone */
.profile-overview{display:flex;align-items:center;gap:18px;margin:0 0 24px;flex-wrap:wrap}
.profile-avatar{display:flex;align-items:center;justify-content:center;width:94px;height:94px;object-fit:cover;border-radius:50%;border:3px solid #badbc3;background:#e8f6eb;color:#176234;font-size:2.4rem;font-weight:900;flex:none}
.profile-overview p{margin:5px 0}
@media(max-width:700px){.profile-avatar{width:78px;height:78px}}

/* TotoSig8 v0.7.5: nickname link and hover profile */
.ts8-player-link { color:#17643c; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.ts8-player-link:hover, .ts8-player-link:focus { color:#0b4227; }
.ts8-player-preview { position:fixed; z-index:2000; box-sizing:border-box; padding:12px; background:#fff; color:#163523; border:1px solid #d2e2d8; border-radius:12px; box-shadow:0 9px 28px rgba(0,0,0,.19); pointer-events:none; font-size:.9rem; }
.ts8-player-preview[hidden] { display:none; }
.ts8-player-preview-content { display:flex; gap:11px; align-items:flex-start; }
.ts8-preview-avatar { width:49px; height:49px; flex:0 0 49px; border-radius:50%; object-fit:cover; background:#e2f2e8; border:1px solid #d2e2d8; }
.ts8-preview-placeholder { display:flex; justify-content:center; align-items:center; font-weight:bold; color:#17643c; font-size:1.2rem; }
.ts8-player-preview-content small { display:block; color:#53655a; line-height:1.35; margin-top:2px; overflow-wrap:anywhere; }
.ts8-public-profile { display:flex; align-items:flex-start; gap:22px; max-width:780px; }
.ts8-public-profile .profile-avatar { width:98px; height:98px; flex:0 0 98px; object-fit:cover; }
@media (max-width:540px) { .ts8-public-profile { flex-direction:column; } }

/* TotoSig8 v0.7.6: campionato generale discussion */
.ts8-forum{margin-top:24px}.ts8-forum .section-heading{margin-bottom:14px}
.ts8-forum-form{background:#f2faf3;border:1px solid #cde4d0;padding:16px;border-radius:12px;margin-bottom:18px}
.ts8-forum-form textarea{width:100%;min-height:92px;resize:vertical}
.ts8-forum-list{display:grid;gap:12px;margin:18px 0}
.ts8-forum-post{background:#fff;border:1px solid #dfebe1;border-left:4px solid #3c9361;border-radius:12px;padding:16px;overflow-wrap:anywhere}
.ts8-forum-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.ts8-forum-avatar{height:39px;width:39px;flex:none;border-radius:50%;object-fit:cover;background:#e4f1e7}
.ts8-forum-avatar-text{display:flex;align-items:center;justify-content:center;color:#12653b;font-weight:800}
.ts8-forum-author{display:flex;flex-direction:column;min-width:100px;flex:1}.ts8-forum-author small{color:#58715f}
.ts8-forum-meta time{font-size:.78rem;color:#65766b}
.ts8-forum-quoted{background:#f1f5f0;border-left:3px solid #9cbc9e;padding:9px 12px;margin:9px 0;color:#45604c;border-radius:4px}
.ts8-forum-quoted div{font-size:.84rem;white-space:normal}.ts8-forum-cancel{display:block;margin-top:7px}
.ts8-forum-message{white-space:normal;line-height:1.6;margin:11px 0;color:#163523}
.ts8-forum-actions{display:flex;justify-content:flex-start;align-items:center;gap:15px;font-size:.85rem}
.ts8-forum-actions form{display:inline;margin:0}.ts8-forum-actions button{font-size:.8rem;padding:5px 9px}
@media(max-width:640px){.ts8-forum-meta time{width:100%;padding-left:49px}.ts8-forum-post{padding:11px}}

/* v0.7.7 - Classifiche paginate, posizione personale. */
.rank-pages{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:15px 0}
.rank-pages a,.rank-pages strong{display:inline-flex;min-width:34px;min-height:34px;align-items:center;justify-content:center;padding:6px 10px;text-decoration:none;background:#f0f8f1;border:1px solid #c3dfcb;border-radius:8px;color:#15562d;font-size:.9rem}
.rank-pages strong{background:#146b36;color:white;border-color:#146b36}
.rank-pages a:hover{background:#d9f0de}
.rank-near{border-left:5px solid #138047;margin-bottom:18px}
.rank-me,.rank-me:nth-child(even),.rank-me.champ-provisional{background:#dbf4e4!important;border-left:4px solid #08713c}
.rank-you{background:#167342;color:white;border-radius:5px;padding:2px 6px;font-size:.75rem;font-weight:800;white-space:nowrap}
.nav a strong{font-weight:900}

/* v0.7.9: navigazione classifiche e dettagli campionato. */
.league-name-link{font-weight:800;text-decoration:underline;text-underline-offset:3px;color:#075f32}
.league-name-link:hover,.league-name-link:focus-visible{color:#093a21}
.champ-explain-collapsible{padding:13px 20px}
.champ-explain-collapsible>summary{cursor:pointer;font-size:1.12rem;font-weight:850;color:#075b2c;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.champ-explain-collapsible>summary::-webkit-details-marker{display:none}
.champ-explain-collapsible>summary::after{content:'+';font-size:1.4rem;line-height:1;flex:none}
.champ-explain-collapsible[open]>summary::after{content:'−'}
.champ-explain-collapsible[open]>summary{margin-bottom:14px}
.ts8-classifiche-official{border-left:5px solid #09632e}
.ts8-classifiche-league{scroll-margin-top:20px}
.ts8-classifiche-league h3{margin-top:0}
.ts8-classifiche-nav{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 18px}
.ts8-classifiche-nav a{color:#075f32;font-weight:700}
.ts8-classifiche-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:6px 0 14px}
.ts8-classifiche-tabs .inline-form{margin:0}

/* v0.7.9 revisione mobile: pulsante menu sempre verde scuro, anche da chiuso. */
.nav-toggle{background:#095c30;border-color:#064922;color:#fff}
.nav-toggle:hover,.nav-toggle:focus-visible,.nav-toggle[aria-expanded="true"]{background:#064922;border-color:#043719;color:#fff}

/* v0.8.0: invito a scomparsa e forum classifica nelle leghe private */
.ts8-invite-details summary{cursor:pointer;font-weight:850;color:#184f2b;list-style-position:inside;padding:3px 0}
.ts8-invite-details summary:focus-visible{outline:3px solid #196a3b;outline-offset:4px;border-radius:4px}
.ts8-invite-details[open] summary{margin-bottom:10px}
.ts8-league-ranking{margin-top:22px}
.ts8-league-ranking .rank-pages{margin:12px 0}

/* v0.8.1: home dashboard */
.ts8-dash-header{align-items:flex-end}.ts8-dashboard-leagues,.ts8-dashboard-alerts{display:grid;gap:12px}
.ts8-dashboard-league,.ts8-dashboard-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f7fbf7;border:1px solid #d5e8d7;border-radius:12px;padding:16px}
.ts8-dashboard-league h3,.ts8-dashboard-notice h3{margin:0 0 7px;color:#0a502c}.ts8-dashboard-league p,.ts8-dashboard-notice p{margin:0}
.ts8-dashboard-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ts8-dashboard-eyebrow{display:block;color:#377447;font-size:.8rem;font-weight:800;margin-bottom:7px}
.ts8-dashboard-notice{border-left:5px solid #1d8348;background:#f4faf6}.ts8-dashboard-notice form{margin:0;flex:none}
.ts8-dashboard-ranks th:last-child,.ts8-dashboard-ranks td:last-child{text-align:right}.ts8-dashboard-footer-links{display:flex;gap:20px;flex-wrap:wrap;margin:10px 0 35px}.ts8-dashboard-footer-links a{color:#0c6537;font-weight:700}
@media(max-width:690px){.ts8-dashboard-league,.ts8-dashboard-notice{flex-direction:column;align-items:stretch;gap:12px}.ts8-dashboard-actions{justify-content:flex-start}.ts8-dashboard-league .btn,.ts8-dashboard-notice button{width:100%;text-align:center}.ts8-dashboard-ranks .btn{font-size:.8rem;padding:7px 9px}.ts8-dash-header{align-items:flex-start}}

/* v0.8.5 — Serie A e statistiche consultabili durante la schedina */
.fd-dashboard{margin-bottom:20px}.fd-prediction-wrap{margin-bottom:19px;border-color:#c4dfc9}
.fd-prediction-wrap>summary{cursor:pointer;padding:14px;font-weight:850;color:#095c30;list-style-position:inside}
.fd-prediction-wrap[open]>summary{border-bottom:1px solid #d5e8d7;margin-bottom:16px}
.fd-loading{margin-bottom:10px;color:#52615a;font-size:.92rem}.fd-error{color:#a11d2f;font-weight:650}
.fd-view-tabs{display:flex;gap:5px;flex-wrap:wrap}.fd-tab{cursor:pointer;border:1px solid #a6cdb0;color:#095c30;background:#fff;padding:7px 11px;border-radius:8px;font-weight:700}
.fd-tab.fd-selected{background:#095c30;color:#fff;border-color:#095c30}
.fd-team-filter{width:min(280px,100%);padding:8px;border:1px solid #c9dacf;border-radius:8px}
.fd-controls{display:flex;flex-wrap:wrap;gap:13px;align-items:center;justify-content:space-between;margin:10px 0 15px}
.fd-table{width:100%;font-size:.87rem;white-space:nowrap}.fd-table td,.fd-table th{padding:9px 7px}.fd-table th{background:#095c30;color:#fff;text-align:center}.fd-table th:nth-child(2){text-align:left}
.fd-table .fd-team-name{font-weight:750;text-align:left;white-space:normal;min-width:105px}.fd-table .fd-num,.fd-table .fd-points{text-align:center}.fd-table .fd-points{font-weight:850;color:#07562c}
.fd-form{display:inline-flex;gap:3px;justify-content:center}.fd-form>span{display:inline-grid;place-items:center;font-size:.68rem;font-weight:750;border-radius:4px;min-width:19px;height:21px}
.fd-form-V{background:#d5f3dc;color:#075927}.fd-form-P{background:#edf0ee;color:#3d564a}.fd-form-S{background:#fce1df;color:#a02828}
.fd-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:8px 0 24px}
.fd-overview-card{background:#f2f8f3;border:1px solid #d5e8d7;border-radius:11px;padding:13px;display:flex;flex-direction:column;gap:7px}
.fd-overview-card small{color:#52675a}.fd-overview-card strong{font-size:1.4rem;color:#095c30}
.fd-schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:28px}
.fd-round{border:1px solid #c9dfcc;border-radius:9px;margin-bottom:10px;padding:9px}
.fd-round>summary{cursor:pointer;font-weight:780;color:#095c30}.fd-round-title{margin-top:0}
.fd-fixture{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e6eee8;padding:8px 3px;font-size:.88rem}
.fd-fixture:last-child{border-bottom:0}.fd-fixture-date{color:#657068;flex:0 0 98px}.fd-fixture-teams{flex:1}.fd-fixture-score{white-space:nowrap}
.fd-attribution{font-size:.8rem;margin-top:20px}.fd-attribution a{color:#3a6449}
@media(max-width:760px){.fd-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-schedule-grid{grid-template-columns:1fr}.fd-table{font-size:.79rem}.fd-table td,.fd-table th{padding:8px 5px}.fd-fixture-date{flex:0 0 90px}}

/* TotoSig8 v0.8.5.1: righe piu compatte nelle classifiche Campionato e Classifiche.
   Riduce soltanto il padding verticale da 12px a 8px; altre tabelle, form
   e la classifica interna delle singole leghe conservano la densita originale. */
.champ-table th,.champ-table td,
.ts8-classifiche-league .table-wrap th,
.ts8-classifiche-league .table-wrap td{padding-top:8px;padding-bottom:8px;line-height:1.4}
