-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.js
More file actions
1044 lines (1000 loc) · 43.4 KB
/
Copy paththeme.js
File metadata and controls
1044 lines (1000 loc) · 43.4 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
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ---------------------------------------------------------------------------
// Styles — one module-level stylesheet (the `wk-` prefix scopes it to this
// app's iframe) rendered once at the root as <style>{CSS}</style>. Every
// color/font is a CSS token painted by the Möbius shell, so the app inherits
// future themes for free. Render-time dynamic values (per-category accent
// colors, the measured chat-panel height, the bar-fill %) stay inline; every
// app-driven state that used to be an S.foo(active) helper is now a modifier
// class (.is-active / :disabled). Shared-chrome blocks are fenced with
// mobius-ui markers so a future extraction is mechanical.
// ---------------------------------------------------------------------------
export const CSS = `
/* mobius-ui:Root v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-root {
position: relative;
display: flex; flex-direction: column;
height: 100%; width: 100%; max-width: 100%;
overflow: hidden;
background: var(--bg); color: var(--text); font-family: var(--font);
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
}
.wk-scroll {
flex: 1; min-height: 0;
overflow-y: auto; overflow-x: hidden;
padding: 16px 16px max(16px, env(safe-area-inset-bottom));
word-break: break-word; overflow-wrap: anywhere;
overscroll-behavior: contain;
}
/* /mobius-ui:Root */
/* mobius-ui:Scrollskin v2 — keep in sync; hidden by default, content stays scrollable. */
.wk-scroll,
.wk-sheet-body {
scrollbar-width: none;
-ms-overflow-style: none;
}
.wk-scroll::-webkit-scrollbar,
.wk-sheet-body::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
/* /mobius-ui:Scrollskin */
/* mobius-ui:Focus v1 -- shared keyboard focus ring (WCAG 2.4.7); never bare outline:none */
:where(button,a,input,textarea,select,summary,[role="button"],[tabindex]:not([tabindex="-1"])):focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* /mobius-ui:Focus */
/* Web cap so desktop gets a proper working canvas while mobile stays direct. */
.wk-inner { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; }
/* mobius-ui:Header v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-header {
flex: 0 0 auto;
display: flex; align-items: center; justify-content: space-between; gap: 12px;
min-height: 58px;
padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
background: var(--surface); border-bottom: 1px solid var(--border);
}
.wk-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.wk-brand-icon { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: block; }
.wk-brand-fallback {
width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
align-items: center; justify-content: center;
background: var(--accent-hover, var(--accent)); color: var(--accent-fg);
font-weight: 700; line-height: 1;
}
.wk-brand-text {
display: flex; flex-direction: column; justify-content: center;
min-width: 0; line-height: 1.2;
}
.wk-brand-name {
margin: 0; color: var(--text); font-size: 15px; font-weight: 750;
letter-spacing: -0.01em;
}
.wk-subtitle {
margin: 1px 0 0; max-width: min(56vw, 420px);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-size: 11.5px; color: var(--muted); user-select: none;
}
.wk-header-actions { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Base border so the pressed-state border-color below is visible (the shared
.wk-icon-btn is borderless). */
.wk-chat-toggle {
width: 44px; height: 44px;
border: 1px solid var(--border);
background: var(--bg); color: var(--text);
}
.wk-chat-toggle[aria-pressed="true"] {
background: color-mix(in srgb, var(--accent) 18%, var(--surface));
color: var(--accent);
border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
/* /mobius-ui:Header */
/* mobius-ui:Segmented v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-tabbar {
flex: 0 0 auto;
display: flex; gap: 6px; padding: 8px 12px;
background: var(--surface); border-bottom: 1px solid var(--border);
}
.wk-tab-btn {
flex: 1; min-height: 44px; padding: 10px 8px;
display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
border: 1px solid transparent; border-radius: 8px;
background: transparent; color: var(--muted);
font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer;
touch-action: manipulation; user-select: none;
}
.wk-tab-btn.is-active {
background: color-mix(in srgb, var(--accent) 16%, var(--surface));
color: var(--text);
border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}
@media (prefers-reduced-motion: no-preference) {
.wk-tab-btn:active { opacity: 0.75; }
}
.wk-tab-icon { display: flex; line-height: 1; }
/* /mobius-ui:Segmented */
/* mobius-ui:ChatEmbed v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-chat-embed {
flex: 1 1 auto; min-height: 0;
overflow: hidden; background: var(--bg);
}
.wk-chat-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
/* /mobius-ui:ChatEmbed */
/* Toggle-split body (ported from app-latex). The body is a flex column: the
scroll content on top, then — only when the chat toggle is on — a draggable
divider + the chat pane below. Without the split class it's just the content
column (chat hidden). */
.wk-body {
flex: 1; min-height: 0;
display: flex; flex-direction: column;
}
/* Chat open: the chat pane takes the --chat-ratio share of the body height,
floored at --chat-pane-min (composer pill + divider) so the embed's input is
never clipped, and capped at the same floor from the other end so the content
never fully eats the chat. The drag/keyboard ratio math already honors these
bounds; the CSS floor also covers the persisted/default ratio on a short
viewport before any drag. */
.wk-body--chat-open .wk-scroll {
flex: 1 1 auto;
min-height: min(var(--chat-pane-min, 74px), 100%);
}
.wk-chat-panel {
flex: 0 0 auto;
height: calc(var(--chat-ratio, 0.5) * 100%);
min-height: min(var(--chat-pane-min, 74px), 100%);
max-height: calc(100% - var(--chat-pane-min, 74px));
display: flex; flex-direction: column;
background: var(--bg);
overflow: hidden;
overscroll-behavior: contain;
/* Bottom-pinned sheet: lift the embedded chat composer above the iPhone
home-indicator / Android gesture bar on a full-screen PWA. */
padding-bottom: env(safe-area-inset-bottom);
}
/* The draggable divider ("glider") between content and chat: a slim 10px visual
bar; the ::before overlay extends the pointer hit area to ~26px without adding
visual weight. z-index keeps the overlay above the adjacent panes so the extra
hit area actually receives the pointer. */
.wk-chat-divider {
flex: 0 0 10px;
height: 10px;
box-sizing: border-box;
position: relative;
z-index: 5;
display: flex; align-items: center; justify-content: center;
cursor: ns-resize;
background: var(--surface);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
touch-action: none;
user-select: none;
}
.wk-chat-divider::before {
content: '';
position: absolute;
left: 0; right: 0; top: -8px; bottom: -8px;
}
.wk-chat-divider:hover,
.wk-chat-divider:focus-visible {
background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.wk-chat-divider:focus-visible { outline-offset: -2px; }
.wk-chat-divider-bar {
width: 44px; height: 4px; border-radius: 999px;
background: color-mix(in srgb, var(--muted) 65%, transparent);
pointer-events: none;
}
.wk-chat-error {
flex: 0 0 auto;
margin: 8px 14px 0;
padding: 8px 10px;
border: 1px solid var(--border); border-radius: 8px;
background: color-mix(in srgb, var(--accent) 12%, transparent);
color: var(--text); font-size: 12px;
}
/* mobius-ui:Card v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
.wk-confirm-card {
max-width: 760px;
margin-left: auto;
margin-right: auto;
}
.wk-card.is-ambiguous { border-color: var(--accent); }
.wk-card-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.wk-card-sub { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
/* /mobius-ui:Card */
/* mobius-ui:Button v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-btn-primary {
width: 100%; min-height: 48px; padding: 14px 16px; border-radius: 12px;
border: none; background: var(--accent-hover, var(--accent)); color: var(--accent-fg);
font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
touch-action: manipulation; user-select: none;
}
.wk-btn-primary:disabled { pointer-events: none; opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
.wk-btn-primary:not(:disabled):active { opacity: 0.82; transform: scale(0.98); }
}
.wk-btn-secondary {
min-height: 44px; padding: 12px 14px; border-radius: 10px;
border: 1px solid var(--border); background: var(--surface2, var(--surface));
color: var(--text); font-family: var(--font);
font-size: 14px; font-weight: 600; cursor: pointer;
touch-action: manipulation; user-select: none;
}
.wk-btn-secondary:disabled { pointer-events: none; opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
.wk-btn-secondary:not(:disabled):active { opacity: 0.8; transform: scale(0.97); }
}
.wk-btn-secondary.is-block { width: 100%; }
.wk-btn-secondary.is-danger { background: var(--danger); color: var(--accent-fg); border-color: var(--danger); }
.wk-btn-ghost {
min-height: 44px; padding: 10px 12px; border-radius: 8px;
border: none; background: transparent; color: var(--accent);
font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer;
touch-action: manipulation; user-select: none;
}
.wk-btn-ghost:disabled { pointer-events: none; opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
.wk-btn-ghost:not(:disabled):active { opacity: 0.75; }
}
.wk-btn-ghost.is-muted { color: var(--muted); }
.wk-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* /mobius-ui:Button */
/* Entry feed card — app-specific list row with a per-sport icon tile. Tight
rows: the icon names the sport, the meta line carries the key numbers. */
.wk-entry-card {
display: flex; align-items: center; gap: 10px;
padding: 11px 12px; margin-bottom: 8px;
background: var(--surface);
border: 1px solid var(--border); border-radius: 12px;
}
.wk-entry-card.is-draft { background: color-mix(in srgb, var(--bg) 62%, var(--surface)); }
.wk-entry-icon {
width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.wk-entry-body { flex: 1; min-width: 0; }
.wk-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wk-entry-name { margin: 0; font-size: 14px; font-weight: 760; letter-spacing: 0; }
.wk-entry-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wk-entry-meta { margin: 3px 0 0; font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.wk-entry-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.wk-icon-btn {
position: relative;
width: 36px; height: 36px; border-radius: 8px;
display: inline-flex; align-items: center; justify-content: center; line-height: 1;
border: none; background: transparent; color: var(--muted);
font-family: var(--font); font-size: 14px; font-weight: 800; cursor: pointer;
touch-action: manipulation; user-select: none;
}
.wk-icon-btn svg { display: block; }
/* Extend the tap target to a 44px minimum (WCAG 2.5.5) without growing the 32px
visual box, so the dense entry/header rows stay compact. */
.wk-icon-btn::before {
content: ''; position: absolute; top: 50%; left: 50%;
width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.wk-icon-btn:disabled { pointer-events: none; opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
.wk-icon-btn:not(:disabled):active { opacity: 0.7; transform: scale(0.9); }
}
.wk-icon-btn.is-accent { color: var(--accent); }
.wk-sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Current-session draft panel — app-specific. The is-live treatment (accent
wash + pulsing dot + ticking elapsed time) makes the in-progress workout
read as the one live thing on the screen. */
.wk-current-session {
margin-bottom: 14px; overflow: hidden;
border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
box-shadow: 0 10px 30px color-mix(in srgb, #000 10%, transparent);
}
.wk-current-session.is-live {
border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
background: linear-gradient(
145deg,
color-mix(in srgb, var(--accent) 10%, var(--surface)),
var(--surface) 48%
);
}
.wk-current-session-head {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
padding: 16px; border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.wk-current-session-title {
margin: 0; display: flex; align-items: center;
font-size: 16px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; user-select: none;
}
.wk-live-dot {
width: 8px; height: 8px; flex-shrink: 0; border-radius: 999px;
margin-right: 7px; background: var(--accent);
}
@keyframes wk-live-pulse {
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
60% { box-shadow: 0 0 0 6px transparent; }
}
@media (prefers-reduced-motion: no-preference) {
.wk-live-dot { animation: wk-live-pulse 2.2s ease-in-out infinite; }
}
.wk-current-session-sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; user-select: none; }
.wk-rest-timer {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
margin: 10px 12px 0; padding: 9px 10px;
border-radius: 10px;
background: color-mix(in srgb, var(--accent) 12%, var(--surface));
color: var(--text);
}
.wk-rest-label { margin-right: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.wk-rest-value { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wk-rest-actions { display: flex; gap: 4px; }
.wk-rest-actions button {
min-width: 44px; min-height: 44px; padding: 6px 9px; border: 0; border-radius: 8px;
background: var(--surface); color: var(--accent);
font-family: var(--font); font-size: 12px; font-weight: 800; cursor: pointer;
}
.wk-current-session-list { padding: 10px 12px 4px; }
.wk-current-session-empty {
display: flex; align-items: center; gap: 12px;
padding: 20px 16px; color: var(--muted);
}
.wk-current-session-empty-mark {
width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
display: inline-flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--accent) 14%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
}
.wk-current-session-empty > span:last-child {
min-width: 0; display: flex; flex-direction: column; gap: 3px;
}
.wk-current-session-empty strong { color: var(--text); font-size: 13px; }
.wk-current-session-empty small { font-size: 12px; line-height: 1.45; }
.wk-clear-session { flex: 0 0 auto; }
.wk-current-session-footer {
position: sticky; bottom: 0; z-index: 1;
display: flex; align-items: center; justify-content: space-between; gap: 14px;
padding: 12px 14px max(12px, env(safe-area-inset-bottom));
border-top: 1px solid var(--border);
background: color-mix(in srgb, var(--surface) 94%, transparent);
backdrop-filter: blur(12px);
}
.wk-current-session-status {
min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.wk-current-session-status strong { font-size: 12px; }
.wk-current-session-status span {
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
color: var(--muted); font-size: 11px;
}
.wk-finish-btn {
min-width: 150px; min-height: 48px; padding: 11px 16px; border-radius: 10px;
border: none; background: var(--accent-hover, var(--accent)); color: var(--accent-fg);
font-family: var(--font); font-size: 14px; font-weight: 800;
white-space: nowrap; cursor: pointer;
touch-action: manipulation; user-select: none;
}
.wk-finish-btn:disabled { opacity: 0.52; cursor: not-allowed; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
.wk-finish-btn:not(:disabled):active { opacity: 0.82; transform: scale(0.97); }
}
/* Date-group label rows in the log / all tabs — app-specific. */
.wk-session-label {
display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
margin: 20px 0 9px; font-size: 12px; color: var(--muted); font-weight: 700;
user-select: none;
}
.wk-session-date { color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: 0; user-select: none; }
/* mobius-ui:Input v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-input {
display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 12px;
background: var(--surface2, var(--surface)); color: var(--text);
border: 1px solid var(--border); border-radius: 8px;
font-family: var(--font); font-size: 16px;
}
.wk-input:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.wk-input.is-auto { width: auto; }
.wk-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
/* /mobius-ui:Input */
.wk-set-row {
display: grid; grid-template-columns: 24px 1fr 1fr auto;
align-items: center; gap: 8px; padding: 6px 0;
}
.wk-set-index { font-size: 13px; font-weight: 600; color: var(--muted); }
/* Sets stepper on the add form — [−] [N] [+], min 1. */
.wk-stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; align-items: center; }
.wk-stepper-input { text-align: center; }
/* Live-session worksheet — the draft card is now an editable grid, not a static
summary. A strength row is [# reps × weight unit]; cardio/other rows are
labelled fields. Incomplete rows/entries get the danger accent so the owner
sees exactly what still blocks Finish. */
.wk-entry-card.is-draft {
display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px;
align-items: flex-start;
}
.wk-entry-card.is-draft .wk-entry-body { display: contents; }
.wk-entry-card.is-draft .wk-entry-top { grid-column: 2; align-self: center; }
.wk-entry-card.is-draft .wk-entry-actions { grid-column: 3; grid-row: 1; }
.wk-entry-card.is-draft .wk-worksheet,
.wk-entry-card.is-draft .wk-entry-meta { grid-column: 1 / -1; }
.wk-entry-card.is-draft .wk-entry-icon { margin-top: 2px; }
.wk-worksheet { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.wk-set-block {
padding: 6px; border-radius: 9px;
background: color-mix(in srgb, var(--bg) 52%, transparent);
}
.wk-set-block.is-complete {
background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.wk-worksheet-row {
display: grid; grid-template-columns: 44px 20px minmax(48px, 1fr) 12px minmax(48px, 1fr) 22px;
align-items: center; gap: 6px;
}
.wk-set-check {
width: 44px; height: 44px; padding: 0; border-radius: 8px;
border: 1px solid var(--border); background: var(--surface); color: var(--accent);
font-family: var(--font); font-size: 16px; font-weight: 900; cursor: pointer;
}
.wk-set-check[aria-pressed="true"] { border-color: var(--accent-hover, var(--accent)); background: var(--accent-hover, var(--accent)); color: var(--accent-fg); }
.wk-set-previous {
display: flex; justify-content: space-between; gap: 8px;
margin: 4px 28px 0 62px; color: var(--muted);
font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.wk-use-last {
min-height: 44px; margin-left: 7px; padding: 4px 8px;
border: 0; border-radius: 7px;
background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
font-family: var(--font); font-size: 11px; font-weight: 800; cursor: pointer;
}
.wk-worksheet-x { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.wk-worksheet-unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.wk-worksheet-field { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: center; }
.wk-worksheet-label { font-size: 12px; color: var(--muted); font-weight: 600; }
/* Activity library picker — manual logging is search-first over a broad list,
while the storage category stays an internal analytics detail. */
.wk-activity-picker {
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px;
background: color-mix(in srgb, var(--bg) 44%, var(--surface));
}
.wk-activity-head {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
margin-bottom: 6px;
}
.wk-activity-selected {
display: inline-flex; align-items: center; gap: 6px;
min-height: 28px; padding: 4px 8px; border-radius: 999px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--muted);
font-size: 12px; font-weight: 700;
white-space: nowrap;
}
.wk-activity-search { font-size: 15px; }
.wk-activity-group-row {
display: flex; gap: 6px; overflow-x: auto;
margin: 10px -2px 8px; padding: 0 12px 4px 2px;
scroll-snap-type: x proximity;
scrollbar-width: none;
-ms-overflow-style: none;
}
.wk-activity-group-row::-webkit-scrollbar { display: none; }
.wk-activity-group {
flex: 0 0 auto;
min-height: 44px; padding: 8px 11px; border-radius: 999px;
border: 1px solid transparent;
background: transparent; color: var(--muted);
font-family: var(--font); font-size: 12px; font-weight: 800;
display: inline-flex; align-items: center; gap: 6px;
cursor: pointer; touch-action: manipulation; user-select: none;
}
.wk-activity-group.is-active {
background: color-mix(in srgb, var(--accent) 14%, transparent);
border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
color: var(--text);
}
.wk-activity-group-count {
min-width: 18px;
padding: 1px 5px;
border-radius: 999px;
background: color-mix(in srgb, var(--border) 62%, transparent);
color: var(--muted);
font-size: 10px;
line-height: 1.5;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
.wk-activity-group.is-active .wk-activity-group-count {
background: color-mix(in srgb, var(--accent) 22%, var(--surface));
color: var(--text);
}
.wk-activity-result-count {
margin: 0 0 8px;
color: var(--muted);
font-size: 11px;
font-weight: 700;
user-select: none;
}
.wk-activity-results {
display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 6px;
max-height: 284px;
overflow-y: auto;
overscroll-behavior: contain;
padding-right: 2px;
}
.wk-activity-more {
width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 12px;
border: 1px solid var(--border); border-radius: 9px;
background: var(--surface2, var(--surface)); color: var(--accent);
font: 700 12px/1.2 var(--font); cursor: pointer;
}
.wk-more-options {
color: var(--text); font-size: 12px;
}
.wk-more-options summary {
min-height: 44px; display: flex; align-items: center;
color: var(--accent); font-weight: 750; cursor: pointer; user-select: none;
}
.wk-activity-option {
min-width: 0;
min-height: 48px;
display: flex; align-items: center; gap: 9px;
padding: 8px 9px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--surface);
color: var(--text);
text-align: left;
font-family: var(--font);
cursor: pointer;
touch-action: manipulation;
user-select: none;
}
.wk-activity-option.is-active {
border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.wk-activity-option.is-custom {
border-style: dashed;
}
.wk-activity-option-icon {
width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px;
display: inline-flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.wk-activity-option-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-activity-option-name {
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-size: 13px; font-weight: 800;
}
.wk-activity-option-meta { font-size: 11px; font-weight: 700; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
.wk-activity-option:active,
.wk-activity-group:active { opacity: 0.78; transform: scale(0.98); }
}
/* Chart / insight cards — app-specific. */
.wk-chart-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
.wk-chart-card.is-nested { margin-top: 14px; }
.wk-chart-card.is-last { margin-top: 14px; margin-bottom: 0; }
.wk-chart-title { margin: 0 0 2px; font-size: 14px; font-weight: 700; user-select: none; }
.wk-chart-sub { margin: 3px 0 12px; font-size: 12px; line-height: 1.45; color: var(--muted); user-select: none; }
.wk-streak-value { font-size: 34px; font-weight: 800; color: var(--accent); }
.wk-streak-unit { font-size: 15px; font-weight: 600; color: var(--muted); }
.wk-progress-card {
margin-bottom: 14px; padding: 18px;
border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
border-radius: 14px;
background:
radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 44%),
var(--surface);
}
.wk-progress-head {
display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
margin-bottom: 16px;
}
.wk-progress-head h2 { margin: 2px 0 3px; font-size: 18px; letter-spacing: -0.02em; }
.wk-progress-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.wk-section-kicker {
display: block; color: var(--accent); font-size: 11px; font-weight: 800;
letter-spacing: 0.06em; text-transform: uppercase;
}
.wk-progress-badge {
flex: 0 0 auto; padding: 6px 9px; border-radius: 999px;
background: color-mix(in srgb, var(--accent) 14%, transparent);
color: var(--text); font-size: 11px; font-weight: 800; white-space: nowrap;
}
.wk-progress-stats {
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px; margin-bottom: 14px;
}
.wk-progress-stats > div {
min-width: 0; padding: 11px 12px; border-radius: 10px;
background: color-mix(in srgb, var(--bg) 62%, transparent);
}
.wk-progress-stats strong {
display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.wk-progress-stats span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.wk-heatmap-caption { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.wk-pr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.wk-pr-th {
padding: 8px 6px; text-align: left; font-weight: 600; color: var(--muted);
border-bottom: 1px solid var(--border);
font-size: 12px; letter-spacing: 0;
user-select: none;
}
.wk-pr-th.is-right { text-align: right; }
.wk-pr-td { padding: 10px 6px; border-bottom: 1px solid var(--border); }
.wk-pr-td.is-right { text-align: right; font-variant-numeric: tabular-nums; }
.wk-pr-td.is-strong { font-weight: 700; }
.wk-heatmap { display: block; width: 100%; height: auto; margin-top: 8px; }
.wk-sparkline { display: block; width: 100%; height: auto; }
/* mobius-ui:Empty v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-empty {
max-width: 440px; margin: auto; padding: 48px 24px; text-align: center; color: var(--muted);
font-size: 14px; line-height: 1.6;
}
.wk-empty.is-inline { padding: 18px 8px; }
.wk-empty-icon {
width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
display: flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--accent) 16%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
}
/* /mobius-ui:Empty */
.wk-loading { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }
/* mobius-ui:Sheet v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-modal-scrim {
position: absolute; inset: 0; z-index: 100;
display: flex; align-items: center; justify-content: center;
padding: 20px; background: rgba(0, 0, 0, 0.5);
}
.wk-modal {
width: 100%; max-width: 320px; padding: 20px;
background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.28);
overscroll-behavior: contain;
}
.wk-modal-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; user-select: none; }
.wk-modal-body { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.wk-modal-btns { display: flex; gap: 8px; justify-content: flex-end; }
/* /mobius-ui:Sheet */
/* mobius-ui:SyncPill v1 — keep in sync; library candidate. */
.wk-pill {
padding: 4px 10px; border-radius: 999px;
font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
background: transparent; border: 1px solid var(--border); color: var(--muted);
font-family: var(--font); user-select: none;
}
button.wk-pill { cursor: pointer; }
.wk-pill.is-pending { background: var(--surface2, var(--surface)); }
.wk-pill.is-offline {
background: var(--surface2, var(--surface));
border-color: var(--accent); color: var(--accent);
}
.wk-pill.is-error {
background: color-mix(in srgb, var(--danger) 10%, var(--surface));
border-color: var(--danger); color: var(--danger);
}
/* /mobius-ui:SyncPill */
/* Category-volume bars — app-specific (per-category accent inline). */
.wk-bar-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.wk-bar-row { display: grid; grid-template-columns: 88px 1fr 48px; gap: 10px; align-items: center; }
.wk-bar-label { font-size: 12px; color: var(--muted); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.wk-bar-label.is-right { text-align: right; font-variant-numeric: tabular-nums; }
.wk-bar-track {
height: 10px; border-radius: 999px; overflow: hidden;
background: color-mix(in srgb, var(--border) 72%, transparent);
}
.wk-bar-fill { height: 100%; border-radius: 999px; }
/* Category stat tiles — app-specific. */
.wk-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 10px; }
.wk-stat-tile {
padding: 12px; border: 0; border-radius: 10px;
background: color-mix(in srgb, var(--bg) 62%, transparent);
}
.wk-stat-head { display: flex; align-items: center; gap: 8px; }
.wk-stat-value { margin: 7px 0 2px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wk-stat-label { font-size: 12px; color: var(--muted); font-weight: 700; user-select: none; }
/* A tappable exercise name (opens the per-exercise detail sheet). Renders as
plain text but is a real <button> for keyboard + screen-reader access. */
.wk-ex-link {
display: inline-flex; align-items: center; gap: 7px;
padding: 0; margin: 0; border: none; background: none;
font: inherit; color: var(--text); font-weight: 700; cursor: pointer; text-align: left;
touch-action: manipulation; user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
.wk-ex-link:active { opacity: 0.75; }
}
.wk-ex-chevron { width: 14px; height: 14px; margin-left: 2px; color: var(--muted); }
/* Per-exercise detail sheet (Hevy-style drill-down) — Sheet variant: centered,
all-corner radius, full-height column with its own scroll body. */
/* mobius-ui:Sheet v1 — keep in sync; library candidate. Diverge below the marker only. */
.wk-sheet-scrim {
position: absolute; inset: 0; z-index: 120;
display: flex; align-items: center; justify-content: center;
padding: 16px; background: rgba(0, 0, 0, 0.55);
}
.wk-sheet {
width: 100%; max-width: 480px; max-height: 88%;
display: flex; flex-direction: column; overflow: hidden;
background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.32);
}
.wk-sheet-head {
flex-shrink: 0;
display: flex; align-items: center; justify-content: space-between; gap: 10px;
padding: 14px 14px 12px; border-bottom: 1px solid var(--border);
}
.wk-sheet-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: 0; user-select: none; }
.wk-sheet-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); user-select: none; }
.wk-sheet-body { padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
/* /mobius-ui:Sheet */
.wk-sheet-head-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wk-rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.wk-rec-tile {
padding: 10px; border: 1px solid var(--border); border-radius: 8px;
background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.wk-rec-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0; user-select: none; }
.wk-rec-value { margin: 3px 0 0; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wk-trend-meta {
display: flex; justify-content: space-between; gap: 10px; margin-top: 4px;
font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums;
user-select: none;
}
.wk-hist-list { display: flex; flex-direction: column; }
.wk-hist-row {
display: flex; justify-content: space-between; gap: 10px;
padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.wk-hist-row.is-last { border-bottom: none; }
.wk-hist-date { color: var(--muted); font-weight: 600; white-space: nowrap; }
.wk-hist-summary { text-align: right; font-variant-numeric: tabular-nums; }
/* Confirm-card layout helpers — app-specific spacers + grids. */
.wk-spacer-10 { height: 10px; }
.wk-spacer-12 { height: 12px; }
.wk-spacer-14 { height: 14px; }
.wk-spacer-16 { height: 16px; }
.wk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-grid-metric { display: grid; grid-template-columns: 1fr 80px; gap: 8px; align-items: end; }
.wk-btn-row-finish { justify-content: space-between; align-items: center; margin-top: 4px; }
.wk-min44 { min-width: 44px; }
/* Session tab layout — one column on phones, current workout + library rail on web. */
.wk-session-layout {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 14px;
align-items: start;
}
.wk-session-layout.is-empty {
max-width: 760px;
margin-left: auto;
margin-right: auto;
}
.wk-session-main,
.wk-session-side { min-width: 0; }
.wk-session-recap {
margin-bottom: 14px; padding: 12px;
border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
border-radius: 12px;
background: color-mix(in srgb, var(--accent) 9%, var(--surface));
color: var(--text);
}
.wk-session-recap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wk-session-recap-head > div { display: flex; flex-direction: column; gap: 2px; }
.wk-session-recap-head strong { font-size: 14px; }
.wk-session-recap-head span { color: var(--muted); font-size: 12px; }
.wk-session-recap-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.wk-recap-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.wk-recap-row + .wk-recap-row { border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.wk-recap-icon {
width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
display: inline-flex; align-items: center; justify-content: center;
}
.wk-recap-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-recap-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wk-recap-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.wk-recap-row.is-pr .wk-recap-copy small,
.wk-recap-row.is-up .wk-recap-copy small { color: var(--text); }
/* Quick-add strip — recent exercise chips on the Log tab so a repeat set is one tap. */
.wk-quick-add {
margin-bottom: 14px;
padding: 16px;
background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.wk-quick-add.is-empty { text-align: center; }
.wk-quick-add-empty-mark {
width: 52px; height: 52px; margin: 2px auto 12px; border-radius: 16px;
display: flex; align-items: center; justify-content: center;
background: color-mix(in srgb, var(--accent) 14%, transparent);
border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
}
.wk-quick-add-title { margin: 0; font-size: 17px; letter-spacing: -0.015em; }
.wk-quick-add-copy {
max-width: 420px; margin: 6px auto 14px; color: var(--muted);
font-size: 13px; line-height: 1.5;
}
.wk-quick-add-label {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
margin-bottom: 10px; font-size: 13px; color: var(--text);
user-select: none;
}
.wk-quick-add.is-empty .wk-quick-add-label { justify-content: center; }
.wk-quick-add-label > span {
min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.wk-quick-add-label strong { font-size: 14px; }
.wk-quick-add-label small { color: var(--muted); font-size: 11px; font-weight: 600; }
.wk-quick-chip {
display: inline-flex; align-items: center; gap: 6px;
min-height: 44px; padding: 7px 11px; border-radius: 10px;
border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 55%, transparent);
color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600;
cursor: pointer; touch-action: manipulation; user-select: none;
white-space: nowrap; max-width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
.wk-quick-chip:active { opacity: 0.75; transform: scale(0.96); }
}
.wk-quick-chip-row {
display: flex; gap: 6px; flex-wrap: wrap;
}
.wk-quick-add-btn {
min-height: 44px; padding: 7px 13px; border-radius: 10px;
border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
background: color-mix(in srgb, var(--accent) 9%, transparent);
color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 700;
cursor: pointer; touch-action: manipulation; user-select: none;
white-space: nowrap;
}
.wk-add-activity-primary {
width: 100%; min-height: 48px; margin-top: 12px; padding: 11px 14px;
display: inline-flex; align-items: center; justify-content: center; gap: 7px;
border: 1px solid var(--accent-hover, var(--accent)); border-radius: 10px;
background: var(--accent-hover, var(--accent)); color: var(--accent-fg);
font-family: var(--font); font-size: 14px; font-weight: 800;
cursor: pointer; touch-action: manipulation;
}
.wk-add-activity-primary svg { width: 18px; height: 18px; }
.wk-quick-add.is-empty .wk-quick-chip-row { justify-content: center; }
.wk-quick-add.is-empty .wk-add-activity-primary {
min-width: min(100%, 240px);
margin-top: 0;
}
.wk-mobile-action-dock { display: none; }
.wk-history-summary {
display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
margin: 2px 0 18px;
}
.wk-history-summary h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -0.025em; }
.wk-history-count {
display: flex; align-items: baseline; gap: 5px; color: var(--muted);
font-size: 11px; white-space: nowrap;
}
.wk-history-count strong { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.wk-history-count i { width: 1px; height: 16px; margin: 0 5px; background: var(--border); }
@media (prefers-reduced-motion: no-preference) {
.wk-quick-add-btn:active { opacity: 0.75; }
}
@media (min-width: 840px) {
.wk-scroll { padding: 18px 22px max(22px, env(safe-area-inset-bottom)); }
.wk-session-layout:not(.is-empty) {
grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
gap: 18px;
}
.wk-session-side {
position: sticky;
top: 0;
}
.wk-session-side .wk-quick-chip-row {
flex-direction: column;
}
.wk-session-side .wk-quick-chip,
.wk-session-side .wk-quick-add-btn,
.wk-session-side .wk-add-activity-primary {
width: 100%;
justify-content: flex-start;
}
.wk-session-side .wk-quick-add-label .wk-quick-add-btn {
width: auto; margin-left: auto; justify-content: center;
}
.wk-confirm-card { padding: 18px; }
}
@media (min-width: 900px) {
.wk-insights-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.wk-insights-grid > .wk-chart-card { margin-bottom: 0; min-width: 0; }
.wk-insights-grid > .wk-progress-card {
grid-column: 1 / -1; margin-bottom: 0;
display: grid;
grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
grid-template-areas:
"progress-head progress-map"
"progress-stats progress-map"
". progress-caption";
align-items: start; column-gap: 22px;
}
.wk-progress-card .wk-progress-head {
grid-area: progress-head; flex-direction: column; margin-bottom: 12px;
}
.wk-progress-card .wk-progress-stats { grid-area: progress-stats; margin-bottom: 0; }
.wk-progress-card .wk-heatmap { grid-area: progress-map; align-self: center; margin-top: 0; }
.wk-progress-card .wk-heatmap-caption { grid-area: progress-caption; }
}
@media (max-width: 420px) {
.wk-brand-name { font-size: 14px; }
.wk-subtitle { max-width: 190px; }
.wk-current-session-head { align-items: flex-start; }
.wk-current-session-footer { align-items: stretch; flex-direction: column; gap: 9px; }
.wk-current-session-status span { white-space: normal; }
.wk-current-session-footer .wk-finish-btn { width: 100%; }
.wk-entry-card.is-draft { padding: 9px; }
.wk-entry-card.is-draft .wk-entry-time { font-size: 0; }
.wk-entry-card.is-draft .wk-use-last { margin-left: 4px; font-size: 11px; }
.wk-entry-card.is-draft .wk-entry-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-worksheet-row { grid-template-columns: 44px 18px minmax(42px, 1fr) 10px minmax(42px, 1fr) 20px; gap: 4px; }
.wk-worksheet-row .wk-input { min-height: 44px; padding: 8px 5px; text-align: center; }
.wk-set-previous { margin-left: 66px; margin-right: 24px; }