Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
373 lines (335 loc) · 27.9 KB
/
Copy pathstyles.css
File metadata and controls
373 lines (335 loc) · 27.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
:root {
color-scheme: light dark;
--bg: #edf6f5;
--surface: rgba(255,255,255,.92);
--surface-solid: #ffffff;
--ink: #102a3c;
--muted: #5c7180;
--line: rgba(16,42,60,.12);
--primary: #0f766e;
--primary-2: #0b8f87;
--primary-soft: #d8f1ee;
--danger: #b9382f;
--warning: #9a5b00;
--shadow: 0 16px 40px rgba(18,48,71,.12);
--radius: 24px;
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #07131d;
--surface: rgba(15,31,43,.94);
--surface-solid: #0f1f2b;
--ink: #f0f7f8;
--muted: #a9bbc4;
--line: rgba(232,245,245,.13);
--primary: #37b7aa;
--primary-2: #5bc8bd;
--primary-soft: #103c3a;
--danger: #ff8379;
--warning: #ffc569;
--shadow: 0 16px 46px rgba(0,0,0,.38);
}
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
body { overscroll-behavior-y: none; }
button, input, select { font: inherit; }
button { color: inherit; }
#app { min-height: 100dvh; }
.app-shell { min-height: 100dvh; background:
radial-gradient(circle at top right, rgba(39,167,156,.18), transparent 36%),
radial-gradient(circle at bottom left, rgba(57,124,176,.12), transparent 42%), var(--bg); }
.topbar {
position: sticky; top: 0; z-index: 20;
display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 8px;
min-height: calc(58px + var(--safe-top)); padding: var(--safe-top) 14px 0;
background: color-mix(in srgb, var(--bg) 86%, transparent);
backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; text-align: center; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { border: 0; background: transparent; border-radius: 14px; min-width: 44px; min-height: 44px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:active { background: var(--primary-soft); transform: scale(.97); }
.icon { width: 25px; height: 25px; display: block; }
.screen { width: min(760px, 100%); margin: 0 auto; padding: 22px 16px calc(28px + var(--safe-bottom)); }
.hero { padding: 18px 2px 22px; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.hero h2 { margin: 0; font-size: clamp(32px, 9vw, 48px); line-height: 1.03; letter-spacing: -.035em; }
.hero p { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.48; }
.routine-grid { display: grid; gap: 16px; }
.routine-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; cursor: pointer; }
.routine-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -70px; top: -70px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.routine-card:active { transform: scale(.99); }
.routine-card .symbol { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--accent) 18%, var(--surface-solid)); font-size: 30px; }
.routine-card h3 { position: relative; z-index: 1; margin: 16px 0 6px; font-size: 25px; }
.routine-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); line-height: 1.45; max-width: 85%; }
.card-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--primary-soft); color: var(--ink); padding: 8px 11px; font-size: 13px; font-weight: 700; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 20px; }
.summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.summary-head h2 { margin: 0; font-size: 32px; }
.summary-head p { margin: 8px 0 0; color: var(--muted); }
.notice { border-left: 5px solid var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface-solid)); border-radius: 16px; padding: 14px 15px; line-height: 1.45; }
.notice strong { display: block; margin-bottom: 3px; }
.exercise-list { margin: 0; padding: 0; list-style: none; }
.exercise-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.exercise-row:last-child { border-bottom: 0; }
.exercise-number { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); font-size: 13px; font-weight: 800; }
.exercise-row h4 { margin: 0; font-size: 16px; }
.exercise-row p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.exercise-target { font-weight: 800; text-align: right; max-width: 120px; }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.btn { min-height: 54px; border: 0; border-radius: 17px; padding: 13px 18px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 25px rgba(15,118,110,.23); }
.btn-secondary { background: var(--surface-solid); border: 1px solid var(--line); }
.btn-danger { background: color-mix(in srgb, var(--danger) 14%, var(--surface-solid)); color: var(--danger); }
.btn-small { min-height: 42px; border-radius: 13px; padding: 9px 13px; font-size: 14px; }
.player-screen { width: min(900px, 100%); margin: 0 auto; padding: 14px 14px calc(92px + var(--safe-bottom)); touch-action: pan-y; }
.progress-wrap { margin: 5px 4px 14px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.progress { height: 7px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.progress > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .25s ease; }
.exercise-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 27px; box-shadow: var(--shadow); }
.media { position: relative; background: #eef7f7; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.media.reference img { object-fit: contain; background: #fff; }
.media-badge { position: absolute; left: 12px; bottom: 12px; border-radius: 999px; padding: 8px 11px; background: rgba(8,26,37,.78); color: #fff; font-size: 12px; font-weight: 750; backdrop-filter: blur(8px); }
.card-body { padding: 19px; }
.stage-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stage-badge { display: inline-flex; border-radius: 999px; padding: 7px 10px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.exercise-card h2 { margin: 12px 0 7px; font-size: 29px; letter-spacing: -.025em; }
.target { margin: 0; font-size: clamp(30px, 8vw, 48px); font-weight: 850; color: var(--primary); line-height: 1.08; }
.instruction-grid { display: grid; gap: 12px; margin-top: 18px; }
.instruction { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 86%, transparent); border-radius: 17px; padding: 14px; }
.instruction h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.instruction p { margin: 0; line-height: 1.47; }
.timer { margin-top: 17px; text-align: center; border-radius: 22px; background: color-mix(in srgb, var(--primary) 11%, var(--surface-solid)); padding: 18px; }
.timer-display { font-variant-numeric: tabular-nums; font-size: clamp(48px, 16vw, 74px); font-weight: 850; line-height: 1; letter-spacing: -.05em; }
.timer-label { margin-top: 7px; color: var(--muted); font-weight: 700; }
.timer-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 16px; }
.timer-controls .btn { min-height: 47px; padding: 10px; }
.rest-box { display: flex; align-items: center; justify-content: space-between; gap: 13px; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 16px; }
.rest-box strong { display: block; }
.rest-box span { color: var(--muted); font-size: 14px; }
.length-counter { text-align: center; padding: 16px 0 4px; }
.length-count { font-size: clamp(72px, 25vw, 118px); font-weight: 900; line-height: .95; letter-spacing: -.07em; color: var(--primary); font-variant-numeric: tabular-nums; }
.length-label { color: var(--muted); font-weight: 750; margin-top: 10px; }
.tap-zone { min-height: 120px; margin-top: 15px; border: 2px dashed color-mix(in srgb, var(--primary) 48%, transparent); border-radius: 22px; display: grid; place-items: center; text-align: center; padding: 16px; background: var(--primary-soft); cursor: pointer; }
.tap-zone strong { font-size: 20px; }
.tap-zone span { display: block; color: var(--muted); margin-top: 5px; }
.bottom-nav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + var(--safe-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--line); }
.bottom-nav-inner { width: min(900px,100%); margin: 0 auto; display: grid; grid-template-columns: 58px 1fr 58px; gap: 10px; }
.bottom-nav .btn { min-height: 52px; }
.nav-arrow { font-size: 24px; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 18px; display: grid; place-items: end center; background: rgba(0,0,0,.46); backdrop-filter: blur(4px); }
.modal { width: min(520px,100%); border-radius: 26px; background: var(--surface-solid); padding: 20px; box-shadow: 0 22px 70px rgba(0,0,0,.35); animation: rise .2s ease-out; }
.modal h2 { margin: 0; font-size: 25px; }
.modal p { margin: 10px 0 0; color: var(--muted); line-height: 1.47; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.toast { position: fixed; z-index: 130; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); border-radius: 999px; padding: 11px 16px; background: #102a3c; color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row label { font-weight: 750; }
.settings-row small { display: block; color: var(--muted); margin-top: 4px; }
.switch { position: relative; width: 52px; height: 31px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: .2s; }
.slider::before { content: ""; position: absolute; width: 25px; height: 25px; left: 3px; top: 3px; background: white; border-radius: 50%; box-shadow: 0 2px 7px rgba(0,0,0,.22); transition: .2s; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(21px); }
.install-tip { margin-top: 18px; border-radius: 18px; padding: 15px; background: var(--primary-soft); }
.install-tip h3 { margin: 0 0 6px; font-size: 16px; }
.install-tip p { margin: 0; color: var(--muted); line-height: 1.45; }
.complete { text-align: center; padding-top: 22px; }
.complete-mark { width: 92px; height: 92px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg,var(--primary),var(--primary-2)); font-size: 48px; box-shadow: 0 16px 35px rgba(15,118,110,.25); }
.complete h2 { margin: 0; font-size: 38px; }
.complete p { color: var(--muted); font-size: 17px; line-height: 1.5; }
@media (min-width: 700px) {
.routine-grid { grid-template-columns: repeat(3,1fr); }
.routine-card p { max-width: 100%; }
.instruction-grid { grid-template-columns: 1fr 1fr; }
.actions { grid-template-columns: 1fr 1fr; }
.modal-backdrop { place-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
/* v2 visual exercise media */
.routine-card { padding: 0; }
.routine-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #f4f8fa; border-bottom: 1px solid var(--line); }
.routine-card-content { position: relative; padding: 18px 20px 20px; }
.routine-card::after { top: 44%; }
.routine-card .symbol { margin-top: -47px; border: 5px solid var(--surface-solid); box-shadow: 0 8px 20px rgba(18,48,71,.16); }
.routine-card h3 { margin-top: 13px; }
.summary-hero { padding: 0; overflow: hidden; }
.summary-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 1px solid var(--line); background: #f4f8fa; }
.summary-hero .summary-head { padding: 18px; }
.exercise-row { grid-template-columns: 86px 32px minmax(0,1fr) auto; }
.exercise-thumb { width: 86px; height: 58px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #f4f8fa; }
.media-button { width: 100%; border: 0; padding: 0; cursor: zoom-in; color: inherit; }
.media-hint { position: absolute; right: 12px; bottom: 12px; padding: 8px 11px; border-radius: 999px; background: rgba(8,26,37,.78); color: #fff; font-size: 12px; font-weight: 750; backdrop-filter: blur(8px); }
.image-lightbox { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(0,0,0,.86); }
.image-lightbox-inner { position: relative; width: min(1200px,100%); max-height: calc(100dvh - 24px); display: grid; place-items: center; }
.image-lightbox img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 24px); object-fit: contain; border-radius: 20px; background: #fff; }
.image-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(8,26,37,.82); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
@media (max-width: 560px) {
.exercise-row { grid-template-columns: 72px 30px minmax(0,1fr); gap: 9px; }
.exercise-thumb { width: 72px; height: 49px; }
.exercise-target { grid-column: 3; justify-self: start; text-align: left; max-width: none; color: var(--primary); font-size: 14px; margin-top: -5px; }
}
/* v3 full photographic exercise detail pages */
.exercise-title-link {
appearance: none; border: 0; padding: 0; margin: 0; background: transparent;
color: var(--text); font: inherit; font-weight: 850; text-align: left; cursor: pointer;
text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent);
text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.exercise-title-link:hover, .exercise-title-link:focus-visible { color: var(--primary); }
.detail-invitation { display: block; margin-top: 5px; color: var(--primary); font-size: 12px; font-weight: 750; }
.detail-screen { width: min(1040px, 100%); margin: 0 auto; padding: 14px 14px calc(96px + var(--safe-bottom)); touch-action: pan-y; }
.detail-progress { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 4px 4px 13px; color: var(--muted); font-size: 13px; }
.detail-progress strong { font-weight: 700; text-align: right; }
.detail-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); }
.detail-heading { padding: 20px 20px 10px; }
.detail-heading h2 { margin: 13px 0 7px; font-size: clamp(31px, 8vw, 48px); letter-spacing: -.035em; line-height: 1.04; }
.detail-heading .target { font-size: clamp(31px, 8vw, 50px); }
.detail-photo-section { padding: 10px 14px 18px; }
.detail-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.detail-photo-grid.single { grid-template-columns: minmax(0,1fr); }
.detail-photo-card { margin: 0; overflow: hidden; border-radius: 19px; background: #08151e; border: 1px solid var(--line); }
.detail-photo-card button { display: block; width: 100%; padding: 0; border: 0; background: #08151e; cursor: zoom-in; }
.detail-photo-card img { display: block; width: 100%; height: auto; min-height: 260px; max-height: 660px; object-fit: contain; background: #08151e; }
.detail-photo-card figcaption { padding: 10px 13px; color: #fff; background: #102a3c; font-weight: 750; font-size: 13px; }
.photo-note { margin: 12px 3px 0; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--muted); line-height: 1.45; }
.detail-section { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 13px; margin: 0 18px; padding: 19px 0; border-top: 1px solid var(--line); }
.section-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); font-size: 22px; }
.detail-section h3, .detail-reference h3, .detail-mini-panel h3 { margin: 0 0 8px; font-size: 18px; }
.detail-section p, .detail-mini-panel p { margin: 0; color: var(--text); line-height: 1.58; }
.breathing-detail { border-radius: 18px; margin-top: 3px; padding-left: 13px; padding-right: 13px; background: color-mix(in srgb, var(--primary) 10%, transparent); border-top: 0; }
.instruction-steps { margin: 4px 0 0; padding-left: 23px; }
.instruction-steps li { padding: 0 0 10px 5px; line-height: 1.52; }
.instruction-steps li:last-child { padding-bottom: 0; }
.muscle-detail-content { min-width: 0; }
.body-map { display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); gap: 12px; margin-top: 16px; }
.body-map figure { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--surface-solid) 86%, transparent); text-align: center; }
.body-map svg { display: block; width: 100%; max-height: 245px; }
.body-map figcaption { color: var(--muted); font-size: 12px; font-weight: 750; }
.body-outline { fill: #d9e2e7; stroke: #758793; stroke-width: 2; stroke-linejoin: round; }
.muscle-overlays > * { fill: transparent; stroke: transparent; stroke-width: 1; transition: .2s; }
.muscle-overlays > *.active { fill: rgba(222, 70, 64, .82); stroke: #a92520; }
.muscle-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.muscle-chips span { padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, #de4640 13%, var(--surface-solid)); color: #a92520; font-size: 12px; font-weight: 800; }
.detail-reference { margin: 0 18px; padding: 19px 0; border-top: 1px solid var(--line); }
.detail-reference button { display: block; width: 100%; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #fff; }
.detail-reference img { display: block; width: 100%; height: auto; max-height: 650px; object-fit: contain; }
.detail-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 18px; padding: 19px 0; border-top: 1px solid var(--line); }
.detail-mini-panel { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); }
.photo-credit { margin: 0; padding: 0 20px 22px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.detail-bottom-nav .bottom-nav-inner { width: min(1040px,100%); }
.player-screen .media { aspect-ratio: auto; min-height: 280px; }
.player-screen .media img { height: auto; max-height: 620px; object-fit: contain; background: #08151e; }
@media (max-width: 680px) {
.detail-photo-grid { grid-template-columns: 1fr; }
.detail-photo-card img { min-height: 0; max-height: none; }
.detail-section { grid-template-columns: 42px minmax(0,1fr); margin-left: 14px; margin-right: 14px; }
.section-icon { width: 39px; height: 39px; }
.detail-two-column { grid-template-columns: 1fr; margin-left: 14px; margin-right: 14px; }
.detail-reference { margin-left: 14px; margin-right: 14px; }
.body-map { grid-template-columns: repeat(2, minmax(0,1fr)); }
.detail-progress strong { max-width: 210px; }
}
/* v4 body-weight, training-load and history tracking */
.profile-panel { margin-bottom: 18px; }
.profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.profile-heading h3 { margin: 0; font-size: 25px; }
.btn-compact { min-height: 42px; padding: 9px 13px; border-radius: 13px; font-size: 13px; }
.profile-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.profile-metrics > div { padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); }
.profile-metrics span, .measurement-form label > span, .load-form label > span, .report-selectors label > span {
display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em;
}
.profile-metrics strong { display: block; font-size: clamp(20px, 6vw, 29px); line-height: 1.1; }
.measurement-form { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 10px; align-items: end; }
.measurement-form .btn { grid-column: 1 / -1; }
.measurement-form input, .measurement-form select, .load-form input, .load-form select, .report-selectors select {
width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px;
color: var(--ink); background: var(--surface-solid); outline: none;
}
.measurement-form input:focus, .measurement-form select:focus, .load-form input:focus, .load-form select:focus, .report-selectors select:focus {
border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.storage-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.latest-load { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.load-editor { margin-top: 17px; padding: 15px; border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); border-radius: 19px; background: color-mix(in srgb, var(--primary) 8%, var(--surface-solid)); }
.load-editor-detail { margin: 8px 18px 15px; }
.load-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.load-editor-heading > div { min-width: 0; }
.load-label { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.load-editor-heading strong { display: block; margin-top: 3px; font-size: 22px; }
.auto-log-badge { flex: 0 0 auto; max-width: 142px; padding: 6px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; text-align: center; }
.load-form { display: grid; grid-template-columns: minmax(0,1fr) 82px 86px; gap: 9px; align-items: end; }
.load-form .btn { min-height: 50px; padding: 10px; }
.load-editor > small { display: block; margin-top: 9px; color: var(--muted); line-height: 1.4; }
.load-editor-saved { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: color-mix(in srgb, var(--primary) 13%, var(--surface-solid)); }
.load-editor-saved .load-editor-heading { margin-bottom: 10px; }
.saved-check { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 22px; font-weight: 900; }
.load-editor-saved .btn { width: 100%; }
.report-screen { width: min(920px, 100%); }
.report-controls h2 { margin: 0; font-size: clamp(30px, 8vw, 42px); }
.report-controls p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.report-selectors { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 10px; margin-top: 17px; }
.report-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 0; }
.report-stats > div { padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.report-stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.report-stats strong { display: block; margin-top: 6px; font-size: clamp(20px, 6vw, 30px); font-variant-numeric: tabular-nums; }
.trend-down { color: var(--primary); }
.trend-up { color: var(--warning); }
.chart-heading, .log-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chart-heading h3, .log-heading h3 { margin: 0; }
.chart-heading p, .log-heading p { margin: 5px 0 0; color: var(--muted); line-height: 1.42; }
.target-chip { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--warning) 14%, var(--surface-solid)); color: var(--warning); font-size: 12px; font-weight: 800; }
.history-chart { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); }
.history-chart svg { display: block; width: 100%; height: auto; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-grid text, .date-label, .axis-unit, .target-label { fill: var(--muted); font-size: 12px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.chart-points circle { fill: var(--surface-solid); stroke: var(--primary); stroke-width: 4; }
.target-line { stroke: var(--warning); stroke-width: 3; stroke-dasharray: 9 7; }
.target-label { fill: var(--warning); font-weight: 800; }
.axis-unit { font-weight: 800; }
.empty-chart, .empty-report { min-height: 220px; display: grid; place-items: center; align-content: center; text-align: center; padding: 22px; color: var(--muted); }
.empty-chart > div { font-size: 48px; }
.empty-chart strong, .empty-report strong { margin-top: 8px; color: var(--ink); font-size: 18px; }
.empty-chart p, .empty-report p { margin: 6px 0 0; max-width: 360px; line-height: 1.45; }
.log-list { margin-top: 13px; border-top: 1px solid var(--line); }
.log-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.log-row time { color: var(--muted); font-size: 14px; }
.log-row strong { font-variant-numeric: tabular-nums; font-size: 17px; }
@media (max-width: 620px) {
.profile-heading { align-items: center; }
.measurement-form { grid-template-columns: 1fr 1fr; }
.measurement-form label:nth-child(3) { grid-column: 1; }
.measurement-form .btn { grid-column: 2; align-self: end; }
.load-form { grid-template-columns: minmax(0,1fr) 78px; }
.load-form .btn { grid-column: 1 / -1; }
.report-stats { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.report-stats > div { padding: 12px 10px; }
.report-stats strong { font-size: 20px; }
}
@media (max-width: 430px) {
.profile-heading { align-items: flex-start; }
.btn-compact { max-width: 120px; }
.measurement-form { grid-template-columns: 1fr 90px; }
.measurement-form label:first-child, .measurement-form label:nth-child(2) { grid-column: 1 / -1; }
.measurement-form label:nth-child(3) { grid-column: 1; }
.measurement-form .btn { grid-column: 2; }
.load-editor-heading { align-items: flex-start; }
.auto-log-badge { max-width: 115px; }
.report-selectors { grid-template-columns: 1fr 94px; }
.chart-panel { padding: 12px; }
.chart-heading { display: block; }
.target-chip { display: inline-flex; margin-top: 9px; }
}