create-pmos 0.611.0 → 0.613.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/package.json +105 -27
  2. package/payload/KIT-VERSION +2 -2
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/payload/state/log.md +1 -1
  7. package/workspace/briefing-premium-board-test.js +1 -1
  8. package/workspace/briefing-premium-calendar-2-test.js +3 -2
  9. package/workspace/briefing-premium-calendar-3-test.js +1 -1
  10. package/workspace/briefing-premium-calendar-test.js +1 -1
  11. package/workspace/briefing-premium-insights-test.js +1 -1
  12. package/workspace/briefing-premium-test.js +1 -1
  13. package/workspace/changelog.json +104 -0
  14. package/workspace/guide/layout.md +52 -18
  15. package/workspace/guide/programs.md +3 -3
  16. package/workspace/guide/routine.md +28 -13
  17. package/workspace/guide/settings-and-switches.md +1 -1
  18. package/workspace/lib/board-premium.js +12 -4
  19. package/workspace/lib/cos-chat.js +1 -0
  20. package/workspace/lib/doc-library.js +43 -12
  21. package/workspace/lib/doc-path.js +30 -0
  22. package/workspace/lib/engine/boards.js +4 -2
  23. package/workspace/lib/events-place.js +190 -38
  24. package/workspace/lib/events-stated.js +129 -0
  25. package/workspace/lib/initiative-chat.js +1 -0
  26. package/workspace/lib/insights-premium.js +13 -1
  27. package/workspace/lib/library-find.js +162 -0
  28. package/workspace/lib/library-items.js +196 -24
  29. package/workspace/lib/notes.js +3 -0
  30. package/workspace/lib/plan-items.js +17 -3
  31. package/workspace/lib/routes-artefacts.js +5 -2
  32. package/workspace/lib/routes-boards.js +6 -2
  33. package/workspace/lib/routes-doc-sheet.js +1 -0
  34. package/workspace/lib/routes-events-place.js +47 -10
  35. package/workspace/lib/routes-library.js +74 -8
  36. package/workspace/lib/routes-report-setups.js +13 -2
  37. package/workspace/lib/routine-reports.js +36 -4
  38. package/workspace/lib/status-when.js +36 -0
  39. package/workspace/lib/task-items.js +5 -3
  40. package/workspace/package-lock.json +2 -2
  41. package/workspace/package.json +1 -1
  42. package/workspace/premium-vw-meet-test.js +2 -1
  43. package/workspace/premium-vw-notes-test.js +3 -2
  44. package/workspace/public/pm/artefact-kind.js +87 -0
  45. package/workspace/public/pm/bd-ini-panel.js +6 -6
  46. package/workspace/public/pm/bd-span.js +7 -1
  47. package/workspace/public/pm/bd-work.css +62 -0
  48. package/workspace/public/pm/bd-work.js +195 -68
  49. package/workspace/public/pm/cozy-bar.css +11 -0
  50. package/workspace/public/pm/cozy-bar.js +99 -0
  51. package/workspace/public/pm/cozy-day-pick.css +27 -0
  52. package/workspace/public/pm/cozy-day-pick.js +97 -0
  53. package/workspace/public/pm/cozy-ev.css +0 -4
  54. package/workspace/public/pm/cozy-events-view.js +165 -33
  55. package/workspace/public/pm/cozy-events.css +75 -3
  56. package/workspace/public/pm/cozy-events.js +86 -18
  57. package/workspace/public/pm/cozy-goals.css +172 -0
  58. package/workspace/public/pm/cozy-library.css +106 -17
  59. package/workspace/public/pm/cozy-nav.js +2 -3
  60. package/workspace/public/pm/cozy-pick.css +3 -0
  61. package/workspace/public/pm/cozy-pop-work.css +83 -24
  62. package/workspace/public/pm/cozy-pop-work.js +313 -72
  63. package/workspace/public/pm/cozy-popup.css +11 -2
  64. package/workspace/public/pm/cozy-popup.js +67 -9
  65. package/workspace/public/pm/cozy-routine-job.js +203 -0
  66. package/workspace/public/pm/cozy-routine-model.js +139 -31
  67. package/workspace/public/pm/cozy-routine-pop.js +164 -42
  68. package/workspace/public/pm/cozy-routine.css +61 -8
  69. package/workspace/public/pm/cozy-routine.js +207 -28
  70. package/workspace/public/pm/cozy-settings.js +1 -5
  71. package/workspace/public/pm/cozy-status-when.js +48 -0
  72. package/workspace/public/pm/cozy-viewer.js +19 -8
  73. package/workspace/public/pm/cozy-vw-mtg.css +39 -0
  74. package/workspace/public/pm/goals-model.js +205 -0
  75. package/workspace/public/pm/goals-open.js +124 -0
  76. package/workspace/public/pm/home-chat.js +4 -2
  77. package/workspace/public/pm/home-ini.js +8 -6
  78. package/workspace/public/pm/ini-edit.js +3 -1
  79. package/workspace/public/pm/ini-view-model.js +1 -1
  80. package/workspace/public/pm/library-model.js +170 -42
  81. package/workspace/public/pm/library-open.js +8 -5
  82. package/workspace/public/pm/page-chat.js +12 -2
  83. package/workspace/public/pm/pop-work-model.js +199 -41
  84. package/workspace/public/pm/premium-board.js +108 -43
  85. package/workspace/public/pm/premium-goals.js +213 -0
  86. package/workspace/public/pm/premium-library.js +376 -62
  87. package/workspace/public/pm/premium-shell.js +1 -1
  88. package/workspace/public/pm/premium-vw-mtg.js +79 -1
  89. package/workspace/public/pm/scope-chip.js +207 -0
  90. package/workspace/public/premium-events.html +3 -1
  91. package/workspace/public/premium-goals.html +37 -0
  92. package/workspace/public/premium-library.html +15 -7
  93. package/workspace/public/premium-routine.html +2 -0
  94. package/workspace/server.js +2 -1
  95. package/workspace/test-lists/doc-path.json +9 -0
  96. package/workspace/test-lists/goals-place.json +9 -0
  97. package/workspace/test-lists/status-when.json +9 -0
@@ -2,11 +2,13 @@
2
2
  * panel; the dates sit in one card per group with a thin border; the small month and Show sit in one grey box on the right. Tokens only. */
3
3
  .evp-page .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
4
4
  .evp-hd { display: flex; align-items: center; gap: 12px; min-height: 44px; }
5
- .evp-hd h1 { margin: 0 auto 0 0; font-size: var(--fs-page); font-weight: var(--fw-page); line-height: var(--lh-page); }
5
+ .evp-hd h1 { margin: 0; font-size: var(--fs-page); font-weight: var(--fw-page); line-height: var(--lh-page); }
6
6
  .evp-dayf { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--cz-ink2); background: var(--cz-bluebg); border-radius: 999px; padding: 2px 4px 2px 12px; }
7
7
  .evp-dayf[hidden] { display: none; }
8
8
  .evp-dayf b { font-weight: var(--fw-strong); color: var(--cz-blueink); }
9
- .evp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 28px; align-items: start; }
9
+ .evp-scope { margin-right: auto; }
10
+ /* the list takes at most about 1100 px, so a suggestion sits near its row on a wide screen (round 2, point 6) */
11
+ .evp-grid { display: grid; grid-template-columns: minmax(0, 1100px) 316px; gap: 28px; align-items: start; }
10
12
  .evp-left { min-width: 0; }
11
13
 
12
14
  /* the icon buttons */
@@ -42,9 +44,10 @@ button.evp-t { cursor: pointer; }
42
44
  .evp-a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-meta); color: var(--cz-ink2); white-space: nowrap; }
43
45
  .evp-sg { display: inline-flex; align-items: center; gap: 6px; }
44
46
  .evp-sp { display: inline-grid; color: var(--cz-blueink); }
47
+ button.evp-go { border: 0; font: inherit; font-size: var(--fs-meta); font-weight: var(--fw-strong); cursor: pointer; }
45
48
  .evp-go { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--cz-card); font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink); text-decoration: none; }
46
49
  /* the tools: a new day and Fixed, shown on a row you point at or step into; a fixed row keeps its lock */
47
- .evp-tl { display: inline-flex; align-items: center; gap: 2px; opacity: 0; }
50
+ .evp-tl { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 62px; opacity: 0; }
48
51
  .evp-r:focus-within .evp-tl, .evp-r.fixed .evp-tl { opacity: 1; }
49
52
  @media (hover: hover) { .evp-r:hover .evp-tl { opacity: 1; } }
50
53
  @media (hover: none) { .evp-tl { opacity: 1; } }
@@ -59,6 +62,27 @@ button.evp-t { cursor: pointer; }
59
62
  .evp-k.late { background: var(--cz-dot-late); }
60
63
  .evp-k.risk { background: var(--cz-dot-risk); }
61
64
  .evp-k.evp-mt.late { background: transparent; box-shadow: inset 0 0 0 2px var(--cz-dot-late); }
65
+ /* round 2: one mark per type, the same in the rows, the small month and the key */
66
+ .evp-k.evp-fo { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--cz-ok); }
67
+ .evp-k.evp-rp { border-radius: 2px; background: var(--cz-ink3); }
68
+ .evp-k.evp-dl { border-radius: 50%; background: var(--cz-c-b07cc6); }
69
+ .evp-k.evp-fo.late, .evp-k.evp-fo.risk { background: transparent; }
70
+ .evp-ty { font-style: normal; font-weight: var(--fw-strong); color: var(--cz-ink2); }
71
+ /* the line over the list when a filter hides dates */
72
+ .evp-hid { margin: 0 0 12px; font-size: var(--fs-meta); color: var(--cz-ink2); }
73
+ .evp-hid button { all: unset; cursor: pointer; font-weight: var(--fw-strong); color: var(--cz-blueink); }
74
+ .evp-hid button:focus-visible, .evp-un:focus-visible, .evp-day:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
75
+ /* a coming day with many meetings: one line that opens them */
76
+ button.evp-day { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 104px 10px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; width: 100%; min-height: 60px; padding: 6px 16px; }
77
+ .evp-r + .evp-day, .evp-day + .evp-r { box-shadow: inset 0 1px 0 var(--cz-hair); }
78
+ .evp-fi { display: inline-grid; color: var(--cz-ink3); transition: transform .15s; }
79
+ .evp-day[aria-expanded="true"] .evp-fi { transform: rotate(90deg); }
80
+ /* a date stated in a source: the line that states it, under the row */
81
+ .evp-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 16px 12px 158px; font-size: var(--fs-meta); color: var(--cz-ink2); }
82
+ .evp-src q { flex: 1 1 100%; color: var(--cz-ink); }
83
+ .evp-r.evp-kid { padding-left: 32px; }
84
+ .evp-r.evp-kid .evp-d b { font-size: var(--fs-meta); }
85
+ .evp-src .evp-go { background: var(--cz-well); }
62
86
 
63
87
  .evp-more { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 2px; font-size: var(--fs-meta); color: var(--cz-ink2); }
64
88
  .evp-quiet { margin: 8px 0; font-size: var(--fs-body); color: var(--cz-ink3); }
@@ -87,10 +111,46 @@ button.evp-t { cursor: pointer; }
87
111
  .evp-f button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--cz-card); font-size: var(--fs-meta); color: var(--cz-ink); }
88
112
  .evp-f button[aria-pressed="false"] { background: transparent; color: var(--cz-ink3); }
89
113
  .evp-on { margin-left: auto; display: inline-grid; color: var(--cz-blueink); }
114
+ .evp-f button small { font-size: var(--fs-meta); color: var(--cz-ink3); }
115
+ .evp-f button.evp-un { color: var(--cz-ink2); background: transparent; box-shadow: inset 0 0 0 1px var(--cz-hair); }
90
116
  .evp-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: var(--fs-meta); color: var(--cz-ink2); }
91
117
  .evp-key span { display: inline-flex; align-items: center; gap: 6px; }
92
118
  .evp-hint { margin: 12px 0 0; font-size: var(--fs-meta); color: var(--cz-ink3); }
93
119
 
120
+ /* the fold lines: the rest of Late, and the far delivery milestones */
121
+ .evp-fold { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 0; padding: 8px 4px; border-radius: 10px; font-size: var(--fs-meta); color: var(--cz-ink2); }
122
+ .evp-fold i { display: inline-grid; transition: transform .15s; }
123
+ .evp-fold[aria-expanded="true"] i { transform: rotate(90deg); }
124
+ .evp-fold:focus-visible, .evp-mn:focus-visible, .evp-cc:focus-visible, .evp-cd:focus-visible, .evp-cm:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
125
+ .evp-far { margin: 4px 0 0; }
126
+ @media (hover: hover) { .evp-fold:hover { background: var(--cz-well); } .evp-mn:hover { text-decoration: underline; text-underline-offset: 3px; } .evp-cc:hover { background: var(--cz-well2); } }
127
+
128
+ /* the month name opens the full calendar */
129
+ .evp-mn { all: unset; box-sizing: border-box; cursor: pointer; margin-right: auto; font-size: var(--fs-section); font-weight: var(--fw-section); border-radius: 8px; }
130
+
131
+ /* the full calendar, in the left column */
132
+ .evp-ch { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; }
133
+ .evp-ch h2 { margin: 0 auto 0 4px; font-size: var(--fs-section); font-weight: var(--fw-section); }
134
+ .evp-ch .cz-seg { margin-left: 8px; }
135
+ .evp-fm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; }
136
+ .evp-fm .evp-mh { padding: 8px 0 6px; }
137
+ .evp-mc { min-height: 104px; min-width: 0; padding: 4px; box-shadow: inset 1px 1px 0 var(--cz-hair); display: flex; flex-direction: column; gap: 2px; }
138
+ .evp-mc.out { background: var(--cz-well); }
139
+ .evp-mc.out .evp-cd { color: var(--cz-ink3); }
140
+ .evp-cd { all: unset; box-sizing: border-box; cursor: pointer; align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: inline-grid; place-items: center; font-size: var(--fs-meta); color: var(--cz-ink); }
141
+ .evp-cd.now { background: var(--cz-blue); color: var(--cz-onsolid); font-weight: var(--fw-strong); }
142
+ .evp-cc { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 2px 6px; border-radius: 8px; font-size: var(--fs-meta); color: var(--cz-ink); }
143
+ .evp-cc span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
144
+ .evp-cc.late span { color: var(--cz-late); }
145
+ .evp-cm { all: unset; box-sizing: border-box; cursor: pointer; padding: 0 6px; font-size: var(--fs-meta); color: var(--cz-ink3); }
146
+ .evp-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
147
+ .evp-wc { min-width: 0; min-height: 240px; padding: 6px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--cz-hair); display: flex; flex-direction: column; gap: 4px; }
148
+ .evp-wc.now { background: var(--cz-bluebg); box-shadow: none; }
149
+ .evp-wc .evp-cc { align-items: flex-start; }
150
+ .evp-wc .evp-cc .evp-k { margin-top: 5px; }
151
+ .evp-wc .evp-cc span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
152
+ .evp-wh { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--fs-label); font-weight: var(--fw-label); color: var(--cz-ink3); }
153
+
94
154
  /* the toast with Undo */
95
155
  .evp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 80; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--cz-ink); color: var(--cz-card); font-size: var(--fs-meta); box-shadow: var(--cz-float); transition: opacity .18s, transform .18s; }
96
156
  .evp-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@@ -101,7 +161,19 @@ button.evp-t { cursor: pointer; }
101
161
  .evp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
102
162
  .evp-r { grid-template-columns: 76px 10px minmax(0, 1fr); row-gap: 6px; padding: 8px 12px; }
103
163
  .evp-a, .evp-tl { grid-column: 3; justify-self: start; }
164
+ button.evp-day { grid-template-columns: 76px 10px minmax(0, 1fr) auto; padding: 8px 12px; }
165
+ .evp-src { padding-left: 112px; }
166
+ .evp-tl { min-width: 0; justify-content: flex-start; }
167
+ .evp-a .evp-sg { flex: 1 1 100%; } /* the suggestion on its own line, then ✓ ✕ together */
104
168
  .evp-a { flex-wrap: wrap; white-space: normal; }
105
169
  .evp-new { grid-template-columns: minmax(0, 1fr) auto; }
106
170
  .evp-new input[type="date"] { grid-column: 1; }
171
+ .evp-ch { flex-wrap: wrap; }
172
+ .evp-mc { min-height: 64px; }
173
+ .evp-mc .evp-cc span { display: none; }
174
+ .evp-wk { grid-template-columns: minmax(0, 1fr); }
175
+ .evp-wc { min-height: 0; }
176
+ }
177
+ @media (max-width: 760px) and (hover: hover) {
178
+ .evp-r:not(:hover):not(:focus-within):not(.fixed) .evp-tl { display: none; } /* a narrow window: no empty line for tools you are not pointing at */
107
179
  }
@@ -4,32 +4,51 @@
4
4
  * One page with no views. Left: the dates grouped by what you do about them. Late: what PMOS suggests for each (✓ ✕), and Yes to all. Today: one
5
5
  * press to the act itself. Coming up: a suggestion only where a date is at risk. The later delivery milestones are one quiet line. Right, in
6
6
  * one grey box: a small month (press a day to see only that day; press it again for every day), then Show: the four kinds as the filter, which
7
- * is the key to the marks too. PMOS remembers Show (localStorage 'pmos.events.show'). The + adds your own date (a PM item with a due day).
7
+ * is the key to the marks too. PMOS remembers the types you turned off (localStorage 'pmos.events.hide.v2'; every type is on until pressed).
8
+ * Round 2: the chip beside the title filters by product (the saved product pick), program and project (pm/scope-chip.js); when a filter
9
+ * hides dates one line says so, with Show all. The + adds your own date (a PM item with a due day).
8
10
  *
9
11
  * Reads GET /api/events-place (lib/routes-events-place.js); 202 means a Board is still being read, and the page asks again. Writes only on a
10
12
  * press, through the routes that exist: ✓ on a suggestion is POST /api/boards/tasks/state (Done, Won't do) or /api/boards/tasks/edit (a new
11
13
  * due day) for a PMOS task, and /api/pm-items/* for your own item; each has Undo for a moment. ✕ and Fixed are POST /api/events-place/mark.
12
- * Pressing a row opens its work in the one popup (pm/cozy-popup.js) with Ask PMOS beside it. The markup is pm/cozy-events-view.js (pure). */
14
+ * A date PMOS cannot write (a Jira date, a plan end): ✓ on "Mark it done" or "Drop this date" is a mark too (Events stops listing it), and ✓ on
15
+ * "Ask the owner …" adds that ask as your own item, due today. Late shows its newest five, then one line that opens the rest; the far delivery
16
+ * milestones are one line that opens them. Pressing the month name opens the full calendar in the left column (Month | Week; the back arrow
17
+ * returns to the list; a day shows that day's rows). Pressing a row opens its work in the one popup (pm/cozy-popup.js) with Ask PMOS beside
18
+ * it. The markup is pm/cozy-events-view.js (pure). */
13
19
  import { mountNav } from './cozy-nav.js';
14
20
  import * as POP from './cozy-popup.js';
15
21
  import { pmGet, pmPost } from './http.js';
16
- import { KINDS, listHtml, monthHtml, showHtml, shiftMonth, esc } from './cozy-events-view.js';
22
+ import { TYPES, listHtml, calHtml, monthHtml, showHtml, hiddenHtml, countsOf, shiftMonth, esc } from './cozy-events-view.js';
23
+ import { readPick } from './cozy-pick.js';
24
+ import { scopeChipHtml, openScope, matches, narrowed, scopeWords, whenNames } from './scope-chip.js';
17
25
 
18
- const SHOW_KEY = 'pmos.events.show';
26
+ // round 2: PMOS keeps the types you turned OFF, so every type (and a new one) is on until you press it. The old key kept the kinds that
27
+ // were on, and one stale value hid meetings, tasks and reports for good with nothing on the page to say so: it is dropped.
28
+ const HIDE_KEY = 'pmos.events.hide.v2';
29
+ const SCOPE_KEY = 'pmos.events.scope.v1';
19
30
  const UNDO_MS = 6000;
20
31
  const store = {
21
32
  get(k) { try { return localStorage.getItem(k); } catch { return null; } },
22
33
  set(k, v) { try { if (v == null) localStorage.removeItem(k); else localStorage.setItem(k, v); } catch { /* a private window */ } },
23
34
  };
24
35
  const $ = (s) => document.querySelector(s);
25
- const S = { model: null, show: readShow(), day: null, ym: null, busy: new Set(), tries: 0, timer: 0, toastT: 0 };
36
+ store.set('pmos.events.show', null);
37
+ const S = { model: null, show: readShow(), P: null, sel: readSel(), day: null, ym: null, busy: new Set(), open: new Set(), cal: null, wk: null, tries: 0, timer: 0, toastT: 0 };
26
38
 
27
39
  function readShow() {
28
- const v = store.get(SHOW_KEY);
29
- if (!v) return [...KINDS];
30
- const on = v.split(',').filter((k) => KINDS.includes(k));
31
- return on.length ? on : [...KINDS];
40
+ const off = new Set(String(store.get(HIDE_KEY) || '').split(',').filter(Boolean));
41
+ return TYPES.filter((k) => !off.has(k));
32
42
  }
43
+ function readSel() {
44
+ try { const v = JSON.parse(store.get(SCOPE_KEY) || '{}'); return { programs: Array.isArray(v.programs) ? v.programs : [], projects: Array.isArray(v.projects) ? v.projects : [] }; } catch { return { programs: [], projects: [] }; }
45
+ }
46
+ /** The chip's test for one item, or null when nothing is narrowed. */
47
+ const scopeOk = () => (narrowed(S.P, S.sel) ? (x) => matches(x.scope, S.P, S.sel) : null);
48
+ const filt = () => ({ show: S.show, scopeOk: scopeOk() || undefined });
49
+ async function loadPick() { S.P = await readPick(); draw(); }
50
+ whenNames().then(() => draw()); // the chip's products by their display names
51
+ addEventListener('pp:changed', (e) => { S.P = e.detail && e.detail.products ? e.detail : S.P; draw(); });
33
52
 
34
53
  mountNav('events', document);
35
54
 
@@ -56,14 +75,23 @@ async function load() {
56
75
  /* ── drawing ── */
57
76
  function draw() {
58
77
  const M = S.model; if (!M) return;
59
- $('#evpList').innerHTML = listHtml(M, { show: S.show, day: S.day, busy: S.busy });
60
- $('#evpMonth').innerHTML = monthHtml(S.ym, M.items, { today: M.today, day: S.day, show: S.show });
61
- $('#evpShow').innerHTML = showHtml(S.show);
78
+ const F = filt();
79
+ const groups = { programs: (M.filters && M.filters.programs) || [], projects: (M.filters && M.filters.projects) || [] };
80
+ // the chip names only what the model can still offer: a program or project with no date left is not kept as a hidden pick
81
+ const known = new Set([...groups.programs, ...groups.projects].map((f) => f.id));
82
+ S.sel = { programs: S.sel.programs.filter((t) => known.has(t)), projects: S.sel.projects.filter((t) => known.has(t)) };
83
+ $('#evpScope').innerHTML = scopeChipHtml(S.P, S.sel, { id: 'evpScopeChip', groups });
84
+ $('#evpHid').innerHTML = S.cal ? '' : hiddenHtml(M.items, { ...F, scopeWords: F.scopeOk ? scopeWords(S.P, S.sel, groups) : '' });
85
+ $('#evpList').innerHTML = S.cal ? calHtml(M, { view: S.cal, ym: S.ym, day: S.wk, ...F }) : listHtml(M, { ...F, day: S.day, busy: S.busy, open: S.open });
86
+ $('#evpList').classList.toggle('evp-cal', !!S.cal);
87
+ $('#evpMonth').innerHTML = monthHtml(S.ym, M.items, { today: M.today, day: S.day, ...F });
88
+ $('#evpShow').innerHTML = showHtml(S.show, { counts: countsOf(M.items, { scopeOk: F.scopeOk }), unread: M.unread || {} });
62
89
  const miss = (M.missing || []).length ? 'Not read: ' + M.missing.join(', ') + '.' : '';
63
90
  const note = $('#evpNote'); note.textContent = miss; note.hidden = !miss;
64
91
  const day = $('#evpDay');
65
92
  if (S.day) { day.hidden = false; day.querySelector('b').textContent = new Date(S.day + 'T00:00:00').toLocaleDateString(undefined, { weekday: 'short', day: 'numeric', month: 'short' }); } else day.hidden = true;
66
93
  }
94
+ const addDays = (d, n) => new Date(Date.parse(d + 'T00:00:00Z') + n * 86400000).toISOString().slice(0, 10);
67
95
  const itemOf = (el) => { const r = el && el.closest('[data-key]'); return r && S.model ? S.model.items.find((x) => x.key === r.dataset.key) : null; };
68
96
 
69
97
  /* ── the toast with Undo ── */
@@ -95,6 +123,17 @@ async function apply(x, s) {
95
123
  if (x.own) { const r = await pmPost('/api/pm-items/remove', { id: x.own }); return { ok: r && r.ok !== false, error: r && r.error, undo: () => pmPost('/api/pm-items/undo', { id: x.own }) }; }
96
124
  const r = await setState(x, "Won't do"); return { ok: r && r.ok !== false, error: r && r.error, undo: () => setState(x, was) };
97
125
  }
126
+ if (s.op === 'met' || s.op === 'gone') {
127
+ const r = await pmPost('/api/events-place/mark', { key: x.key, gone: s.op === 'met' ? 'met' : 'dropped' });
128
+ return { ok: r && r.ok !== false, error: r && r.error, undo: () => pmPost('/api/events-place/mark', { key: x.key, gone: false }) };
129
+ }
130
+ if (s.op === 'ask' && s.ask) {
131
+ const r = await pmPost('/api/pm-items/add', { line: s.ask });
132
+ const id = r && r.item && r.item.id;
133
+ if (!id) return { ok: false, error: (r && r.error) || 'The ask could not be added.' };
134
+ await pmPost('/api/pm-items/edit', { id, fields: { due: S.model.today } });
135
+ return { ok: true, undo: () => pmPost('/api/pm-items/remove', { id }) };
136
+ }
98
137
  if (s.op === 'move' && s.to) {
99
138
  const r = await setDue(x, s.to); return { ok: r && r.ok !== false, error: r && r.error, undo: () => setDue(x, x.date) };
100
139
  }
@@ -110,7 +149,8 @@ async function yes(x) {
110
149
  load();
111
150
  }
112
151
  async function yesAll() {
113
- const list = S.model.items.filter((x) => x.group === 'late' && x.suggest && S.show.includes(x.kind) && (!S.day || x.date === S.day));
152
+ const ok = scopeOk();
153
+ const list = S.model.items.filter((x) => x.group === 'late' && x.suggest && S.show.includes(x.type || x.kind) && (!ok || ok(x)) && (!S.day || x.date === S.day));
114
154
  if (!list.length) return;
115
155
  list.forEach((x) => S.busy.add(x.key)); draw();
116
156
  const undos = [];
@@ -150,7 +190,7 @@ function open(x) {
150
190
  if (!x) return;
151
191
  if (x.own && !x.work) return;
152
192
  const w = x.work;
153
- if (!w) return;
193
+ if (!w) { if (x.link) window.open(x.link, '_blank', 'noopener'); return; }
154
194
  const about = { id: w.id, kind: 'initiative', title: w.title || undefined, ws: w.ws || undefined };
155
195
  POP.openWork({ about, open: () => import('./premium-vw-item.js').then((M) => (x.task && x.kind === 'task'
156
196
  ? M.openWorkItem({ kind: 'task', ini: w.id, key: 'task:' + x.task.uid, ws: w.ws, board: w.board })
@@ -181,30 +221,58 @@ async function addSave(e) {
181
221
  document.addEventListener('click', (e) => {
182
222
  const t = e.target;
183
223
  if (!t || !t.closest) return;
184
- const b = t.closest('[data-evp-yes],[data-evp-no],[data-evp-all],[data-evp-fix],[data-evp-done],[data-evp-open],[data-evp-day],[data-evp-month],[data-evp-show],[data-evp-add],[data-evp-clear],.evp-dt');
224
+ const b = t.closest('[data-evp-yes],[data-evp-no],[data-evp-all],[data-evp-fix],[data-evp-done],[data-evp-open],[data-evp-src],[data-evp-day],[data-evp-month],[data-evp-week],[data-evp-show],[data-evp-showall],[data-evp-connect],[data-evp-add],[data-evp-clear],[data-evp-fold],[data-evp-full],[data-evp-view],[data-evp-list],#evpScopeChip,.evp-dt');
185
225
  if (!b) return;
186
226
  const x = itemOf(b);
227
+ if (b.id === 'evpScopeChip') {
228
+ const M = S.model || {}, groups = { programs: (M.filters && M.filters.programs) || [], projects: (M.filters && M.filters.projects) || [] };
229
+ openScope(b, { P: S.P, groups, sel: S.sel, onApply: (next) => {
230
+ S.sel = { programs: next.programs, projects: next.projects };
231
+ store.set(SCOPE_KEY, S.sel.programs.length || S.sel.projects.length ? JSON.stringify(S.sel) : null);
232
+ if (S.P && S.P.products) S.P = { ...S.P, products: S.P.products.map((p) => ({ ...p, on: next.products.includes(p.ws) })) };
233
+ draw();
234
+ } });
235
+ return;
236
+ }
237
+ if (b.matches('[data-evp-src]')) { const k = 'src:' + (x && x.key); if (S.open.has(k)) S.open.delete(k); else S.open.add(k); draw(); return; }
238
+ if (b.matches('[data-evp-connect]')) { import('./cozy-settings.js').then((M) => M.openSettings('connectors')); return; }
239
+ if (b.matches('[data-evp-showall]')) {
240
+ // Show all: every type on, no program or project, and every product in the saved pick
241
+ S.show = [...TYPES]; store.set(HIDE_KEY, null);
242
+ S.sel = { programs: [], projects: [] }; store.set(SCOPE_KEY, null);
243
+ if (S.P && S.P.products && S.P.products.some((p) => !p.on)) import('./cozy-pick.js').then((M) => M.savePick(S.P.products.map((p) => p.ws)));
244
+ draw();
245
+ return;
246
+ }
187
247
  if (b.matches('[data-evp-yes]')) yes(x);
188
248
  else if (b.matches('[data-evp-no]')) no(x);
189
249
  else if (b.matches('[data-evp-all]')) yesAll();
190
250
  else if (b.matches('[data-evp-fix]')) fix(x);
191
251
  else if (b.matches('[data-evp-done]')) done(x);
192
252
  else if (b.matches('[data-evp-open]')) open(x);
193
- else if (b.matches('[data-evp-day]')) { S.day = S.day === b.dataset.evpDay ? null : b.dataset.evpDay; draw(); }
253
+ else if (b.matches('[data-evp-day]')) { const d = b.dataset.evpDay; S.day = S.cal ? d : S.day === d ? null : d; S.cal = null; draw(); }
254
+ else if (b.matches('[data-evp-fold]')) { const k = b.dataset.evpFold; if (S.open.has(k)) S.open.delete(k); else S.open.add(k); draw(); }
255
+ else if (b.matches('[data-evp-full]')) { S.cal = S.cal || 'month'; draw(); const h = $('#evpList h2'); if (h) { h.tabIndex = -1; h.focus(); } }
256
+ else if (b.matches('[data-evp-view]')) { S.cal = b.dataset.evpView === 'week' ? 'week' : 'month'; draw(); }
257
+ else if (b.matches('[data-evp-list]')) { S.cal = null; draw(); }
258
+ else if (b.matches('[data-evp-week]')) { S.wk = addDays(S.wk || S.day || S.model.today, 7 * Number(b.dataset.evpWeek)); draw(); }
194
259
  else if (b.matches('[data-evp-month]')) { S.ym = shiftMonth(S.ym, Number(b.dataset.evpMonth)); draw(); }
195
260
  else if (b.matches('[data-evp-clear]')) { S.day = null; draw(); }
196
261
  else if (b.matches('[data-evp-add]')) addOpen();
197
262
  else if (b.matches('[data-evp-show]')) {
198
263
  const k = b.dataset.evpShow, on = new Set(S.show);
199
264
  if (on.has(k)) on.delete(k); else on.add(k);
200
- S.show = KINDS.filter((x) => on.has(x));
201
- store.set(SHOW_KEY, S.show.length === KINDS.length ? null : S.show.join(',') || 'none');
265
+ S.show = TYPES.filter((x) => on.has(x));
266
+ const off = TYPES.filter((x) => !on.has(x));
267
+ store.set(HIDE_KEY, off.length ? off.join(',') : null);
202
268
  draw();
203
269
  } else if (b.matches('.evp-dt')) { const i = b.querySelector('input'); if (i && typeof i.showPicker === 'function') { e.preventDefault(); try { i.showPicker(); } catch { i.focus(); } } }
204
270
  });
205
271
  document.addEventListener('change', (e) => { const i = e.target; if (i && i.matches && i.matches('[data-evp-date]')) redate(itemOf(i), i.value); });
206
272
  $('#evpAdd').addEventListener('submit', addSave);
207
273
  $('#evpAdd').addEventListener('keydown', (e) => { if (e.key === 'Escape') { e.currentTarget.reset(); e.currentTarget.hidden = true; } });
274
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && S.cal && !e.defaultPrevented && !document.querySelector('.cz-pop:not([hidden])')) { S.cal = null; draw(); } });
208
275
  document.addEventListener('visibilitychange', () => { if (document.visibilityState === 'visible' && S.model) load(); });
209
276
 
210
277
  load();
278
+ loadPick();
@@ -0,0 +1,172 @@
1
+ /* cozy-goals.css — Goals (initiative goals-place, slice 9 of the six-place navigation; boards 8, 13, 31, 32, 33). One container: the white panel;
2
+ * the North Star card and the table sit straight on it, the table is one card with a thin border. Colours are the cozy tokens (light and dark).
3
+ * The popup pages (pm/goals-open.js) use the popup's .pw classes (cozy-pop-work.css); their few extra rules are at the end. */
4
+ .gl-page .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
5
+ .gl { display: flex; flex-direction: column; gap: 12px; color: var(--cz-ink); }
6
+ .gl-bar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
7
+ .gl-ttl { font-size: var(--fs-panel); font-weight: var(--fw-strong); margin-right: 4px; }
8
+ .gl-sp { flex: 1; }
9
+ .gl-per { height: 30px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); color: var(--cz-ink2); white-space: nowrap; }
10
+ .gl-per[hidden] { display: none; }
11
+ .gl-per b { color: var(--cz-ink); font-weight: var(--fw-strong); }
12
+ .gl-per svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
13
+ .gl-mw { position: relative; display: inline-flex; }
14
+ .gl-fdot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 99px; background: var(--cz-blue); }
15
+ .gl-menu { position: absolute; top: 100%; right: 0; z-index: 30; margin-top: 6px; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair), 0 12px 32px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
16
+ .gl-menu[hidden] { display: none; }
17
+ .gl-menu button { all: unset; box-sizing: border-box; padding: 8px 12px; border-radius: 9px; font-size: var(--fs-body); color: var(--cz-ink); cursor: pointer; }
18
+ .gl-menu button:hover, .gl-menu button:focus-visible { background: var(--cz-well); }
19
+ .gl-menu button[aria-checked="true"] { font-weight: var(--fw-strong); }
20
+ .gl-menu button[aria-checked="true"]::after { content: " ✓"; color: var(--cz-blue); }
21
+ .gl-p { display: flex; flex-direction: column; gap: 10px; }
22
+ .gl-p + .gl-p { margin-top: 14px; }
23
+ .gl-ph2 { margin: 0 2px; font-size: var(--fs-section); font-weight: var(--fw-strong); }
24
+
25
+ /* the North Star: dashed while it is a draft or not set, a thin line once it is set */
26
+ .gl-ns { display: flex; align-items: center; gap: 16px; border: 1.5px dashed var(--cz-ink3); border-radius: 20px; padding: 10px 20px; background: var(--cz-card); }
27
+ .gl-ns.set { border: 1px solid var(--cz-hair); }
28
+ .gl-ns .t { flex: 1; min-width: 0; }
29
+ .gl-ns .k { font-size: var(--fs-meta); color: var(--cz-ink3); }
30
+ .gl-ns b { display: block; font-size: var(--fs-panel); line-height: 26px; font-weight: var(--fw-strong); letter-spacing: -.01em; }
31
+ .gl-ns p { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
32
+ .gl-mark { width: 26px; height: 26px; border-radius: 9px; background: var(--cz-bluebg); color: var(--cz-blueink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
33
+ .gl-mark svg, .gl-go svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
34
+ .gl-go { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-blueink); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; cursor: pointer; }
35
+ .gl-go:hover { background: var(--cz-well); }
36
+ .gl-go:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
37
+
38
+ /* the table: Objective › Key result (Actual / target, Left) › Levers › Initiative */
39
+ .gl-card { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 20px; overflow: hidden; }
40
+ .gl-hd, .gl-ob { display: grid; grid-template-columns: 104px minmax(0, 3.3fr) minmax(0, .62fr) minmax(0, 1.1fr); }
41
+ .gl-hd { background: var(--cz-well); font-size: var(--fs-meta); color: var(--cz-ink3); }
42
+ .gl-hd > span { padding: 7px 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
43
+ .gl-hd > span:nth-child(n+3)::before { content: "›"; color: var(--cz-ink3); font-size: var(--fs-section); margin-left: -4px; }
44
+ .gl-hd > span.gl-kh { display: grid; grid-template-columns: minmax(0, 1fr) 112px 78px; gap: 8px; }
45
+ .gl-ob { border-top: 1px solid var(--cz-hair); grid-auto-rows: minmax(42px, auto); }
46
+ /* where a cell sits in its objective: gl-rN starts at key result N, gl-sN spans N of them (no inline style, the conformance gate R28-1) */
47
+ .gl-ob > .gl-r1 { grid-row-start: 1; }
48
+ .gl-ob > .gl-r2 { grid-row-start: 2; }
49
+ .gl-ob > .gl-r3 { grid-row-start: 3; }
50
+ .gl-ob > .gl-r4 { grid-row-start: 4; }
51
+ .gl-ob > .gl-r5 { grid-row-start: 5; }
52
+ .gl-ob > .gl-r6 { grid-row-start: 6; }
53
+ .gl-ob > .gl-r7 { grid-row-start: 7; }
54
+ .gl-ob > .gl-r8 { grid-row-start: 8; }
55
+ .gl-ob > .gl-r9 { grid-row-start: 9; }
56
+ .gl-ob > .gl-r10 { grid-row-start: 10; }
57
+ .gl-ob > .gl-r11 { grid-row-start: 11; }
58
+ .gl-ob > .gl-r12 { grid-row-start: 12; }
59
+ .gl-ob > .gl-r13 { grid-row-start: 13; }
60
+ .gl-ob > .gl-r14 { grid-row-start: 14; }
61
+ .gl-ob > .gl-r15 { grid-row-start: 15; }
62
+ .gl-ob > .gl-r16 { grid-row-start: 16; }
63
+ .gl-ob > .gl-r17 { grid-row-start: 17; }
64
+ .gl-ob > .gl-r18 { grid-row-start: 18; }
65
+ .gl-ob > .gl-r19 { grid-row-start: 19; }
66
+ .gl-ob > .gl-r20 { grid-row-start: 20; }
67
+ .gl-ob > .gl-s1 { grid-row-end: span 1; }
68
+ .gl-ob > .gl-s2 { grid-row-end: span 2; }
69
+ .gl-ob > .gl-s3 { grid-row-end: span 3; }
70
+ .gl-ob > .gl-s4 { grid-row-end: span 4; }
71
+ .gl-ob > .gl-s5 { grid-row-end: span 5; }
72
+ .gl-ob > .gl-s6 { grid-row-end: span 6; }
73
+ .gl-ob > .gl-s7 { grid-row-end: span 7; }
74
+ .gl-ob > .gl-s8 { grid-row-end: span 8; }
75
+ .gl-ob > .gl-s9 { grid-row-end: span 9; }
76
+ .gl-ob > .gl-s10 { grid-row-end: span 10; }
77
+ .gl-ob > .gl-s11 { grid-row-end: span 11; }
78
+ .gl-ob > .gl-s12 { grid-row-end: span 12; }
79
+ .gl-ob > .gl-s13 { grid-row-end: span 13; }
80
+ .gl-ob > .gl-s14 { grid-row-end: span 14; }
81
+ .gl-ob > .gl-s15 { grid-row-end: span 15; }
82
+ .gl-ob > .gl-s16 { grid-row-end: span 16; }
83
+ .gl-ob > .gl-s17 { grid-row-end: span 17; }
84
+ .gl-ob > .gl-s18 { grid-row-end: span 18; }
85
+ .gl-ob > .gl-s19 { grid-row-end: span 19; }
86
+ .gl-ob > .gl-s20 { grid-row-end: span 20; }
87
+ .gl-ob > div { padding: 4px 12px; min-width: 0; font-size: var(--fs-row); line-height: var(--lh-row); }
88
+ .gl-ob > .gl-o { grid-column: 1; display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
89
+ .gl-ob > .gl-kc { grid-column: 2; padding: 0 12px; display: flex; align-items: stretch; border-left: 1px solid var(--cz-hair); }
90
+ .gl-ob > .gl-lv { grid-column: 3; border-left: 1px solid var(--cz-hair); }
91
+ .gl-ob > .gl-in { grid-column: 4; border-left: 1px solid var(--cz-hair); }
92
+ .gl-ob.gl-row1 > .gl-wide { grid-column: 2 / span 2; border-left: 1px solid var(--cz-hair); display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-top: 10px; padding-bottom: 10px; }
93
+ .gl-wide b { font-weight: var(--fw-row); }
94
+ .gl-wide span { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
95
+ .gl-o b { font-weight: var(--fw-strong); }
96
+ .gl-o span { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
97
+ .gl-o span.rk { color: var(--cz-risk); }
98
+ .gl-o span.late { color: var(--cz-late); }
99
+ .gl-kr { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 112px 78px; align-items: center; gap: 8px; border-top: 1px solid var(--cz-hair); padding: 1px 6px; margin: 0 -6px; border-radius: 10px; cursor: pointer; }
100
+ .gl-kr.f { border-top-color: transparent; }
101
+ .gl-kr:hover { background: var(--cz-well); }
102
+ .gl-kr:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
103
+ .gl-kr .n { min-width: 0; font-size: var(--fs-row); display: flex; align-items: center; gap: 10px; }
104
+ .gl-kr .n > span { min-width: 0; display: block; }
105
+ .gl-kr .n i { font-style: normal; color: var(--cz-ink3); margin-right: 6px; font-size: var(--fs-meta); }
106
+ .gl-kr .n small { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
107
+ .gl-kr .a { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
108
+ .gl-kr .a b { font-weight: var(--fw-row); color: var(--cz-ink); font-size: var(--fs-row); }
109
+ .gl-kr .a.risk b { color: var(--cz-risk); }
110
+ .gl-kr .a.late b { color: var(--cz-late); }
111
+ .gl-kr .l { font-size: var(--fs-meta); color: var(--cz-ink2); white-space: nowrap; }
112
+ .gl-ph { color: var(--cz-ink3); opacity: .5; }
113
+ .gl-d { width: 10px; height: 10px; border-radius: 99px; background: var(--cz-dot-q); display: block; flex: none; }
114
+ .gl-d.ok { background: var(--cz-dot-ok); }
115
+ .gl-d.rk { background: var(--cz-dot-risk); }
116
+ .gl-d.rd { background: var(--cz-dot-red); }
117
+ .gl-lv { font-size: var(--fs-meta); color: var(--cz-ink3); display: flex; flex-direction: column; gap: 6px; justify-content: center; }
118
+ .gl-lv b { font-weight: var(--fw-row); color: var(--cz-ink); font-size: var(--fs-row); display: block; }
119
+ .gl-lv span.risk { color: var(--cz-risk); }
120
+ .gl-lv span.late { color: var(--cz-late); }
121
+ .gl-in { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
122
+ .gl-ini { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; margin: 0 -6px; border-radius: 10px; cursor: pointer; }
123
+ .gl-ini:hover { background: var(--cz-well); }
124
+ .gl-ini:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
125
+ .gl-ini b { font-weight: var(--fw-row); }
126
+ .gl-ini span { font-size: var(--fs-meta); color: var(--cz-ink3); display: flex; align-items: center; gap: 6px; line-height: var(--lh-meta); }
127
+ .gl-ini span.late { color: var(--cz-late); }
128
+ .gl-dm { width: 9px; height: 9px; transform: rotate(45deg); border: 1.8px solid var(--cz-ink3); border-radius: 2px; display: inline-block; flex: none; }
129
+ .gl-dm.rd { border-color: var(--cz-dot-red); }
130
+ .gl-n { margin: 4px 4px 0; font-size: var(--fs-meta); color: var(--cz-ink3); }
131
+ .gl-n[hidden] { display: none; }
132
+ .gl-n a { color: inherit; }
133
+ .gl-none { padding: 22px 18px; color: var(--cz-ink3); font-size: var(--fs-body); margin: 0; }
134
+ .gl-sk { display: flex; flex-direction: column; gap: 10px; }
135
+ .gl-sk i { display: block; height: 42px; border-radius: 14px; background: var(--cz-well); }
136
+ .gl-sk i:first-child { height: 74px; }
137
+
138
+ /* the popup pages (boards 31, 32, 33) */
139
+ .gl-pg .gl-top p { margin: 4px 0 0; color: var(--cz-ink2); }
140
+ .gl-pg .gl-top.gl-set { border-color: var(--cz-hair); }
141
+ .gl-fs { display: flex; flex-direction: column; }
142
+ .gl-f { border-top: 1px solid var(--cz-hair); padding: 10px 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-row); }
143
+ .gl-f:first-child { border-top: 0; }
144
+ .gl-f small, .gl-f span { font-size: var(--fs-meta); color: var(--cz-ink3); }
145
+ .gl-f b { font-weight: var(--fw-strong); }
146
+ .gl-src .gl-srcv { display: inline-flex; align-items: center; gap: 12px; flex: none; margin-left: 12px; }
147
+ .gl-src small { font-size: var(--fs-meta); }
148
+ .gl-src small.grey { color: var(--cz-ink3); }
149
+ .gl-src small.warn { color: var(--cz-late); }
150
+ .gl-src svg { color: var(--cz-ink3); }
151
+ .gl-sg { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--cz-hair); padding-top: 12px; }
152
+ .gl-sg > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
153
+ .gl-sg b { font-weight: var(--fw-strong); }
154
+ .gl-sg span { font-size: var(--fs-meta); color: var(--cz-ink3); }
155
+
156
+ @media (max-width: 900px) {
157
+ .gl-hd, .gl-ob { grid-template-columns: 88px minmax(0, 1fr) minmax(0, .9fr); }
158
+ .gl-hd > span:nth-child(3), .gl-ob > .gl-lv { display: none; }
159
+ .gl-ob > .gl-in { grid-column: 3; }
160
+ .gl-hd > span.gl-kh, .gl-kr { grid-template-columns: minmax(0, 1fr) 84px; }
161
+ .gl-hd > span.gl-kh > span:nth-child(3), .gl-kr .l { display: none; }
162
+ }
163
+ @media (max-width: 760px) {
164
+ .gl-bar { flex-wrap: wrap; }
165
+ .gl-ttl { display: none; }
166
+ .gl-per span { display: none; }
167
+ .gl-hd { display: none; }
168
+ .gl-ob, .gl-ob.gl-row1 { display: flex; flex-direction: column; }
169
+ .gl-ob > div, .gl-ob > .gl-kc, .gl-ob > .gl-in, .gl-ob.gl-row1 > .gl-wide { border-left: 0; padding: 4px 14px; }
170
+ .gl-kr { grid-template-columns: minmax(0, 1fr) auto; }
171
+ .gl-ns { padding: 10px 14px; }
172
+ }