/* Il mio account — stessa grafica del sito: stesso carattere, colore del marchio, schede bianche su fondo soft. */
.account-wrap{padding-top:28px;padding-bottom:64px}
.account-wrap[hidden]{display:none}
#account{max-width:none;margin:0 auto;padding-left:var(--m);padding-right:var(--m)}
.ac-testa{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}
.ac-testa h2{font-size:var(--head);font-weight:700;letter-spacing:-.01em}
.ac-esci{color:var(--muted);font-weight:600;font-size:var(--small)}
.ac-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:22px;border-bottom:2px solid var(--soft2);scrollbar-width:thin}
.ac-tabs a{flex:none;text-decoration:none;font-weight:600;font-size:var(--small);padding:9px 14px;border-radius:8px 8px 0 0;color:var(--muted);display:inline-flex;gap:8px;align-items:center}
.ac-tabs a:hover{background:var(--soft)}
.ac-tabs a.on{color:var(--marchio);background:var(--tinta);box-shadow:inset 0 -3px var(--marchio)}
.ac-tabs b{background:var(--marchio);color:var(--on-marchio);border-radius:999px;font-size:.75rem;min-width:1.4em;padding:1px 6px;text-align:center}
.ac-tg{display:none}
@media (max-width:700px){
  .ac-tabs{flex-direction:column;gap:0;overflow:visible;padding-bottom:0;border-bottom:0;background:var(--soft);border-radius:10px}
  .ac-tg{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;padding:13px 14px;font-weight:600;font-size:var(--small);cursor:pointer;text-align:left}
  .ac-tg .ico{width:1.4em;height:1.4em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .ac-tabs a{display:none;border-radius:0;padding:13px 14px}
  .ac-tabs.aperto a{display:flex}
}
.ac-msg{padding:13px 16px;border-radius:10px;font-weight:600;margin-bottom:18px}
.ac-msg.ok{background:var(--ok-bg);color:var(--ok)}
.ac-msg.err{background:#fde8e8;color:#8a1c1c}
.ac-sez{display:grid;gap:14px}
.ac-h{font-size:var(--lead);font-weight:700}
.ac-sep{border:0;border-top:2px solid var(--soft2);margin:26px 0}
.muted{color:var(--muted)}

/* Card fedeltà */
.ac-card{background:var(--marchio);color:var(--on-marchio);border-radius:14px;padding:22px 24px;display:grid;gap:6px}
.ac-card.g{background:color-mix(in srgb,var(--marchio) 70%,#4b2a86)}
.ac-card-top{display:flex;justify-content:space-between;gap:12px;font-size:var(--small);opacity:.92}
.ac-card-nome{font-size:var(--lead);font-weight:600;margin-top:8px}
.ac-punti{font-size:clamp(2.2rem,1.6rem + 2.4vw,3.2rem);font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1}
.ac-punti small{font-size:var(--small);font-weight:400;opacity:.85}
.ac-meta{margin:0;font-size:var(--small);opacity:.85}
.ac-prox{display:flex;justify-content:space-between;gap:12px;font-size:var(--small);margin-top:8px}
.ac-bar{height:8px;border-radius:99px;background:var(--soft2);overflow:hidden}
.ac-card .ac-bar{background:rgba(255,255,255,.3)}
.ac-bar i{display:block;height:100%;background:var(--marchio);border-radius:99px}
.ac-card .ac-bar i{background:#fff}
.ac-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.ac-badge{background:var(--soft);border-radius:12px;padding:14px;display:grid;gap:3px;justify-items:start;opacity:.7}
.ac-badge.ok{opacity:1;background:var(--tinta)}
.ac-bn{width:42px;height:42px;border-radius:50%;border:2px solid var(--soft2);display:grid;place-items:center;font-size:1.3rem;background:#fff;margin-bottom:4px}
.ac-badge.ok .ac-bn{color:#fff}
.ac-badge small{color:var(--muted)}
.ac-badge em{font-style:normal;font-size:.8125rem;color:var(--muted)}

/* Elenchi e movimenti */
.ac-det{background:var(--soft);border-radius:12px;padding:6px 16px}
.ac-det summary{cursor:pointer;font-weight:600;padding:10px 0}
.ac-mov{display:grid;grid-template-columns:7rem minmax(0,1fr) auto;gap:16px;padding:10px 0;border-top:1px solid var(--soft2);font-size:var(--small);align-items:start}
.ac-sub{padding-left:14px;opacity:.9}
.ac-md{color:var(--muted);font-variant-numeric:tabular-nums}
.ac-mt{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.ac-mt small{color:var(--muted)}
.ac-mi{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.ac-mi.pos{color:var(--ok)}
.ac-tot{margin:0;font-size:var(--lead)}
.ac-tot strong{font-size:1.6rem;font-variant-numeric:tabular-nums}

/* Ordini, proposte, buoni, gradazione */
.ac-ord,.ac-buono,.ac-gcard{background:var(--soft);border-radius:14px;padding:18px 20px;display:grid;gap:12px}
.ac-ord.da-pagare{box-shadow:inset 4px 0 var(--marchio)}
.ac-buono.spento{opacity:.65}
.ac-gcard{border-left:5px solid var(--muted)}
.ac-gcard img{max-width:120px;border-radius:8px}
.ac-gcard.tot{border-left-color:var(--marchio);background:var(--tinta)}
.ac-ord-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.ac-ord-top small{display:block;color:var(--muted)}
.ac-ord-r{display:grid;justify-items:end;gap:4px}
.ac-ord-r strong{font-size:var(--lead);font-variant-numeric:tabular-nums}
.ac-tag{display:inline-block;font-weight:600;font-size:.8125rem;padding:3px 11px;border-radius:999px;background:var(--soft2);color:var(--muted)}
.ac-tag.ok{background:var(--ok-bg);color:var(--ok)}
.ac-tag.no{background:#fde8e8;color:#8a1c1c}
.ac-tag.parz{background:var(--tinta);color:var(--marchio)}
.ac-righe{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ac-righe li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center}
.ac-righe img,.ac-noimg{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:8px;display:block}
.ac-rn{overflow-wrap:anywhere}
.ac-info{margin:0;font-size:var(--small)}
.ac-info.muted{color:var(--muted)}
.ac-info.err{color:#8a1c1c;font-weight:600}
.ac-scelta{background:#fff;border-radius:12px;padding:14px 16px;display:grid;gap:10px}
.ac-scelta p{margin:0;font-size:var(--small)}
.ac-scelta.fatta{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}
.ac-btns{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn.ghost{background:transparent;color:var(--marchio);box-shadow:inset 0 0 0 2px var(--marchio)}
.ac-lnk{border:0;background:none;padding:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:var(--small)}
.ac-dl{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.ac-dl div{display:grid;gap:2px}
.ac-dl dt{color:var(--muted);font-size:.8125rem}
.ac-dl dd{margin:0;font-weight:600}
.ac-dl dd.grande{font-size:1.5rem;font-variant-numeric:tabular-nums}
.ac-grad-top{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center}
.ac-gcards{display:grid;gap:12px}
.ac-contratti{display:grid;gap:10px;justify-items:start;margin-top:8px}
.ac-cta{margin:8px 0 0}

/* Tornei */
.ac-cal{background:var(--soft);border-radius:14px;padding:14px 16px}
.ac-cal-h{display:flex;align-items:center;justify-content:space-between;text-transform:capitalize;margin-bottom:8px}
.ac-cal-n{border:0;background:#fff;border-radius:8px;width:36px;height:36px;font-size:1.2rem;cursor:pointer}
.ac-cal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.ac-cal-g i{font-style:normal;padding:7px 0;border-radius:8px;font-size:var(--small);font-variant-numeric:tabular-nums}
.ac-cal-g i.w{color:var(--muted);font-size:.75rem;font-weight:600}
.ac-cal-g i.ev{background:var(--marchio);color:var(--on-marchio);font-weight:700}
.ac-filtro{display:flex;gap:10px;align-items:center;font-weight:600;font-size:var(--small)}
.ac-filtro select{border:0;background:var(--soft);border-radius:8px;padding:8px 12px}
.ac-tornei{display:grid;gap:12px}
.ac-torneo{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;background:var(--soft);border-radius:14px;padding:16px 18px}
.ac-tdata{background:var(--marchio);color:var(--on-marchio);border-radius:12px;display:grid;place-items:center;align-content:center;padding:8px 0;text-transform:uppercase;line-height:1.1}
.ac-tdata b{font-size:1.6rem}
.ac-tdata span{font-size:.8125rem;font-weight:600}
.ac-tdata small{font-size:.6875rem;opacity:.8}
.ac-tinfo h4{margin:0 0 4px;font-size:var(--body)}
.ac-tinfo p{margin:0 0 6px;font-size:var(--small)}

/* Moduli e finestre */
.ac-modale{position:fixed;inset:0;z-index:90;background:rgba(27,31,36,.55);display:grid;place-items:center;padding:16px;overflow:auto}
.ac-box,.ac-form-sped{background:var(--bg);border-radius:14px;padding:22px;width:min(640px,100%);max-height:calc(100vh - 32px);overflow:auto;display:grid;gap:14px}
.ac-modale h3{font-size:var(--lead)}
.ac-fg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ac-fg .w2{grid-column:1/-1}
.ac-box label,.ac-form-sped label,.ac-form-pw label{display:grid;gap:5px;font-weight:600;font-size:var(--small)}
.ac-modale input:not([type=checkbox]),.ac-modale select,.ac-form-pw input{border:0;background:var(--soft);border-radius:8px;padding:12px 14px;font-weight:400;width:100%}
.ac-form-pw{display:grid;gap:14px;max-width:420px}
.ac-cons{display:grid;gap:10px;max-width:760px;justify-items:start}
.ac-cons .btn{padding:9px 18px;font-size:var(--small)}
.ac-cons p{margin:0}
.ac-cons-st{margin:0;padding:8px 14px;border-radius:8px;font-weight:600}
.ac-cons-st.si{background:var(--ok-bg);color:var(--ok)}
.ac-cons-st.no{background:var(--soft)}
.ac-form-ind{display:grid;gap:14px;max-width:760px}
.ac-form-ind label{display:grid;gap:5px;font-weight:600;font-size:var(--small)}
.ac-form-ind input{border:0;background:var(--soft);border-radius:8px;padding:12px 14px;font-weight:400;width:100%}
.ac-form-ind .btn{justify-self:start;padding:9px 18px;font-size:var(--small)}
.ac-form-ind .ac-vc{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:14px}
.ac-form-ind .ac-cp{display:grid;grid-template-columns:140px minmax(0,1fr) 140px;gap:14px}
.ac-form-ind .ac-tel{max-width:320px}
@media(max-width:560px){.ac-form-ind .ac-vc,.ac-form-ind .ac-cp{grid-template-columns:1fr}.ac-form-ind .ac-tel{max-width:none}}
.ac-carta{border:2px solid var(--soft2);border-radius:12px;padding:14px;display:grid;gap:12px;margin:0}
.ac-carta legend{font-weight:700;padding:0 6px}
label.ac-chk{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.ac-scroll{overflow-x:auto}
.ac-tab{width:100%;border-collapse:collapse;font-size:var(--small)}
.ac-tab th{text-align:left;color:var(--muted);font-size:.8125rem;padding:6px 8px;border-bottom:2px solid var(--soft2)}
.ac-tab td{padding:10px 8px;border-bottom:1px solid var(--soft2);vertical-align:top}
.ac-tab tr.sosp{color:#8a1c1c}
@media(max-width:560px){
  .ac-fg{grid-template-columns:1fr}
  .ac-mov{grid-template-columns:6.25rem minmax(0,1fr) auto;gap:10px}
  .ac-torneo{grid-template-columns:56px minmax(0,1fr);padding:14px}
}

.ac-scale{display:grid;gap:26px}
.ac-scala{display:grid;gap:14px;align-content:start;min-width:0}
@media(min-width:900px){.ac-scale.due{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start}}
.ac-trow{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ac-trow p{margin:0!important}
.ac-trow .btn{padding:8px 16px;flex:none}
.ac-trow{flex-wrap:wrap}.ac-trow .ac-btns{flex:none;flex-wrap:nowrap}.ac-trow .btn{padding:8px 16px}

.ac-torneo.con-foto{grid-template-columns:64px minmax(0,1fr) 150px}
.ac-tfoto{display:block;align-self:start}
.ac-tfoto img{width:100%;height:auto;max-height:200px;object-fit:contain;border-radius:10px;background:#fff;display:block}
@media(max-width:700px){.ac-torneo.con-foto{grid-template-columns:56px minmax(0,1fr)}.ac-tfoto{grid-column:1/-1}.ac-tfoto img{max-height:260px}}
.ac-torneo.con-foto{grid-template-columns:64px 150px minmax(0,1fr)}
.ac-torneo.con-foto .ac-tdata{order:0}.ac-torneo.con-foto .ac-tfoto{order:1}.ac-torneo.con-foto .ac-tinfo{order:2}
@media(max-width:700px){.ac-torneo.con-foto{grid-template-columns:56px minmax(0,1fr)}.ac-torneo.con-foto .ac-tinfo{order:1}.ac-torneo.con-foto .ac-tfoto{order:2}}

.ac-tcols{display:grid;gap:18px}
.ac-tsx{display:grid;gap:14px;align-content:start}
.ac-tdx{min-width:0}
@media(min-width:900px){.ac-tcols{grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:28px;align-items:start}.ac-tsx{position:sticky;top:130px}}

.ac-cal-g button{border:0;font:inherit;cursor:pointer;padding:7px 0;border-radius:8px;font-size:var(--small);font-variant-numeric:tabular-nums;background:var(--marchio);color:var(--on-marchio);font-weight:700}
.ac-cal-g button:hover{filter:brightness(1.12)}
.ac-cal-g button.sel{outline:3px solid var(--ink);outline-offset:-3px}
.ac-tgiorno{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.ac-torneo.con-foto{grid-template-columns:64px 120px minmax(0,1fr)}
.ac-tfoto img{max-height:160px}
@media(max-width:700px){.ac-torneo.con-foto{grid-template-columns:56px minmax(0,1fr)}.ac-tfoto img{max-height:210px}}
.ac-dx{text-align:right}
.ac-rq{display:inline-block;margin-left:6px;background:var(--tinta);color:var(--marchio);border-radius:999px;padding:1px 10px;font-size:.875rem;white-space:nowrap}

.ac-prodsaldo{display:flex;justify-content:space-between;align-items:center;gap:16px 24px;flex-wrap:wrap}
.ac-prodsaldo .ac-righe{flex:1 1 280px;min-width:0}
.ac-prodsaldo .ac-info{flex:0 1 auto;margin-left:auto}
.ac-scelta.fatta{justify-content:flex-end;text-align:right}

.ac-paga{max-width:460px;text-align:left}
.ac-importo{background:var(--tinta);border-radius:12px;padding:14px 18px;display:grid;gap:2px}
.ac-importo small{color:var(--marchio);font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.75rem}
.ac-importo strong{font-size:2rem;font-variant-numeric:tabular-nums}
.ac-opz{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;background:var(--soft);border-radius:12px;padding:14px 16px;cursor:pointer;transition:background .15s}
.ac-opz:hover{background:var(--tinta);box-shadow:inset 0 0 0 2px var(--marchio)}
.ac-opz-ic{width:44px;height:44px;border-radius:10px;background:var(--marchio);color:var(--on-marchio);display:grid;place-items:center;font-size:1.3rem;flex:none}
.ac-opz b{display:block}
.ac-opz small{color:var(--muted)}
.ac-opz i{margin-left:auto;font-style:normal;font-size:1.4rem;color:var(--muted)}
.ac-bon{background:var(--soft);border-radius:12px;overflow:hidden}
.ac-bon>div{display:flex;align-items:center;gap:10px;padding:11px 16px;border-top:1px solid var(--soft2)}
.ac-bon>div:first-child{border-top:0}
.ac-bon span{flex:1;min-width:0;display:grid}
.ac-bon small{color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}
.ac-bon b{overflow-wrap:anywhere}
.ac-dx-btns{justify-content:flex-end}

.ac-box{position:relative}
.ac-x{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:var(--soft);cursor:pointer;font-size:1rem;line-height:1}
.ac-x:hover{background:var(--soft2)}

.ac-metodo{font-weight:600;color:var(--ink)!important;margin-top:2px}
.ac-ord-r .ac-metodo{text-align:right}

.ac-avviso-g{margin:0;padding:10px 12px;border-radius:8px;background:#fff4e0;color:#8a5200;font-size:var(--small);font-weight:600}
.ac-avviso-g[hidden]{display:none}

.ac-costo-g{margin:0;font-size:var(--small)}
.ac-totale-g{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;background:var(--tinta);border-radius:12px;padding:14px 18px;font-weight:600}
.ac-totale-g strong{font-size:1.6rem;font-variant-numeric:tabular-nums}
.ac-totale-g small{flex:1 0 100%;color:var(--muted);font-weight:400}

/* Gradazione: riepilogo e card più compatti */
.ac-grad-top{gap:10px 16px}
.ac-grad-top .ac-tot{font-size:var(--body)}
.ac-grad-top .ac-tot strong{font-size:1.15rem}
.ac-grad-top .btn{padding:9px 16px;font-size:var(--small)}
.ac-gcards{gap:8px}
.ac-gcard{padding:12px 16px;gap:8px}
.ac-gcard .ac-dl{grid-template-columns:repeat(4,minmax(0,auto));gap:6px 22px;justify-content:start}
.ac-gcard .ac-dl dd{font-size:var(--small)}
.ac-gcard .ac-info{font-size:.875rem}
.ac-gcard img{max-width:64px}
.ac-gcard.tot{padding:10px 16px}
.ac-contratti{gap:8px}
.ac-contratti .btn{padding:8px 14px;font-size:var(--small)}
@media(max-width:560px){.ac-gcard .ac-dl{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Carta in gradazione: foto a sinistra, dati su una riga sola accanto */
.ac-gcard.riga{display:grid;grid-template-columns:1fr;gap:0;padding:10px 14px}
.ac-gcard.riga.con-foto{grid-template-columns:84px minmax(0,1fr);gap:14px;align-items:center}
.ac-gfoto{display:block}
.ac-gfoto img{width:84px;height:auto;max-height:118px;object-fit:contain;border-radius:8px;background:#fff;display:block;max-width:none}
.ac-gbody{display:grid;gap:6px;min-width:0}
.ac-gbody .ac-ord-top b{font-weight:700}
.ac-gdati{display:flex;flex-wrap:wrap;gap:2px 18px;font-size:.875rem;align-items:baseline}
.ac-gdati i{font-style:normal;color:var(--muted);margin-right:4px}
.ac-gcosto{margin-left:auto}
@media(max-width:560px){.ac-gcard.riga.con-foto{grid-template-columns:64px minmax(0,1fr)}.ac-gfoto img{width:64px}.ac-gcosto{margin-left:0;flex:1 0 100%}}

.ac-gord{display:grid;gap:8px;margin-top:6px}
.ac-gord-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 16px;padding:8px 2px;border-bottom:2px solid var(--soft2)}
.ac-gord-h h4{margin:0;font-size:var(--body)}
.ac-gord-h span{color:var(--muted);font-size:.875rem}
.ac-gord-h span b{color:var(--ink)}

.ac-contratti-g{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.ac-contratti-g .btn{padding:8px 14px;font-size:var(--small)}

/* Invio carte in gradazione: passaggi come nell'area riservata */
.ac-grada{max-width:640px}
.ac-carta legend{display:flex;align-items:center;gap:12px}
.ac-aggiungi{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.ac-aggiungi small{font-size:.8125rem}
.ac-stepper{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;font-size:.75rem;text-align:center}
.ac-stepper li{display:grid;justify-items:center;gap:4px;color:var(--muted);line-height:1.2}
.ac-stepper i{font-style:normal;width:28px;height:28px;border-radius:50%;background:var(--soft2);display:grid;place-items:center;font-weight:700}
.ac-stepper li.on{color:var(--marchio);font-weight:700}
.ac-stepper li.on i{background:var(--marchio);color:var(--on-marchio)}
.ac-stepper li.fatto i{background:var(--ok);color:#fff}
.ac-stepper li.fatto{color:var(--ok)}
.ac-gh{display:block;text-align:center}
.ac-caric{position:absolute;inset:0;z-index:5;background:rgba(255,255,255,.88);display:grid;place-items:center;border-radius:14px;text-align:center}
.ac-caric[hidden]{display:none}
.ac-caric>div{display:grid;gap:8px;justify-items:center}
.ac-spin{display:inline-block;animation:acgira 1.2s linear infinite}
@keyframes acgira{to{transform:rotate(360deg)}}
/* Invio carte: i quattro pulsanti stanno sulla stessa riga */
.ac-grada>.ac-btns{flex-wrap:nowrap;gap:8px}
.ac-grada>.ac-btns .btn{flex:1 1 0;min-width:0;padding:12px 8px;font-size:.875rem;white-space:nowrap;gap:6px}
@media(max-width:560px){.ac-grada>.ac-btns{flex-wrap:wrap}.ac-grada>.ac-btns .btn{flex:1 1 calc(50% - 8px)}}

.ac-gord-h{align-items:center}
.ac-gord-h h4{flex:1 1 auto}
.ac-gord-h .ac-contratti-g{margin-left:auto}
.ac-gord-h .ac-contratti-g .btn{padding:6px 12px;font-size:.8125rem}
/* Riga dell'ordine di gradazione: titolo a sinistra, contratto al centro, riepilogo a destra */
@media(min-width:700px){
  .ac-gord-h{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px 16px}
  .ac-gord-h h4{grid-column:1;grid-row:1}
  .ac-gord-h .ac-contratti-g{grid-column:2;grid-row:1;margin:0;justify-content:center}
  .ac-gord-h>span{grid-column:3;grid-row:1;text-align:right}
}

.ac-sub-t{margin:18px 0 4px;font-size:var(--body);font-weight:700}
.ac-recvoci{display:grid;gap:6px}
.ac-recvoce{display:flex!important;align-items:center;gap:10px;background:var(--soft);border-radius:10px;padding:10px 14px;font-weight:400!important}
.ac-recvoce span{flex:1;min-width:0;overflow-wrap:anywhere}
.ac-recvoce input{width:auto!important;flex:none}
.ac-recnota{display:grid;gap:5px;font-weight:600;font-size:var(--small)}
.ac-recnota textarea{border:0;background:var(--soft);border-radius:8px;padding:12px 14px;font:inherit;font-weight:400;width:100%}

/* ---------- Ordini ridisegnati: intestazione chiara, una sola scelta di consegna, azione in evidenza ---------- */
.ac-ord{border-radius:12px;padding:20px 24px;gap:16px}
.ac-ord.da-pagare{box-shadow:none}
.ac-ord-top b{font-size:var(--lead);font-weight:800;letter-spacing:-.01em}
.ac-ord-r{gap:8px}
.ac-ord-r strong{font-size:1.5rem;font-weight:800;line-height:1}
.ac-ord .ac-tag{border-radius:8px;padding:5px 12px}
.ac-ord.da-pagare .ac-ord-r .ac-tag{background:var(--marchio);color:var(--on-marchio)}
.ac-ord .ac-righe img,.ac-ord .ac-noimg{width:56px;height:56px;border-radius:8px}
.ac-ord .ac-righe li{grid-template-columns:56px minmax(0,1fr)}
.ac-ord .ac-rn{font-weight:600}
.ac-scelta{border-radius:8px}
.ac-scelta.fatta{justify-content:space-between;text-align:left}
.ac-scelta.fatta b{margin-right:auto}
.ac-ord>.btn{justify-self:end;padding:14px 28px}
.ac-ord>.ac-info.ac-dx{justify-self:end}
@media(max-width:620px){.ac-ord>.btn{justify-self:stretch}.ac-scelta.fatta{flex-direction:column;align-items:flex-start}}

/* Ordine più compatto */
.ac-ord{padding:12px 16px;gap:8px}
.ac-ord-r{gap:4px}
.ac-ord-r strong{font-size:1.25rem}
.ac-ord .ac-tag{padding:3px 10px;font-size:.75rem}
.ac-ord .ac-righe{gap:4px}
.ac-ord .ac-righe img,.ac-ord .ac-noimg{width:40px;height:40px}
.ac-ord .ac-righe li{grid-template-columns:40px minmax(0,1fr);gap:10px}
.ac-scelta{padding:8px 12px}
.ac-scelta.fatta{gap:4px 14px}
.ac-ord>.btn{padding:10px 22px;font-size:var(--small)}
.ac-ord>.ac-info{margin:0}
.ac-ord .ac-info.ac-dx{font-size:.8125rem}

/* Numero ordine, prodotti e importo sulla stessa riga */
.ac-ord>.ac-ord-top{align-items:center;gap:8px 20px}
.ac-ord>.ac-ord-top>div:first-child{flex:none;min-width:84px}
.ac-ord>.ac-ord-top>.ac-righe{flex:1 1 0;min-width:0}
.ac-ord>.ac-ord-top>.ac-ord-r{flex:none}
@media(max-width:700px){.ac-ord>.ac-ord-top{flex-wrap:wrap}.ac-ord>.ac-ord-top>.ac-righe{order:3;flex:1 1 100%}}
.ac-ord>.ac-info.ac-dx{justify-self:end}

/* Metodo di consegna e pagamento sulla stessa riga */
.ac-azioni{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.ac-azioni .ac-scelta{flex:1 1 320px;min-width:0}
.ac-azioni>.btn{flex:none;margin:0}
.ac-azioni>.ac-info{flex:1 1 100%}
@media(max-width:620px){.ac-azioni>.btn{flex:1 1 100%}}

/* Tutto sulla riga del prodotto: numero, prodotto, consegna e pagamento, importo */
.ac-ord>.ac-ord-top>.ac-azioni{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px 12px;flex-wrap:wrap}
.ac-ord>.ac-ord-top>.ac-azioni .ac-scelta{flex:0 1 auto}
.ac-ord>.ac-ord-top>.ac-azioni>.btn{flex:none;padding:9px 16px;font-size:var(--small)}
@media(max-width:1100px){.ac-ord>.ac-ord-top{flex-wrap:wrap}.ac-ord>.ac-ord-top>.ac-azioni{order:4;flex:1 1 100%;justify-content:space-between}}
@media(max-width:700px){.ac-ord>.ac-ord-top>.ac-righe{order:3;flex:1 1 100%}.ac-ord>.ac-ord-top>.ac-azioni>.btn{flex:1 1 100%}}
.ac-scelta.fatta b{font-size:.8125rem}
.ac-scelta.fatta .ac-lnk{font-size:.75rem}
.ac-ord>.ac-ord-top>.ac-azioni>.btn{font-size:.8125rem;font-weight:600}
.ac-scelta.fatta .ac-et{font-size:.75rem;color:var(--muted);font-weight:600}
.ac-scelta.fatta b{margin-right:0}
.ac-scelta.fatta .ac-et+b{margin-right:auto}

/* ---------- I miei ordini in tabella ---------- */
.ac-tabw{overflow-x:auto}
.ac-tab{width:100%;border-collapse:separate;border-spacing:0 6px;font-size:var(--small)}
.ac-tab thead th{text-align:left;font-size:.8125rem;font-weight:600;color:var(--muted);padding:6px 14px}
.ac-tab thead th.r,.ac-tab td.r{text-align:right}
.ac-tab tbody.ac-ord{display:table-row-group;padding:0;gap:0;background:none;border-radius:0;box-shadow:none}
.ac-tab tbody.ac-ord>tr>td{background:var(--soft);padding:10px 14px;vertical-align:middle}
.ac-tab tbody.ac-ord>tr:first-child>td:first-child{border-radius:8px 0 0 0}
.ac-tab tbody.ac-ord>tr:first-child>td:last-child{border-radius:0 8px 0 0}
.ac-tab tbody.ac-ord>tr:last-child>td{border-radius:0 0 8px 8px}
.ac-tab tbody.ac-ord>tr.ac-nota>td{padding:0 14px 10px;display:table-cell}
.ac-tab tbody.ac-ord.da-pagare>tr:first-child>td:first-child{background:color-mix(in srgb,var(--marchio) 14%,var(--soft))}
.ac-tab td b{font-weight:700}
.ac-tab td small{display:block;color:var(--muted)}
.ac-tab td.ac-c{display:table-cell}
.ac-tab td.ac-c b{display:block;font-size:.8125rem}
.ac-tab td.ac-c .ac-lnk{display:block;font-size:.75rem;margin-top:2px;text-align:left}
.ac-tab td .ac-btns{display:flex;gap:6px;flex-wrap:wrap}
.ac-tab td .ac-btns .btn{padding:8px 12px;font-size:.8125rem}
.ac-tab td strong{font-size:1.125rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.ac-tab .ac-righe{gap:4px}
.ac-tab .ac-righe img,.ac-tab .ac-noimg{width:36px;height:36px}
.ac-tab .ac-righe li{grid-template-columns:36px minmax(0,1fr)}
.ac-tab .ac-nota .ac-info{margin:4px 0 0;text-align:left;font-size:.8125rem}
.ac-tab .ac-nota .ac-dx{text-align:left}
.ac-tab .ac-nota:not(:has(p)) td{padding:0}
@media(max-width:860px){
  .ac-tab thead{display:none}
  .ac-tab,.ac-tab tbody,.ac-tab tr,.ac-tab td{display:block}
  .ac-tab tbody.ac-ord{margin-bottom:8px;background:var(--soft);border-radius:8px}
  .ac-tab tbody.ac-ord>tr>td{padding:6px 14px;border-radius:0!important;background:none!important;text-align:left}
  .ac-tab td[data-et]::before{content:attr(data-et);display:block;font-size:.75rem;font-weight:600;color:var(--muted)}
  .ac-tab td.r{text-align:left}
}
.ac-tab td.r .ac-info{margin:4px 0 0;font-size:.75rem;color:var(--muted);text-align:right;white-space:normal}
.ac-tab td.ac-c .ac-info{margin:0;font-size:.8125rem;text-align:left}
.ac-tab tbody.ac-ord>tr:first-child:last-child>td:first-child{border-radius:8px 0 0 8px}
.ac-tab tbody.ac-ord>tr:first-child:last-child>td:last-child{border-radius:0 8px 8px 0}
@media(max-width:860px){.ac-tab td.r .ac-info{text-align:left}}
.ac-tab td.ac-c b{display:block}
.ac-tab td .ac-btns .btn{white-space:nowrap}

/* Notifica: prenotazione in attesa di accettazione */
.ac-notif{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;margin:0 0 14px;padding:12px 16px;border-radius:8px;background:var(--tinta);color:var(--ink);text-decoration:none}
.ac-notif b{font-weight:700}
.ac-notif small{color:var(--muted);flex:1 1 220px}
.ac-notif i{font-style:normal;font-weight:700;color:var(--marchio);margin-left:auto}
.ac-notif:hover{background:color-mix(in srgb,var(--marchio) 16%,#fff)}

/* Step (livelli) dentro la card di riferimento */
.ac-card .ac-badges{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-top:12px}
.ac-card .ac-badge{background:rgba(255,255,255,.14);color:inherit;border-radius:8px;padding:10px 12px;opacity:.85}
.ac-card .ac-badge.ok{background:#fff;color:var(--ink);opacity:1}
.ac-card .ac-badge small,.ac-card .ac-badge em{color:inherit;opacity:.75}
.ac-card .ac-bn{width:34px;height:34px;font-size:1.05rem;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.2)}
.ac-card .ac-badge.ok .ac-bn{border-color:transparent}

/* Le due card affiancate hanno la stessa altezza */
@media(min-width:900px){
  .ac-scale.due{grid-template-rows:auto auto;row-gap:0;align-items:stretch}
  .ac-scale.due>.ac-scala{grid-row:span 2;display:grid;grid-template-rows:subgrid;gap:14px;align-content:stretch}
  .ac-scale.due>.ac-scala>.ac-card{align-content:start}
}
.ac-card .ac-badge b{font-size:.75rem;font-weight:600;line-height:1.25}
.ac-card .ac-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.ac-card .ac-badge{flex:0 1 130px;justify-items:center;text-align:center}

/* Le due card hanno la stessa struttura: gli step stanno sempre in fondo, alla stessa altezza */
.ac-card{display:flex;flex-direction:column;gap:6px}
.ac-card .ac-badges{margin-top:auto;padding-top:14px}
.ac-card .ac-prox{min-height:1.5em}

/* Livelli tutti con lo stesso aspetto: cambia solo il badge (a colori se raggiunto, spento se no) */
.ac-card .ac-badge,.ac-card .ac-badge.ok{background:rgba(255,255,255,.14);color:inherit;opacity:1}
.ac-card .ac-badge:not(.ok) .ac-bn{opacity:.45;filter:grayscale(.6)}
.ac-card .ac-badge.ok .ac-bn{border-color:rgba(255,255,255,.9)}

/* Riquadri dei livelli tutti della stessa misura */
.ac-card .ac-badge{flex:0 0 132px;width:132px;height:92px;box-sizing:border-box;align-content:center;justify-content:center;justify-items:center;text-align:center;overflow:hidden}
.ac-card .ac-badge b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Livello attivo: riquadro pieno e in evidenza */
.ac-card .ac-badge.att{background:#fff;color:var(--ink);box-shadow:0 0 0 3px rgba(255,255,255,.45)}
.ac-card .ac-badge.att b{font-weight:800}
.ac-card .ac-badge.att .ac-bn{border-color:transparent}
.ac-card .ac-badge.att{background:#ffd23f;color:#1b1f24;box-shadow:0 0 0 3px rgba(255,210,63,.4)}

/* Storico punti giocatore in colonne */
.ac-storico{border-spacing:0;margin-top:8px}
.ac-storico thead th{padding:6px 12px}
.ac-storico td{padding:8px 12px;background:none;border-top:1px solid var(--soft2);vertical-align:middle}
.ac-storico td.r b{white-space:nowrap}
.ac-storico td.neg b{color:#8a1c1c}
.ac-storico td.pos b{color:var(--ok)}
.ac-storico td small{display:block;color:var(--muted);font-weight:400}
.ac-storico tr.scad td{opacity:.6}
@media(max-width:860px){.ac-storico tbody tr{display:block;padding:8px 0;border-top:1px solid var(--soft2)}.ac-storico td{border:0;padding:2px 12px}}

/* Dati del torneo in due colonne: gioco, modalità, orario | posti, quota, punti */
.ac-tdati{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px;flex:1 1 320px;min-width:0}
.ac-tdati p{margin:0!important}
@media(max-width:520px){.ac-tdati{grid-template-columns:1fr}}

/* Buoni come tessere */
.ac-buoni{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.ac-buono{background:#1f6f4a;color:#fff;border-radius:14px;padding:22px 24px;gap:10px;align-content:start}
.ac-buono.spento{background:#6b737b;opacity:1}
.ac-buono .ac-ord-top{align-items:center}
.ac-bu-et{font-size:var(--small);font-weight:600;opacity:.9}
.ac-buono .ac-tag{background:rgba(255,255,255,.2);color:#fff}
.ac-bu-cod{font-size:var(--lead);font-weight:700;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.ac-buono .ac-dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin-top:6px}
.ac-buono .ac-dl dt{color:inherit;opacity:.75}
.ac-buono .ac-dl div:first-child{grid-column:1/-1}
.ac-buono .ac-dl dd.grande{font-size:2.25rem;font-weight:800;line-height:1.1}
.ac-buono .ac-bar{background:rgba(255,255,255,.3)}
.ac-buono .ac-bar i{background:#fff}
.ac-buono .ac-det{margin-top:4px}
.ac-buono .ac-det summary{cursor:pointer;font-size:var(--small);color:inherit}
.ac-buono .ac-mov{color:inherit}
.ac-buono .ac-mov small,.ac-buono .ac-md{color:inherit;opacity:.75}
.ac-buono .ac-mi.pos,.ac-buono .ac-mi.neg{color:#fff}

/* Tessera a sinistra, utilizzo a fianco */
.ac-buoni{grid-template-columns:1fr;gap:18px}
.ac-buono-riga{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:20px;align-items:start}
.ac-bu-uso{background:var(--soft);border-radius:14px;padding:16px 18px;display:grid;gap:8px;align-content:start;max-height:360px;overflow:auto}
.ac-bu-uso h4{margin:0;font-size:var(--small);font-weight:700}
@media(max-width:760px){.ac-buono-riga{grid-template-columns:1fr}}
.ac-bu-uso .ac-storico td{border-top-color:var(--soft2);background:none}
.ac-bu-uso{background:none;padding:0;max-height:none;overflow:visible}
.ac-bu-uso h4{margin:0 0 4px}
.ac-bu-uso .ac-tabw{max-height:300px;overflow:auto}

/* Gradazione in tabella, come gli ordini */
.ac-gord .ac-tabw{margin-top:6px}
.ac-tab td .ac-gfoto-s{flex:none}
.ac-tab td[data-et="Carta"]{display:table-cell}
.ac-tab td[data-et="Carta"]>a,.ac-tab td[data-et="Carta"]>span{display:inline-block;vertical-align:middle}
.ac-tab td[data-et="Carta"]>span{max-width:calc(100% - 52px)}
.ac-gfoto-s img{width:40px;height:40px;object-fit:cover;border-radius:6px;margin-right:10px;display:block}
.ac-tab td[data-et="Costo"] small{display:block;color:var(--muted);font-weight:400;font-size:.75rem}

/* Ogni gradazione si chiude a tendina */
.ac-gord{display:block;margin-top:10px}
.ac-gord>summary.ac-gord-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 16px;cursor:pointer;list-style:none;padding:10px 14px;background:var(--soft);border:0;border-radius:8px}
.ac-gord>summary.ac-gord-h::-webkit-details-marker{display:none}
.ac-gord>summary.ac-gord-h::before{content:"▸";flex:none;transition:transform .2s;color:var(--muted)}
.ac-gord[open]>summary.ac-gord-h::before{transform:rotate(90deg)}
.ac-gord>summary.ac-gord-h h4{flex:1 1 auto;margin:0}
.ac-gord>summary.ac-gord-h>span{text-align:right}
.ac-gord>.ac-contratti-g{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.ac-gord>.ac-contratti-g .btn{padding:6px 12px;font-size:.8125rem}
/* Contratto da stampare nella riga della gradazione, visibile anche a tendina chiusa */
.ac-gord>summary.ac-gord-h>.ac-contratti-g{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 0 auto}
.ac-gord>summary.ac-gord-h>.ac-contratti-g .btn{padding:6px 12px;font-size:.8125rem}
.ac-gord>summary.ac-gord-h>h4{flex:0 1 auto}
@media(max-width:700px){.ac-gord>summary.ac-gord-h>.ac-contratti-g{margin:0;flex:1 1 100%}.ac-gord>summary.ac-gord-h>span{flex:1 1 100%;text-align:left}}
.ac-storico tr.scad td.r b{text-decoration:line-through}

/* Card nel colore del livello: con colori chiari testo scuro e riquadri scuri semitrasparenti */
.ac-card{color:var(--on-marchio)}
.ac-card.chiara .ac-bar{background:rgba(0,0,0,.18)}
.ac-card.chiara .ac-bar i{background:#1b1f24}
.ac-card.chiara .ac-badge,.ac-card.chiara .ac-badge.ok{background:rgba(0,0,0,.08)}
.ac-card.chiara .ac-badge.att{background:#1b1f24;color:#fff;box-shadow:none}

/* Titolo "Livelli Carta" sopra gli step */
.ac-card .ac-livelli{margin-top:auto;padding-top:14px}
.ac-card .ac-livelli .ac-badges{margin-top:0;padding-top:0}
.ac-liv-t{margin:0 0 8px;font-size:var(--small);font-weight:700;text-align:center}

/* Solo il livello attivo è pieno: gli altri sono opachi */
.ac-card .ac-badge:not(.att){opacity:.45}
.ac-card .ac-badge.att{opacity:1}
.ac-notif-pag{background:#fff3d6}
.ac-notif-pag:hover{background:#ffe9b8}
.ac-notif-pag i{color:#8a5a00}
button.ac-notif{width:100%;border:0;font:inherit;text-align:left;cursor:pointer}

/* Tabella ordini: un solo corpo e un solo peso per tutti i testi (link, etichette, avvisi, importi) */
.ac-tab tbody.ac-ord td,
.ac-tab tbody.ac-ord td b,
.ac-tab tbody.ac-ord td small,
.ac-tab tbody.ac-ord td strong,
.ac-tab tbody.ac-ord td .ac-lnk,
.ac-tab tbody.ac-ord td .ac-info,
.ac-tab tbody.ac-ord td.ac-c b,
.ac-tab tbody.ac-ord td.ac-c .ac-lnk,
.ac-tab tbody.ac-ord td .ac-tag,
.ac-tab tbody.ac-ord td .ac-ord-n{font-family:inherit;font-size:.875rem;line-height:1.4;font-variant-numeric:tabular-nums}
.ac-tab tbody.ac-ord td b,
.ac-tab tbody.ac-ord td strong{font-weight:700}
.ac-tab tbody.ac-ord td small,
.ac-tab tbody.ac-ord td .ac-info,
.ac-tab tbody.ac-ord td .ac-lnk{font-weight:400}
.ac-tab tbody.ac-ord td[data-et="Stato"] small.ac-info,
.ac-tab tbody.ac-ord td[data-et="Stato"] small.ac-info b,
.ac-tab tbody.ac-ord td[data-et="Stato"] small.ac-info a{font-size:.75rem}
.ac-tab tbody.ac-ord td.r small{font-size:.75rem}
.ac-tab tbody.ac-ord td.r .ac-info{font-size:.75rem}
.ac-tab tbody.ac-ord td.r .ac-info,.ac-tab tbody.ac-ord td.r small{display:block;margin:2px 0 0;text-align:right}
.ac-tab tbody.ac-ord td.r p.ac-info.ac-dx{color:#8a1c1c;font-weight:600}
.ac-tab tbody.ac-ord td.ac-c .ac-lnk{font-size:.75rem}

/* Tabelle ordini (in corso e consegnati): stesse colonne, stesse larghezze */
@media(min-width:900px){
  .ac-tab:has(tbody.ac-ord){table-layout:fixed}
  .ac-tab:has(tbody.ac-ord) thead th:nth-child(1){width:9%}
  .ac-tab:has(tbody.ac-ord) thead th:nth-child(2){width:27%}
  .ac-tab:has(tbody.ac-ord) thead th:nth-child(3){width:12%}
  .ac-tab:has(tbody.ac-ord) thead th:nth-child(4){width:8%}
  .ac-tab:has(tbody.ac-ord) thead th:nth-child(5){width:17%}
  .ac-tab:has(tbody.ac-ord) thead th:nth-child(6){width:17%}
  .ac-tab:has(tbody.ac-ord) thead th:nth-child(7){width:10%}
}
.ac-tab tbody.ac-ord td[data-et="Stato"] .ac-tag{font-size:.75rem}
.ac-tab:has(tbody.ac-ord) thead th:nth-child(3),.ac-tab:has(tbody.ac-ord) thead th:nth-child(6){text-align:center}
.ac-tab:has(tbody.ac-ord) thead th:nth-child(4){text-align:center}
.ac-tab tbody.ac-ord td[data-et="Consegna"],
.ac-tab tbody.ac-ord td[data-et="Pagamento"],
.ac-tab tbody.ac-ord td[data-et="Stato"]{text-align:center}
.ac-tab tbody.ac-ord td[data-et="Consegna"] .ac-lnk,
.ac-tab tbody.ac-ord td[data-et="Pagamento"] .ac-lnk{text-align:center;margin-left:auto;margin-right:auto}
/* Proposte d'ordine: Stato e Risposta centrati */
.ac-tab:has(td[data-et="Risposta"]) thead th:nth-child(5),
.ac-tab:has(td[data-et="Risposta"]) thead th:nth-child(6),
.ac-tab tbody.ac-ord td[data-et="Risposta"]{text-align:center}
.ac-tab tbody.ac-ord td[data-et="Risposta"] .ac-btns{justify-content:center}
.ac-tab:has(tbody.ac-ord) thead th.r{text-align:right}
.ac-tab tbody.ac-ord>tr.ac-nota>td{padding:0 14px 10px}
.ac-tab tbody.ac-ord>tr.ac-nota .ac-info{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
/* Avviso sotto l'ordine: stesso blocco della riga, senza stacco, testo su una riga a sé */
.ac-tab tbody.ac-ord>tr.ac-nota>td{position:relative;top:-6px;padding:0 14px 10px;border-top:0}
.ac-tab tbody.ac-ord>tr.ac-nota .ac-info{display:block;white-space:normal;margin:0}
.ac-tab tbody.ac-ord>tr.ac-nota>td{text-align:center}
.ac-tab tbody.ac-ord>tr.ac-nota .ac-info{text-align:center}
.ac-tab tbody.ac-ord>tr.ac-nota>td{padding:10px 14px;vertical-align:middle;line-height:1.4}
.ac-tab tbody.ac-ord.da-pagare>tr.ac-nota>td{background:color-mix(in srgb,var(--marchio) 14%,var(--soft))}
/* Prenotazioni: colonne proprie (Ordine stretta) */
@media(min-width:900px){
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Prenotazione"]) thead th:nth-child(1){width:9%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Prenotazione"]) thead th:nth-child(2){width:9%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Prenotazione"]) thead th:nth-child(3){width:33%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Prenotazione"]) thead th:nth-child(4){width:10%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Prenotazione"]) thead th:nth-child(5){width:15%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Prenotazione"]) thead th:nth-child(6){width:12%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Prenotazione"]) thead th:nth-child(7){width:12%}
}
.ac-tab tbody.ac-ord td[data-et="Motivo"]{text-align:center}
/* Gradazione: colonna Carta larga */
@media(min-width:900px){
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(1){width:26%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(2){width:14%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(3){width:6%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(4){width:11%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(5){width:9%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(6){width:12%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(7){width:12%}
  .ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(8){width:10%}
}
/* Gradazione: Anno, Codice, Valore, Assicurazione centrati (intestazione e contenuto) */
.ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(3),
.ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(4),
.ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(5),
.ac-tab:has(tbody.ac-ord):has(td[data-et="Carta"]) thead th:nth-child(6),
.ac-tab tbody.ac-ord td[data-et="Anno"],
.ac-tab tbody.ac-ord td[data-et="Codice"],
.ac-tab tbody.ac-ord td[data-et="Valore"],
.ac-tab tbody.ac-ord td[data-et="Assicurazione"]{text-align:center}

/* Storico punti/movimenti da telefono: voci compatte (data e punti sulla prima riga, titolo sotto, gioco e posizione in fondo) */
@media(max-width:860px){
  .ac-storico tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"data punti" "titolo titolo" "gioco pos";align-items:baseline;gap:2px 12px;padding:10px 12px}
  .ac-storico td{padding:0!important;border:0;text-align:left}
  .ac-storico td::before{display:none!important}
  .ac-storico td[data-et="Data"]{grid-area:data;color:var(--muted);font-size:.8125rem}
  .ac-storico td[data-et="Torneo"],.ac-storico td[data-et="Movimento"]{grid-area:titolo}
  .ac-storico td[data-et="Gioco"]{grid-area:gioco;color:var(--muted);font-size:.8125rem}
  .ac-storico td[data-et="Posizione"]{grid-area:pos;font-size:.8125rem;text-align:right}
  .ac-storico td[data-et="Punti"],.ac-storico td[data-et="Importo"]{grid-area:punti;text-align:right}
  .ac-storico td.r small{text-align:right}
}

/* Torneo da telefono: prima la locandina a tutta larghezza, poi data e informazioni */
@media(max-width:700px){
  .ac-torneo.con-foto .ac-tfoto{order:0;grid-column:1/-1}
  .ac-torneo.con-foto .ac-tdata{order:1}
  .ac-torneo.con-foto .ac-tinfo{order:2}
}

/* Contratto dell'ordine di gradazione centrato (da telefono) */
@media(max-width:700px){
  .ac-gord>summary.ac-gord-h>.ac-contratti-g,.ac-gord>.ac-contratti-g{justify-content:center}
}

/* Area riservata: niente menu delle categorie; il menu dell'account resta fisso sotto la testata */
.in-account #menu{display:none}
.in-account .ac-tabs{position:sticky;top:var(--testa-h,0px);z-index:15;background:var(--bg);padding-top:6px}
@media(max-width:700px){.in-account .ac-tabs{background:var(--soft);padding-top:0}}
