/* V8.5 — Historique harmonisé avec Guide d'achat */
.history-page .guide-shell{width:min(1980px,calc(100% - 38px));}
.history-hero{margin-bottom:16px;}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:15px 17px;border:1px solid rgba(34,119,176,.45);border-radius:12px;background:radial-gradient(circle at 88% 0%,rgba(57,171,235,.065),transparent 28%),linear-gradient(145deg,rgba(5,31,57,.96),rgba(3,21,39,.98));box-shadow:0 14px 30px rgba(0,0,0,.16)}
.history-toolbar strong{display:block;color:#fff;font:800 15px Inter,sans-serif}.history-toolbar span{display:block;margin-top:2px;color:#738fa5;font:500 9px Inter,sans-serif}.history-toolbar button,.history-action-secondary,#historyCloseReport{border:1px solid #315e7b;border-radius:8px;background:linear-gradient(180deg,#0a2d49,#071f35);color:#b7d5e8;font:800 9px Inter,sans-serif;cursor:pointer;transition:.18s ease}.history-toolbar button{padding:9px 13px}.history-toolbar button:hover,.history-action-secondary:hover,#historyCloseReport:hover{border-color:#42a9e0;color:#fff}
.history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.history-card{min-width:0;padding:17px;border:1px solid rgba(34,119,176,.48);border-radius:12px;background:radial-gradient(circle at 88% 0%,rgba(57,171,235,.055),transparent 25%),linear-gradient(145deg,rgba(5,31,57,.97),rgba(3,21,39,.99));box-shadow:0 14px 30px rgba(0,0,0,.16)}.history-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.history-card-head>div{min-width:0}.history-card-head span{color:#6b8ca5;font-size:8px}.history-card h2{margin:4px 0 0;color:#fff;font-size:17px;line-height:1.2;overflow-wrap:anywhere}.history-card-score{display:inline-flex;align-items:baseline;gap:2px;font-size:31px;line-height:1;white-space:nowrap}.history-card-score small{font-size:10px}.history-card-score.good{color:#3fe093}.history-card-score.medium{color:#f0aa40}.history-card-score.bad{color:#f06470}.history-meta{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0}.history-meta span{padding:5px 8px;border:1px solid rgba(62,146,200,.24);border-radius:999px;background:rgba(4,45,76,.58);color:#a8c8dc;font-size:8px;font-weight:600}.history-card>p{min-height:46px;margin:0;color:#8da8ba;font-size:9.5px;line-height:1.55;overflow-wrap:anywhere}.history-card-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:15px}.history-action-primary{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 12px;border:1px solid #35bffc;border-radius:8px;background:linear-gradient(180deg,#0d8cf1,#075bc8);color:#fff;text-decoration:none;font:800 9px Inter,sans-serif;cursor:pointer;box-shadow:0 0 14px rgba(24,152,235,.14)}.history-action-primary:hover{filter:brightness(1.08);box-shadow:0 0 18px rgba(24,152,235,.24)}.history-action-secondary{min-height:37px;padding:8px 11px}.history-empty{text-align:center;padding:68px 20px;border:1px dashed rgba(45,123,174,.55);border-radius:13px;background:rgba(4,26,46,.6)}.history-empty img{width:82px;opacity:.72}.history-empty h2{margin:13px 0 5px;color:#fff;font-size:20px}.history-empty p{margin:0 0 15px;color:#7896aa;font-size:10px}.history-empty .history-action-primary{width:max-content;margin:0 auto}
.history-report{margin-top:22px;padding:17px;border:1px solid rgba(39,127,184,.55);border-radius:13px;background:radial-gradient(circle at 92% 0%,rgba(57,171,235,.05),transparent 25%),linear-gradient(145deg,#051d35,#031426);box-shadow:0 18px 42px rgba(0,0,0,.2)}.history-report-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid rgba(71,139,183,.2)}.history-report-head span{color:#32b9f4;font-size:8px;font-weight:800;letter-spacing:.13em}.history-report-head h2{margin:3px 0 0;color:#fff;font-size:22px}#historyCloseReport{padding:9px 12px}.history-score-panel{display:grid;grid-template-columns:220px minmax(0,1fr) 190px;gap:12px;align-items:stretch}.history-score-panel>div{min-width:0;padding:14px;border:1px solid rgba(59,135,185,.3);border-radius:10px;background:rgba(3,32,55,.62)}.history-score-mainbox>span{display:block;color:#32b9f4;font-size:8px;font-weight:800;letter-spacing:.1em}.history-score-main{display:flex;align-items:baseline;gap:3px;margin-top:4px;font-size:45px;line-height:1;font-weight:900}.history-score-main small{font-size:15px}.history-score-main.good{color:#3fe093}.history-score-main.medium{color:#f0aa40}.history-score-main.bad{color:#f06470}.history-score-mainbox>strong{display:block;margin-top:6px;color:#dceefa;font-size:12px;line-height:1.3}.history-score-info{display:grid;grid-template-columns:1fr 1fr;gap:9px}.history-score-info div{min-width:0;padding:9px 10px;border:1px solid rgba(52,122,170,.19);border-radius:8px;background:rgba(2,25,44,.48)}.history-score-info span{display:block;color:#718fa5;font-size:7.5px}.history-score-info strong{display:block;margin-top:3px;color:#fff;font-size:10px;overflow-wrap:anywhere}.history-risk-summary{display:flex;flex-direction:column;justify-content:center;gap:8px}.history-risk-summary div{display:grid;grid-template-columns:9px 1fr auto;gap:7px;align-items:center}.history-risk-summary i{width:8px;height:8px;border-radius:50%}.history-risk-summary i.red{background:#e74d5a}.history-risk-summary i.orange{background:#e69b34}.history-risk-summary i.green{background:#2dc77d}.history-risk-summary span{color:#8ba7ba;font-size:9px}.history-risk-summary strong{color:#fff;font-size:11px}.history-report-section{margin-top:18px}.history-report-section>h3{margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid rgba(56,132,182,.23);color:#fff;font-size:14px}.history-summary-box,.history-empty-row,.history-limit-row{padding:11px 12px;border:1px solid rgba(55,130,180,.24);border-radius:8px;background:rgba(3,30,52,.5);color:#9eb8c9;font-size:9.5px;line-height:1.55;overflow-wrap:anywhere}.history-legacy-warning{margin-bottom:12px;padding:11px 12px;border:1px solid rgba(232,166,63,.38);border-radius:8px;background:rgba(111,67,11,.18);color:#e6c48d;font-size:9px}.history-issue{position:relative;margin-bottom:9px;padding:12px;border:1px solid rgba(58,131,180,.28);border-left-width:4px;border-radius:9px;background:rgba(2,27,48,.58)}.history-issue.high{border-left-color:#e64d58}.history-issue.medium{border-left-color:#e69a32}.history-issue.low{border-left-color:#2dc77d}.history-issue-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.history-issue-head>div{min-width:0}.history-issue h4{margin:0;color:#fff;font-size:11px}.history-issue-head p{margin:3px 0 0;color:#809eb2;font-size:9px;line-height:1.45;overflow-wrap:anywhere}.history-risk{padding:4px 7px;border-radius:999px;font-size:7px;font-weight:800;white-space:nowrap}.history-risk.high{color:#ffadb5;background:rgba(158,36,49,.22);border:1px solid rgba(225,71,83,.28)}.history-risk.medium{color:#ffd395;background:rgba(144,87,17,.2);border:1px solid rgba(224,149,50,.28)}.history-risk.low{color:#9fe9c0;background:rgba(21,103,62,.2);border:1px solid rgba(46,188,113,.28)}.history-issue-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}.history-issue-metrics div{min-width:0;padding:8px;border:1px solid rgba(49,115,158,.18);border-radius:7px;background:rgba(2,23,41,.44)}.history-issue-metrics span{display:block;color:#67879e;font-size:7px}.history-issue-metrics strong{display:block;margin-top:2px;color:#dceefa;font-size:9px;overflow-wrap:anywhere}.history-issue-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:9px;padding-top:9px;border-top:1px solid rgba(59,126,171,.16)}.history-issue-details h5{margin:0 0 4px;color:#37b4ee;font-size:8px}.history-issue-details ul{margin:0;padding-left:15px;color:#829fb2;font-size:8px;line-height:1.45}.history-issue-details li{margin-bottom:2px;overflow-wrap:anywhere}.history-simple-row{display:grid;grid-template-columns:7px 1fr;gap:8px;align-items:start;margin-bottom:7px;padding:9px 10px;border:1px solid rgba(55,130,180,.22);border-radius:8px;background:rgba(3,30,52,.46)}.history-simple-row>i{width:7px;height:7px;margin-top:4px;border-radius:50%;background:#2eade9}.history-simple-row p{margin:0;color:#91adbf;font-size:9px;line-height:1.5}.history-recall{margin-bottom:8px;padding:10px 11px;border:1px solid rgba(55,130,180,.23);border-radius:8px;background:rgba(3,30,52,.48)}.history-recall>div{display:flex;justify-content:space-between;gap:12px}.history-recall h4{margin:0;color:#fff;font-size:10px}.history-recall>div span{color:#32b9f4;font-size:8px;font-weight:700}.history-recall p{margin:5px 0 0;color:#829fb2;font-size:8.5px;line-height:1.45}.history-limit-row{margin-bottom:7px}
@media(max-width:1200px){.history-grid{grid-template-columns:1fr 1fr}.history-score-panel{grid-template-columns:190px 1fr}.history-risk-summary{grid-column:1/-1;flex-direction:row}}@media(max-width:780px){.history-page .guide-shell{width:calc(100% - 22px)}.history-grid{grid-template-columns:1fr}.history-toolbar,.history-report-head{align-items:flex-start;flex-direction:column}.history-score-panel{grid-template-columns:1fr}.history-score-info{grid-template-columns:1fr 1fr}.history-risk-summary{grid-column:auto;flex-direction:column}.history-issue-metrics{grid-template-columns:1fr 1fr}.history-issue-details{grid-template-columns:1fr}}

.history-primary-btn.is-disabled,.history-primary-btn:disabled{opacity:.48;cursor:not-allowed;filter:none!important;box-shadow:none!important}


/* V8.8 — Historique : note, identité et actions */
.history-card{padding:15px 16px!important}
.history-card-main{
  display:grid;
  grid-template-columns:54px minmax(200px,.9fr) minmax(500px,1.8fr) auto;
  gap:14px;
  align-items:center
}
.history-brand-logo{
  width:54px;height:54px;display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(54,135,188,.24);border-radius:10px;background:rgba(5,31,53,.62);overflow:hidden
}
.history-brand-logo img{width:40px;height:40px;object-fit:contain;display:block}
.history-identity{min-width:0}
.history-identity>span{display:block;color:#698ba3;font-size:8px}
.history-identity h2{margin:3px 0 0;color:#fff;font:800 17px/1.2 Inter,sans-serif;overflow-wrap:anywhere}
.history-vehicle-details{
  min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px
}
.history-vehicle-details span{
  min-width:0;padding:8px 9px;border:1px solid rgba(55,133,187,.21);border-radius:8px;
  background:rgba(4,38,65,.5);color:#d9eaf5;font:700 9px/1.25 Inter,sans-serif;overflow-wrap:anywhere
}
.history-vehicle-details b{
  display:block;margin-bottom:3px;color:#708fa5;font:600 7px/1.1 Inter,sans-serif;
  text-transform:uppercase;letter-spacing:.05em
}
.history-card-score{min-width:82px;text-align:right;justify-content:flex-end}
.history-card-summary{
  min-height:0!important;margin:12px 0 0!important;padding-top:10px;border-top:1px solid rgba(60,132,178,.14)
}
.history-card-actions{display:flex!important;justify-content:flex-end;gap:8px!important;margin-top:12px!important}
.history-action-btn{
  flex:0 0 auto!important;min-height:34px!important;padding:8px 12px!important;
  border:1px solid #315e7b!important;border-radius:8px!important;
  background:linear-gradient(180deg,#0a2d49,#071f35)!important;
  color:#b7d5e8!important;text-decoration:none!important;font:800 9px/1 Inter,sans-serif!important;
  cursor:pointer!important;transition:.18s ease!important;box-shadow:none!important
}
.history-action-btn:hover{border-color:#42a9e0!important;color:#fff!important;filter:none!important}
.history-action-btn.is-disabled,.history-action-btn:disabled{opacity:.45!important;cursor:not-allowed!important}
@media(max-width:1250px){
  .history-card-main{grid-template-columns:54px minmax(180px,.8fr) minmax(0,1.4fr) auto}
  .history-vehicle-details{grid-template-columns:1fr 1fr}
}
@media(max-width:850px){
  .history-card-main{grid-template-columns:54px 1fr auto}
  .history-vehicle-details{grid-column:2/-1;grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .history-card-main{grid-template-columns:46px 1fr}
  .history-brand-logo{width:46px;height:46px}
  .history-brand-logo img{width:34px;height:34px}
  .history-card-score{grid-column:1/-1;text-align:left;justify-content:flex-start;margin-top:4px}
  .history-vehicle-details{grid-column:1/-1}
  .history-card-actions{justify-content:stretch!important}
  .history-action-btn{flex:1 1 0!important;text-align:center}
}


/* =========================================================
   V8.9 — Historique compact, score et actions contenus
   ========================================================= */

.history-card{
  overflow:hidden!important;
}

.history-card-main{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) 92px!important;
  gap:14px!important;
  align-items:center!important;
  min-width:0!important;
}

.history-brand-logo{
  width:54px!important;
  height:54px!important;
  flex:0 0 54px!important;
}
.history-brand-logo img{
  width:46px!important;
  height:46px!important;
  object-fit:contain!important;
}

.history-vehicle-core{
  min-width:0!important;
}

.history-title-row{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
}

.history-identity{
  flex:0 1 auto!important;
  min-width:150px!important;
}

.history-inline-details{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  color:#c7dbe8!important;
  font:600 9px/1.3 Inter,sans-serif!important;
}

.history-inline-details span{
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:none!important;
  color:#c7dbe8!important;
  white-space:normal!important;
}

.history-inline-details i{
  color:#fff!important;
  font-style:normal!important;
  font-weight:900!important;
  opacity:.9!important;
}

.history-card-score{
  position:static!important;
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-end!important;
  gap:2px!important;
  min-width:92px!important;
  width:92px!important;
  margin:0!important;
  text-align:right!important;
  font-size:31px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
}

.history-card-score small{
  font-size:10px!important;
}

.history-card-summary{
  margin:8px 0 0!important;
  padding-top:8px!important;
}

.history-card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  align-items:center!important;
  margin-top:12px!important;
  padding-top:10px!important;
  border-top:1px solid rgba(60,132,178,.14)!important;
}

.history-action-left{
  display:flex!important;
  justify-content:flex-start!important;
}

.history-action-right{
  display:flex!important;
  justify-content:flex-end!important;
}

.history-action-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  height:34px!important;
  line-height:1!important;
  text-align:center!important;
}

.history-action-btn span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:100%!important;
  line-height:1!important;
}

@media(max-width:1100px){
  .history-title-row{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:6px!important;
  }
}

@media(max-width:700px){
  .history-card-main{
    grid-template-columns:46px minmax(0,1fr)!important;
  }
  .history-brand-logo{
    width:46px!important;
    height:46px!important;
  }
  .history-brand-logo img{
    width:40px!important;
    height:40px!important;
  }
  .history-card-score{
    grid-column:1/-1!important;
    justify-content:flex-start!important;
    width:auto!important;
    min-width:0!important;
    margin-top:4px!important;
  }
  .history-card-actions{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .history-action-left,
  .history-action-right{
    justify-content:stretch!important;
  }
  .history-action-btn{
    width:100%!important;
  }
}


/* =========================================================
   V9.0 — Carte Historique : alignements, logo et actions
   ========================================================= */

.history-card{
  overflow:hidden!important;
  padding:14px 16px 13px!important;
}

.history-date-line{
  margin:0 0 5px 58px!important;
  color:#698ba3!important;
  font:500 8px/1 Inter,sans-serif!important;
}

.history-card-main{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr) 88px!important;
  gap:12px!important;
  align-items:start!important;
  min-width:0!important;
}

.history-brand-logo{
  width:46px!important;
  height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:4px!important;
  border:0!important;
  border-radius:9px!important;
  background:rgba(4,31,54,.55)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

.history-brand-logo img{
  width:38px!important;
  height:38px!important;
  display:block!important;
  object-fit:contain!important;
  margin:0!important;
}

.history-vehicle-core{
  min-width:0!important;
  padding-top:0!important;
}

.history-vehicle-core h2{
  margin:0!important;
  color:#fff!important;
  font:800 17px/1.15 Inter,sans-serif!important;
  overflow-wrap:anywhere!important;
}

.history-inline-details{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:7px!important;
  margin-top:6px!important;
  min-width:0!important;
  color:#d1e3ee!important;
  font:650 10.5px/1.3 Inter,sans-serif!important;
}

.history-inline-details span{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:#d1e3ee!important;
  font:inherit!important;
}

.history-inline-details i{
  color:#fff!important;
  font-style:normal!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
}

.history-card-score{
  position:static!important;
  width:88px!important;
  min-width:88px!important;
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-end!important;
  gap:2px!important;
  margin:2px 0 0!important;
  padding:0!important;
  text-align:right!important;
  font-size:31px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
}

.history-card-score small{
  font-size:10px!important;
}

.history-card-summary{
  width:100%!important;
  min-height:0!important;
  box-sizing:border-box!important;
  margin:10px 0 0!important;
  padding:9px 0 0!important;
  border-top:1px solid rgba(60,132,178,.14)!important;
  color:#8da8ba!important;
  font:500 9.5px/1.55 Inter,sans-serif!important;
  overflow-wrap:anywhere!important;
}

.history-card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  align-items:end!important;
  margin-top:11px!important;
  padding-top:9px!important;
  border-top:1px solid rgba(60,132,178,.12)!important;
}

.history-action-left{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
}

.history-action-right{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
}

.history-action-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  height:34px!important;
  box-sizing:border-box!important;
  line-height:1!important;
  text-align:center!important;
}

.history-action-btn span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:100%!important;
  line-height:1!important;
}

.history-delete-icon{
  width:30px!important;
  height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 2px 0 0!important;
  padding:3px!important;
  border:0!important;
  background:transparent!important;
  color:#b7d5e8!important;
  cursor:pointer!important;
  opacity:.9!important;
  transition:.18s ease!important;
}

.history-delete-icon svg{
  width:19px!important;
  height:19px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.history-delete-icon:hover{
  color:#fff!important;
  opacity:1!important;
  transform:translateY(-1px)!important;
}

@media(max-width:800px){
  .history-date-line{
    margin-left:0!important;
  }
  .history-card-main{
    grid-template-columns:42px minmax(0,1fr) 78px!important;
    gap:9px!important;
  }
  .history-brand-logo{
    width:42px!important;
    height:42px!important;
  }
  .history-brand-logo img{
    width:34px!important;
    height:34px!important;
  }
  .history-card-score{
    width:78px!important;
    min-width:78px!important;
    font-size:27px!important;
  }
  .history-inline-details{
    font-size:10px!important;
  }
}

@media(max-width:520px){
  .history-card-main{
    grid-template-columns:42px minmax(0,1fr)!important;
  }
  .history-card-score{
    grid-column:2!important;
    width:auto!important;
    min-width:0!important;
    justify-content:flex-start!important;
    margin-top:7px!important;
  }
  .history-card-actions{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
}


/* V9.1 — même code couleur du score que le reste de CarCheck */
.history-card-score.score-dark-green{color:#2fd082!important}
.history-card-score.score-green{color:#58d898!important}
.history-card-score.score-orange{color:#f0a33b!important}
.history-card-score.score-red{color:#ef5b68!important}


/* V9.2 — optimisation Historique mobile */
@media(max-width:850px){
  .history-page{
    padding-top:96px!important;
  }
  .history-toolbar{
    gap:10px!important;
    align-items:center!important;
  }
  .history-grid{
    grid-template-columns:1fr!important;
  }
  .history-card{
    min-width:0!important;
  }
  .history-card-main{
    min-width:0!important;
  }
  .history-inline-details{
    font-size:10px!important;
  }
}
@media(max-width:520px){
  .history-toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  #clearHistoryBtn{
    width:100%!important;
  }
}


/* =========================================================
   V9.4 — actions Historique alignées en bas
   ========================================================= */
.history-grid{
  align-items:stretch!important;
}

.history-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  box-sizing:border-box!important;
}

.history-card-main{
  flex:0 0 auto!important;
}

.history-card-summary{
  flex:1 1 auto!important;
}

/* Le bloc actions est toujours repoussé au bas du cadre. */
.history-card-actions{
  margin-top:auto!important;
  padding-top:12px!important;
  min-height:48px!important;
  align-self:stretch!important;
}

/* Les deux commandes restent sur la même ligne visuelle en bas. */
.history-action-left,
.history-action-right{
  display:flex!important;
  align-items:flex-end!important;
}

.history-action-left{
  justify-content:flex-start!important;
}

.history-action-right{
  justify-content:flex-end!important;
}

.history-action-btn,
.history-delete-icon{
  margin-top:auto!important;
  margin-bottom:0!important;
}

/* V4.0 — Mon garage et évolution du score */
.garage-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 16px}
.garage-summary>div{padding:14px 16px;border:1px solid rgba(48,121,177,.5);border-radius:10px;background:linear-gradient(145deg,rgba(8,38,67,.94),rgba(4,25,45,.96))}.garage-summary span{display:block;color:#7f9bb4;font-size:9px;margin-bottom:4px}.garage-summary strong{font-size:20px;color:#fff}.garage-card{border:1px solid rgba(49,121,176,.52);border-radius:12px;background:linear-gradient(145deg,rgba(8,37,65,.96),rgba(4,23,42,.98));overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,.18);padding:17px 18px;margin-bottom:14px}.garage-card-head{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:13px;align-items:center}.garage-identity{min-width:0}.garage-identity-top{display:flex;align-items:center;gap:8px}.garage-identity h2{margin:0;font-size:18px}.garage-id-badge{display:inline-flex;padding:3px 7px;border-radius:999px;border:1px solid rgba(53,201,111,.42);background:rgba(53,201,111,.08);color:#70dda0;font-size:7px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}.garage-id-badge.config{border-color:rgba(70,161,225,.42);background:rgba(70,161,225,.08);color:#78c9ff}.garage-score{display:flex;align-items:center;gap:9px}.garage-delta{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800;border:1px solid #345c7a;color:#91aac0;background:#0a2945}.garage-delta.up{color:#6ade98;border-color:rgba(53,201,111,.42);background:rgba(53,201,111,.08)}.garage-delta.down{color:#ff858a;border-color:rgba(255,91,98,.42);background:rgba(255,91,98,.08)}.garage-current-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 0}.garage-current-row>div{padding:10px 11px;border:1px solid rgba(46,99,139,.38);border-radius:8px;background:rgba(4,25,44,.55)}.garage-current-row span{display:block;color:#7896af;font-size:8px;margin-bottom:3px}.garage-current-row strong{font-size:11px}.garage-evolution{margin-top:13px;padding:12px 13px;border:1px solid rgba(44,105,151,.38);border-radius:9px;background:rgba(3,22,39,.48)}.garage-evolution-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.garage-evolution-head strong{font-size:10px}.garage-evolution-head span{font-size:8px;color:#7896ae}.garage-timeline{display:flex;align-items:flex-end;gap:0;min-height:76px;padding:4px 7px 0}.garage-point{flex:1;min-width:0;text-align:center}.garage-point-plot{height:42px;position:relative}.garage-point-plot i{position:absolute;left:50%;bottom:calc(var(--score) * .38);width:8px;height:8px;border-radius:50%;background:#67caff;border:2px solid #d8f1ff;box-shadow:0 0 10px rgba(41,160,241,.65);transform:translate(-50%,50%);z-index:2}.garage-point-plot span{position:absolute;left:50%;right:-50%;bottom:calc(var(--score) * .38);height:1px;background:linear-gradient(90deg,#46aeea,#245a7d);transform-origin:left center}.garage-point>strong{display:block;font-size:10px}.garage-point>strong small{font-size:6px;color:#829bb1}.garage-point>em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6f8da6;font-size:6.5px;font-style:normal;margin-top:2px}.garage-timeline-empty{margin:0;color:#7895ad;font-size:9px}.garage-history-details{margin-top:10px;border-top:1px solid rgba(63,107,141,.25);padding-top:9px}.garage-history-details summary{cursor:pointer;color:#82bce6;font-size:9px;font-weight:700}.garage-history-details>div{display:grid;gap:5px;margin-top:8px}.garage-history-row{display:grid;grid-template-columns:90px 70px 1fr;gap:10px;align-items:center;padding:7px 9px;border:1px solid rgba(43,88,123,.35);border-radius:7px;background:rgba(4,24,42,.44);text-decoration:none}.garage-history-row span,.garage-history-row em{color:#7895ad;font-size:8px;font-style:normal}.garage-history-row strong{font-size:9px}.history-action-btn.secondary{background:rgba(10,45,76,.75)!important;border-color:#315f82!important;color:#b8d7ed!important}.history-action-left{display:flex!important;gap:8px;flex-wrap:wrap}
@media(max-width:900px){.garage-summary,.garage-current-row{grid-template-columns:repeat(2,minmax(0,1fr))}.garage-card-head{grid-template-columns:50px minmax(0,1fr)}.garage-score{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:560px){.garage-summary,.garage-current-row{grid-template-columns:1fr}.garage-point>em{display:none}.garage-history-row{grid-template-columns:70px 55px 1fr}}
.history-grid{grid-template-columns:minmax(0,1fr)!important}
.garage-grouping-note{margin:-3px 0 16px;color:#718fa8;font-size:8.5px;line-height:1.45}

/* V4.0.3 — Garage : palette de l'accueil, lecture et deux colonnes. */
.history-page{background:transparent;color:var(--text);font-size:1rem;line-height:1.55}
.history-page .guide-shell{width:min(1980px,100%)}
.history-page .history-hero p{font-size:1rem;color:var(--muted)}
.history-page .guide-kicker{font-size:.875rem;color:var(--cyan)}
.history-page .history-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px}
.history-page .garage-card,
.history-page .history-toolbar,
.history-page .garage-summary>div,
.history-page .history-empty{
  background:linear-gradient(155deg,var(--panel2),var(--panel));
  border-color:var(--line);box-shadow:var(--shadow)
}
.history-page .garage-card{display:flex;flex-direction:column;min-width:0;margin:0;padding:22px}
.history-page .garage-card-head{grid-template-columns:54px minmax(0,1fr);gap:14px}
.history-page .garage-identity-top{flex-wrap:wrap}
.history-page .garage-identity h2{font-size:1.375rem;line-height:1.3;overflow-wrap:anywhere}
.history-page .garage-score{grid-column:1/-1;justify-content:space-between;flex-wrap:wrap;gap:12px}
.history-page .history-card-score{width:auto!important;min-width:0!important;font-size:2.25rem!important}
.history-page .history-card-score small{font-size:.875rem!important}
.history-page .history-inline-details{font-size:1rem!important;line-height:1.5!important}
.history-page .history-inline-details span{color:var(--muted)!important}
.history-page .garage-id-badge{font-size:.75rem}
.history-page .garage-delta{font-size:.875rem}
.history-page .garage-summary span,
.history-page .history-toolbar span,
.history-page .garage-grouping-note{font-size:.875rem;color:var(--muted);line-height:1.5}
.history-page .garage-summary strong{font-size:1.5rem;overflow-wrap:anywhere}
.history-page .history-toolbar strong{font-size:1.125rem}
.history-page .history-toolbar button,
.history-page .history-action-primary{font-size:.875rem;min-height:44px}
.history-page .garage-current-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.history-page .garage-current-row>div,
.history-page .garage-evolution,
.history-page .garage-history-row{background:var(--bg2);border-color:var(--line);min-width:0}
.history-page .garage-current-row span{font-size:.875rem;color:var(--muted)}
.history-page .garage-current-row strong{font-size:1rem;overflow-wrap:anywhere}
.history-page .history-card-summary{font-size:1rem!important;line-height:1.6!important;color:var(--text)!important;margin-bottom:14px!important}
.history-page .garage-evolution-head{gap:10px;flex-wrap:wrap}
.history-page .garage-evolution-head strong{font-size:1rem}
.history-page .garage-evolution-head span,
.history-page .garage-timeline-empty{font-size:.875rem;color:var(--muted)}
.history-page .garage-timeline{overflow-x:auto;gap:8px;padding:6px 0}
.history-page .garage-point{flex:1 0 74px}
.history-page .garage-point>strong{font-size:1rem}
.history-page .garage-point>strong small,
.history-page .garage-point>em{font-size:.75rem;color:var(--muted)}
.history-page .garage-point>em{display:block}
.history-page .garage-history-details{margin-bottom:16px}
.history-page .garage-history-details summary{font-size:1rem;color:#82bce6}
.history-page .garage-history-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px}
.history-page .garage-history-row span,
.history-page .garage-history-row em{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}
.history-page .garage-history-row strong{font-size:1rem}
.history-page .history-card-actions{grid-template-columns:minmax(0,1fr) auto!important;gap:14px}
.history-page .history-action-btn{height:auto!important;min-height:44px!important;padding:10px 12px!important;font-size:.875rem!important;line-height:1.4!important;white-space:normal}
.history-page .history-action-btn span{height:auto!important;line-height:1.4!important}
.history-page .history-delete-icon{width:44px!important;height:44px!important;flex-shrink:0}
.history-page .history-empty p{font-size:1rem;color:var(--muted)}
@media(max-width:850px){
  .history-page .history-grid{grid-template-columns:minmax(0,1fr)!important}
  .history-page .garage-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .history-page .garage-card{padding:16px}
  .history-page .history-action-left{align-items:stretch!important;flex-direction:column}
}

.garage-transfer-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.history-page .history-toolbar button:disabled{opacity:.45;cursor:default;box-shadow:none}
.garage-transfer-status{font-size:14px;line-height:1.5;color:#c2d4e8;overflow-wrap:anywhere}
.garage-transfer-status:empty{display:none}
.garage-transfer-status[data-error="true"]{color:#ffba70}
@media(max-width:780px){.garage-transfer-actions{justify-content:flex-start}}


/* V4.0.10 — logos constructeur vectoriels et nets */
.history-brand-logo{padding:6px!important;background:rgba(4,31,54,.72)!important}
.history-brand-logo img{width:100%!important;height:100%!important;max-width:38px!important;max-height:38px!important;object-fit:contain!important;image-rendering:auto!important}

/* V4.0.13 : synthèse unique et courbe de mesures. */
.garage-overview{padding:16px;border:1px solid #245575;border-radius:14px;background:#051b32;margin-bottom:20px}
.garage-overview .garage-summary{margin:0 0 14px;border:0}
.garage-overview .garage-transfer-actions{border-top:1px solid #244b68;padding-top:14px}
.garage-overview button{padding:11px 15px;border:1px solid #2d719e;border-radius:9px;background:linear-gradient(#0a3457,#071f36);color:#deefff;font:600 14px Inter,sans-serif;cursor:pointer}
.garage-overview button:disabled{opacity:.4;cursor:default}
.garage-card-head{display:grid!important;grid-template-columns:48px minmax(0,1fr) 110px!important;gap:12px!important;align-items:start!important}
.garage-vehicle-photo{grid-column:3;grid-row:1;width:110px;height:76px;object-fit:cover;border-radius:9px;border:1px solid #275773}
.garage-card-head .garage-score{grid-column:2/4;grid-row:2;display:flex;flex-direction:row;align-items:center;gap:12px;justify-content:flex-start}
.garage-chart svg{display:block;width:100%;height:auto;overflow:visible}
.garage-chart-key{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#bdd2e2}
.garage-chart-key .up{color:#38d986}.garage-chart-key .stable{color:#ffac42}.garage-chart-key .down{color:#ff6675}
.garage-measurements{display:flex;flex-wrap:wrap;gap:6px 15px;margin-top:12px;font-size:12px;color:#bdd2e2}
@media(max-width:500px){.garage-card-head{grid-template-columns:34px minmax(0,1fr) 80px!important;gap:8px!important}.garage-vehicle-photo{width:80px;height:60px}.garage-card-head h2{font-size:17px!important}}
