:root{
  --bg0:#070A12;
  --bg1:#0B1220;
  --card:rgba(255,255,255,0.06);
  --card2:rgba(255,255,255,0.08);
  --stroke:rgba(255,255,255,0.12);
  --text:#EAF0FF;
  --muted:rgba(234,240,255,0.72);
  --green:#27F29B;
  --cyan:#23C6FF;
  --orange:#FFB020;
  --red:#FF4D6D;
  --shadow: 0 24px 64px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius2: 22px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(35,198,255,0.20), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(39,242,155,0.18), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
}
.bg{
  position:fixed; inset:0; pointer-events:none;
  background: radial-gradient(700px 250px at 30% 0%, rgba(255,176,32,0.12), transparent 60%),
              radial-gradient(700px 250px at 70% 0%, rgba(255,77,109,0.10), transparent 60%);
  filter: blur(0px);
}
.container{max-width:980px; margin:0 auto; padding:18px 16px 30px}
.header{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(35,198,255,0.28), rgba(39,242,155,0.22));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  font-weight:800;
}
.title{font-weight:800; letter-spacing:0.6px}
.subtitle{font-size:12px; color:var(--muted)}

.card{
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.03));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.hero{display:flex; align-items:stretch; justify-content:space-between; gap:14px; margin-bottom:14px}
.heroLeft{flex:1}
.heroRight{width:220px; display:flex; align-items:center; justify-content:center}
.heroLabel{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:1.6px}
.heroValue{font-size:34px; font-weight:900; margin-top:6px}
.heroMeta{margin-top:6px; font-size:13px; color:var(--muted)}

.progress{margin-top:12px}
.progressBar{height:10px; border-radius:999px; background:rgba(255,255,255,0.08); border:1px solid var(--stroke); overflow:hidden}
.progressFill{height:100%; border-radius:999px; background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow:0 0 24px rgba(35,198,255,0.35)}
.progressText{margin-top:8px; font-size:12px; color:var(--muted); display:flex; gap:8px}

.ring{position:relative; width:150px; height:150px}
.ring svg{width:150px; height:150px; transform: rotate(-90deg)}
.ringTrack{fill:none; stroke:rgba(255,255,255,0.08); stroke-width:12}
.ringFill{fill:none; stroke:url(#g); stroke-width:12; stroke-linecap:round; stroke-dasharray:314; stroke-dashoffset:314}
.ringText{position:absolute; inset:0; display:grid; place-items:center; text-align:center}
.ringPct{font-size:26px; font-weight:900}
.ringHint{font-size:12px; color:var(--muted)}

.grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px}
.span2{grid-column:span 2}
.cardTitle{font-weight:800; margin-bottom:12px}

.row{display:flex; gap:10px; align-items:center}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,0.20);
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(35,198,255,0.45); box-shadow: 0 0 0 4px rgba(35,198,255,0.12)}

.btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background: linear-gradient(135deg, rgba(35,198,255,0.22), rgba(39,242,155,0.18));
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform: translateY(1px)}
.btn.ghost{background:transparent; border:1px solid var(--stroke)}
.btn.outline{background:rgba(0,0,0,0.20)}

.chips{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px}
.chip{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,0.20);
  color:var(--text);
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:800;
}
.chip:hover{border-color:rgba(39,242,155,0.50)}

.small{font-size:12px}
.muted{color:var(--muted)}

.chart{display:flex; align-items:flex-end; gap:8px; height:120px; padding:10px 4px}
.bar{flex:1; min-width:10px; background: rgba(255,255,255,0.08); border:1px solid var(--stroke); border-radius:10px; position:relative; overflow:hidden}
.barFill{position:absolute; inset:auto 0 0 0; height:0%; background: linear-gradient(180deg, rgba(35,198,255,0.25), rgba(39,242,155,0.55))}
.barLabel{position:absolute; bottom:-18px; left:50%; transform:translateX(-50%); font-size:10px; color:rgba(234,240,255,0.6)}

.remList{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.remItem{display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:999px; border:1px solid var(--stroke); background:rgba(0,0,0,0.20)}
.remItem button{border:none; background:transparent; color:rgba(255,255,255,0.75); cursor:pointer; font-weight:900}
.remItem button:hover{color:var(--red)}

.toast{margin-top:10px; font-size:12px; color:rgba(39,242,155,0.9); min-height:16px}

.workout{display:flex; flex-wrap:wrap; gap:10px}
.timer{margin-top:10px}

.footer{margin-top:14px; text-align:center}

@media (max-width:760px){
  .hero{flex-direction:column}
  .heroRight{width:100%}
  .grid{grid-template-columns:1fr}
  .span2{grid-column:span 1}
}
