:root{color-scheme:dark;--bg:#030303;--text:#f4f4f2;--muted:#a3a3aa;--accent:#e51b2a}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100svh;display:flex;flex-direction:column;background:#000;color:var(--text);font-family:Inter,Arial,sans-serif}
a{color:inherit}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #fff;outline-offset:4px}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip-link:focus{position:fixed;z-index:10;top:12px;left:12px;padding:12px;background:#fff;color:#030303}
.account-header{min-height:108px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px clamp(22px,5vw,96px)}
.account-header img{display:block;width:208px;height:90px;object-fit:contain}
.back-link{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:12px;font-weight:600;color:#c1c1c5}
.back-link:hover{color:#fff}
.account-layout{flex:1;width:min(1360px,100%);margin:auto;display:grid;grid-template-columns:minmax(280px,.72fr) minmax(520px,760px);align-items:center;gap:clamp(40px,6vw,96px);padding:48px 28px 64px}
.eyebrow{color:#c1a0a5;text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:.19em;line-height:1.8;margin:0 0 28px}
h1{font-family:Rajdhani,Inter,sans-serif;font-size:clamp(64px,7vw,112px);line-height:.87;letter-spacing:-.035em;margin:0;font-weight:700}
h1 span{color:var(--accent)}
.intro-copy{font-size:17px;line-height:1.7;color:#b8b8bd;margin:30px 0}
.intro-rule{width:76px;height:3px;background:var(--accent);margin:32px 0}
.public-note{max-width:280px;font-size:12px;line-height:1.8;color:#96969f}
.account-panel{width:100%;min-width:0;padding:30px;background:linear-gradient(145deg,#141416,#09090a);border:1px solid #2d2a2d;border-top:2px solid var(--accent);border-radius:8px;box-shadow:0 20px 80px #0005}
.account-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#070708;border:1px solid #29292e;border-radius:5px;margin-bottom:28px}
.account-modes button{border:0;border-radius:3px;background:transparent;color:#a5a5ae;padding:12px;font-size:12px;font-weight:700}
.account-modes button[aria-pressed=true]{background:#272429;color:#fff}
h2{font-family:Rajdhani,Inter,sans-serif;font-size:36px;font-weight:700;line-height:1.1;letter-spacing:-.02em;margin:0 0 10px}
.panel-description{color:var(--muted);font-size:12px;line-height:1.75;margin:0 0 20px}
.auth-status{border-left:2px solid #b9b9c0;background:#ffffff08;padding:12px;font-size:12px;line-height:1.7;margin:0 0 20px;overflow-wrap:anywhere}
.auth-status:empty{display:none}
.auth-status[data-kind=error]{color:#ffc6cc;border-color:#ff7181;background:#e51b2a12}
.auth-status[data-kind=success]{color:#c1f1d8;border-color:#74cf9d;background:#74cf9d0b}
fieldset{border:0;margin:0;padding:0;min-width:0}
label{display:block;font-size:11px;letter-spacing:.03em;font-weight:700;color:#d5d5db;margin:20px 0 9px}
fieldset>label:first-of-type{margin-top:0}
input,select{display:block;width:100%;min-width:0;min-height:48px;padding:12px 14px;background:#09090b;border:1px solid #39383e;border-radius:4px;color:#fff;font-size:16px;line-height:1.4}
input::placeholder{color:#82828c;font-size:13px}
input:focus,select:focus{border-color:#aaa}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#aaa 50%),linear-gradient(135deg,#aaa 50%,transparent 50%);background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:40px}
.password-field{display:flex;align-items:stretch;position:relative}
.password-field input{padding-right:82px}
.password-toggle{position:absolute;right:1px;top:1px;bottom:1px;border:0;background:#151417;color:#c8c8d0;padding:0 12px;font-size:11px;border-radius:0 3px 3px 0}
.field-hint{font-size:11px;line-height:1.65;color:#a0a0aa;margin:9px 0 18px}
.registration-note{margin:20px 0}
.primary-button,.secondary-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:49px;margin-top:22px;padding:13px 18px;border:1px solid transparent;border-radius:4px;font-size:12px;font-weight:700;text-decoration:none;line-height:1.5}
.primary-button{background:var(--accent);color:#fff}
.primary-button:hover{background:#ca1220}
.primary-button span{font-size:20px;line-height:1}
.secondary-button{justify-content:center;margin-top:12px;background:transparent;border-color:#3d3a40;color:#dedee2}
.secondary-button:hover{background:#ffffff0a}
.text-button{border:0;background:none;color:#c3c3cc;font-size:11px;line-height:1.6;text-decoration:underline;text-underline-offset:4px;padding:6px 0}
.text-button:hover{color:#fff}
.forgot-link{display:block;margin:10px 0 0 auto}
.resend-button{display:block;margin:16px auto 0;text-align:center}
.account-help{margin:26px 0 0;padding-top:20px;border-top:1px solid #28262b;font-size:11px;line-height:1.8;color:#92929b}
.account-help a{color:#d0d0d6;text-underline-offset:3px}
.verified-label{display:inline-flex;align-items:center;gap:8px;color:#b6e9c8;font-size:11px;padding:9px 12px;border:1px solid #345140;border-radius:4px}
.account-details{padding:20px 0;margin:5px 0 15px;border-bottom:1px solid #28262b}
.account-details dt{font-size:10px;color:#a4a4ae;text-transform:uppercase;letter-spacing:.1em;margin-bottom:10px}
.account-details dd{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.profile-required-note{margin:0 0 18px;padding:10px 12px;border-left:2px solid var(--accent);background:#e51b2a0d;color:#b9b9c1;font-size:11px;line-height:1.7}
.profile-photo-field{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:20px;margin:0 0 20px;padding:16px;border:1px solid #343138;border-radius:6px;background:#09090b}
.profile-photo-preview{display:block;width:112px;height:112px;border-radius:50%;object-fit:cover;border:2px solid #6d656f;background:#171519}
.profile-photo-copy label{margin:0 0 9px}
.profile-photo-copy input[type=file]{min-height:45px;padding:8px;font-size:12px}
.profile-photo-copy input[type=file]::file-selector-button{min-height:30px;margin-right:10px;padding:6px 10px;border:0;border-radius:3px;background:#302d33;color:#fff;font:700 10px Inter,sans-serif;cursor:pointer}
.profile-photo-copy .field-hint{margin:8px 0 0}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.profile-wide{grid-column:1/-1}
.profile-grid label{margin-top:14px}
.profile-grid>div:nth-child(-n+2) label{margin-top:0}
.profile-declarations{display:grid;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #2a282d}
.check-row{display:grid;grid-template-columns:20px 1fr;align-items:start;gap:11px;margin:0;color:#c7c7ce;font-size:11px;font-weight:500;line-height:1.65;letter-spacing:0}
.check-row input{appearance:auto;width:18px;min-height:18px;height:18px;margin:1px 0 0;padding:0;accent-color:var(--accent)}
.check-row a{text-underline-offset:3px}
.registration-privacy{margin-top:12px}
.member-heading{display:flex;align-items:center;gap:16px;margin:20px 0 4px}
.member-avatar{display:block;width:76px;height:76px;border-radius:50%;object-fit:cover;border:2px solid #e51b2a;background:#171519}
.member-name{font-family:Rajdhani,Inter,sans-serif;font-size:32px;line-height:1;margin:0}
.profile-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;padding:22px 0}
.profile-summary>div{min-width:0;padding-bottom:14px;border-bottom:1px solid #242228}
.profile-summary-wide{grid-column:1/-1}
.profile-summary dt{margin-bottom:7px}
.profile-summary dd{font-size:13px}
.account-footer{display:flex;justify-content:space-between;gap:20px;margin:0 clamp(22px,5vw,96px);padding:22px 0;border-top:1px solid #242125;font-size:10px;line-height:1.6;color:#88858e}
@media(max-width:900px){.account-layout{grid-template-columns:1fr;max-width:760px;gap:28px}}
@media(max-width:760px){.account-header{min-height:84px}.account-header img{width:160px;height:66px}.back-link{font-size:11px}.account-layout{grid-template-columns:1fr;max-width:620px;gap:28px;padding:20px 22px 40px}.account-intro h1{font-size:60px}.account-intro h1 br{display:none}.eyebrow{font-size:9px;margin-bottom:14px}.intro-copy{margin:14px 0 0;font-size:14px}.intro-copy br{display:none}.intro-rule,.public-note{display:none}.account-panel{padding:24px}.profile-photo-field{grid-template-columns:82px minmax(0,1fr);gap:14px}.profile-photo-preview{width:82px;height:82px}.profile-grid,.profile-summary{grid-template-columns:1fr}.profile-wide,.profile-summary-wide{grid-column:auto}.profile-grid>div:nth-child(2) label{margin-top:14px}.account-footer{font-size:9px}}
@media(max-width:380px){.account-header{padding:10px 16px;gap:12px}.account-header img{width:138px}.back-link{gap:5px}.account-layout{padding-left:16px;padding-right:16px}.account-panel{padding:20px}.account-intro h1{font-size:52px}}

/* V363 — area personale a tutta pagina, senza riquadro esterno */
.account-layout{
  width:100%;
  max-width:none;
  margin:0;
  display:block;
  padding:clamp(34px,5vw,76px) clamp(22px,5vw,96px) clamp(56px,7vw,108px);
}

/* V387 — quattro card coordinate con il design del sito */
body[data-account-view="account"] .garage-account-nav{
  grid-template-rows:repeat(4,var(--garage-nav-row-height))!important;
  gap:var(--garage-nav-gap)!important;
}
body[data-account-view="account"] .garage-nav-card{
  position:relative;
  justify-content:flex-start!important;
  overflow:hidden;
  padding:0 clamp(24px,2.5vw,48px)!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-left:4px solid rgba(229,27,42,.9)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(24,24,25,.94),rgba(7,7,8,.88))!important;
  box-shadow:0 18px 42px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.035)!important;
  text-align:left!important;
  transition:transform .25s ease,border-color .25s ease,background .25s ease,box-shadow .25s ease!important;
}
body[data-account-view="account"] .garage-nav-card::before{
  content:"";
  position:absolute;
  top:-55%;
  right:-8%;
  width:44%;
  height:210%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.035),transparent);
  transform:rotate(18deg);
  pointer-events:none;
}
body[data-account-view="account"] .garage-nav-card::after{
  content:"";
  position:absolute;
  right:clamp(20px,2vw,38px);
  bottom:clamp(16px,1.8vh,28px);
  width:clamp(54px,6vw,112px);
  height:3px;
  background:linear-gradient(90deg,var(--accent),rgba(229,27,42,0));
  pointer-events:none;
}
body[data-account-view="account"] .garage-nav-card>span{
  position:relative;
  z-index:1;
}
body[data-account-view="account"] .garage-nav-card:not(:disabled):hover,
body[data-account-view="account"] .garage-nav-card:not(:disabled):focus-visible{
  transform:translateX(-6px)!important;
  border-color:rgba(229,27,42,.82)!important;
  background:linear-gradient(145deg,rgba(42,18,20,.96),rgba(9,8,9,.92))!important;
  box-shadow:0 22px 52px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body[data-account-view="account"] .garage-nav-card.is-locked{
  color:rgba(255,255,255,.48)!important;
  border-left-color:rgba(255,255,255,.22)!important;
}
body[data-account-view="account"] .garage-nav-card.is-locked::after{
  background:linear-gradient(90deg,rgba(255,255,255,.22),transparent);
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-nav-card{
    padding-inline:14px!important;
    border-left-width:3px!important;
    border-radius:10px!important;
  }
  body[data-account-view="account"] .garage-nav-card::after{
    right:12px;
    bottom:10px;
    height:2px;
  }
}
.account-page-title{
  width:100%;
  margin:0 0 clamp(34px,4vw,64px);
  font-size:clamp(42px,5.4vw,86px);
  line-height:.92;
  letter-spacing:-.025em;
}
.account-panel{
  width:100%;
  max-width:none;
  min-height:calc(100svh - 310px);
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.account-panel>.account-modes,
.account-panel>h2,
.account-panel>.panel-description,
.account-panel>.auth-status,
.account-panel>noscript,
.account-panel>form,
.account-panel>#retryConnection,
.account-panel>.account-help{
  width:min(760px,100%);
}
.account-panel>#profileForm,
.account-panel>#memberPanel{
  width:min(1120px,100%);
}
@media(max-width:760px){
  .account-layout{
    width:100%;
    max-width:none;
    gap:0;
    padding:28px 22px 56px;
  }
  .account-page-title{
    margin-bottom:32px;
    font-size:clamp(38px,12vw,58px);
  }
  .account-panel{padding:0}
}
@media(max-width:380px){
  .account-layout{padding-left:16px;padding-right:16px}
  .account-panel{padding:0}
}

/* V364 — area personale nera, logo grande e profilo disposto a destra */
html,body{background:#000!important}
.account-header{
  min-height:clamp(170px,13vw,230px);
  padding-top:12px;
  padding-bottom:12px;
}
.account-header img{
  width:clamp(340px,29vw,540px);
  height:clamp(145px,12vw,220px);
  object-fit:contain;
}
.account-page-title{color:var(--accent)}
.member-profile-overview{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,42%);
  align-items:start;
  gap:clamp(34px,5vw,82px);
  width:100%;
  margin-top:24px;
}
.member-profile-copy{min-width:0}
.member-name{
  margin:0 0 20px;
  font-size:clamp(38px,3.5vw,60px);
  color:#fff;
}
.member-avatar{
  display:block;
  justify-self:end;
  width:100%;
  max-width:520px;
  height:auto;
  aspect-ratio:1;
  object-fit:cover;
  border:2px solid var(--accent);
  border-radius:0;
  background:#080808;
}
.member-profile-overview .profile-summary{
  width:100%;
  margin:0;
  padding-top:18px;
}
@media(max-width:900px){
  .account-header img{
    width:clamp(280px,48vw,420px);
    height:auto;
  }
  .member-profile-overview{
    grid-template-columns:1fr;
  }
  .member-avatar{
    justify-self:start;
    width:min(100%,420px);
  }
}
@media(max-width:520px){
  .account-header img{width:min(72vw,340px)}
  .member-profile-overview{gap:28px}
}

/* V365 — riepilogo senza separatori e azioni allineate */
.account-details{border-bottom:0!important}
.profile-summary>div{
  padding-bottom:0;
  border-bottom:0!important;
}
.nickname-status{
  min-height:18px;
  margin-top:7px;
  margin-bottom:0;
}
.nickname-status[data-kind="checking"]{color:#d8d8dd}
.nickname-status[data-kind="available"]{color:#76d89d}
.nickname-status[data-kind="error"]{color:#ff8f9b}
.account-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:14px;
  width:100%;
  margin-top:30px;
}
.account-actions .primary-button,
.account-actions .secondary-button{
  width:100%;
  min-height:54px;
  margin:0;
}
.account-member-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  width:100%;
  margin:18px 0 0;
  color:#9b9ba4;
  font-size:11px;
  line-height:1.6;
  white-space:nowrap;
}
.account-member-footer a{
  color:#d6d6db;
  text-underline-offset:3px;
}
@media(max-width:760px){
  .account-actions{gap:8px}
  .account-actions .primary-button,
  .account-actions .secondary-button{padding-left:9px;padding-right:9px;font-size:10px}
  .account-member-footer{gap:10px;font-size:9px}
}

/* V367 — accesso e area personale immersivi, a piena pagina */
html{background:#000!important}
body{
  background-color:#000!important;
  background-image:
    linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.86) 50%,rgba(0,0,0,.74) 100%),
    linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,.7) 78%,#000 100%),
    url("assets/sponsor-standard.jpg")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:cover!important;
  background-attachment:fixed!important;
}
.account-header{
  min-height:clamp(176px,14vw,250px);
  padding:clamp(16px,2vw,30px) clamp(26px,5vw,100px);
  border-bottom:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.12));
}
.account-header img{
  width:clamp(360px,31vw,590px);
  height:clamp(152px,13vw,238px);
}
.back-link{
  gap:14px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.035em;
}
.account-layout{
  min-height:calc(100svh - 330px);
  padding:clamp(48px,5vw,86px) clamp(28px,6vw,118px) clamp(72px,8vw,130px);
}
.account-page-title{
  margin-bottom:clamp(46px,5vw,78px);
  max-width:1500px;
  font-size:clamp(58px,7.2vw,124px);
  line-height:.86;
  text-shadow:0 10px 38px rgba(0,0,0,.76);
}
.account-panel{
  min-height:calc(100svh - 390px);
}
.account-panel>.account-modes,
.account-panel>h2,
.account-panel>.panel-description,
.account-panel>.auth-status,
.account-panel>noscript,
.account-panel>form,
.account-panel>#retryConnection,
.account-panel>.account-help{
  width:min(980px,100%);
}
.account-panel>#profileForm,
.account-panel>#memberPanel{
  width:100%;
  max-width:1480px;
}
.account-modes{
  min-height:66px;
  gap:8px;
  margin-bottom:38px;
  padding:6px;
  background:rgba(4,4,5,.72);
  backdrop-filter:blur(12px);
}
.account-modes button{
  padding:16px 20px;
  font-size:16px;
  letter-spacing:.025em;
}
h2{
  margin-bottom:14px;
  font-size:clamp(46px,4.2vw,68px);
}
.panel-description{
  margin-bottom:28px;
  font-size:18px;
  line-height:1.65;
}
.auth-status{
  margin-bottom:28px;
  padding:16px 18px;
  font-size:15px;
  line-height:1.65;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(8px);
}
label{
  margin:26px 0 11px;
  font-size:15px;
  letter-spacing:.035em;
}
input,select{
  min-height:64px;
  padding:16px 18px;
  border-color:rgba(255,255,255,.24);
  background:rgba(4,4,6,.82);
  font-size:18px;
  backdrop-filter:blur(10px);
}
input::placeholder{font-size:16px}
.password-field input{padding-right:112px}
.password-toggle{
  padding:0 18px;
  font-size:14px;
}
.field-hint{
  margin:11px 0 22px;
  font-size:14px;
  line-height:1.7;
}
.primary-button,.secondary-button{
  min-height:62px;
  margin-top:28px;
  padding:16px 22px;
  font-size:16px;
}
.text-button{font-size:14px}
.forgot-link{margin-top:14px}
.resend-button{margin-top:20px}
.profile-required-note{
  margin-bottom:24px;
  padding:14px 16px;
  font-size:14px;
}
.profile-photo-field{
  grid-template-columns:150px minmax(0,1fr);
  gap:28px;
  margin-bottom:28px;
  padding:22px;
  background:rgba(4,4,6,.72);
  backdrop-filter:blur(12px);
}
.profile-photo-preview{width:150px;height:150px}
.profile-photo-copy input[type=file]{min-height:56px;font-size:14px}
.profile-photo-copy input[type=file]::file-selector-button{min-height:38px;font-size:12px}
.profile-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2px 24px;
}
.profile-wide{grid-column:span 2}
.profile-grid label{margin-top:20px}
.profile-grid>div:nth-child(-n+3) label{margin-top:0}
.profile-declarations{
  gap:14px;
  margin-top:30px;
  padding-top:24px;
}
.check-row{
  grid-template-columns:24px 1fr;
  gap:14px;
  font-size:14px;
  line-height:1.7;
}
.check-row input{width:21px;min-height:21px;height:21px}
.verified-label{
  gap:10px;
  padding:11px 15px;
  font-size:14px;
}
.member-profile-overview{
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);
  gap:clamp(48px,6vw,100px);
  margin-top:32px;
}
.member-name{
  margin-bottom:28px;
  font-size:clamp(50px,4.6vw,78px);
}
.profile-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px 34px;
  padding:26px 0;
}
.profile-summary-wide{grid-column:span 2}
.profile-summary dt{
  margin-bottom:9px;
  font-size:13px;
}
.profile-summary dd{font-size:18px;line-height:1.55}
.member-avatar{max-width:560px}
.account-actions{
  gap:18px;
  margin-top:42px;
}
.account-actions .primary-button,
.account-actions .secondary-button{
  min-height:66px;
  font-size:16px;
}
.account-member-footer{
  margin-top:24px;
  font-size:14px;
}
.account-footer{
  margin-inline:clamp(28px,6vw,118px);
  padding:28px 0;
  font-size:13px;
  background:transparent;
}
@media(max-width:1180px){
  .profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-wide{grid-column:1/-1}
  .profile-grid>div:nth-child(3) label{margin-top:20px}
  .profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-summary-wide{grid-column:1/-1}
}
@media(max-width:900px){
  body{
    background-image:
      linear-gradient(180deg,rgba(0,0,0,.83),rgba(0,0,0,.9) 64%,#000 100%),
      url("assets/sponsor-standard.jpg")!important;
    background-position:center top!important;
  }
  .member-profile-overview{grid-template-columns:1fr}
  .member-avatar{width:min(100%,460px)}
}
@media(max-width:760px){
  .account-header{
    min-height:112px;
    padding:12px 20px;
  }
  .account-header img{width:min(58vw,260px);height:auto}
  .back-link{font-size:13px}
  .account-layout{min-height:0;padding:36px 22px 64px}
  .account-page-title{margin-bottom:36px;font-size:clamp(46px,14vw,70px)}
  .account-panel{min-height:0}
  .account-modes{min-height:58px;margin-bottom:30px}
  .account-modes button{padding:13px;font-size:14px}
  h2{font-size:clamp(40px,11vw,54px)}
  .panel-description{font-size:16px}
  label{font-size:14px}
  input,select{min-height:58px;font-size:17px}
  .profile-photo-field{grid-template-columns:104px minmax(0,1fr);gap:18px;padding:17px}
  .profile-photo-preview{width:104px;height:104px}
  .profile-grid,.profile-summary{grid-template-columns:1fr}
  .profile-wide,.profile-summary-wide{grid-column:auto}
  .profile-grid>div:nth-child(2) label,.profile-grid>div:nth-child(3) label{margin-top:20px}
  .profile-summary dd{font-size:17px}
  .account-actions{grid-template-columns:1fr;gap:10px}
  .account-actions .primary-button,.account-actions .secondary-button{font-size:15px}
  .account-member-footer{align-items:flex-start;flex-direction:column;font-size:13px;white-space:normal}
  .account-footer{margin-inline:22px;font-size:12px}
}
@media(max-width:420px){
  .account-header{gap:10px;padding-inline:16px}
  .account-header img{width:min(54vw,220px)}
  .back-link{gap:7px;font-size:11px}
  .account-layout{padding-inline:16px}
  .account-page-title{font-size:clamp(42px,14vw,58px)}
  .profile-photo-field{grid-template-columns:1fr}
}

/* V378 — immagine del garage visibile per intero, senza zoom o ritagli */
html{background:#000!important}
body{
  background-color:#000!important;
  background-image:
    linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.52) 48%,rgba(0,0,0,.64)),
    linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.38) 68%,rgba(0,0,0,.72) 100%),
    url("assets/sfondo-account-garage-v377.png")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
  background-attachment:fixed!important;
}
@media(max-width:900px){
  body{
    background-image:
      linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,.72) 70%,rgba(0,0,0,.9) 100%),
      url("assets/sfondo-account-garage-v377.png")!important;
    background-position:center!important;
    background-size:contain!important;
  }
}

/* V374 — intestazione identica alla barra del sito e titolo bicolore */
body{padding-top:88px}
.account-header{
  position:fixed;
  z-index:40;
  top:0;
  right:0;
  left:0;
  width:100%;
  height:88px;
  min-height:88px;
  padding:0 4vw 0 8px;
  border:0!important;
  border-bottom:0!important;
  background:linear-gradient(to bottom,rgba(3,3,3,.95),rgba(3,3,3,.68),rgba(3,3,3,0));
  backdrop-filter:blur(12px);
}
.account-header>a:first-child{
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
}
.account-header img{
  display:block;
  width:clamp(134px,12.6vw,208px);
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 12px 20px rgba(0,0,0,.5)) brightness(1.06);
}
.account-page-title{color:#fff!important}
.account-page-title-white{color:#fff!important}
.account-page-title-red{color:var(--accent)!important}
.profile-summary-full{grid-column:1/-1}
@media(max-width:640px){
  body{padding-top:74px}
  .account-header{
    height:74px;
    min-height:74px;
    padding:0 20px 0 8px;
  }
  .account-header img{width:110px}
}

/* V375 — nessuna barra nell'area personale; logo sovrapposto al menu principale */
.account-header{
  position:static!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  pointer-events:none;
}
.account-header::before,
.account-header::after{display:none!important}
.account-header>a:first-child{
  position:fixed;
  z-index:40;
  top:0;
  left:clamp(8px,1.45vw,28px);
  height:88px;
  pointer-events:auto;
}
.account-header img{
  width:clamp(134px,12.6vw,208px)!important;
  height:auto!important;
}
.back-link{
  position:fixed;
  z-index:40;
  top:0;
  right:clamp(8px,1.45vw,28px);
  height:88px;
  pointer-events:auto;
}
@media(max-width:640px){
  .account-header>a:first-child{
    left:8px;
    height:74px;
  }
  .account-header img{width:110px!important}
  .back-link{
    right:8px;
    height:74px;
  }
}

/* V379 — area personale contenuta nel viewport e logo immobile come nel menu */
html,
body{
  width:100%;
  height:100%;
  min-height:100%;
  overflow:hidden!important;
}
body{
  height:100svh!important;
  min-height:100svh!important;
  max-height:100svh!important;
  padding-top:88px!important;
}
.account-layout{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr);
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:clamp(18px,3vh,42px) clamp(22px,5vw,96px) clamp(10px,2vh,26px)!important;
  overflow:hidden!important;
}
.account-page-title{
  margin:0 0 clamp(16px,3vh,42px)!important;
  font-size:clamp(42px,min(7.2vw,10vh),124px)!important;
}
.account-panel{
  width:100%!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  padding-bottom:8px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  scrollbar-width:none;
}
.account-panel::-webkit-scrollbar{display:none}
.account-footer{
  flex:0 0 auto!important;
  margin:0 clamp(22px,5vw,96px)!important;
  padding:10px 0 12px!important;
}
.account-header>a:first-child{
  position:fixed!important;
  top:0!important;
  left:8px!important;
  width:auto!important;
  height:88px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
.account-header img{
  display:block!important;
  width:clamp(134px,12.6vw,208px)!important;
  max-width:none!important;
  height:auto!important;
  margin:0!important;
  transform:none!important;
}
@media(max-width:640px){
  body{padding-top:74px!important}
  .account-layout{
    padding:14px 16px 8px!important;
  }
  .account-page-title{
    margin-bottom:14px!important;
    font-size:clamp(38px,min(14vw,8vh),58px)!important;
  }
  .account-header>a:first-child{
    left:8px!important;
    height:74px!important;
  }
  .account-header img{width:110px!important}
  .account-footer{
    margin-inline:16px!important;
    padding:7px 0 8px!important;
  }
}

/* V381 — originale intatto a sinistra, estensione soltanto a destra */
body{
  background-image:
    linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.52) 48%,rgba(0,0,0,.64)),
    linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.38) 68%,rgba(0,0,0,.72) 100%),
    url("assets/sfondo-account-garage-logo-v393.png")!important;
  background-position:center center!important;
  background-size:cover!important;
}
@media(max-width:900px){
  body{
    background-image:
      linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,.72) 70%,rgba(0,0,0,.9) 100%),
      url("assets/sfondo-account-garage-logo-v393.png")!important;
    background-position:center center!important;
    background-size:cover!important;
  }
}

/* V382 — dashboard Garage personale */
body[data-account-view="account"]{
  background-image:
    linear-gradient(90deg,rgba(0,0,0,.16) 0%,rgba(0,0,0,.18) 48%,rgba(0,0,0,.38) 100%),
    linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.22) 76%,rgba(0,0,0,.42) 100%),
    url("assets/sfondo-account-garage-logo-v393.png")!important;
}
body[data-account-view="account"] .account-layout{
  grid-template-rows:auto minmax(0,1fr);
  padding:8px clamp(28px,3vw,58px) 0!important;
}
body[data-account-view="account"] .account-page-title{
  margin:0 0 clamp(8px,1.5vh,18px)!important;
  font-size:clamp(48px,min(5.2vw,8.2vh),92px)!important;
  line-height:.9;
  letter-spacing:-.025em;
  text-shadow:0 4px 22px rgba(0,0,0,.62);
  white-space:nowrap;
}
body[data-account-view="account"] .account-page-title-red{
  text-transform:uppercase;
}
body[data-account-view="account"] .account-panel{
  min-height:0!important;
  height:100%!important;
  padding:0!important;
  overflow:hidden!important;
}
body[data-account-view="account"] .account-footer{display:none!important}
.account-panel>#memberPanel.garage-dashboard{
  width:100%!important;
  max-width:none!important;
}
.garage-dashboard{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.94fr);
  gap:clamp(24px,3.1vw,64px);
  width:100%;
  height:100%;
  min-height:0;
}
.garage-stats-column{
  display:flex;
  min-width:0;
  min-height:0;
  flex-direction:column;
  padding:clamp(8px,1.8vh,22px) 0 clamp(12px,2.2vh,28px) clamp(18px,2.5vw,48px);
}
.garage-stats{
  width:min(100%,820px);
  margin:0;
}
.garage-stats>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:clamp(52px,6.7vh,72px);
  padding:7px clamp(14px,1.5vw,28px);
  border-top:1px solid rgba(255,255,255,.24);
  background:linear-gradient(90deg,rgba(118,0,7,.52),rgba(165,0,12,.34) 65%,rgba(80,0,4,.24));
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.58),0 4px 18px rgba(0,0,0,.18);
}
.garage-stats>div:last-child{border-bottom:1px solid rgba(255,255,255,.24)}
.garage-stats dt,
.garage-stats dd{
  margin:0;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(20px,1.85vw,36px);
  font-weight:600;
  line-height:1;
  letter-spacing:.01em;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.72);
}
.garage-stats dd{
  min-width:clamp(112px,10vw,190px);
  text-align:right;
  white-space:nowrap;
}
.garage-most-used{
  display:flex;
  align-items:baseline;
  gap:18px;
  margin-top:auto;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(22px,2vw,38px);
  font-weight:600;
  line-height:1;
  color:#fff;
  text-shadow:0 3px 14px #000;
}
.garage-most-used strong{
  color:var(--accent);
  font:inherit;
  font-weight:700;
}
.garage-account-nav{
  display:grid;
  grid-template-rows:repeat(3,minmax(90px,1fr));
  gap:clamp(14px,2.2vh,28px);
  align-self:start;
  width:100%;
  height:min(64vh,610px);
  min-height:360px;
  padding:0 0 clamp(18px,2vh,28px);
}
.garage-nav-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:100%;
  min-height:0;
  padding:clamp(18px,2.2vw,38px);
  border:5px solid rgba(0,0,0,.92);
  border-radius:0;
  background:linear-gradient(115deg,rgba(29,29,31,.84),rgba(8,8,9,.72));
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(24px,2.65vw,50px);
  font-weight:600;
  line-height:.92;
  letter-spacing:.015em;
  text-align:left;
  text-shadow:0 3px 12px rgba(0,0,0,.62);
  backdrop-filter:blur(5px);
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}
.garage-nav-card:not(:disabled):hover,
.garage-nav-card:not(:disabled):focus-visible{
  border-color:var(--accent);
  background:linear-gradient(115deg,rgba(53,18,22,.9),rgba(10,10,11,.82));
  transform:translateX(-5px);
}
.garage-nav-arrow{
  flex:0 0 auto;
  color:var(--accent);
  font-size:.78em;
}
.garage-nav-card.is-locked{
  cursor:not-allowed;
  opacity:.62;
}
.garage-nav-card.is-locked img{
  width:clamp(24px,2.2vw,38px);
  height:clamp(24px,2.2vw,38px);
  object-fit:contain;
}
.account-dialog{
  width:min(1180px,calc(100vw - 56px));
  max-width:none;
  max-height:calc(100svh - 64px);
  margin:auto;
  padding:clamp(24px,3vw,46px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.2);
  border-top:4px solid var(--accent);
  border-radius:0;
  background:linear-gradient(145deg,rgba(18,18,20,.98),rgba(3,3,4,.98));
  color:#fff;
  box-shadow:0 28px 100px rgba(0,0,0,.86);
}
.account-dialog::backdrop{
  background:rgba(0,0,0,.76);
  backdrop-filter:blur(8px);
}
.account-dialog[open]{animation:account-dialog-in .2s ease-out}
@keyframes account-dialog-in{
  from{opacity:0;transform:translateY(14px) scale(.985)}
  to{opacity:1;transform:none}
}
.account-dialog-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px;
  margin-bottom:26px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.dialog-kicker{
  margin:0 0 6px;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
}
.account-dialog h2{
  margin:0;
  font-size:clamp(38px,4vw,64px);
  line-height:.9;
}
.account-dialog-close{
  display:grid;
  place-items:center;
  flex:0 0 48px;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid rgba(255,255,255,.26);
  border-radius:0;
  background:transparent;
  color:#fff;
  font:400 32px/1 Inter,sans-serif;
}
.account-dialog-close:hover{border-color:var(--accent);color:var(--accent)}
.personal-data-dialog .member-profile-overview{
  grid-template-columns:minmax(0,1fr) minmax(180px,260px);
  gap:clamp(28px,4vw,56px);
  margin-top:24px;
}
.personal-data-dialog .member-name{
  margin:0 0 18px;
  color:var(--accent);
  font-size:clamp(34px,3vw,52px);
}
.personal-data-dialog .profile-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px 28px;
  padding:16px 0;
}
.personal-data-dialog .profile-summary dt{font-size:12px}
.personal-data-dialog .profile-summary dd{font-size:16px}
.personal-data-dialog .member-avatar{
  width:100%;
  max-width:260px;
  aspect-ratio:1;
  border-radius:0;
}
.race-history-dialog{min-height:min(580px,calc(100svh - 64px))}
.race-history-empty{
  display:grid;
  place-items:center;
  min-height:330px;
  padding:34px;
  text-align:center;
}
.race-history-zero{
  color:rgba(229,27,42,.26);
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(100px,14vw,190px);
  font-weight:700;
  line-height:.65;
}
.race-history-empty h3{
  margin:28px 0 8px;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(28px,3vw,44px);
}
.race-history-empty p{
  max-width:650px;
  margin:0;
  color:#aaa7ae;
  font-size:15px;
  line-height:1.65;
}
.race-history-list:empty{display:none}
@media(max-width:900px){
  body[data-account-view="account"]{
    background-image:
      linear-gradient(90deg,rgba(0,0,0,.15),rgba(0,0,0,.36)),
      linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.34)),
      url("assets/sfondo-account-garage-logo-v393.png")!important;
  }
  body[data-account-view="account"] .account-layout{padding:5px 16px 0!important}
  body[data-account-view="account"] .account-page-title{
    margin-bottom:8px!important;
    font-size:clamp(34px,min(6vw,7vh),58px)!important;
  }
  .garage-dashboard{grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:14px}
  .garage-stats-column{padding:6px 0 10px 10px}
  .garage-stats>div{min-height:44px;padding:5px 9px;gap:8px}
  .garage-stats dt,.garage-stats dd{font-size:clamp(13px,2.25vw,22px)}
  .garage-stats dd{min-width:76px}
  .garage-most-used{font-size:clamp(14px,2.3vw,22px);gap:8px}
  .garage-account-nav{height:min(62vh,500px);min-height:260px;gap:10px;padding-bottom:10px}
  .garage-nav-card{padding:12px;border-width:3px;font-size:clamp(15px,3vw,28px)}
  .personal-data-dialog .member-profile-overview{grid-template-columns:1fr}
  .personal-data-dialog .profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .personal-data-dialog .member-avatar{width:min(220px,100%)}
}
@media(max-width:540px){
  body[data-account-view="account"] .account-layout{padding-inline:8px!important}
  body[data-account-view="account"] .account-page-title{font-size:clamp(28px,9vw,44px)!important}
  .garage-dashboard{gap:6px}
  .garage-stats-column{padding-left:2px}
  .garage-stats>div{grid-template-columns:1fr;align-content:center;gap:2px;min-height:45px}
  .garage-stats dt,.garage-stats dd{font-size:clamp(10px,3vw,15px)}
  .garage-stats dd{min-width:0;text-align:left}
  .garage-most-used{display:grid;gap:4px;font-size:clamp(11px,3vw,16px)}
  .garage-account-nav{gap:7px;min-height:230px}
  .garage-nav-card{padding:8px;border-width:2px;font-size:clamp(12px,3.6vw,18px)}
  .garage-nav-arrow{display:none}
  .account-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 20px);padding:20px}
  .personal-data-dialog .profile-summary{grid-template-columns:1fr}
  .account-dialog h2{font-size:34px}
}

/* V383 — composizione fedele al riferimento Garage */
body[data-account-view="account"] .account-layout{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:calc(100svh - 88px)!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
}
body[data-account-view="account"] .account-page-title{
  position:absolute!important;
  z-index:3;
  top:0;
  left:3vw;
  width:auto!important;
  margin:0!important;
  font-size:clamp(48px,min(5.1vw,8.9vh),98px)!important;
  font-weight:600!important;
  line-height:.9!important;
  letter-spacing:-.025em!important;
  white-space:nowrap;
}
body[data-account-view="account"] .account-panel{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  overflow:hidden!important;
}
.account-panel>#memberPanel.garage-dashboard{
  position:absolute;
  inset:0;
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
}
.garage-stats-column{
  position:absolute;
  top:11.2vh;
  bottom:1.8vh;
  left:4.15vw;
  display:flex;
  width:42.5vw;
  min-width:0;
  min-height:0;
  padding:0;
}
.garage-stats{
  width:100%;
  max-width:none;
  margin:0;
}
.garage-stats>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:1vw;
  min-height:clamp(48px,7.15vh,78px);
  padding:0 1.75vw;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.garage-stats dt,
.garage-stats dd{
  margin:0;
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(20px,2.35vw,45px);
  font-weight:600;
  line-height:.92;
  letter-spacing:-.012em;
  text-shadow:0 3px 12px rgba(0,0,0,.82);
  white-space:nowrap;
}
.garage-stats dt::after{content:":"}
.garage-stats dd{
  min-width:0;
  text-align:right;
}
.garage-stats dd span+span{margin-left:.12em}
.garage-most-used{
  position:absolute;
  bottom:0;
  left:-.4vw;
  display:flex;
  align-items:baseline;
  gap:1vw;
  margin:0;
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(22px,2.25vw,43px);
  font-weight:600;
  line-height:1;
  letter-spacing:-.01em;
  text-shadow:0 3px 14px #000;
  white-space:nowrap;
}
.garage-most-used>span::after{content:":"}
.garage-most-used strong{color:#fff;font:inherit}
.garage-account-nav{
  position:absolute;
  top:7.55vh;
  right:3.9vw;
  display:grid;
  grid-template-rows:repeat(3,17.15vh);
  gap:2.75vh;
  width:45.1vw;
  height:auto;
  min-height:0;
  padding:0;
}
.garage-nav-card{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:0;
  padding:.6em;
  border:8px solid #020202;
  border-radius:0;
  background:rgba(20,20,21,.58);
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(28px,4vw,77px);
  font-weight:600;
  line-height:.9;
  letter-spacing:-.015em;
  text-align:center;
  text-shadow:0 3px 12px rgba(0,0,0,.7);
  backdrop-filter:none;
}
.garage-nav-card:not(:disabled):hover,
.garage-nav-card:not(:disabled):focus-visible{
  border-color:#020202;
  background:rgba(40,16,18,.68);
  transform:none;
}
.garage-nav-card.is-locked{
  cursor:not-allowed;
  opacity:1;
}
.garage-nav-arrow,
.garage-nav-card.is-locked img{display:none!important}

@media(max-width:900px){
  body[data-account-view="account"] .account-page-title{
    left:3vw;
    font-size:clamp(30px,min(5.1vw,8.9vh),58px)!important;
  }
  .garage-stats-column{top:11.2vh;bottom:1.8vh;left:4.15vw;width:42.5vw}
  .garage-stats>div{min-height:7.15vh;padding-inline:1.4vw}
  .garage-stats dt,.garage-stats dd{font-size:clamp(12px,2.35vw,23px)}
  .garage-most-used{font-size:clamp(13px,2.25vw,22px)}
  .garage-account-nav{top:7.55vh;right:3.9vw;grid-template-rows:repeat(3,17.15vh);gap:2.75vh;width:45.1vw}
  .garage-nav-card{border-width:4px;font-size:clamp(17px,4vw,38px)}
}
@media(max-width:640px){
  body[data-account-view="account"] .account-layout{height:calc(100svh - 74px)!important}
  .garage-nav-card{border-width:3px}
}
@media(max-width:540px){
  .garage-stats>div{grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:.5vw}
  .garage-stats dt,.garage-stats dd{font-size:clamp(9px,2.35vw,14px)}
  .garage-stats dd{text-align:right}
  .garage-most-used{display:flex;gap:.8vw;font-size:clamp(9px,2.25vw,13px)}
  .garage-nav-card{padding:.35em;font-size:clamp(12px,3.7vw,20px)}
}

/* V384 — logo e titolo Garage sulla stessa riga */
body[data-account-view="account"] .back-link{display:none!important}
body[data-account-view="account"] .account-page-title{
  position:fixed!important;
  z-index:41;
  top:0!important;
  right:clamp(20px,3vw,58px)!important;
  left:auto!important;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:auto!important;
  max-width:calc(100vw - clamp(190px,17vw,270px));
  height:88px;
  margin:0!important;
  font-size:clamp(32px,min(3.55vw,6.2vh),68px)!important;
  line-height:1!important;
  text-align:right;
}
@media(max-width:640px){
  body[data-account-view="account"] .account-page-title{
    right:10px!important;
    max-width:calc(100vw - 132px);
    height:74px;
    font-size:clamp(18px,min(4.15vw,5.8vh),32px)!important;
  }
}

/* V385 — coordinate agganciate allo sfondo anche fuori dal fullscreen */
:root{
  --garage-stats-left:80px;
  --garage-stats-top:210px;
  --garage-stats-width:815px;
  --garage-stats-height:312px;
  --garage-stat-row-height:78px;
  --garage-stat-padding:32px;
  --garage-stat-font:45px;
  --garage-used-left:69px;
  --garage-used-top:1000px;
  --garage-used-font:43px;
  --garage-nav-left:977px;
  --garage-nav-top:170px;
  --garage-nav-width:865px;
  --garage-nav-row-height:186px;
  --garage-nav-gap:15px;
  --garage-nav-border:8px;
  --garage-nav-font:77px;
}
body[data-account-view="account"] .garage-stats-column{
  position:fixed!important;
  top:var(--garage-stats-top)!important;
  bottom:auto!important;
  left:var(--garage-stats-left)!important;
  width:var(--garage-stats-width)!important;
  height:var(--garage-stats-height)!important;
  padding:0!important;
}
body[data-account-view="account"]{
  background-position:0 0!important;
  background-size:100% 100%!important;
}
body[data-account-view="account"] .garage-stats>div{
  height:var(--garage-stat-row-height)!important;
  min-height:var(--garage-stat-row-height)!important;
  padding:0 var(--garage-stat-padding)!important;
}
body[data-account-view="account"] .garage-stats dt,
body[data-account-view="account"] .garage-stats dd{
  font-size:var(--garage-stat-font)!important;
}
body[data-account-view="account"] .garage-most-used{
  position:fixed!important;
  top:var(--garage-used-top)!important;
  bottom:auto!important;
  left:var(--garage-used-left)!important;
  font-size:var(--garage-used-font)!important;
}
body[data-account-view="account"] .garage-account-nav{
  position:fixed!important;
  top:var(--garage-nav-top)!important;
  right:auto!important;
  left:var(--garage-nav-left)!important;
  grid-template-rows:repeat(3,var(--garage-nav-row-height))!important;
  gap:var(--garage-nav-gap)!important;
  width:var(--garage-nav-width)!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
}
body[data-account-view="account"] .garage-nav-card{
  border-width:var(--garage-nav-border)!important;
  font-size:var(--garage-nav-font)!important;
}

/* V386 — logo e titolo Garage riuniti sul lato sinistro */
body[data-account-view="account"] .account-header>a:first-child{
  left:0!important;
}
body[data-account-view="account"] .account-page-title{
  right:auto!important;
  left:clamp(150px,14vw,230px)!important;
  justify-content:flex-start!important;
  max-width:calc(100vw - clamp(166px,15vw,250px))!important;
  text-align:left!important;
}
@media(max-width:640px){
  body[data-account-view="account"] .account-header>a:first-child{
    left:0!important;
  }
  body[data-account-view="account"] .account-page-title{
    right:auto!important;
    left:122px!important;
    max-width:calc(100vw - 130px)!important;
  }
}

/* V387 — priorità finale per la colonna completa sul muro nero */
body[data-account-view="account"] .garage-account-nav{
  grid-template-rows:repeat(4,var(--garage-nav-row-height))!important;
}
body[data-account-view="account"] .garage-nav-card{
  border-width:1px!important;
  border-left-width:4px!important;
}
body[data-account-view="account"] .garage-nav-card.is-locked{
  border-left-color:rgba(255,255,255,.22)!important;
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-nav-card{
    border-left-width:3px!important;
  }
}

/* V388 — apertura del garage e dati personali integrati nella scena */
:root{
  --garage-personal-left:82px;
  --garage-personal-top:260px;
  --garage-personal-width:805px;
  --garage-personal-height:700px;
  --garage-personal-pad-x:24px;
  --garage-personal-pad-y:14px;
  --garage-personal-title-font:40px;
  --garage-personal-name-font:29px;
  --garage-personal-label-font:12px;
  --garage-personal-value-font:18px;
  --garage-personal-avatar-size:118px;
  --garage-personal-action-font:13px;
  --personal-panel-clip:100%;
  --personal-panel-opacity:0;
  --personal-panel-shift:0px;
  --garage-stats-opacity:1;
}
body[data-account-view="account"] .garage-motion-layer{
  position:fixed;
  z-index:1;
  inset:0;
  width:100vw;
  height:100svh;
  overflow:hidden;
  pointer-events:none;
  visibility:hidden;
  opacity:0;
}
body[data-account-view="account"].is-personal-sequence .garage-motion-layer{
  visibility:visible;
  opacity:1;
}
.garage-motion-video,
.garage-open-wallpaper{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:fill;
  opacity:0;
}
.garage-motion-video.is-active{opacity:1}
body[data-account-view="account"].is-personal-open .garage-open-wallpaper{opacity:1}

body[data-account-view="account"] .garage-stats-column{
  z-index:3;
  opacity:var(--garage-stats-opacity);
  will-change:opacity;
}
body[data-account-view="account"] .garage-account-nav{
  z-index:6;
}
body[data-account-view="account"].is-personal-sequence .garage-account-nav{
  isolation:isolate;
}
body[data-account-view="account"] .garage-nav-card[data-garage-personal][aria-expanded="true"]{
  border-left-color:var(--accent)!important;
  background:rgba(74,10,16,.72)!important;
}

.garage-personal-panel{
  position:fixed;
  z-index:4;
  top:var(--garage-personal-top);
  left:var(--garage-personal-left);
  display:flex;
  flex-direction:column;
  width:var(--garage-personal-width);
  height:var(--garage-personal-height);
  box-sizing:border-box;
  min-width:0;
  min-height:0;
  padding:var(--garage-personal-pad-y) var(--garage-personal-pad-x);
  overflow:hidden;
  border:0;
  background:transparent;
  color:#fff;
  opacity:var(--personal-panel-opacity);
  clip-path:inset(var(--personal-panel-clip) 0 0 0);
  transform:translateY(var(--personal-panel-shift));
  transform-origin:bottom center;
  pointer-events:none;
  will-change:clip-path,opacity,transform;
}
body[data-account-view="account"].is-personal-sequence .garage-personal-panel{
  pointer-events:auto;
}
.garage-personal-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:18px;
  min-height:var(--garage-personal-avatar-size);
  margin-bottom:10px;
}
.garage-personal-panel .verified-label{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  margin:0 0 4px;
  padding:0;
  border:0;
  background:none;
  color:#d7d7d7;
  font-family:Inter,sans-serif;
  font-size:var(--garage-personal-label-font);
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.garage-personal-panel .verified-label span{color:var(--accent)}
.garage-personal-panel h2{
  margin:0;
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:var(--garage-personal-title-font);
  font-weight:700;
  line-height:.9;
  letter-spacing:-.02em;
}
.garage-personal-panel .member-name{
  margin:4px 0 0;
  color:var(--accent);
  font-family:Rajdhani,Inter,sans-serif;
  font-size:var(--garage-personal-name-font);
  font-weight:700;
  line-height:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.garage-personal-panel .member-avatar{
  display:block;
  width:var(--garage-personal-avatar-size);
  height:var(--garage-personal-avatar-size);
  max-width:none;
  aspect-ratio:1;
  object-fit:cover;
  border:2px solid rgba(229,27,42,.82);
  border-radius:0;
  box-shadow:0 9px 28px rgba(0,0,0,.55);
}
.garage-personal-panel .member-avatar[hidden]{display:none}
.garage-personal-panel .profile-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 20px;
  margin:0;
  padding:8px 0 10px;
  border-top:1px solid rgba(255,255,255,.18);
  border-bottom:1px solid rgba(255,255,255,.18);
}
.garage-personal-panel .profile-summary>div{
  min-width:0;
  padding:3px 0 5px;
  border:0;
}
.garage-personal-panel .profile-summary-wide{grid-column:1/-1}
.garage-personal-panel .profile-summary dt{
  margin:0 0 1px;
  color:#a7a7aa;
  font-family:Inter,sans-serif;
  font-size:var(--garage-personal-label-font);
  font-weight:700;
  line-height:1.1;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.garage-personal-panel .profile-summary dd{
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:var(--garage-personal-value-font);
  font-weight:600;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.garage-personal-panel .account-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:12px 0 0;
}
.garage-personal-panel .account-actions>*{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:36px;
  margin:0;
  padding:7px 8px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:0;
  background:rgba(4,4,5,.64);
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:var(--garage-personal-action-font);
  font-weight:700;
  line-height:1;
  text-align:center;
  white-space:nowrap;
}
.garage-personal-panel .account-actions>*:hover,
.garage-personal-panel .account-actions>*:focus-visible{
  border-color:var(--accent);
  color:#fff;
}
.garage-personal-panel .account-member-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:9px 0 0;
  color:#a9a9ac;
  font-size:var(--garage-personal-label-font);
  line-height:1.1;
  white-space:nowrap;
}
.garage-personal-panel .account-member-footer a{color:#fff}

@media(prefers-reduced-motion:reduce){
  .garage-personal-panel{transform:none!important}
}

/* V389/V391 — logo a 9 px visibili e titolo Garage affiancato */
body[data-account-view="account"] .account-page-title{
  top:0!important;
  right:auto!important;
  left:var(--garage-title-left)!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:.18em;
  width:var(--garage-title-max-width)!important;
  max-width:var(--garage-title-max-width)!important;
  height:var(--garage-title-height)!important;
  margin:0!important;
  padding:0 0 var(--garage-title-bottom-gap)!important;
  overflow:hidden;
  font-size:var(--garage-title-font)!important;
  line-height:.88!important;
  letter-spacing:-.035em!important;
  text-align:left!important;
  white-space:nowrap;
}
body[data-account-view="account"] .account-page-title-white,
body[data-account-view="account"] .account-page-title-red{
  flex:0 0 auto;
}

/* V390 — immagine senza oscuramento e contenuti confinati nel garage */
body[data-account-view="account"]{
  background-image:url("assets/sfondo-account-garage-logo-v393.png")!important;
  background-position:center center!important;
  background-size:100% 100%!important;
}

/* V391 — cinque sezioni compatte e dati estesi su tutta l'apertura */
body[data-account-view="account"] .garage-account-nav{
  grid-template-rows:repeat(5,var(--garage-nav-row-height))!important;
}
body[data-account-view="account"] .garage-nav-card.is-active{
  border-left-color:var(--accent)!important;
  background:rgba(74,10,16,.72)!important;
  color:#fff!important;
}
.garage-personal-panel .profile-summary{
  flex:1 1 auto;
  align-content:space-evenly;
}

/* V394 — ambienti dell'area personale con transizioni on/off */
:root{
  --garage-section-reveal:1;
  --garage-section-clip:0%;
  --garage-section-opacity:1;
}
body[data-account-view="account"]{
  background-image:url("assets/account-statistiche-cover.jpg")!important;
  background-position:0 0!important;
  background-size:100% 100%!important;
}
body[data-account-view="account"] .account-header{
  position:fixed!important;
  z-index:50!important;
  inset:0 auto auto 0!important;
  width:auto!important;
  min-height:0!important;
  padding:14px 0 0 18px!important;
  background:none!important;
  pointer-events:none;
}
body[data-account-view="account"] .account-header .back-link{
  display:inline-flex!important;
  position:relative!important;
  inset:auto!important;
  pointer-events:auto;
  color:#fff!important;
  font-size:clamp(11px,1vw,16px)!important;
  text-shadow:0 2px 8px rgba(0,0,0,.9);
}
body[data-account-view="account"] .account-page-title{
  top:var(--garage-title-top,48px)!important;
  left:var(--garage-title-left,72px)!important;
  width:var(--garage-title-max-width,820px)!important;
  max-width:var(--garage-title-max-width,820px)!important;
  height:var(--garage-title-height,118px)!important;
  padding:0!important;
  align-items:flex-end!important;
  overflow:visible!important;
  font-size:var(--garage-title-font,82px)!important;
  line-height:.86!important;
}
body[data-account-view="account"] .garage-motion-layer{
  visibility:visible!important;
  opacity:1!important;
}
.garage-open-wallpaper{
  opacity:1!important;
  object-fit:fill!important;
}
.garage-motion-video{
  z-index:2;
  object-fit:fill!important;
}
.garage-motion-video.is-active{opacity:1!important}
body[data-account-view="account"] .garage-stats-column{
  opacity:0;
  visibility:hidden;
  transition:none;
}
body[data-account-view="account"][data-garage-section="statistics"] .garage-stats-column{
  opacity:var(--garage-section-opacity)!important;
  visibility:visible;
}
body[data-account-view="account"] .garage-personal-panel,
body[data-account-view="account"] .garage-license-panel{
  opacity:0!important;
  visibility:hidden;
  clip-path:inset(var(--garage-section-clip) 0 0 0)!important;
  pointer-events:none!important;
}
body[data-account-view="account"][data-garage-section="personal"] .garage-personal-panel,
body[data-account-view="account"][data-garage-section="licenses"] .garage-license-panel{
  opacity:var(--garage-section-opacity)!important;
  visibility:visible;
  pointer-events:auto!important;
}
body[data-account-view="account"] .garage-account-nav{
  grid-template-rows:repeat(4,var(--garage-nav-row-height))!important;
}
body[data-account-view="account"].is-garage-transitioning .garage-nav-card{
  pointer-events:none;
}
.garage-personal-panel .account-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.garage-license-panel{
  position:fixed;
  z-index:4;
  top:var(--garage-personal-top);
  left:var(--garage-personal-left);
  display:flex;
  flex-direction:column;
  width:var(--garage-personal-width);
  height:var(--garage-personal-height);
  box-sizing:border-box;
  padding:var(--garage-personal-pad-y) var(--garage-personal-pad-x);
  overflow:hidden;
  color:#fff;
}
.garage-panel-kicker{
  margin:0 0 4px;
  color:#d7d7d7;
  font-family:Inter,sans-serif;
  font-size:var(--garage-personal-label-font);
  font-weight:700;
  letter-spacing:.14em;
}
.garage-license-panel h2{
  margin:0 0 24px;
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:var(--garage-personal-title-font);
  line-height:.9;
}
.license-progress-list{display:grid;gap:14px}
.license-progress-list article{
  display:grid;
  grid-template-columns:minmax(100px,.8fr) 1fr;
  gap:4px 18px;
  align-items:end;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.2);
  font-family:Rajdhani,Inter,sans-serif;
}
.license-progress-list article>span{font-size:calc(var(--garage-personal-value-font) * 1.35);font-weight:700}
.license-progress-list article>strong{justify-self:end;color:#b9b9bc;font-size:var(--garage-personal-label-font);letter-spacing:.08em}
.license-progress-bar{grid-column:1/-1;height:5px;background:rgba(255,255,255,.16)}
.license-progress-bar i{display:block;width:0;height:100%;background:var(--accent)}
.license-progress-note{margin:auto 0 0;color:#b9b9bc;font-size:var(--garage-personal-label-font)}
@media(max-width:640px){
  body[data-account-view="account"] .account-header{padding:9px 0 0 9px!important}
}

/* V396 — ritorno a destra, pannello informazioni confinato nel garage e registro gare attivo */
body[data-account-view="account"] .account-header{
  position:static!important;
  z-index:auto!important;
  inset:auto!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  pointer-events:none;
}
body[data-account-view="account"] .account-header .back-link{
  position:fixed!important;
  z-index:50!important;
  top:0!important;
  right:clamp(8px,1.45vw,28px)!important;
  bottom:auto!important;
  left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  height:88px!important;
  margin:0!important;
  padding:0!important;
  pointer-events:auto;
  color:#c1c1c5!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1!important;
  text-shadow:none!important;
}
body[data-account-view="account"] .account-header .back-link:hover,
body[data-account-view="account"] .account-header .back-link:focus-visible{
  color:#fff!important;
}

.garage-info-surface{
  position:fixed;
  z-index:2;
  top:var(--garage-info-top);
  left:var(--garage-info-left);
  width:var(--garage-info-width);
  height:var(--garage-info-height);
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.2);
  border-left:4px solid rgba(229,27,42,.86);
  background:rgba(0,0,0,.7);
  box-shadow:0 18px 42px rgba(0,0,0,.24),inset 0 0 0 1px rgba(0,0,0,.34);
  clip-path:inset(var(--garage-section-clip) 0 0 0);
  opacity:var(--garage-section-opacity);
  pointer-events:none;
}
body[data-account-view="account"] .garage-most-used{
  top:var(--garage-info-used-top)!important;
  bottom:auto!important;
  left:var(--garage-info-left)!important;
  width:var(--garage-info-width)!important;
  box-sizing:border-box;
  padding:0 18px;
}

body[data-account-view="account"] .garage-personal-panel,
body[data-account-view="account"] .garage-license-panel,
body[data-account-view="account"] .garage-races-panel{
  opacity:0!important;
  visibility:hidden;
  clip-path:inset(var(--garage-section-clip) 0 0 0)!important;
  pointer-events:none!important;
}
body[data-account-view="account"][data-garage-section="personal"] .garage-personal-panel,
body[data-account-view="account"][data-garage-section="licenses"] .garage-license-panel,
body[data-account-view="account"][data-garage-section="races"] .garage-races-panel{
  opacity:var(--garage-section-opacity)!important;
  visibility:visible;
  pointer-events:auto!important;
}

.garage-races-panel{
  position:fixed;
  z-index:4;
  top:var(--garage-personal-top);
  left:var(--garage-personal-left);
  display:flex;
  flex-direction:column;
  width:var(--garage-personal-width);
  height:var(--garage-personal-height);
  box-sizing:border-box;
  min-width:0;
  min-height:0;
  padding:var(--garage-personal-pad-y) var(--garage-personal-pad-x);
  overflow:hidden;
  border:0;
  background:transparent;
  color:#fff;
}
.garage-races-panel h2{
  margin:0 0 18px;
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:var(--garage-personal-title-font);
  font-weight:700;
  line-height:.9;
  letter-spacing:-.02em;
}
.garage-races-panel .race-history-empty{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:clamp(16px,2vw,34px);
  row-gap:4px;
  min-height:0;
  margin:auto 0;
  padding:clamp(18px,2.3vw,38px) 0;
  border-top:1px solid rgba(255,255,255,.2);
  border-bottom:1px solid rgba(255,255,255,.2);
  background:transparent;
  color:#fff;
  text-align:left;
}
.garage-races-panel .race-history-zero{
  grid-row:1/-1;
  color:var(--accent);
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(72px,7vw,138px);
  font-weight:700;
  line-height:.75;
}
.garage-races-panel .race-history-empty h3{
  margin:0;
  color:#fff;
  font-family:Rajdhani,Inter,sans-serif;
  font-size:clamp(24px,2.2vw,42px);
  line-height:1;
}
.garage-races-panel .race-history-empty p{
  margin:0;
  color:#c8c8cb;
  font-size:var(--garage-personal-label-font);
  line-height:1.35;
}
.garage-races-panel .race-history-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  overflow:auto;
  list-style:none;
}

@media(max-width:640px){
  body[data-account-view="account"] .account-header .back-link{
    right:8px!important;
    height:74px!important;
    gap:7px!important;
    font-size:11px!important;
  }
  .garage-info-surface{border-left-width:3px}
  .garage-races-panel .race-history-empty{
    column-gap:12px;
    padding:12px 0;
  }
}


/* V398 — box nero senza cornici, più alto e fermo prima della serranda inferiore */
body[data-account-view="account"] .garage-info-surface{
  top:var(--garage-info-top)!important;
  bottom:auto!important;
  height:var(--garage-info-height)!important;
  border:0!important;
  border-left:0!important;
  outline:0!important;
  background:rgba(0,0,0,.72)!important;
  box-shadow:none!important;
}

/* Nessuna cornice esterna rossa o bianca: rimane soltanto la superficie nera. */
body[data-account-view="account"] .garage-info-surface::before,
body[data-account-view="account"] .garage-info-surface::after{
  content:none!important;
  display:none!important;
}

/* Il contenitore mantiene sempre la stessa geometria in tutte le categorie.
   A cambiare durante l'apertura/chiusura è solo la porzione rivelata dalla serranda. */
body[data-account-view="account"] .garage-info-surface{
  transform:none!important;
  transform-origin:center!important;
}

@media(max-width:640px){
  body[data-account-view="account"] .garage-info-surface{
    border:0!important;
    border-left:0!important;
  }
}


/* V405 — assicura il ritorno a destra sopra il garage */
body[data-account-view="account"] .account-header .back-link{
  position:fixed!important;
  top:0!important;
  right:clamp(8px,1.45vw,28px)!important;
  left:auto!important;
  justify-content:flex-end!important;
  text-align:right!important;
}


/* V408 — statistiche con la stessa comparsa/scomparsa dei Dati personali */
body[data-account-view="account"] .garage-stats-column{
  clip-path:inset(var(--garage-section-clip) 0 0 0)!important;
  transform:none!important;
  transform-origin:bottom center!important;
  will-change:clip-path,opacity!important;
}
body[data-account-view="account"][data-garage-section="statistics"] .garage-stats-column{
  opacity:var(--garage-section-opacity)!important;
  visibility:visible!important;
}

/* Torna al sito: posizione destra definitiva nel Garage */
body[data-account-view="account"] .account-header .back-link{
  position:fixed!important;
  z-index:100!important;
  top:0!important;
  right:20px!important;
  bottom:auto!important;
  left:auto!important;
  inset:0 20px auto auto!important;
  display:flex!important;
  width:max-content!important;
  margin:0!important;
  transform:none!important;
  justify-content:flex-end!important;
  text-align:right!important;
}
@media(max-width:640px){
  body[data-account-view="account"] .account-header .back-link{
    right:8px!important;
    inset:0 8px auto auto!important;
  }
}

/* V408 — statistiche abbassate sotto il bordo della serranda */
body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
}


/* V409 — layout vicino al riferimento, box rifiniti e dati personali più grandi */
body[data-account-view="account"] .account-page-title{
  top:28px!important;
  left:52px!important;
  width:auto!important;
  max-width:min(58vw,1050px)!important;
  height:auto!important;
  align-items:flex-start!important;
  font-size:clamp(54px,min(6.2vw,10.4vh),118px)!important;
  line-height:.88!important;
  letter-spacing:-.03em!important;
}
body[data-account-view="account"] .account-page-title-white,
body[data-account-view="account"] .account-page-title-red{
  display:inline-block!important;
  font-weight:700!important;
}
body[data-account-view="account"] .account-page-title-red{
  color:#ef1f2f!important;
}

body[data-account-view="account"] .account-header .back-link{
  position:fixed!important;
  z-index:110!important;
  top:26px!important;
  right:44px!important;
  left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:310px!important;
  height:76px!important;
  padding:0 30px!important;
  border:1px solid rgba(229,27,42,.42)!important;
  border-radius:18px!important;
  background:rgba(8,8,10,.62)!important;
  color:#fff!important;
  font-size:clamp(22px,2.45vw,36px)!important;
  font-weight:500!important;
  text-align:center!important;
  text-shadow:none!important;
  box-shadow:0 12px 30px rgba(0,0,0,.25)!important;
}
body[data-account-view="account"] .account-header .back-link:hover,
body[data-account-view="account"] .account-header .back-link:focus-visible{
  color:#fff!important;
  border-color:rgba(229,27,42,.66)!important;
  background:rgba(15,15,18,.74)!important;
}

body[data-account-view="account"] .garage-account-nav{
  position:fixed!important;
  left:var(--garage-nav-left)!important;
  top:var(--garage-nav-top)!important;
  width:var(--garage-nav-width)!important;
  grid-template-rows:repeat(4,var(--garage-nav-row-height))!important;
  gap:var(--garage-nav-gap)!important;
  padding:0!important;
}
body[data-account-view="account"] .garage-nav-card{
  justify-content:flex-start!important;
  padding:0 clamp(30px,2.8vw,54px)!important;
  border:var(--garage-nav-border) solid rgba(214,35,49,.55)!important;
  border-left:var(--garage-nav-border) solid rgba(214,35,49,.55)!important;
  border-radius:24px!important;
  background:linear-gradient(90deg,rgba(22,9,11,.68) 0%, rgba(10,12,16,.56) 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 10px 28px rgba(0,0,0,.18)!important;
  color:#fff!important;
  text-align:left!important;
  transform:none!important;
}
body[data-account-view="account"] .garage-nav-card::before{display:none!important;content:none!important}
body[data-account-view="account"] .garage-nav-card::after{
  right:clamp(26px,2.1vw,42px)!important;
  bottom:clamp(18px,2.1vh,30px)!important;
  width:clamp(70px,6.6vw,120px)!important;
  height:2px!important;
  background:linear-gradient(90deg,rgba(229,27,42,.96),rgba(229,27,42,0))!important;
}
body[data-account-view="account"] .garage-nav-card>span{
  width:100%!important;
  font-size:var(--garage-nav-font)!important;
  font-weight:600!important;
  line-height:.92!important;
  letter-spacing:-.015em!important;
}
body[data-account-view="account"] .garage-nav-card.is-active,
body[data-account-view="account"] .garage-nav-card[aria-current="page"]{
  background:linear-gradient(90deg,rgba(111,10,20,.82) 0%, rgba(76,11,18,.72) 35%, rgba(25,9,13,.58) 100%)!important;
  border-color:rgba(214,35,49,.8)!important;
}
body[data-account-view="account"] .garage-nav-card:not(:disabled):hover,
body[data-account-view="account"] .garage-nav-card:not(:disabled):focus-visible{
  transform:none!important;
  border-color:rgba(214,35,49,.82)!important;
  background:linear-gradient(90deg,rgba(80,12,18,.8) 0%, rgba(20,12,16,.62) 100%)!important;
}

body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
  left:var(--garage-stats-left)!important;
  width:var(--garage-stats-width)!important;
  height:var(--garage-stats-height)!important;
  clip-path:inset(var(--garage-section-clip) 0 0 0)!important;
  opacity:var(--garage-section-opacity)!important;
}
body[data-account-view="account"] .garage-stats>div{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-content:center!important;
  gap:14px!important;
  height:var(--garage-stat-row-height)!important;
  min-height:var(--garage-stat-row-height)!important;
  padding:0 var(--garage-stat-padding)!important;
}
body[data-account-view="account"] .garage-stats dt,
body[data-account-view="account"] .garage-stats dd{
  font-size:var(--garage-stat-font)!important;
}
body[data-account-view="account"] .garage-most-used{
  left:var(--garage-info-left)!important;
  width:var(--garage-info-width)!important;
  top:calc(var(--garage-stats-top) + var(--garage-stats-height) + 14px)!important;
  padding:0 16px!important;
  font-size:clamp(18px,2.25vw,31px)!important;
}

body[data-account-view="account"] .garage-personal-panel .profile-summary{
  padding:10px 0 8px!important;
  border-top:0!important;
  border-bottom:1px solid rgba(255,255,255,.14)!important;
  gap:10px 22px!important;
}
body[data-account-view="account"] .garage-personal-panel .profile-summary dt{
  font-size:calc(var(--garage-personal-label-font) * 1.06)!important;
}
body[data-account-view="account"] .garage-personal-panel .profile-summary dd{
  font-size:calc(var(--garage-personal-value-font) * 1.1)!important;
  line-height:1.08!important;
}
body[data-account-view="account"] .garage-personal-panel .member-name{
  font-size:calc(var(--garage-personal-name-font) * 1.06)!important;
}
body[data-account-view="account"] .garage-personal-panel .garage-personal-heading{
  margin-bottom:12px!important;
}

@media(max-width:640px){
  body[data-account-view="account"] .account-page-title{
    top:20px!important;
    left:20px!important;
    max-width:calc(100vw - 40px)!important;
    font-size:clamp(28px,6.4vw,50px)!important;
  }
  body[data-account-view="account"] .account-header .back-link{
    top:12px!important;
    right:12px!important;
    min-width:170px!important;
    height:52px!important;
    padding:0 16px!important;
    font-size:clamp(14px,3.8vw,20px)!important;
  }
}


/* V410 — statistiche ancora più in basso e back link come nel riferimento */
body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
  height:var(--garage-stats-height)!important;
}
body[data-account-view="account"] .garage-stats>div{
  height:var(--garage-stat-row-height)!important;
  min-height:var(--garage-stat-row-height)!important;
}
body[data-account-view="account"] .garage-most-used{
  top:calc(var(--garage-stats-top) + var(--garage-stats-height) + 10px)!important;
}

body[data-account-view="account"] .account-header .back-link{
  position:fixed!important;
  z-index:120!important;
  top:34px!important;
  right:34px!important;
  left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
  width:clamp(290px, 18.5vw, 370px)!important;
  height:clamp(74px, 8.5vh, 94px)!important;
  padding:0 26px!important;
  border:1px solid rgba(214,35,49,.48)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(16,17,20,.52),rgba(7,8,10,.38))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 10px 26px rgba(0,0,0,.18)!important;
  color:#fff!important;
  font-family:Rajdhani,Inter,sans-serif!important;
  font-size:clamp(28px,2.85vw,44px)!important;
  font-weight:500!important;
  line-height:1!important;
  text-transform:none!important;
  letter-spacing:0!important;
  text-align:left!important;
  text-shadow:none!important;
}
body[data-account-view="account"] .account-header .back-link .back-link-arrow,
body[data-account-view="account"] .account-header .back-link .back-link-label{
  display:inline-block!important;
  color:#fff!important;
  font:inherit!important;
  line-height:1!important;
}
body[data-account-view="account"] .account-header .back-link .back-link-arrow{
  margin-right:2px!important;
}
body[data-account-view="account"] .account-header .back-link:hover,
body[data-account-view="account"] .account-header .back-link:focus-visible{
  background:linear-gradient(180deg,rgba(19,20,24,.64),rgba(10,11,14,.48))!important;
  border-color:rgba(214,35,49,.7)!important;
}
@media(max-width:640px){
  body[data-account-view="account"] .account-header .back-link{
    top:10px!important;
    right:10px!important;
    width:clamp(170px,48vw,240px)!important;
    height:52px!important;
    padding:0 14px!important;
    gap:8px!important;
    border-radius:14px!important;
    font-size:clamp(14px,4.3vw,20px)!important;
  }
}


/* V411 — statistiche con la stessa comparsa/scomparsa del Registro gare */
body[data-account-view="account"] .garage-stats-column{
  opacity:0!important;
  visibility:hidden!important;
  clip-path:inset(var(--garage-section-clip) 0 0 0)!important;
  pointer-events:none!important;
}
body[data-account-view="account"][data-garage-section="statistics"] .garage-stats-column{
  opacity:var(--garage-section-opacity)!important;
  visibility:visible!important;
  pointer-events:auto!important;
}


/* V412 — rimuove il vecchio "torna al sito" nell'area personale e crea quello nuovo a destra */
body[data-account-view="account"] .account-header .back-link{
  display:none!important;
}
body[data-account-view="account"] .garage-home-link{
  position:fixed!important;
  z-index:130!important;
  top:34px!important;
  right:34px!important;
  left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
  width:clamp(300px,18.5vw,380px)!important;
  height:clamp(74px,8.5vh,94px)!important;
  padding:0 26px!important;
  border:1px solid rgba(214,35,49,.5)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(16,17,20,.52),rgba(7,8,10,.38))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 10px 26px rgba(0,0,0,.18)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-family:Rajdhani,Inter,sans-serif!important;
  font-size:clamp(28px,2.85vw,44px)!important;
  font-weight:500!important;
  line-height:1!important;
  text-align:left!important;
  text-shadow:none!important;
  letter-spacing:0!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-arrow,
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  display:inline-block!important;
  color:#fff!important;
  font:inherit!important;
  line-height:1!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-arrow{
  margin-right:2px!important;
}
body[data-account-view="account"] .garage-home-link:hover,
body[data-account-view="account"] .garage-home-link:focus-visible{
  background:linear-gradient(180deg,rgba(19,20,24,.64),rgba(10,11,14,.48))!important;
  border-color:rgba(214,35,49,.72)!important;
}
body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
  height:var(--garage-stats-height)!important;
}
body[data-account-view="account"] .garage-most-used{
  top:calc(var(--garage-stats-top) + var(--garage-stats-height) + 8px)!important;
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-home-link{
    top:10px!important;
    right:10px!important;
    width:clamp(170px,48vw,240px)!important;
    height:52px!important;
    padding:0 14px!important;
    gap:8px!important;
    border-radius:14px!important;
    font-size:clamp(14px,4.3vw,20px)!important;
  }
}


/* V413 — statistiche più in basso, titolo dati personali nascosto, caratteri più grandi */
body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
  height:var(--garage-stats-height)!important;
}
body[data-account-view="account"] .garage-stats{
  gap:2px!important;
}
body[data-account-view="account"] .garage-stats > div{
  height:var(--garage-stat-row-height)!important;
  min-height:var(--garage-stat-row-height)!important;
  padding:0 var(--garage-stat-padding)!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
}
body[data-account-view="account"] .garage-stats dt,
body[data-account-view="account"] .garage-stats dd{
  font-size:var(--garage-stat-font)!important;
  line-height:.96!important;
}
body[data-account-view="account"] .garage-stats dd{
  white-space:nowrap!important;
}
body[data-account-view="account"] .garage-most-used{
  display:none!important;
}

body[data-account-view="account"] .account-page-title{
  font-size:clamp(58px,min(6.8vw,11vh),128px)!important;
}
body[data-account-view="account"] .garage-home-link{
  font-size:clamp(30px,3vw,46px)!important;
}
body[data-account-view="account"] .garage-nav-card > span{
  font-size:calc(var(--garage-nav-font) * 1.02)!important;
}
body[data-account-view="account"] .verified-label{
  font-size:calc(var(--garage-personal-title-font) * .64)!important;
}
body[data-account-view="account"] #personalDataTitle.visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
body[data-account-view="account"] .garage-personal-panel .member-name{
  font-size:calc(var(--garage-personal-name-font) * 1.08)!important;
}
body[data-account-view="account"] .garage-personal-panel .profile-summary dt{
  font-size:calc(var(--garage-personal-label-font) * 1.1)!important;
}
body[data-account-view="account"] .garage-personal-panel .profile-summary dd{
  font-size:calc(var(--garage-personal-value-font) * 1.08)!important;
  line-height:1.08!important;
}
body[data-account-view="account"] .garage-personal-panel .secondary-button{
  font-size:calc(var(--garage-personal-action-font) * 1.12)!important;
}
body[data-account-view="account"] .garage-races-panel h2,
body[data-account-view="account"] .license-panel-title{
  font-size:calc(var(--garage-personal-title-font) * .92)!important;
}
body[data-account-view="account"] .race-history-empty h3,
body[data-account-view="account"] .race-history-zero,
body[data-account-view="account"] .license-empty-label,
body[data-account-view="account"] .license-empty-note{
  font-size:calc(var(--garage-personal-value-font) * 1.04)!important;
}


/* V414 — restyle premium del box “Torna al sito” con font del sito e icona personalizzata */
body[data-account-view="account"] .garage-home-link{
  position:fixed!important;
  z-index:132!important;
  top:32px!important;
  right:32px!important;
  left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:16px!important;
  width:clamp(320px,19.5vw,405px)!important;
  height:clamp(76px,8.8vh,98px)!important;
  padding:0 26px!important;
  border:1px solid rgba(222,36,51,.58)!important;
  border-radius:22px!important;
  background:
    linear-gradient(180deg,rgba(31,34,40,.64) 0%, rgba(13,14,18,.56) 48%, rgba(7,8,10,.48) 100%)!important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    inset 0 1px 0 rgba(255,255,255,.05),
    0 14px 30px rgba(0,0,0,.22),
    0 0 0 1px rgba(120,0,12,.08)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-family:Rajdhani,Inter,sans-serif!important;
  font-size:clamp(29px,2.95vw,45px)!important;
  font-weight:600!important;
  line-height:1!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
  text-align:left!important;
  text-shadow:0 1px 0 rgba(255,255,255,.03)!important;
  overflow:hidden!important;
  backdrop-filter:blur(6px)!important;
}
body[data-account-view="account"] .garage-home-link::after{
  content:"";
  position:absolute;
  right:24px;
  bottom:16px;
  width:92px;
  height:2px;
  background:linear-gradient(90deg,rgba(228,33,49,.95),rgba(228,33,49,0));
  opacity:.95;
  pointer-events:none;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon{
  position:relative!important;
  flex:0 0 auto!important;
  width:42px!important;
  height:24px!important;
  display:inline-block!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon::before{
  content:"";
  position:absolute;
  top:50%;
  right:0;
  width:28px;
  height:2px;
  background:linear-gradient(90deg,rgba(255,255,255,.4),rgba(255,255,255,.96));
  transform:translateY(-50%);
  border-radius:999px;
  box-shadow:0 0 10px rgba(255,255,255,.08);
}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon::after{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:12px;
  height:12px;
  border-left:2px solid rgba(255,255,255,.98);
  border-bottom:2px solid rgba(255,255,255,.98);
  transform:translateY(-50%) rotate(45deg);
  border-radius:1px;
  box-shadow:0 0 10px rgba(255,255,255,.06);
}
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  position:relative!important;
  display:inline-block!important;
  color:#fff!important;
  font:inherit!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body[data-account-view="account"] .garage-home-link:hover,
body[data-account-view="account"] .garage-home-link:focus-visible{
  border-color:rgba(230,37,53,.84)!important;
  background:
    linear-gradient(180deg,rgba(38,41,48,.76) 0%, rgba(16,17,22,.64) 50%, rgba(9,10,13,.56) 100%)!important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 16px 34px rgba(0,0,0,.26),
    0 0 18px rgba(180,20,34,.12)!important;
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-home-link{
    top:10px!important;
    right:10px!important;
    width:clamp(176px,50vw,246px)!important;
    height:54px!important;
    padding:0 14px!important;
    gap:10px!important;
    border-radius:14px!important;
    font-size:clamp(14px,4.4vw,20px)!important;
    letter-spacing:.035em!important;
  }
  body[data-account-view="account"] .garage-home-link::after{
    right:12px;
    bottom:10px;
    width:54px;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon{
    width:24px!important;
    height:16px!important;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon::before{
    width:16px;
    height:2px;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon::after{
    width:8px;
    height:8px;
  }
}


/* V415 — box destra come riferimento fotografico */
body[data-account-view="account"] .garage-account-nav{
  position:fixed!important;
  left:auto!important;
  right:clamp(34px,2.4vw,52px)!important;
  top:clamp(210px,22vh,260px)!important;
  width:min(49vw, 840px)!important;
  display:grid!important;
  grid-template-columns:repeat(3, minmax(0, 1fr))!important;
  grid-template-rows:repeat(2, clamp(170px, 25vh, 250px))!important;
  grid-auto-rows:clamp(170px, 25vh, 250px)!important;
  gap:clamp(18px,1.6vw,24px)!important;
  padding:0!important;
  align-items:stretch!important;
  justify-items:stretch!important;
}
body[data-account-view="account"] #statisticsTrigger{grid-column:1;grid-row:1}
body[data-account-view="account"] #raceHistoryTrigger{grid-column:2;grid-row:1}
body[data-account-view="account"] #personalDataTrigger{grid-column:3;grid-row:1}
body[data-account-view="account"] #licenseProgressTrigger{grid-column:1;grid-row:2}

body[data-account-view="account"] .garage-nav-card{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  padding:clamp(22px,2vw,30px)!important;
  border:1.5px solid rgba(255,255,255,.9)!important;
  border-left:1.5px solid rgba(255,255,255,.9)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg, rgba(20,22,27,.82) 0%, rgba(14,15,18,.76) 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.12)!important;
  color:#fff!important;
  text-align:left!important;
  transform:none!important;
}
body[data-account-view="account"] .garage-nav-card::before,
body[data-account-view="account"] .garage-nav-card::after{
  display:none!important;
  content:none!important;
}
body[data-account-view="account"] .garage-nav-card > span{
  display:block!important;
  width:100%!important;
  font-family:Rajdhani, Inter, sans-serif!important;
  font-size:clamp(34px,2.95vw,52px)!important;
  font-weight:500!important;
  line-height:.96!important;
  letter-spacing:.01em!important;
  white-space:normal!important;
}
body[data-account-view="account"] .garage-nav-card.is-active,
body[data-account-view="account"] .garage-nav-card[aria-current="page"]{
  border-color:rgba(255,255,255,.98)!important;
  background:linear-gradient(180deg, rgba(26,27,33,.88) 0%, rgba(16,17,21,.82) 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.16)!important;
}
body[data-account-view="account"] .garage-nav-card:not(:disabled):hover,
body[data-account-view="account"] .garage-nav-card:not(:disabled):focus-visible{
  border-color:rgba(255,255,255,1)!important;
  background:linear-gradient(180deg, rgba(28,30,36,.9) 0%, rgba(18,19,23,.86) 100%)!important;
  transform:none!important;
}

body[data-account-view="account"] .garage-home-link{
  position:fixed!important;
  z-index:132!important;
  top:clamp(46px,5.3vh,66px)!important;
  right:clamp(34px,2.4vw,52px)!important;
  left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:18px!important;
  width:min(46vw, 400px)!important;
  height:clamp(56px,6.2vh,72px)!important;
  padding:0 22px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg, rgba(11,11,13,.62) 0%, rgba(7,8,10,.54) 100%)!important;
  box-shadow:none!important;
  color:#fff!important;
  font-family:Rajdhani, Inter, sans-serif!important;
  font-size:clamp(30px,3.1vw,48px)!important;
  font-weight:500!important;
  line-height:1!important;
  letter-spacing:.01em!important;
  text-transform:none!important;
  text-align:left!important;
  backdrop-filter:blur(3px)!important;
}
body[data-account-view="account"] .garage-home-link::after{display:none!important;content:none!important}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon{
  position:relative!important;
  flex:0 0 auto!important;
  width:40px!important;
  height:24px!important;
  display:inline-block!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon::before{
  content:"";
  position:absolute;
  top:50%;
  right:0;
  width:28px;
  height:2px;
  background:#fff;
  transform:translateY(-50%);
  border-radius:999px;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon::after{
  content:"";
  position:absolute;
  left:1px;
  top:50%;
  width:12px;
  height:12px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:translateY(-50%) rotate(45deg);
}
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  font:inherit!important;
  color:#fff!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body[data-account-view="account"] .garage-home-link:hover,
body[data-account-view="account"] .garage-home-link:focus-visible{
  background:linear-gradient(180deg, rgba(16,16,19,.72) 0%, rgba(9,10,12,.64) 100%)!important;
  border-color:rgba(255,255,255,.12)!important;
}

@media(max-width:900px){
  body[data-account-view="account"] .garage-account-nav{
    top:clamp(168px,20vh,220px)!important;
    width:min(52vw, 760px)!important;
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    grid-template-rows:repeat(2, clamp(138px, 19vh, 210px))!important;
  }
  body[data-account-view="account"] #statisticsTrigger{grid-column:1;grid-row:1}
  body[data-account-view="account"] #raceHistoryTrigger{grid-column:2;grid-row:1}
  body[data-account-view="account"] #personalDataTrigger{grid-column:1;grid-row:2}
  body[data-account-view="account"] #licenseProgressTrigger{grid-column:2;grid-row:2}
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-home-link{
    top:10px!important;
    right:10px!important;
    width:clamp(170px,52vw,230px)!important;
    height:48px!important;
    padding:0 14px!important;
    gap:8px!important;
    border-radius:12px!important;
    font-size:clamp(14px,4.2vw,19px)!important;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon{
    width:22px!important;
    height:14px!important;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon::before{width:14px}
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon::after{width:7px;height:7px}
  body[data-account-view="account"] .garage-account-nav{
    right:10px!important;
    top:110px!important;
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
    grid-template-rows:repeat(2, minmax(110px, auto))!important;
    grid-auto-rows:minmax(110px, auto)!important;
    gap:10px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    padding:14px!important;
    border-radius:16px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{
    font-size:clamp(18px,4.6vw,26px)!important;
  }
}


/* V416 — correzione netta parte destra, più fedele al riferimento */
body[data-account-view="account"] .garage-account-nav{
  position:fixed!important;
  left:auto!important;
  right:36px!important;
  top:208px!important;
  width:820px!important;
  display:grid!important;
  grid-template-columns:repeat(3, 1fr)!important;
  grid-template-rows:repeat(2, 250px)!important;
  grid-auto-rows:250px!important;
  gap:18px!important;
  padding:0!important;
  margin:0!important;
  align-items:stretch!important;
  justify-items:stretch!important;
}
body[data-account-view="account"] #statisticsTrigger{grid-column:1;grid-row:1}
body[data-account-view="account"] #raceHistoryTrigger{grid-column:2;grid-row:1}
body[data-account-view="account"] #personalDataTrigger{grid-column:3;grid-row:1}
body[data-account-view="account"] #licenseProgressTrigger{grid-column:1;grid-row:2}

body[data-account-view="account"] .garage-nav-card{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:24px 18px 18px 18px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  border:1.25px solid rgba(255,255,255,.96)!important;
  border-left:1.25px solid rgba(255,255,255,.96)!important;
  border-radius:22px!important;
  background:rgba(18,19,23,.82)!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:hidden!important;
}
body[data-account-view="account"] .garage-nav-card::before,
body[data-account-view="account"] .garage-nav-card::after{
  display:none!important;
  content:none!important;
}
body[data-account-view="account"] .garage-nav-card > span{
  display:block!important;
  width:100%!important;
  color:#fff!important;
  font-family:Rajdhani, Inter, sans-serif!important;
  font-size:55px!important;
  font-weight:500!important;
  line-height:.9!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
}
body[data-account-view="account"] .garage-nav-card.is-active,
body[data-account-view="account"] .garage-nav-card[aria-current="page"]{
  background:rgba(18,19,23,.88)!important;
  border-color:rgba(255,255,255,1)!important;
}
body[data-account-view="account"] .garage-nav-card:not(:disabled):hover,
body[data-account-view="account"] .garage-nav-card:not(:disabled):focus-visible{
  background:rgba(22,23,28,.92)!important;
  border-color:rgba(255,255,255,1)!important;
  transform:none!important;
}

body[data-account-view="account"] .garage-home-link{
  position:fixed!important;
  left:auto!important;
  right:36px!important;
  top:56px!important;
  width:380px!important;
  height:72px!important;
  padding:0 22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
  border:0!important;
  border-radius:0!important;
  background:rgba(7,7,9,.52)!important;
  box-shadow:none!important;
  color:#fff!important;
  font-family:Rajdhani, Inter, sans-serif!important;
  font-size:44px!important;
  font-weight:500!important;
  line-height:1!important;
  text-transform:none!important;
  letter-spacing:0!important;
  text-align:left!important;
  backdrop-filter:none!important;
}
body[data-account-view="account"] .garage-home-link::after{display:none!important;content:none!important}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon{
  width:34px!important;
  height:22px!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon::before{
  width:22px!important;
  height:2px!important;
  background:#fff!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-icon::after{
  width:11px!important;
  height:11px!important;
  border-left:2px solid #fff!important;
  border-bottom:2px solid #fff!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  font:inherit!important;
  color:#fff!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body[data-account-view="account"] .garage-home-link:hover,
body[data-account-view="account"] .garage-home-link:focus-visible{
  background:rgba(10,10,12,.62)!important;
}

@media(max-width:1500px){
  body[data-account-view="account"] .garage-account-nav{
    width:min(48vw,760px)!important;
    grid-template-rows:repeat(2, 220px)!important;
    grid-auto-rows:220px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:46px!important}
  body[data-account-view="account"] .garage-home-link{width:min(40vw,360px)!important;font-size:38px!important}
}
@media(max-width:1100px){
  body[data-account-view="account"] .garage-account-nav{
    width:min(46vw,560px)!important;
    grid-template-columns:repeat(2,1fr)!important;
    grid-template-rows:repeat(2,170px)!important;
    grid-auto-rows:170px!important;
    top:180px!important;
    gap:14px!important;
  }
  body[data-account-view="account"] #statisticsTrigger{grid-column:1;grid-row:1}
  body[data-account-view="account"] #raceHistoryTrigger{grid-column:2;grid-row:1}
  body[data-account-view="account"] #personalDataTrigger{grid-column:1;grid-row:2}
  body[data-account-view="account"] #licenseProgressTrigger{grid-column:2;grid-row:2}
  body[data-account-view="account"] .garage-nav-card > span{font-size:32px!important}
  body[data-account-view="account"] .garage-home-link{top:46px!important;width:300px!important;height:60px!important;font-size:30px!important}
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-home-link{
    right:10px!important;
    top:10px!important;
    width:210px!important;
    height:48px!important;
    padding:0 12px!important;
    gap:8px!important;
    font-size:20px!important;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon{width:18px!important;height:12px!important}
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon::before{width:11px!important}
  body[data-account-view="account"] .garage-home-link .garage-home-link-icon::after{width:6px!important;height:6px!important}
  body[data-account-view="account"] .garage-account-nav{
    right:10px!important;
    top:92px!important;
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(2,1fr)!important;
    grid-template-rows:repeat(2,110px)!important;
    grid-auto-rows:110px!important;
    gap:10px!important;
  }
  body[data-account-view="account"] .garage-nav-card{padding:12px!important;border-radius:14px!important}
  body[data-account-view="account"] .garage-nav-card > span{font-size:22px!important}
}


/* V417 — box destra finalmente quadrati, 6 totali (2 file da 3), e statistiche più in basso */
body[data-account-view="account"] .garage-account-nav{
  position:fixed!important;
  left:auto!important;
  right:40px!important;
  top:210px!important;
  width:780px!important;
  display:grid!important;
  grid-template-columns:repeat(3, 248px)!important;
  grid-template-rows:repeat(2, 248px)!important;
  grid-auto-rows:248px!important;
  gap:18px!important;
  padding:0!important;
  margin:0!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  justify-content:end!important;
}
body[data-account-view="account"] #statisticsTrigger{grid-column:1;grid-row:1}
body[data-account-view="account"] #raceHistoryTrigger{grid-column:2;grid-row:1}
body[data-account-view="account"] #personalDataTrigger{grid-column:3;grid-row:1}
body[data-account-view="account"] #licenseProgressTrigger{grid-column:1;grid-row:2}
body[data-account-view="account"] .garage-nav-card{
  position:relative!important;
  width:248px!important;
  height:248px!important;
  min-width:248px!important;
  min-height:248px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:22px 16px 16px 16px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  border:1.2px solid rgba(255,255,255,.96)!important;
  border-radius:22px!important;
  background:rgba(18,19,23,.82)!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:hidden!important;
}
body[data-account-view="account"] .garage-nav-card::before,
body[data-account-view="account"] .garage-nav-card::after{display:none!important;content:none!important}
body[data-account-view="account"] .garage-nav-card > span{
  display:block!important;
  width:100%!important;
  color:#fff!important;
  font-family:Rajdhani, Inter, sans-serif!important;
  font-size:54px!important;
  font-weight:500!important;
  line-height:.9!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
}
body[data-account-view="account"] .garage-nav-card.is-active,
body[data-account-view="account"] .garage-nav-card[aria-current="page"]{
  background:rgba(18,19,23,.88)!important;
  border-color:rgba(255,255,255,1)!important;
}
body[data-account-view="account"] .garage-nav-card:not(:disabled):hover,
body[data-account-view="account"] .garage-nav-card:not(:disabled):focus-visible{
  background:rgba(22,23,28,.92)!important;
  border-color:rgba(255,255,255,1)!important;
  transform:none!important;
}
body[data-account-view="account"] .garage-nav-card-placeholder{
  pointer-events:none!important;
  cursor:default!important;
}
body[data-account-view="account"] .garage-nav-card-placeholder > span{display:none!important}

body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
  height:var(--garage-stats-height)!important;
}
body[data-account-view="account"] .garage-stats{
  gap:1px!important;
}
body[data-account-view="account"] .garage-stats > div{
  height:var(--garage-stat-row-height)!important;
  min-height:var(--garage-stat-row-height)!important;
  padding:0 var(--garage-stat-padding)!important;
}
body[data-account-view="account"] .garage-stats dt,
body[data-account-view="account"] .garage-stats dd{
  font-size:var(--garage-stat-font)!important;
  line-height:.96!important;
}

@media(max-width:1500px){
  body[data-account-view="account"] .garage-account-nav{
    width:690px!important;
    grid-template-columns:repeat(3, 218px)!important;
    grid-template-rows:repeat(2, 218px)!important;
    grid-auto-rows:218px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    width:218px!important;
    height:218px!important;
    min-width:218px!important;
    min-height:218px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:46px!important}
}
@media(max-width:1100px){
  body[data-account-view="account"] .garage-account-nav{
    right:12px!important;
    top:172px!important;
    width:calc(100vw - 24px)!important;
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
    grid-template-rows:repeat(2, minmax(118px, 1fr))!important;
    grid-auto-rows:minmax(118px, 1fr)!important;
    gap:10px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:118px!important;
    aspect-ratio:1 / 1!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:26px!important}
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-account-nav{
    top:88px!important;
    right:10px!important;
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
    grid-template-rows:repeat(2, minmax(86px, 1fr))!important;
    grid-auto-rows:minmax(86px, 1fr)!important;
    gap:8px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    padding:10px!important;
    border-radius:14px!important;
    min-height:86px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:18px!important}
}


/* V418 — box più grandi, testi centrati verticalmente a sinistra, 6 box totali, home box allineato a DATI PERSONALI */
body[data-account-view="account"] .garage-account-nav{
  position:fixed!important;
  left:auto!important;
  right:30px!important;
  top:198px!important;
  width:876px!important;
  display:grid!important;
  grid-template-columns:repeat(3, 280px)!important;
  grid-template-rows:repeat(2, 280px)!important;
  grid-auto-rows:280px!important;
  gap:18px!important;
  padding:0!important;
  margin:0!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  justify-content:end!important;
}
body[data-account-view="account"] #statisticsTrigger{grid-column:1;grid-row:1}
body[data-account-view="account"] #raceHistoryTrigger{grid-column:2;grid-row:1}
body[data-account-view="account"] #personalDataTrigger{grid-column:3;grid-row:1}
body[data-account-view="account"] #licenseProgressTrigger{grid-column:1;grid-row:2}

body[data-account-view="account"] .garage-nav-card{
  position:relative!important;
  width:280px!important;
  height:280px!important;
  min-width:280px!important;
  min-height:280px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border:1.15px solid rgba(255,255,255,.96)!important;
  border-radius:24px!important;
  background:rgba(18,19,23,.82)!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:hidden!important;
}
body[data-account-view="account"] .garage-nav-card::before,
body[data-account-view="account"] .garage-nav-card::after{display:none!important;content:none!important}
body[data-account-view="account"] .garage-nav-card > span{
  display:block!important;
  width:100%!important;
  color:#fff!important;
  font-family:Rajdhani, Inter, sans-serif!important;
  font-size:48px!important;
  font-weight:500!important;
  line-height:.96!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body[data-account-view="account"] .garage-nav-card-placeholder{
  pointer-events:none!important;
  cursor:default!important;
}
body[data-account-view="account"] .garage-nav-card-placeholder > span{display:none!important}
body[data-account-view="account"] .garage-nav-card.is-active,
body[data-account-view="account"] .garage-nav-card[aria-current="page"]{
  background:rgba(18,19,23,.88)!important;
  border-color:rgba(255,255,255,1)!important;
}
body[data-account-view="account"] .garage-nav-card:not(:disabled):hover,
body[data-account-view="account"] .garage-nav-card:not(:disabled):focus-visible{
  background:rgba(22,23,28,.92)!important;
  border-color:rgba(255,255,255,1)!important;
  transform:none!important;
}

body[data-account-view="account"] .garage-home-link{
  position:fixed!important;
  left:auto!important;
  right:30px!important;
  top:52px!important;
  width:280px!important;
  height:92px!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border:1.15px solid rgba(255,255,255,.96)!important;
  border-radius:24px!important;
  background:rgba(18,19,23,.82)!important;
  box-shadow:none!important;
  color:#fff!important;
  text-decoration:none!important;
  font-family:Rajdhani, Inter, sans-serif!important;
  font-size:42px!important;
  font-weight:500!important;
  line-height:.96!important;
  text-transform:uppercase!important;
  letter-spacing:0!important;
  text-align:left!important;
}
body[data-account-view="account"] .garage-home-link::before,
body[data-account-view="account"] .garage-home-link::after,
body[data-account-view="account"] .garage-home-link .garage-home-link-icon{display:none!important;content:none!important}
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  display:block!important;
  width:100%!important;
  color:#fff!important;
  font:inherit!important;
  line-height:.96!important;
  white-space:normal!important;
}
body[data-account-view="account"] .garage-home-link:hover,
body[data-account-view="account"] .garage-home-link:focus-visible{
  background:rgba(22,23,28,.92)!important;
  border-color:rgba(255,255,255,1)!important;
}

body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
  height:var(--garage-stats-height)!important;
}
body[data-account-view="account"] .garage-stats{gap:0!important}
body[data-account-view="account"] .garage-stats > div{
  height:var(--garage-stat-row-height)!important;
  min-height:var(--garage-stat-row-height)!important;
  padding:0 var(--garage-stat-padding)!important;
}
body[data-account-view="account"] .garage-stats dt,
body[data-account-view="account"] .garage-stats dd{
  font-size:var(--garage-stat-font)!important;
  line-height:.96!important;
}

@media(max-width:1600px){
  body[data-account-view="account"] .garage-account-nav{
    width:792px!important;
    grid-template-columns:repeat(3, 252px)!important;
    grid-template-rows:repeat(2, 252px)!important;
    grid-auto-rows:252px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    width:252px!important;
    height:252px!important;
    min-width:252px!important;
    min-height:252px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:42px!important}
  body[data-account-view="account"] .garage-home-link{width:252px!important;font-size:36px!important}
}
@media(max-width:1200px){
  body[data-account-view="account"] .garage-account-nav{
    right:12px!important;
    top:170px!important;
    width:calc(100vw - 24px)!important;
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
    grid-template-rows:repeat(2, minmax(118px, 1fr))!important;
    grid-auto-rows:minmax(118px, 1fr)!important;
    gap:10px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:118px!important;
    aspect-ratio:1 / 1!important;
    padding:0 12px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:28px!important}
  body[data-account-view="account"] .garage-home-link{right:12px!important;top:54px!important;width:calc((100vw - 44px)/3)!important;min-width:160px!important;height:72px!important;font-size:24px!important}
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-account-nav{
    top:84px!important;
    right:10px!important;
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
    grid-template-rows:repeat(2, minmax(82px, 1fr))!important;
    grid-auto-rows:minmax(82px, 1fr)!important;
    gap:8px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    min-height:82px!important;
    padding:0 8px!important;
    border-radius:14px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:18px!important}
  body[data-account-view="account"] .garage-home-link{
    right:10px!important;
    top:10px!important;
    width:calc((100vw - 36px)/3)!important;
    min-width:92px!important;
    height:44px!important;
    padding:0 8px!important;
    border-radius:14px!important;
    font-size:12px!important;
  }
}


/* V420 — box dell'area personale portati al massimo senza oltrepassare il garage */
body[data-account-view="account"]{
  --v420-box-size: 304px;
  --v420-box-gap: 14px;
  --v420-nav-left: 760px;
  --v420-nav-top: 204px;
}
body[data-account-view="account"] .garage-account-nav{
  position:fixed!important;
  left:var(--v420-nav-left)!important;
  right:auto!important;
  top:var(--v420-nav-top)!important;
  width:calc((3 * var(--v420-box-size)) + (2 * var(--v420-box-gap)))!important;
  display:grid!important;
  grid-template-columns:repeat(3, var(--v420-box-size))!important;
  grid-template-rows:repeat(2, var(--v420-box-size))!important;
  grid-auto-rows:var(--v420-box-size)!important;
  gap:var(--v420-box-gap)!important;
  padding:0!important;
  margin:0!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  justify-content:start!important;
}
body[data-account-view="account"] .garage-nav-card{
  width:var(--v420-box-size)!important;
  height:var(--v420-box-size)!important;
  min-width:var(--v420-box-size)!important;
  min-height:var(--v420-box-size)!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border-radius:24px!important;
}
body[data-account-view="account"] .garage-nav-card > span{
  width:100%!important;
  font-size:49px!important;
  font-weight:500!important;
  line-height:.95!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body[data-account-view="account"] .garage-home-link{
  position:fixed!important;
  left:calc(var(--v420-nav-left) + (2 * (var(--v420-box-size) + var(--v420-box-gap))))!important;
  right:auto!important;
  top:50px!important;
  width:var(--v420-box-size)!important;
  height:96px!important;
  padding:0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border-radius:24px!important;
  font-size:42px!important;
  line-height:.96!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  width:100%!important;
  white-space:normal!important;
}

@media(max-width:1750px){
  body[data-account-view="account"]{
    --v420-box-size: 286px;
    --v420-box-gap: 12px;
    --v420-nav-left: 736px;
    --v420-nav-top: 200px;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:44px!important}
  body[data-account-view="account"] .garage-home-link{font-size:36px!important;height:88px!important}
}
@media(max-width:1550px){
  body[data-account-view="account"]{
    --v420-box-size: 252px;
    --v420-box-gap: 10px;
    --v420-nav-left: 690px;
    --v420-nav-top: 192px;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:37px!important}
  body[data-account-view="account"] .garage-home-link{font-size:31px!important;height:80px!important}
}
@media(max-width:1280px){
  body[data-account-view="account"] .garage-account-nav{
    left:auto!important;
    right:12px!important;
    top:166px!important;
    width:calc(100vw - 24px)!important;
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
    grid-template-rows:repeat(2, minmax(124px, 1fr))!important;
    grid-auto-rows:minmax(124px, 1fr)!important;
    gap:10px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:124px!important;
    aspect-ratio:1 / 1!important;
    padding:0 12px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:28px!important}
  body[data-account-view="account"] .garage-home-link{
    left:auto!important;
    right:12px!important;
    top:54px!important;
    width:calc((100vw - 44px) / 3)!important;
    min-width:160px!important;
    height:72px!important;
    font-size:24px!important;
  }
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-account-nav{
    right:10px!important;
    top:84px!important;
    width:calc(100vw - 20px)!important;
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
    grid-template-rows:repeat(2, minmax(84px,1fr))!important;
    grid-auto-rows:minmax(84px,1fr)!important;
    gap:8px!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    min-height:84px!important;
    padding:0 8px!important;
    border-radius:14px!important;
  }
  body[data-account-view="account"] .garage-nav-card > span{font-size:18px!important}
  body[data-account-view="account"] .garage-home-link{
    right:10px!important;
    top:10px!important;
    width:calc((100vw - 36px) / 3)!important;
    min-width:92px!important;
    height:44px!important;
    padding:0 8px!important;
    border-radius:14px!important;
    font-size:12px!important;
  }
}


/* V421 — tutti i box del pannello spostati a destra */
body[data-account-view="account"]{
  --v421-right-offset: 18px;
}
body[data-account-view="account"] .garage-account-nav{
  left:auto!important;
  right:var(--v421-right-offset)!important;
  top:var(--v420-nav-top)!important;
  width:calc((3 * var(--v420-box-size)) + (2 * var(--v420-box-gap)))!important;
  justify-content:end!important;
}
body[data-account-view="account"] .garage-home-link{
  left:auto!important;
  right:var(--v421-right-offset)!important;
  width:var(--v420-box-size)!important;
}

@media(max-width:1750px){
  body[data-account-view="account"]{ --v421-right-offset: 16px; }
  body[data-account-view="account"] .garage-account-nav{
    left:auto!important;
    right:var(--v421-right-offset)!important;
  }
  body[data-account-view="account"] .garage-home-link{
    left:auto!important;
    right:var(--v421-right-offset)!important;
  }
}
@media(max-width:1550px){
  body[data-account-view="account"]{ --v421-right-offset: 14px; }
  body[data-account-view="account"] .garage-account-nav{
    left:auto!important;
    right:var(--v421-right-offset)!important;
  }
  body[data-account-view="account"] .garage-home-link{
    left:auto!important;
    right:var(--v421-right-offset)!important;
  }
}
@media(max-width:1280px){
  body[data-account-view="account"] .garage-account-nav{
    left:auto!important;
    right:12px!important;
  }
  body[data-account-view="account"] .garage-home-link{
    left:auto!important;
    right:12px!important;
  }
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-account-nav{
    right:10px!important;
  }
  body[data-account-view="account"] .garage-home-link{
    right:10px!important;
  }
}


/* V422 — sfondo nel box PROGRESSO GARE e titoli dei box spostati in alto */
body[data-account-view="account"] .garage-nav-card{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  padding:22px 18px 16px 18px!important;
}
body[data-account-view="account"] .garage-nav-card > span{
  align-self:flex-start!important;
  margin-top:0!important;
}
body[data-account-view="account"] .garage-home-link{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  padding:18px 18px 14px 18px!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  align-self:flex-start!important;
}

body[data-account-view="account"] #statisticsTrigger{
  background-image:
    linear-gradient(180deg, rgba(8,8,10,.16) 0%, rgba(7,7,9,.54) 48%, rgba(9,9,12,.82) 100%),
    url('assets/progresso-gare-bg.png')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  border-color:rgba(255,255,255,.96)!important;
}
body[data-account-view="account"] #statisticsTrigger.is-active,
body[data-account-view="account"] #statisticsTrigger[aria-current="page"]{
  background-image:
    linear-gradient(180deg, rgba(8,8,10,.10) 0%, rgba(7,7,9,.46) 44%, rgba(9,9,12,.76) 100%),
    url('assets/progresso-gare-bg.png')!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}

@media(max-width:1280px){
  body[data-account-view="account"] .garage-nav-card{
    align-items:flex-start!important;
    padding:12px 12px 10px 12px!important;
  }
  body[data-account-view="account"] .garage-home-link{
    align-items:flex-start!important;
    padding:10px 12px 8px 12px!important;
  }
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-nav-card{
    padding:8px!important;
  }
  body[data-account-view="account"] .garage-home-link{
    padding:6px 8px!important;
  }
}


/* V423 — fix forte: titoli in alto e sfondo Progresso gare forzato */
body[data-account-view="account"] .garage-nav-card,
body[data-account-view="account"] .garage-home-link{
  position:relative!important;
  overflow:hidden!important;
}
body[data-account-view="account"] .garage-nav-card{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  padding:0!important;
}
body[data-account-view="account"] .garage-nav-card > span{
  position:absolute!important;
  top:20px!important;
  left:18px!important;
  right:18px!important;
  width:auto!important;
  margin:0!important;
  text-align:left!important;
  line-height:.94!important;
  z-index:2!important;
}
body[data-account-view="account"] .garage-home-link{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  padding:0!important;
}
body[data-account-view="account"] .garage-home-link .garage-home-link-label{
  position:absolute!important;
  top:18px!important;
  left:18px!important;
  right:18px!important;
  width:auto!important;
  margin:0!important;
  text-align:left!important;
  line-height:.96!important;
}
body[data-account-view="account"] #statisticsTrigger{
  background:linear-gradient(180deg, rgba(8,8,10,.14) 0%, rgba(8,8,10,.42) 40%, rgba(8,8,10,.82) 100%), url("assets/progresso-gare-bg.png") center center / cover no-repeat!important;
}
body[data-account-view="account"] #statisticsTrigger.is-active,
body[data-account-view="account"] #statisticsTrigger[aria-current="page"]{
  background:linear-gradient(180deg, rgba(8,8,10,.08) 0%, rgba(8,8,10,.34) 38%, rgba(8,8,10,.74) 100%), url("assets/progresso-gare-bg.png") center center / cover no-repeat!important;
}
body[data-account-view="account"] .garage-nav-card-placeholder{
  background:rgba(18,19,23,.82)!important;
}
@media(max-width:1280px){
  body[data-account-view="account"] .garage-nav-card > span{
    top:12px!important;
    left:12px!important;
    right:12px!important;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-label{
    top:10px!important;
    left:12px!important;
    right:12px!important;
  }
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-nav-card > span{
    top:8px!important;
    left:8px!important;
    right:8px!important;
  }
  body[data-account-view="account"] .garage-home-link .garage-home-link-label{
    top:6px!important;
    left:8px!important;
    right:8px!important;
  }
}

/* V424 — stessa schermata di caricamento della selezione lingua, ora tricolore */
.loading-screen{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  background:#020202;
  opacity:1;
  visibility:visible;
  transition:opacity .7s ease,visibility .7s ease;
}
.loading-screen.done{opacity:0;visibility:hidden;pointer-events:none}
.loading-logo-wrap{width:min(460px,72vw);text-align:center}
.loading-logo{display:block;width:100%;height:auto;filter:brightness(1.05)}
.entry-loading-status{
  display:grid;
  place-items:center;
  min-height:72px;
  margin-top:32px;
}
.entry-loading-spinner{
  display:block;
  width:64px;
  height:64px;
  box-sizing:border-box;
  border:0;
  border-radius:50%;
  background:conic-gradient(from -90deg,#009246 0deg 120deg,#fff 120deg 240deg,#ce2b37 240deg 360deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  filter:drop-shadow(0 0 10px rgba(229,27,42,.34));
  animation:entryLoadingSpin .72s linear infinite;
}
@keyframes entryLoadingSpin{to{transform:rotate(360deg)}}
.account-is-preloading body{overflow:hidden!important}

/* Login e registrazione restano interamente dentro la metà sinistra del garage. */
body:not([data-account-view="account"]){padding-top:0!important}
body:not([data-account-view="account"]) .account-header .back-link{
  position:fixed!important;
  z-index:80!important;
  inset:0 clamp(14px,2vw,38px) auto auto!important;
  display:flex!important;
  align-items:center!important;
  width:max-content!important;
  height:88px!important;
  color:#fff!important;
  font-size:clamp(12px,.95vw,16px)!important;
  text-transform:none!important;
}
body:not([data-account-view="account"]) .account-layout{
  position:fixed!important;
  inset:0!important;
  display:block!important;
  width:100vw!important;
  height:100svh!important;
  max-height:100svh!important;
  padding:0!important;
  overflow:hidden!important;
}
body:not([data-account-view="account"]) .account-page-title{
  position:absolute!important;
  z-index:3!important;
  top:clamp(88px,9.6vh,108px)!important;
  left:clamp(34px,3.2vw,62px)!important;
  display:flex!important;
  align-items:baseline!important;
  gap:.18em!important;
  width:min(44vw,850px)!important;
  max-width:min(44vw,850px)!important;
  height:auto!important;
  margin:0!important;
  overflow:visible!important;
  font-size:clamp(38px,min(4.15vw,7.2vh),79px)!important;
  line-height:.9!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
}
body:not([data-account-view="account"]) .account-page-title>span{flex:0 0 auto!important}
body:not([data-account-view="account"]) .account-panel{
  position:absolute!important;
  z-index:2!important;
  top:clamp(164px,17.3vh,194px)!important;
  right:auto!important;
  bottom:clamp(14px,2vh,24px)!important;
  left:clamp(34px,3.2vw,62px)!important;
  width:min(41.5vw,800px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:clamp(22px,2vw,34px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  border-color:rgba(255,255,255,.14)!important;
  background:rgba(5,5,6,.90)!important;
  box-shadow:0 22px 70px rgba(0,0,0,.44)!important;
}
body:not([data-account-view="account"]) .account-footer{display:none!important}

/* V425 — sei box contenuti fra il coprifilo del garage e il limite destro. */
body[data-account-view="account"] .account-header .back-link{display:none!important}
@media(min-width:1281px){
  body[data-account-view="account"]{
    --v424-nav-left:calc(48.3vw + 8px);
    --v424-nav-right:8px;
    --v424-nav-gap:9px;
    --v424-card-size:calc((100vw - var(--v424-nav-left) - var(--v424-nav-right) - var(--v424-nav-gap) - var(--v424-nav-gap)) / 3);
  }
  body[data-account-view="account"] .garage-account-nav{
    position:fixed!important;
    top:clamp(168px,17.3vh,192px)!important;
    right:var(--v424-nav-right)!important;
    left:var(--v424-nav-left)!important;
    display:grid!important;
    width:auto!important;
    height:auto!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,auto)!important;
    grid-auto-rows:auto!important;
    gap:var(--v424-nav-gap)!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:1 / 1!important;
    border-radius:24px!important;
  }
  body[data-account-view="account"] .garage-home-link{
    top:28px!important;
    right:auto!important;
    left:calc(var(--v424-nav-left) + var(--v424-card-size) + var(--v424-nav-gap))!important;
    width:var(--v424-card-size)!important;
    height:clamp(94px,10.5vh,114px)!important;
  }
}

/* Immagini richieste per ogni sezione; gli spazi restanti usano lo sfondo neutro. */
body[data-account-view="account"] #personalDataTrigger{
  background:linear-gradient(180deg,rgba(6,6,8,.12),rgba(6,6,8,.44) 48%,rgba(6,6,8,.78)),url("assets/account-card-profile-v424.png") center/cover no-repeat!important;
}
body[data-account-view="account"] #statisticsTrigger{
  background:linear-gradient(180deg,rgba(6,6,8,.10),rgba(6,6,8,.40) 48%,rgba(6,6,8,.76)),url("assets/account-card-progress-v424.png") center/cover no-repeat!important;
}
body[data-account-view="account"] #raceHistoryTrigger{
  background:linear-gradient(180deg,rgba(6,6,8,.10),rgba(6,6,8,.42) 48%,rgba(6,6,8,.78)),url("assets/account-card-races-v424.png") center/cover no-repeat!important;
}
body[data-account-view="account"] #licenseProgressTrigger,
body[data-account-view="account"] .garage-nav-card-placeholder{
  background:linear-gradient(180deg,rgba(6,6,8,.10),rgba(6,6,8,.42) 48%,rgba(6,6,8,.76)),url("assets/account-card-empty-v424.png") center/cover no-repeat!important;
}
body[data-account-view="account"] .garage-nav-card.is-active,
body[data-account-view="account"] .garage-nav-card[aria-current="page"]{
  box-shadow:inset 0 0 0 3px rgba(229,27,42,.28),0 18px 42px rgba(0,0,0,.36)!important;
}

/* Il box di ritorno occupa la stessa colonna di Profilo anche fuori dal fullscreen. */
@media(max-width:1280px) and (min-width:641px){
  body[data-account-view="account"] .garage-home-link{
    right:auto!important;
    left:calc(12px + ((100vw - 44px) / 3) + 10px)!important;
    width:calc((100vw - 44px) / 3)!important;
  }
}
@media(max-width:640px){
  body:not([data-account-view="account"]) .account-header .back-link{height:62px!important}
  body:not([data-account-view="account"]) .account-page-title{
    top:66px!important;
    left:12px!important;
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    font-size:clamp(25px,8.5vw,42px)!important;
  }
  body:not([data-account-view="account"]) .account-panel{
    top:116px!important;
    right:12px!important;
    bottom:12px!important;
    left:12px!important;
    width:auto!important;
    padding:20px!important;
  }
  body[data-account-view="account"] .garage-home-link{
    right:auto!important;
    left:calc(10px + ((100vw - 36px) / 3) + 8px)!important;
    width:calc((100vw - 36px) / 3)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .entry-loading-spinner{animation-duration:1.4s}
}

/* V426 — login sul muro destro e titolo sopra il coprifilo della serranda */
@media(min-width:901px){
  body:not([data-account-view="account"]) .account-page-title{
    top:clamp(20px,2.6vh,32px)!important;
    left:clamp(34px,3.2vw,62px)!important;
    width:calc(48.3vw - clamp(68px,6.4vw,124px))!important;
    max-width:calc(48.3vw - clamp(68px,6.4vw,124px))!important;
    font-size:clamp(54px,min(4.6vw,8.2vh),88px)!important;
    line-height:.86!important;
    white-space:nowrap!important;
  }

  body:not([data-account-view="account"]) .account-panel{
    top:clamp(146px,14.2vh,164px)!important;
    right:clamp(26px,2vw,40px)!important;
    bottom:clamp(220px,24vh,272px)!important;
    left:calc(48.3vw + clamp(18px,1.5vw,30px))!important;
    width:auto!important;
    height:auto!important;
    max-height:none!important;
  }
}


/* V427 — affinamento login, registrazione chiusa e box area personale verticali */
@media(min-width:901px){
  /* Il box accesso/registrazione parte leggermente più in basso, allineato all'inizio della serranda. */
  body:not([data-account-view="account"]) .account-panel{
    top:clamp(158px,15.25vh,176px)!important;
  }
}

/* In registrazione la scena resta sull'ultimo frame di PROGRESSI/GARE OFF: serranda completamente chiusa. */
body[data-account-view="register"]{
  background-image:url("assets/account-statistiche-off-last.png")!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}

/* Titolo Garage centrato nella pagina. */
body[data-account-view="account"] .account-page-title{
  left:0!important;
  right:0!important;
  width:100vw!important;
  max-width:100vw!important;
  padding-left:28px!important;
  padding-right:28px!important;
  justify-content:center!important;
  text-align:center!important;
}

@media(min-width:1281px){
  body[data-account-view="account"]{
    --v427-nav-left:calc(48.3vw + 8px);
    --v427-nav-right:8px;
    --v427-nav-gap:9px;
    --v427-card-total-height:calc(var(--v424-card-size) + var(--v424-card-size) + var(--v427-nav-gap));
  }
  /* Stessa larghezza complessiva occupata dai 3 box precedenti, ma una sola colonna. */
  body[data-account-view="account"] .garage-account-nav{
    position:fixed!important;
    top:clamp(168px,17.3vh,192px)!important;
    right:var(--v427-nav-right)!important;
    left:var(--v427-nav-left)!important;
    display:grid!important;
    width:auto!important;
    height:var(--v427-card-total-height)!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:repeat(6,minmax(0,1fr))!important;
    grid-auto-rows:minmax(0,1fr)!important;
    gap:var(--v427-nav-gap)!important;
    align-items:stretch!important;
  }
  body[data-account-view="account"] #statisticsTrigger,
  body[data-account-view="account"] #personalDataTrigger,
  body[data-account-view="account"] #raceHistoryTrigger,
  body[data-account-view="account"] #licenseProgressTrigger,
  body[data-account-view="account"] .garage-nav-card-placeholder,
  body[data-account-view="account"] .garage-home-card{
    grid-column:1!important;
    grid-row:auto!important;
  }
  body[data-account-view="account"] .garage-nav-card{
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    border-radius:20px!important;
    padding:0 clamp(24px,2vw,40px)!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  body[data-account-view="account"] .garage-nav-card>span{
    position:static!important;
    width:auto!important;
    margin:0!important;
    font-size:clamp(30px,2.55vw,49px)!important;
    line-height:.95!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
}

/* Il vecchio box separato non viene più usato: TORNA AL SITO è l'ultimo rettangolo della colonna. */
body[data-account-view="account"] .garage-home-link{display:none!important}
body[data-account-view="account"] .garage-home-card{
  color:#fff!important;
  text-decoration:none!important;
  font-family:Rajdhani,Inter,sans-serif!important;
  cursor:pointer!important;
}
body[data-account-view="account"] .garage-home-card>span{
  color:#fff!important;
  font-weight:600!important;
  letter-spacing:.015em!important;
}
body[data-account-view="account"] .garage-home-card:hover,
body[data-account-view="account"] .garage-home-card:focus-visible{
  background:rgba(22,23,28,.92)!important;
  border-color:#fff!important;
}

@media(max-width:1280px) and (min-width:641px){
  body[data-account-view="account"] .garage-account-nav{
    right:12px!important;
    left:calc(48.3vw + 12px)!important;
    width:auto!important;
    height:calc(100svh - 240px)!important;
    grid-template-columns:1fr!important;
    grid-template-rows:repeat(6,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body[data-account-view="account"] .garage-nav-card{aspect-ratio:auto!important}
}

@media(max-width:1280px) and (min-width:641px){
  body[data-account-view="account"] #statisticsTrigger,
  body[data-account-view="account"] #raceHistoryTrigger,
  body[data-account-view="account"] #personalDataTrigger,
  body[data-account-view="account"] #licenseProgressTrigger,
  body[data-account-view="account"] .garage-nav-card-placeholder,
  body[data-account-view="account"] .garage-home-card{
    grid-column:1!important;
    grid-row:auto!important;
  }
}

/* V429 — titolo Garage ancora più a sinistra e ottimizzazione pagina account */
body[data-account-view="account"] .account-page-title{
  left:var(--garage-stats-left)!important;
  right:auto!important;
  width:calc(48.3vw - var(--garage-stats-left) - 10px)!important;
  max-width:calc(48.3vw - var(--garage-stats-left) - 10px)!important;
  padding-left:0!important;
  padding-right:0!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
@media(max-width:1280px) and (min-width:641px){
  body[data-account-view="account"] .account-page-title{
    left:12px!important;
    width:calc(48.3vw - 24px)!important;
    max-width:calc(48.3vw - 24px)!important;
  }
}
@media(max-width:640px){
  body[data-account-view="account"] .account-page-title{
    left:10px!important;
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
  }
}


/* V431 — progressi molto più grandi e posizionati dall'alto verso il basso sotto la serranda */
body[data-account-view="account"] .garage-stats-column{
  top:var(--garage-stats-top)!important;
  left:var(--garage-stats-left)!important;
  width:var(--garage-stats-width)!important;
  height:var(--garage-stats-height)!important;
  display:block!important;
  padding:0!important;
}
body[data-account-view="account"] .garage-stats{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-auto-rows:var(--garage-stat-row-height)!important;
  gap:2px!important;
  align-content:start!important;
  margin:0!important;
}
body[data-account-view="account"] .garage-stats > div{
  height:var(--garage-stat-row-height)!important;
  min-height:var(--garage-stat-row-height)!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  padding:0 var(--garage-stat-padding)!important;
}
body[data-account-view="account"] .garage-stats dt,
body[data-account-view="account"] .garage-stats dd{
  font-size:var(--garage-stat-font)!important;
  line-height:.94!important;
}
body[data-account-view="account"] .garage-stats dt{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body[data-account-view="account"] .garage-stats dd{
  white-space:nowrap!important;
  text-align:right!important;
}
@media(max-width:1600px){
  body[data-account-view="account"] .garage-stats > div{gap:12px!important}
}
@media(max-width:1280px) and (min-width:641px){
  body[data-account-view="account"] .garage-stats-column{
    left:12px!important;
    width:calc(48.3vw - 24px)!important;
  }
}
@media(max-width:640px){
  body[data-account-view="account"] .garage-stats-column{
    left:10px!important;
    width:calc(100vw - 20px)!important;
  }
  body[data-account-view="account"] .garage-stats > div{
    grid-template-columns:1fr!important;
    gap:4px!important;
    align-content:center!important;
  }
  body[data-account-view="account"] .garage-stats dd{text-align:left!important}
}


/* V434 — video di ingresso riprodotto solo dopo un login riuscito, prima dei box */
.login-intro-screen{
  position:fixed;
  inset:0;
  z-index:999;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease,visibility .18s ease;
}
.login-intro-screen.is-ready,
.login-intro-screen.is-playing{
  opacity:1;
  visibility:visible;
}
.login-intro-screen.is-playing{pointer-events:auto}
.login-intro-video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  background:#000;
}
html.login-intro-active,
html.login-intro-active body{overflow:hidden!important}
html.login-intro-active body[data-account-view="account"] .garage-dashboard{
  visibility:hidden!important;
}
@media(max-width:640px){
  .login-intro-video{object-fit:cover}
}


/* V435 — filmato garage a ogni ingresso autenticato; audio incorporato nel file MP4 */
