*{box-sizing:border-box}
:root{
  --bg:var(--berserkr-deep-bg);
  --card:var(--berserkr-data-card);
  --card2:var(--berserkr-data-card-2);
  --text:var(--berserkr-data-text);
  --muted:var(--berserkr-data-muted);
  --red:var(--berserkr-brand-red);
  --border:var(--berserkr-training-border);
}
html,body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(circle at 84% -12%,rgba(184,194,198,.07),transparent 28%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
button,input,select{font:inherit}
button,select{border-radius:7px}
[hidden]{display:none!important}
.data-v1{
  width:min(100%,1180px);
  margin:0 auto;
  padding:34px 22px 72px;
}
.data-v1-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  padding:8px 0 26px;
  border-bottom:1px solid #23292c;
}
.data-v1-eyebrow{
  color:var(--red);
  font-size:11px;
  font-weight:900;
  letter-spacing:.2em;
}
.data-v1-head h1{
  margin:6px 0 0;
  font:700 clamp(42px,5vw,54px)/1 Georgia,"Times New Roman",serif;
}
.data-v1-period{
  min-width:140px;
  min-height:42px;
  padding:9px 12px;
  border:1px solid #30373a;
  background:#0d1113;
  color:#eef1f2;
  font-weight:800;
}
.data-v1-status{
  min-height:18px;
  margin:9px 0 0;
  color:#899296;
  font-size:11px;
}
.data-v1-status.error{color:#df777c}
.data-v1-section{
  padding:28px 0;
  border-bottom:1px solid #23292c;
}
.data-v1-section>h2{
  margin:0 0 14px;
  color:#bcc2c5;
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
}
.data-v1-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.data-v1-overview article,
.data-v1-nutrition article{
  padding:18px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--card);
}
.data-v1-overview strong,
.data-v1-nutrition strong{
  display:block;
  color:#f4f5f5;
  font:700 26px/1 Georgia,"Times New Roman",serif;
}
.data-v1-overview span,
.data-v1-nutrition span{
  display:block;
  margin-top:7px;
  color:#858e92;
  font-size:11px;
}
.data-v1-weight-card{
  padding:20px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--card);
}
.data-v1-weight-chart{
  position:relative;
  min-height:240px;
}
#weightChart{
  display:block;
  width:100%;
  height:260px;
  overflow:visible;
}
.weight-grid-line{
  stroke:#242a2d;
  stroke-width:2;
}
#weightLine{
  stroke:#c61b22;
  stroke-width:7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#weightStartDot,#weightEndDot{
  fill:#e9ecec;
  stroke:#c61b22;
  stroke-width:4;
}
.data-v1-weight-chart .data-v1-empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}
.data-v1-weight-meta{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding-top:14px;
  border-top:1px solid #22282b;
}
.data-v1-weight-meta > div{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:7px;
  background:#090c0d;
}
.data-v1-weight-meta span{
  color:#7f898d;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.data-v1-weight-meta strong{
  font-size:15px;
}
.data-v1-nutrition{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.data-v1-training-head{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom:12px;
}
.data-v1-training-head strong{
  font:700 34px/1 Georgia,"Times New Roman",serif;
}
.data-v1-training-head span{
  color:#899296;
  font-size:12px;
}
.data-v1-training-list{
  display:grid;
  gap:7px;
}
.data-v1-training-list>div:not(.data-v1-empty){
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border:1px solid #262c2f;
  border-radius:7px;
  background:#0a0d0f;
}
.data-v1-training-list span{
  color:#dfe2e3;
  font-size:13px;
}
.data-v1-training-list strong{
  color:#e4e7e8;
  font-size:14px;
}
.data-v1-history{
  display:grid;
  gap:8px;
}
.history-day{
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  background:#0b0f11;
}
.history-day-head{
  width:100%;
  display:grid;
  grid-template-columns:78px minmax(0,1fr) 24px;
  gap:14px;
  align-items:center;
  min-height:74px;
  padding:14px 16px;
  border:0;
  background:transparent;
  color:#eff1f2;
  text-align:left;
  cursor:pointer;
}
.history-day-head:hover{
  background:#111619;
}
.history-date{
  color:#d85a60;
  font:700 15px/1 Georgia,"Times New Roman",serif;
}
.history-summary{
  min-width:0;
}
.history-summary strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.history-summary small{
  display:block;
  margin-top:5px;
  color:#879095;
  font-size:11px;
}
.history-day-head>b{
  color:#7f898d;
  font-size:17px;
}
.history-day-detail{
  display:grid;
  gap:12px;
  padding:14px 16px 16px 108px;
  border-top:1px solid #22282b;
  background:#080b0c;
}
.history-detail-group{
  display:grid;
  gap:5px;
}
.history-detail-group strong{
  color:#d2d6d7;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.history-detail-group span{
  color:#969fa3;
  font-size:12px;
  line-height:1.45;
}
.data-v1-empty{
  color:#707a7f;
  font-size:12px;
}
.data-v1-exports{
  border-bottom:0;
}
.data-v1-export-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
}
.data-v1-export-actions button{
  min-height:42px;
  padding:10px 14px;
  border:1px solid #353d41;
  background:#111619;
  color:#eef1f2;
  font-weight:850;
  cursor:pointer;
}
.data-v1-export-actions button:first-child{
  border-color:#a91b21;
  background:linear-gradient(180deg,#d4242b,#a81116);
}
.data-v1-export-actions button:hover:not(:disabled){
  border-color:#596367;
}
.data-v1-export-actions button:disabled{
  opacity:.5;
  cursor:default;
}
@media(max-width:820px){
  .data-v1{
    padding:24px 12px 58px;
  }
  .data-v1-head{
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }
  .data-v1-period{
    width:100%;
  }
  .data-v1-overview{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .data-v1-nutrition{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .data-v1-weight-meta{
    grid-template-columns:1fr;
  }
  .history-day-detail{
    padding-left:16px;
  }
}
@media(max-width:520px){
  .data-v1-head h1{
    font-size:42px;
  }
  .data-v1-overview,
  .data-v1-nutrition{
    grid-template-columns:1fr 1fr;
  }
  .data-v1-nutrition article:last-child{
    grid-column:1/-1;
  }
  .data-v1-overview strong,
  .data-v1-nutrition strong{
    font-size:22px;
  }
  .data-v1-weight-card{
    padding:14px;
  }
  .data-v1-weight-chart{
    min-height:190px;
  }
  #weightChart{
    height:210px;
  }
  .history-day-head{
    grid-template-columns:66px minmax(0,1fr) 20px;
    gap:10px;
    padding:13px 12px;
  }
  .history-summary strong{
    font-size:12px;
  }
  .data-v1-export-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .data-v1-export-actions button{
    width:100%;
  }
}


/* BERSERKR V18.86 — poids de départ modifiable */
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.data-v1-start-weight{
  position:relative;
  flex-wrap:wrap;
}
.data-v1-start-display{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-left:auto;
}
.data-v1-inline-edit{
  display:grid;
  width:28px;
  height:28px;
  place-items:center;
  padding:0;
  border:1px solid #323a3e;
  border-radius:6px;
  background:#111619;
  color:#9ca6aa;
  font-size:14px;
  line-height:1;
  cursor:pointer;
}
.data-v1-inline-edit:hover,
.data-v1-inline-edit:focus-visible{
  border-color:#8e2b31;
  color:#fff;
  outline:none;
}
.data-v1-start-editor{
  flex:1 0 100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:6px;
  margin-top:9px;
}
.data-v1-start-editor[hidden]{display:none!important}
.data-v1-start-editor input{
  min-width:0;
  min-height:36px;
  padding:7px 9px;
  border:1px solid #343d41;
  border-radius:6px;
  background:#101517;
  color:#f1f3f3;
  font:800 13px/1 Inter,system-ui,sans-serif;
}
.data-v1-start-editor input:focus{
  border-color:#a62a30;
  outline:none;
}
.data-v1-start-editor button{
  min-height:36px;
  padding:7px 10px;
  border:1px solid #343d41;
  border-radius:6px;
  background:#111619;
  color:#cdd3d5;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
#saveStartWeight{
  border-color:#8e272d;
  background:#1d1012;
  color:#f2c8ca;
}
.data-v1-start-editor button:hover:not(:disabled),
.data-v1-start-editor button:focus-visible{
  border-color:#c43138;
  color:#fff;
  outline:none;
}
.data-v1-start-editor button:disabled{
  opacity:.5;
  cursor:default;
}
@media(max-width:820px){
  .data-v1-start-editor{
    grid-template-columns:minmax(0,1fr) auto;
  }
  #cancelStartWeight{
    grid-column:1/-1;
  }
}
