:root {
  --bg: #0a0c0b;
  --panel: #121513;
  --panel-2: #171a18;
  --line: #282d29;
  --text: #f5f6f2;
  --muted: #939a94;
  --acid: #d9ff45;
  --acid-dark: #172000;
  --orange: #ff835c;
  --blue: #7aa7ff;
  --radius: 24px;
  --display: 'Arial Black', 'Helvetica Neue', sans-serif;
  --body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(120px); opacity: .12; pointer-events: none; }
.ambient-one { width: 440px; height: 440px; right: -200px; top: 60px; background: var(--acid); }
.ambient-two { width: 340px; height: 340px; left: -180px; top: 700px; background: #246f54; }

.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 15px; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #0c0e0c; background: var(--acid); border-radius: 9px 9px 9px 3px; font-size: 17px; letter-spacing: 0; }
.topnav { display: flex; align-items: center; gap: 34px; color: var(--muted); font-size: 13px; font-weight: 700; }
.topnav a { position: relative; transition: color .2s ease; }
.topnav a:hover, .topnav a.active { color: var(--text); }
.topnav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--acid); }
.icon-button { border: 0; color: var(--text); background: var(--panel-2); cursor: pointer; }
.profile-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; font-weight: 800; }

.hero { min-height: 620px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 36px; padding: 76px 0 72px; }
.eyebrow, .kicker { color: var(--acid); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 1px; background: var(--acid); }
.hero h1 { max-width: 720px; margin: 26px 0 24px; font-family: var(--display); font-size: clamp(44px, 5vw, 76px); line-height: 1.08; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 em { color: var(--acid); font-style: normal; }
.hero-copy > p { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 17px; }
.button-primary { color: #0d1008; background: var(--acid); border-color: var(--acid); }
.button-ghost { color: var(--text); background: transparent; }
.button-ghost:hover { border-color: #606760; }

.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.hero-visual::before { content: ''; position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(217,255,69,.13), transparent 62%); }
.orbit { position: absolute; border: 1px solid rgba(217,255,69,.16); border-radius: 50%; }
.orbit-one { width: 330px; height: 330px; animation: rotate 22s linear infinite; }
.orbit-one::after { content: ''; position: absolute; top: 28px; left: 52px; width: 8px; height: 8px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 18px var(--acid); }
.orbit-two { width: 250px; height: 250px; border-style: dashed; opacity: .6; animation: rotate 32s linear reverse infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-disc { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 196px; height: 196px; border-radius: 50%; background: linear-gradient(145deg, #232820, #101310); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 35px 80px rgba(0,0,0,.45); }
.hero-disc::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(217,255,69,.16); border-radius: inherit; }
.hero-disc strong { font-family: var(--display); color: var(--acid); font-size: 66px; line-height: 1; }
.hero-disc > span:not(.disc-label) { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.disc-label { color: var(--text); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 17px; background: rgba(23,26,24,.9); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 38px rgba(0,0,0,.25); backdrop-filter: blur(12px); }
.float-card strong, .float-card small { display: block; }
.float-card strong { font-size: 13px; }
.float-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.float-top { right: 4px; top: 82px; }
.float-bottom { left: 8px; bottom: 72px; }
.float-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--acid); background: rgba(217,255,69,.1); border-radius: 9px; }
.mini-bars { display: flex; align-items: end; gap: 3px; height: 28px; }
.mini-bars i { display: block; width: 4px; background: var(--acid); border-radius: 4px; }
.mini-bars i:nth-child(1) { height: 9px; opacity: .45; }.mini-bars i:nth-child(2) { height: 16px; opacity: .65; }.mini-bars i:nth-child(3) { height: 22px; opacity: .8; }.mini-bars i:nth-child(4) { height: 28px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric-card { position: relative; min-height: 244px; padding: 28px; background: var(--panel); border-right: 1px solid var(--line); }
.metric-card:last-child { border: 0; }
.metric-card.featured { background: var(--acid); color: #10130a; }
.metric-index { position: absolute; right: 20px; top: 19px; color: #5d635e; font-size: 10px; font-weight: 800; }
.featured .metric-index { color: rgba(16,19,10,.45); }
.metric-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 29px; color: var(--acid); background: rgba(217,255,69,.1); border-radius: 11px; }
.featured .metric-icon { color: #11140b; background: rgba(16,19,10,.1); }
.metric-icon svg { width: 21px; height: 21px; }
.metric-card > strong { font-family: var(--display); font-size: 38px; letter-spacing: -.05em; }
.metric-card sup { margin-left: 4px; font-family: var(--body); font-size: 12px; letter-spacing: 0; }
.metric-card p { margin: 8px 0 26px; color: var(--muted); font-size: 12px; font-weight: 700; }
.featured p { color: rgba(16,19,10,.65); }
.metric-card small { color: #747b75; font-size: 10px; }
.featured small { color: rgba(16,19,10,.62); }
.metric-card small b { color: var(--acid); }
.featured small b { color: #10130a; }

.progress-section, .history-section, .program-section { padding-top: 122px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 31px; }
.section-heading h2, .program-copy h2 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(27px, 3vw, 40px); letter-spacing: -.04em; text-transform: uppercase; }
.exercise-picker { min-width: 290px; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; font-size: 10px; font-weight: 700; }
.exercise-picker select { min-width: 0; flex: 1; padding: 7px 30px 7px 10px; color: var(--text); background: #1b1f1c; border: 0; border-radius: 7px; outline: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.exercise-picker select:focus-visible { box-shadow: 0 0 0 2px var(--acid); }
.chart-filters { display: flex; gap: 7px; margin: -10px 0 18px; }
.chart-filter { padding: 8px 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; transition: .2s; }
.chart-filter:hover { color: var(--text); border-color: #4c544d; }
.chart-filter.active { color: #11140b; background: var(--acid); border-color: var(--acid); }
.progress-card { min-height: 438px; display: grid; grid-template-columns: 38% 62%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chart-copy { padding: 39px; border-right: 1px solid var(--line); }
.chart-copy > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.chart-copy h3 { margin: 10px 0 0; font-size: 17px; }
.chart-copy > strong { display: block; margin: 12px 0 14px; color: var(--acid); font-family: var(--display); font-size: 43px; }
.chart-copy > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.chart-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 23px 0 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 9px; }
.chart-stats span { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 10px; background: #0e110f; }
.chart-stats small { color: #696f69; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.chart-stats b { overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chart-caveat { margin: 14px 0 0; padding: 10px 11px; color: #bec4be !important; background: rgba(122,167,255,.07); border-left: 2px solid var(--blue); border-radius: 2px 7px 7px 2px; font-size: 9px !important; }
.chart-pills { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.chart-pills span { display: flex; justify-content: space-between; padding: 8px 11px; color: var(--muted); background: #0e110f; border-radius: 7px; font-size: 10px; }
.chart-pills b { color: var(--text); }
.chart-pills::before { content: 'Последние записи'; margin-bottom: 2px; color: #626862; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.line-chart { position: relative; min-width: 0; padding: 58px 35px 30px 54px; }
.line-chart svg { position: relative; width: 100%; height: 225px; overflow: visible; }
.chart-area { fill: url(#area); stroke: none; }
.chart-line { fill: none; stroke: var(--acid); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-points circle { fill: var(--panel); stroke: var(--acid); stroke-width: 3; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s, r .15s; }
.chart-points circle:hover, .chart-points circle:focus { fill: var(--acid); outline: none; }
.grid-lines { position: absolute; inset: 58px 35px 50px 54px; display: flex; flex-direction: column; justify-content: space-between; }
.grid-lines i { width: 100%; height: 1px; background: var(--line); }
.chart-labels { display: flex; justify-content: space-between; color: #686f69; font-size: 10px; }
.chart-y-axis { position: absolute; z-index: 1; left: 12px; top: 57px; bottom: 49px; display: flex; flex-direction: column; justify-content: space-between; color: #686f69; font-size: 8px; text-align: right; }
.chart-tooltip { position: absolute; z-index: 4; min-width: 104px; padding: 9px 11px; color: #11140b; background: var(--acid); border-radius: 8px; box-shadow: 0 12px 35px rgba(0,0,0,.32); font-size: 9px; font-weight: 800; pointer-events: none; transform: translate(-50%, -115%); }
.chart-tooltip b, .chart-tooltip span { display: block; }
.chart-tooltip span { margin-top: 3px; opacity: .6; font-size: 8px; }

.history-heading { align-items: center; }
.search-box { width: 242px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.search-box:focus-within { border-color: #5d675c; }
.search-box svg { width: 17px; }
.search-box input { min-width: 0; width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 12px; }
.search-box input::placeholder { color: #6f7670; }
.filters { display: flex; gap: 8px; margin-bottom: 19px; }
.filter { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s; }
.filter span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; background: var(--panel-2); border-radius: 5px; font-size: 9px; }
.filter:hover { color: var(--text); }
.filter.active { color: #11140b; background: var(--acid); border-color: var(--acid); }
.filter.active span { background: rgba(16,19,10,.12); }
.workout-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.workout-card { position: relative; min-height: 226px; display: grid; grid-template-columns: 94px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .25s ease, border-color .25s ease; }
.workout-card:hover { transform: translateY(-3px); border-color: #4c544d; }
.workout-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0e110f; border-right: 1px solid var(--line); }
.workout-date strong { font-family: var(--display); font-size: 31px; }
.workout-date span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.workout-body { min-width: 0; padding: 25px 26px 23px; }
.workout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workout-type { display: inline-flex; align-items: center; gap: 7px; color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.workout-type::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.workout-card[data-type="push"] .workout-type { color: var(--orange); }
.workout-card[data-type="pull"] .workout-type { color: var(--blue); }
.workout-arrow { color: #686f69; font-size: 20px; transition: transform .2s, color .2s; }
.workout-card:hover .workout-arrow { color: var(--acid); transform: translateX(3px); }
.workout-body h3 { margin: 16px 0 17px; font-size: 17px; }
.exercise-preview { display: flex; flex-direction: column; gap: 9px; }
.exercise-preview span { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; }
.exercise-preview span b { max-width: 70%; overflow: hidden; color: #c9ceca; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.exercise-preview span i { color: #777e78; font-style: normal; white-space: nowrap; }
.workout-meta { display: flex; gap: 15px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: #777e78; font-size: 9px; font-weight: 700; }
.workout-meta span { display: flex; align-items: center; gap: 5px; }
.workout-meta i { width: 4px; height: 4px; background: #626862; border-radius: 50%; }
.incomplete-badge { color: #ffbd6e; }
.empty-state { padding: 80px 20px; text-align: center; background: var(--panel); border: 1px dashed var(--line); border-radius: 18px; }
.empty-state > span { color: var(--acid); font-family: var(--display); font-size: 36px; }
.empty-state h3 { margin: 12px 0 4px; }.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.program-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; padding-bottom: 130px; }
.program-copy { position: sticky; top: 30px; padding-top: 18px; }
.program-copy p { max-width: 430px; margin: 22px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.program-tags { display: flex; gap: 7px; }
.program-tags span { padding: 8px 11px; color: #b8beb8; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; font-size: 9px; font-weight: 700; }
.program-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.program-list li { min-height: 67px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s; }
.program-list li:hover { padding-inline: 10px; background: rgba(255,255,255,.018); }
.program-list span { color: #626862; font-size: 9px; font-weight: 800; }
.program-list p { margin: 0; font-size: 12px; font-weight: 700; }
.program-list b { color: var(--acid); font-size: 11px; }

.footer { min-height: 122px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer .brand { color: var(--text); }

.workout-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; color: var(--text); background: transparent; border: 0; }
.workout-dialog::backdrop { background: rgba(4,6,5,.82); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; padding: 39px; background: #121513; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.dialog-close { position: absolute; right: 22px; top: 20px; width: 34px; height: 34px; color: var(--muted); background: #1b1f1c; border: 1px solid var(--line); border-radius: 9px; font-size: 20px; line-height: 1; cursor: pointer; }
.dialog-eyebrow { color: var(--acid); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.dialog-shell h2 { margin: 10px 50px 5px 0; font-family: var(--display); font-size: 27px; text-transform: uppercase; }
.dialog-date { color: var(--muted); font-size: 11px; }
.dialog-note { margin: 24px 0 4px; padding: 15px; color: #c7ccc8; background: #1b1e1b; border-left: 2px solid var(--acid); border-radius: 2px 10px 10px 2px; font-size: 11px; line-height: 1.65; }
.coach-note { margin: 24px 0 4px; padding: 17px; color: #c7ccc8; background: rgba(122,167,255,.08); border: 1px solid rgba(122,167,255,.22); border-radius: 12px; }
.coach-note span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.coach-note p { margin: 8px 0 0; font-size: 11px; line-height: 1.7; }
.dialog-exercises { margin-top: 27px; border-top: 1px solid var(--line); }
.dialog-exercise { display: grid; grid-template-columns: 29px 1fr; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dialog-exercise > span { color: #5f665f; font-size: 9px; font-weight: 800; }
.dialog-exercise h3 { margin: 0 0 7px; font-size: 12px; }
.dialog-exercise p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.dialog-tags i { padding: 5px 7px; color: #d3d8d3; background: #1b1f1c; border-radius: 5px; font-size: 8px; font-style: normal; font-weight: 700; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 340px; padding: 15px 18px; color: #11140b; background: var(--acid); border-radius: 11px; box-shadow: 0 18px 50px rgba(0,0,0,.4); font-size: 11px; font-weight: 800; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.section-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.section-reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { min-height: 380px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .progress-card { grid-template-columns: 1fr; }
  .chart-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .chart-pills { display: grid; grid-template-columns: repeat(4, 1fr); }
  .chart-pills::before { grid-column: 1 / -1; }
  .workout-list { grid-template-columns: 1fr; }
  .program-section { gap: 40px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { height: 72px; }
  .topnav { display: none; }
  .hero { min-height: auto; padding: 58px 0 35px; gap: 10px; }
  .hero h1 { margin-block: 21px 18px; font-size: clamp(39px, 12vw, 58px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-visual { min-height: 350px; transform: scale(.9); }
  .float-top { right: -10px; }.float-bottom { left: -10px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 205px; padding: 21px; }
  .metric-card > strong { font-size: 30px; }
  .metric-icon { margin-bottom: 20px; }
  .metric-card p { margin-bottom: 18px; }
  .progress-section, .history-section, .program-section { padding-top: 90px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 19px; }
  .exercise-picker { width: 100%; min-width: 0; }
  .chart-filters { max-width: calc(100vw - 28px); margin-top: 0; overflow-x: auto; scrollbar-width: none; }
  .chart-filter { flex: 0 0 auto; }
  .chart-copy { padding: 28px; }
  .chart-pills { grid-template-columns: repeat(2, 1fr); }
  .line-chart { padding: 40px 18px 24px 42px; }
  .grid-lines { inset: 40px 18px 44px 42px; }
  .chart-y-axis { left: 7px; top: 39px; bottom: 43px; }
  .chart-labels { font-size: 8px; }
  .history-heading .search-box { width: 100%; }
  .filters { max-width: calc(100vw - 28px); overflow-x: auto; scrollbar-width: none; }
  .filter { flex: 0 0 auto; }
  .workout-card { min-height: 210px; grid-template-columns: 71px 1fr; }
  .workout-date strong { font-size: 25px; }
  .workout-body { padding: 21px 19px; }
  .program-section { grid-template-columns: 1fr; }
  .program-copy { position: static; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 13px; padding-block: 25px; }
  .dialog-shell { padding: 31px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
