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
@@ -1,36 +1,125 @@
1
- /* cozy-library.css — Library (initiative library-place, slice 7 of the six-place navigation; board StLibrary). One container: the white panel;
2
- * the table is one card with a thin border; the title row's controls sit straight on the panel. Colours are the cozy tokens (light and dark). */
1
+ /* cozy-library.css — Library (initiative library-place; slice 7 of the six-place navigation, Library round 2; board StLibrary). One container:
2
+ * the white panel; the catalogue is one card with a thin border and set column widths (Name up to 560 px), so a wide screen does not stretch
3
+ * the Name; at 1600 px and wider the record preview stands at its right. The filter chips are the product chip's shape (cozy-pick.css).
4
+ * Colours are the cozy tokens (light and dark). */
3
5
  .lb-page .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
4
6
  .lb-bar { display: flex; align-items: center; gap: 8px; min-height: 44px; }
5
- .lb-find { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; width: 300px; max-width: 46vw; padding: 0 14px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); box-sizing: border-box; flex: none; }
7
+ .lb-fl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
8
+ .lb-chip.on, .lb-fl .scp-chip:not([aria-label$=": all"]) { background: var(--cz-bluebg); color: var(--cz-blueink); }
9
+ .lb-chip .ppk-nmc em { font-style: normal; color: var(--cz-ink3); }
10
+ .lb-chip svg, .lb-ib svg, .lb-sg svg, .lb-s svg, .lb-fx svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
11
+ .lb-find { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; width: 380px; max-width: 46vw; padding: 0 14px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); box-sizing: border-box; flex: none; }
6
12
  .lb-find svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
7
13
  .lb-find input { all: unset; flex: 1; min-width: 0; font: inherit; font-size: var(--fs-body); color: var(--cz-ink); }
14
+ .lb-find input:focus, .lb-find input:focus-visible { outline: none; box-shadow: none; }
8
15
  .lb-find input::placeholder { color: var(--cz-ink3); }
9
16
  .lb-find input::-webkit-search-cancel-button { cursor: pointer; }
10
17
  .lb-find:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
11
- .lb-t { border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; font-size: var(--fs-body); color: var(--cz-ink); }
12
- .lb-r { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 210px) minmax(120px, 230px) 110px; align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); }
18
+ .lb-tune svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
19
+ .lb-hid { margin: 8px 4px 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
20
+ .lb-hid:empty { display: none; }
21
+ .lb-hid button { all: unset; cursor: pointer; color: var(--cz-blueink); font-weight: var(--fw-strong); }
22
+ .lb-hid button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
23
+
24
+ /* the catalogue: set column widths */
25
+ .lb-wrap { display: flex; align-items: flex-start; gap: 20px; margin-top: 12px; }
26
+ .lb-main { flex: 0 1 auto; min-width: 0; max-width: 100%; }
27
+ .lb-t { width: fit-content; max-width: 100%; border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); overflow: hidden; font-size: var(--fs-body); color: var(--cz-ink); }
28
+ .lb-r { --lb-cols: 28px minmax(220px, 560px) 140px 130px minmax(120px, 230px) 110px 96px 76px;
29
+ display: grid; grid-template-columns: var(--lb-cols); align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); box-sizing: border-box; }
13
30
  .lb-r:last-child { box-shadow: none; }
14
- button.lb-r { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 210px) minmax(120px, 230px) 110px; align-items: center; column-gap: 12px; min-height: 46px; padding: 0 18px; width: 100%; cursor: pointer; box-shadow: inset 0 -1px 0 var(--cz-hair); }
15
- button.lb-r:hover { background: var(--cz-well); }
16
- button.lb-r:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
31
+ .lb-i { cursor: pointer; }
32
+ .lb-i:hover { background: var(--cz-well); }
33
+ .lb-i.on { background: var(--cz-bluebg); }
34
+ .lb-i.sub .n { padding-left: 18px; }
35
+ .lb-i.sub .n .lb-nb { font-weight: var(--fw-regular); }
17
36
  .lb-h { min-height: 38px; background: var(--cz-well2, var(--cz-well)); font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink2); }
18
37
  .lb-g { min-height: 34px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink3); background: var(--cz-well); }
19
- .lb-g > div { grid-column: 1 / -1; }
38
+ .lb-g > * { grid-column: 1 / -1; }
39
+ .lb-g em, .lb-s em { font-style: normal; font-weight: var(--fw-regular); margin-left: 6px; }
40
+ .lb-s { background: var(--cz-card); }
41
+ .lb-s button { all: unset; grid-column: 1 / -1; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--cz-ink2); font-size: var(--fs-body); }
42
+ .lb-s button b { font-weight: var(--fw-strong); color: var(--cz-ink); }
43
+ .lb-s button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 6px; }
20
44
  .lb-r .ic { color: var(--cz-ink3); display: grid; place-items: center; }
21
- .lb-r .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
22
- .lb-r .n { font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
45
+ .lb-r .ic svg, .lb-mr .ic svg, .lb-pvh .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
46
+ .lb-r .n { display: flex; align-items: center; gap: 6px; min-width: 0; }
47
+ .lb-nb { all: unset; cursor: pointer; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
48
+ .lb-nb:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
49
+ .lb-old { all: unset; cursor: pointer; flex: none; padding: 1px 8px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
50
+ .lb-old[aria-expanded="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
51
+ .lb-ib { all: unset; cursor: pointer; flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--cz-ink3); }
52
+ .lb-ib:hover { background: var(--cz-well); color: var(--cz-ink); }
53
+ .lb-ib:focus-visible, .lb-old:focus-visible, .lb-sg:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
54
+ .lb-sp { color: var(--cz-blueink); width: 22px; height: 22px; }
55
+ .lb-nm input { all: unset; flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--cz-well); box-shadow: inset 0 0 0 1px var(--cz-hair); font-size: var(--fs-body); font-weight: var(--fw-strong); color: var(--cz-ink); }
56
+ .lb-sg { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--cz-blueink); }
57
+ .lb-sg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
23
58
  .lb-r .c { color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
24
59
  .lb-r .c.q { color: var(--cz-ink3); }
25
- .lb-n { margin: 0 6px; font-size: var(--fs-meta); color: var(--cz-ink3); }
60
+ .lb-n { margin: 8px 6px 0; font-size: var(--fs-meta); color: var(--cz-ink3); }
26
61
  .lb-sk .lb-r i { display: block; height: 10px; border-radius: 6px; background: var(--cz-well); width: 70%; }
27
62
  .lb-none { padding: 28px 18px; color: var(--cz-ink3); font-size: var(--fs-body); }
63
+
64
+ /* search by meaning: under the title matches */
65
+ .lb-mh { margin: 22px 4px 4px; font-size: var(--fs-section); font-weight: var(--fw-strong); color: var(--cz-ink); line-height: var(--lh-section); }
66
+ .lb-mh em { font-style: normal; color: var(--cz-ink3); font-weight: var(--fw-regular); margin-left: 4px; }
67
+ .lb-mq { margin: 6px 4px; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
68
+ .lb-m { width: min(100%, 980px); }
69
+ .lb-mr { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 12px 18px; box-shadow: inset 0 -1px 0 var(--cz-hair); cursor: pointer; }
70
+ .lb-mr:last-child { box-shadow: none; }
71
+ .lb-mr:hover { background: var(--cz-well); }
72
+ .lb-mr .ic { color: var(--cz-ink3); padding-top: 2px; }
73
+ .lb-mr small { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
74
+ .lb-mr p { margin: 4px 0 0; color: var(--cz-ink2); line-height: var(--lh-body); }
75
+ .lb-mr p b { color: var(--cz-ink); font-weight: var(--fw-strong); }
76
+
77
+ /* the menus: Kind (families open to their kinds), State, Group by */
78
+ .lb-cw { position: relative; display: inline-flex; flex: none; }
79
+ .lb-menu { position: absolute; left: 0; top: calc(100% + 8px); }
80
+ .lb-cwr .lb-menu { left: auto; right: 0; }
81
+ .lb-menu .ppk-mi { min-height: 44px; }
82
+ .lb-menu .ppk-nm { flex-direction: row; align-items: baseline; gap: 8px; }
83
+ .lb-menu .ppk-nm em { font-weight: var(--fw-regular); }
84
+ .lb-fam { display: flex; align-items: center; }
85
+ .lb-fam .ppk-mi { flex: 1; }
86
+ .lb-fx { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--cz-ink3); }
87
+ .lb-fx:hover, .lb-fx:focus-visible { background: var(--cz-well); }
88
+ .lb-kmi { padding-left: 26px; }
89
+ .lb-pl { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
90
+ .lb-pl button { all: unset; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--cz-ink2); background: var(--cz-well); }
91
+ .lb-pl button.on { background: var(--cz-ink); color: var(--cz-card); font-weight: var(--fw-strong); }
92
+ .lb-pl button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
93
+ .lb-gm { width: 300px; }
94
+
95
+ /* the record preview: 1600 px and wider */
96
+ .lb-pv { flex: 0 0 360px; position: sticky; top: 12px; max-height: calc(100vh - 120px); overflow: auto; box-sizing: border-box; padding: 16px 18px; border-radius: 16px; background: var(--cz-card); box-shadow: inset 0 0 0 1px var(--cz-hair); color: var(--cz-ink); font-size: var(--fs-body); }
97
+ .lb-pv[hidden] { display: none; }
98
+ .lb-pvh { display: flex; align-items: flex-start; gap: 8px; }
99
+ .lb-pvh .ic { color: var(--cz-ink3); padding-top: 3px; }
100
+ .lb-pvh h2 { flex: 1; margin: 0; font-size: var(--fs-panel); font-weight: var(--fw-strong); line-height: var(--lh-panel); }
101
+ .lb-pv dl { margin: 12px 0 0; display: grid; gap: 6px; }
102
+ .lb-pv dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
103
+ .lb-pv dt { color: var(--cz-ink3); font-size: var(--fs-meta); line-height: var(--lh-body); }
104
+ .lb-pv dd { margin: 0; color: var(--cz-ink); overflow-wrap: anywhere; }
105
+ .lb-pv h3 { margin: 16px 0 6px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); }
106
+ .lb-pvl p { margin: 0 0 6px; color: var(--cz-ink2); line-height: var(--lh-body); }
107
+ .lb-pv ul { margin: 0; padding-left: 18px; color: var(--cz-ink2); }
108
+ .lb-pv li { margin: 0 0 4px; }
109
+ .lb-pv li .lb-nb { font-weight: var(--fw-regular); white-space: normal; }
110
+ .lb-pv small { color: var(--cz-ink3); font-size: var(--fs-meta); }
111
+ @media (max-width: 1599px) { .lb-pv { display: none; } }
112
+
113
+ @media (max-width: 1180px) {
114
+ .lb-r { --lb-cols: 28px minmax(180px, 1fr) 120px 110px minmax(100px, 170px) 76px; }
115
+ .lb-r > :nth-child(6), .lb-r > :nth-child(7) { display: none; }
116
+ }
28
117
  @media (max-width: 760px) {
29
118
  .lb-bar { flex-wrap: wrap; }
30
- .lb-bar .cz-seg { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
31
- .lb-bar .cz-seg button { flex: none; white-space: nowrap; }
119
+ .lb-fl { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
32
120
  .lb-find { order: 3; width: 100%; max-width: none; margin-left: 0; }
33
- .lb-r, button.lb-r { grid-template-columns: 24px minmax(0, 1fr) 72px; }
34
- .lb-r > :nth-child(3), .lb-r > :nth-child(4) { display: none; }
35
- .lb-g { grid-template-columns: 1fr; }
121
+ .lb-t { width: 100%; }
122
+ .lb-r { --lb-cols: 24px minmax(0, 1fr) 72px; }
123
+ .lb-menu, .lb-cwr .lb-menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 80vh; border-radius: 28px 28px 0 0; padding: 18px 12px 28px; }
124
+ .lb-r > :nth-child(n+3):not(:last-child) { display: none; }
36
125
  }
@@ -37,7 +37,7 @@ import { mountToastFaces, loadPrefs } from './cozy-adler.js';
37
37
  import { pmPost } from './http.js'; // Adler (batch 16 item 2): every toast carries his S face; Settings > Adler is read once
38
38
 
39
39
  /* The six places (slice 1). A place shows once it has an href: Events, Library and Routine get theirs when their slice ships. Until then
40
- * Today is today.html (slice 5; Home before it), Work is the Board and Goals is Intelligence; the keys stay the pages' own (home, board, insights). */
40
+ * Today is today.html (slice 5; Home before it), Work is the Board and Goals is premium-goals.html (slice 9; Intelligence before it); the keys stay the pages' own (home, board, insights). */
41
41
  const RAIL_ICON = {
42
42
  today: 'M12 8a4 4 0 1 0 0 8a4 4 0 1 0 0-8M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4',
43
43
  work: 'M5.5 5h13a1.5 1.5 0 0 1 0 3h-13a1.5 1.5 0 0 1 0-3zM5.5 11h8a1.5 1.5 0 0 1 0 3h-8a1.5 1.5 0 0 1 0-3zM5.5 17h11a1.5 1.5 0 0 1 0 3h-11a1.5 1.5 0 0 1 0-3z',
@@ -49,7 +49,7 @@ const RAIL_ICON = {
49
49
  const ALL_PLACES = [
50
50
  { key: 'home', label: 'Today', href: '/today.html', d: RAIL_ICON.today }, // slice 5: Today is its own page (Home with data-today)
51
51
  { key: 'board', label: 'Work', href: '/premium-board.html', d: RAIL_ICON.work },
52
- { key: 'insights', label: 'Goals', href: '/premium-intelligence.html', d: RAIL_ICON.goals },
52
+ { key: 'insights', label: 'Goals', href: '/premium-goals.html', d: RAIL_ICON.goals }, // slice 9 (goals-place): Goals is its own page; Intelligence stays for charts
53
53
  { key: 'events', label: 'Events', href: '/premium-events.html', d: RAIL_ICON.events },
54
54
  { key: 'library', label: 'Library', href: '/premium-library.html', d: RAIL_ICON.library }, // slice 7 (library-place)
55
55
  { key: 'routine', label: 'Routine', href: '/premium-routine.html', d: RAIL_ICON.routine }, // slice 8 shipped: Routine is a place
@@ -138,7 +138,6 @@ export function mountNav(here, doc = document, opts = {}) {
138
138
  addCss(doc);
139
139
  { const u = new URLSearchParams(location.search).get('theme'); setTheme(u || themePick(), doc, { keep: false }); } // ?theme= shows that theme and is not kept
140
140
  if (typeof matchMedia === 'function') { const mq = matchMedia('(prefers-color-scheme: dark)'); const f = () => { if (themePick() === 'auto') setTheme('auto', doc); }; if (mq.addEventListener) mq.addEventListener('change', f); }
141
- try { if (localStorage.getItem('pmos.cz.viewer') === 'popup') doc.body.classList.add('ev-vw-popup'); } catch { /* no storage */ }
142
141
  const w = doc.createElement('div'); w.className = 'cz-fabw'; w.id = 'czNav';
143
142
  w.innerHTML = '<div class="ev-scrim" id="czScrim" hidden></div>'
144
143
  + `<nav class="cz-fabm ev-menu" id="czMenu" aria-label="Menu" hidden></nav>`
@@ -42,3 +42,6 @@
42
42
  /* the chip with names (Work and Goals, slice 1): the full product name, then "+2" in grey */
43
43
  .ppk-nmc { padding: 0 2px 0 9px; color: var(--cz-ink); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
44
44
  .ppk-nmc em { font-style: normal; color: var(--cz-ink3); }
45
+ /* pm/scope-chip.js: the menu's three parts (Products, Programs, Projects) */
46
+ .scp-h { margin: 8px 10px 4px; font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: .06em; text-transform: uppercase; color: var(--cz-ink3); }
47
+ .scp-menu:not(.sheet) { left: var(--fr-menu-x, 12px); top: var(--fr-menu-y, 64px); }
@@ -22,7 +22,9 @@
22
22
  .pw-det:hover { color: var(--cz-ink); background: var(--cz-well2); }
23
23
  .pw-sum { display: flex; align-items: flex-start; gap: 6px; }
24
24
  .pw-sum-t { margin: 0; flex: 1; font-size: var(--fs-row); }
25
- .pw-spark { color: var(--cz-blue); display: inline-flex; margin-top: 4px; }
25
+ .pw-spark { color: var(--cz-blue); display: inline-flex; vertical-align: -2px; margin-right: 6px; }
26
+ /* folded (board 20): the one ✦ line holds at most two lines of text */
27
+ .pw-sum.fold .pw-sum-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
26
28
  .pw-lead { cursor: text; border-radius: 4px; }
27
29
  .pw-lead:hover { background: var(--cz-card); box-shadow: 0 0 0 3px var(--cz-card); }
28
30
  .pw-sumed { width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-row); color: var(--cz-ink); background: var(--cz-card); border: 1px solid var(--cz-blue); border-radius: 10px; padding: 8px 10px; resize: vertical; }
@@ -46,6 +48,12 @@
46
48
  .pw-fv { display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 7px 12px; border: 0; background: none; font: inherit; color: var(--cz-ink); text-align: left; overflow: hidden; text-overflow: ellipsis; }
47
49
  button.pw-fv { cursor: pointer; }
48
50
  button.pw-fv:hover { background: var(--cz-well); }
51
+ /* Product · Program in one cell (board 25), each its own press */
52
+ .pw-f dd:has(.pw-fsep) { display: flex; align-items: center; min-width: 0; }
53
+ .pw-f dd:has(.pw-fsep) .pw-fv { width: auto; flex: 0 1 auto; min-width: 0; }
54
+ .pw-f dd:has(.pw-fsep) .pw-fv:first-child { padding-right: 0; }
55
+ .pw-f dd:has(.pw-fsep) .pw-fv:last-child { padding-left: 0; }
56
+ .pw-fsep { flex: none; color: var(--cz-ink3); white-space: pre; }
49
57
  @container (max-width: 620px) { .pw-facts { grid-template-columns: 1fr; } .pw-f:nth-child(even) { border-left: 0; } .pw-f:nth-child(2) { border-top: 1px solid var(--cz-hair); } }
50
58
 
51
59
  /* a section and its card */
@@ -55,18 +63,27 @@ button.pw-fv:hover { background: var(--cz-well); }
55
63
  .pw-card { border: 1px solid var(--cz-hair); border-radius: 14px; overflow: clip; background: var(--cz-card); }
56
64
 
57
65
  /* the breakdown: rows on the left, the timeline on the right (boards 3, 20) */
58
- .pw-wbs { --pw-tl: 36%; }
59
- .pw-tr { display: grid; grid-template-columns: minmax(0, 1fr) 112px 168px var(--pw-tl); align-items: stretch; min-height: 40px; border-top: 1px solid var(--cz-hair); }
60
- .pw-wbs.nost .pw-tr { grid-template-columns: minmax(0, 1fr) 168px var(--pw-tl); }
61
- .pw-wbs.nodt .pw-tr { grid-template-columns: minmax(0, 1fr) 112px var(--pw-tl); }
62
- .pw-wbs.nost.nodt .pw-tr { grid-template-columns: minmax(0, 1fr) var(--pw-tl); }
66
+ /* the timeline's width (round 3 point 1): the grip sets --pw-tlw; the item columns keep 220 px (the name), the timeline 240 px. Status and Date
67
+ * give way first as the timeline grows (minmax(0, …)), so the name always shows */
68
+ .pw-wbs { --pw-tl: clamp(240px, var(--pw-tlw, 36%), calc(100% - 220px)); position: relative; }
69
+ .pw-tr { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 112px) minmax(0, 168px) var(--pw-tl); align-items: stretch; min-height: 40px; border-top: 1px solid var(--cz-hair); }
70
+ .pw-wbs.nost .pw-tr { grid-template-columns: minmax(220px, 1fr) minmax(0, 168px) var(--pw-tl); }
71
+ .pw-wbs.nodt .pw-tr { grid-template-columns: minmax(220px, 1fr) minmax(0, 112px) var(--pw-tl); }
72
+ .pw-wbs.nost.nodt .pw-tr { grid-template-columns: minmax(220px, 1fr) var(--pw-tl); }
73
+ .pw-tlgrip { position: absolute; top: 0; bottom: 0; left: calc(100% - var(--pw-tl)); width: 13px; margin-left: -6px; z-index: 5; cursor: col-resize; touch-action: none; }
74
+ .pw-tlgrip i { position: absolute; left: 3px; top: 7px; width: 7px; height: 24px; border-radius: 4px; background: var(--cz-card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cz-ink3) 55%, transparent); }
75
+ .pw-tlgrip:hover i, .pw-tlgrip:focus-visible i { background: var(--cz-well2); }
76
+ .pw-tlgrip:hover::after, .pw-tlgrip:focus-visible::after { content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 1px; background: var(--cz-blue); }
77
+ .pw-tlgrip:focus-visible { outline: none; }
78
+ body.pw-drag, body.pw-drag * { cursor: col-resize !important; user-select: none; }
63
79
  .pw-wbs.notl .pw-tr { grid-template-columns: minmax(0, 1fr) 110px 160px; }
64
80
  .pw-wbs.notl.nost .pw-tr { grid-template-columns: minmax(0, 1fr) 160px; }
65
81
  .pw-wbs.notl.nodt .pw-tr { grid-template-columns: minmax(0, 1fr) 110px; }
66
82
  .pw-wbs.notl.nost.nodt .pw-tr { grid-template-columns: minmax(0, 1fr); }
67
- .pw-tr > span { display: flex; align-items: center; min-width: 0; padding: 0 10px; }
68
- .pw-th { border-top: 0; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-meta); min-height: 38px; position: sticky; top: 0; z-index: 1; }
83
+ .pw-tr > span { display: flex; align-items: center; min-width: 0; padding: 0 10px; overflow: hidden; }
84
+ .pw-th { border-top: 0; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-meta); min-height: 38px; position: sticky; top: 0; z-index: 4; }
69
85
  .pw-th > span:first-child { padding-left: 16px; }
86
+ .pw-th > .pw-tl { background: var(--cz-well); }
70
87
  .pw-it { padding-left: 14px !important; gap: 6px; }
71
88
  .pw-st, .pw-dt { color: var(--cz-ink2); font-size: var(--fs-meta); white-space: nowrap; }
72
89
  .pw-dt.warn { color: var(--cz-late); }
@@ -105,28 +122,32 @@ button.pw-fv:hover { background: var(--cz-well); }
105
122
  .pw-tl { position: relative; border-left: 1px solid var(--cz-hair); overflow: hidden; min-height: 40px; }
106
123
  .pw-tlh { overflow: visible; display: flex; align-items: center; gap: 4px; padding: 0 6px; }
107
124
  .pw-tlh .pw-ib, .pw-span { position: relative; z-index: 2; }
108
- .pw-span { display: inline-flex; align-items: center; gap: 2px; border: 0; border-radius: 6px; background: var(--cz-card); color: var(--cz-ink); font: inherit; font-size: var(--fs-meta); padding: 2px 6px; cursor: pointer; box-shadow: 0 0 0 1px var(--cz-hair); }
125
+ .pw-span { flex: none; height: 26px; display: inline-flex; align-items: center; gap: 2px; border: 0; border-radius: 6px; background: var(--cz-card); color: var(--cz-ink); font: inherit; font-size: var(--fs-meta); padding: 2px 6px; cursor: pointer; box-shadow: 0 0 0 1px var(--cz-hair); }
109
126
  .pw-mk { position: absolute; top: 50%; transform: translate(-1px, -50%); font-size: var(--fs-meta); color: var(--cz-ink2); padding-left: 6px; border-left: 1px solid var(--cz-hair); line-height: 18px; pointer-events: none; }
110
- .pw-tday { position: absolute; top: 4px; transform: translateX(-50%); font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-onsolid); background: var(--cz-solid); padding: 0 6px; border-radius: 99px; line-height: 16px; pointer-events: none; z-index: 1; }
127
+ .pw-tday { position: absolute; top: 50%; margin-top: -8px; transform: translateX(-50%); font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-onsolid); background: var(--cz-solid); padding: 0 6px; border-radius: 99px; line-height: 16px; pointer-events: none; z-index: 1; }
111
128
  .pw-now { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--cz-ink2); transform: translateX(-.75px); pointer-events: none; }
112
- .pw-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 99px; background: var(--cz-c-d9dce1); overflow: hidden; }
113
- .pw-bar.t { height: 12px; margin-top: -6px; }
114
- .pw-bar.dot { min-width: 10px; }
115
- .pw-bar b { display: block; height: 100%; background: var(--cz-c-8c929b); }
116
- .pw-late { position: absolute; top: 50%; height: 3px; margin-top: -1.5px; background: var(--cz-late); border-radius: 2px; }
117
- .pw-late::after { content: ''; position: absolute; right: -3px; top: -2px; width: 7px; height: 7px; border-radius: 99px; background: var(--cz-late); }
118
- .pw-dia { position: absolute; top: 50%; width: 9px; height: 9px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); background: var(--cz-card); border: 1.5px solid var(--cz-late); }
119
129
  .pw-key { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; font-size: var(--fs-meta); color: var(--cz-ink2); }
120
130
  .pw-key span { display: inline-flex; align-items: center; gap: 6px; }
121
- .k-bar { width: 26px; height: 9px; border-radius: 99px; background: linear-gradient(90deg, var(--cz-c-8c929b) 50%, var(--cz-c-d9dce1) 50%); }
122
- .k-dia { width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--cz-late); }
131
+ /* the key, in the bars' own tones (ini-view.css iva-tb, iva-md; cozy-bar.css cb-gap) */
132
+ .k-tb { width: 22px; height: 10px; border-radius: 5px; background: var(--cz-card); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cz-ink3) 55%, var(--cz-card)); }
133
+ .k-tb.pr { background: color-mix(in srgb, var(--cz-blue) 82%, var(--cz-card)); box-shadow: none; }
134
+ .k-tb.dn { background: color-mix(in srgb, var(--cz-ink3) 30%, var(--cz-card)); box-shadow: none; }
135
+ .k-md { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; border: 2px solid var(--cz-ink2); box-sizing: border-box; }
136
+ .k-gap { width: 22px; height: 2px; background: color-mix(in srgb, var(--cz-ink3) 45%, var(--cz-card)); }
123
137
  .k-late { width: 22px; height: 3px; border-radius: 2px; background: var(--cz-late); }
124
138
 
125
139
  /* artefacts (board 21) */
126
- .pw-ar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 34px; border-top: 1px solid var(--cz-hair); padding: 0 16px; gap: 10px; }
127
- .pw-arts.nok .pw-ar { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
128
- .pw-arts.now .pw-ar { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
129
- .pw-arts.nok.now .pw-ar { grid-template-columns: minmax(0, 1fr); }
140
+ /* one row per Kind (round 3 point 16): Kind | Artefact | Version | Updated, with a width cap so no wide gap opens between them */
141
+ .pw-ar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 150px 110px; align-items: center; min-height: 34px; border-top: 1px solid var(--cz-hair); padding: 0 16px; gap: 12px; }
142
+ .pw-arts.now .pw-ar { grid-template-columns: 140px minmax(0, 1fr) 150px; }
143
+ .pw-ak { color: var(--cz-ink2); font-size: var(--fs-meta); font-weight: var(--fw-strong); }
144
+ .pw-av { color: var(--cz-ink2); font-size: var(--fs-meta); }
145
+ .pw-ver { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; font: inherit; color: var(--cz-ink2); padding: 2px 4px; margin-left: -4px; border-radius: 6px; cursor: pointer; }
146
+ .pw-ver:hover { background: var(--cz-well); color: var(--cz-ink); }
147
+ .pw-ear { min-height: 30px; }
148
+ .pw-ear .pw-an { font-weight: var(--fw-regular); color: var(--cz-ink2); }
149
+ .pw-amg { margin: 0; }
150
+ @container (max-width: 560px) { .pw-ar { grid-template-columns: 96px minmax(0, 1fr) 90px; } .pw-ar > span:nth-child(4) { display: none; } }
130
151
  .pw-ar.pw-th { border-top: 0; }
131
152
  .pw-ar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
132
153
  .pw-an { border: 0; background: none; font: inherit; font-weight: var(--fw-strong); color: var(--cz-ink); padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@@ -162,4 +183,42 @@ button.pw-fv:hover { background: var(--cz-well); }
162
183
  .pw-lead.ph::after { content: '.'; }
163
184
  .pw-facts .warn, .pw-fv .warn { color: var(--cz-late); }
164
185
  /* a narrow popup: the timeline gives way first (the hide button brings it back on a wider screen) */
165
- @container (max-width: 640px) { .pw-wbs .pw-tr { grid-template-columns: minmax(0, 1fr) 96px 120px !important; } .pw-wbs .pw-tl { display: none; } .pw-sugrow, .pw-add { grid-template-columns: minmax(0, 1fr) !important; } }
186
+ @container (max-width: 640px) { .pw-wbs .pw-tr { grid-template-columns: minmax(0, 1fr) 96px 120px !important; } .pw-wbs .pw-tl, .pw-tlgrip { display: none; } .pw-sugrow, .pw-add { grid-template-columns: minmax(0, 1fr) !important; } }
187
+
188
+ /* the Overview explains the initiative (round 3 point 10): three labelled lines, the status line, then PMOS suggests and Details */
189
+ .pw-ovh h3 { margin-right: 6px; }
190
+ .pw-ovh .pw-spark { margin-right: auto; }
191
+ .pw-ols { display: flex; flex-direction: column; gap: 6px; }
192
+ .pw-ol { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
193
+ .pw-ok { font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink2); }
194
+ .pw-ot { margin: 0; font-size: var(--fs-row); color: var(--cz-ink); }
195
+ .pw-otx { cursor: text; border-radius: 4px; }
196
+ .pw-otx:hover { background: var(--cz-card); box-shadow: 0 0 0 3px var(--cz-card); }
197
+ .pw-otx:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
198
+ .pw-osrc { border: 0; background: none; padding: 0; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink3); }
199
+ button.pw-osrc { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
200
+ button.pw-osrc:hover { color: var(--cz-ink2); }
201
+ .pw-ooff { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; vertical-align: middle; }
202
+ .pw-oq { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-meta); color: var(--cz-blueink, var(--cz-blue)); }
203
+ .pw-ostat { margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-row); color: var(--cz-ink2); }
204
+ @container (max-width: 520px) { .pw-ol { grid-template-columns: minmax(0, 1fr); gap: 0; } .pw-ooff { display: flex; margin: 4px 0 0; } }
205
+ /* a grid value wraps to two lines (a goal's name), never a cut-off key */
206
+ .pw-fv { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
207
+ .pw-f dt { height: 100%; box-sizing: border-box; }
208
+ .pw-fv.ro { cursor: default; }
209
+ /* two choices on a suggestion (round 3 point 13) */
210
+ .pw-chc { border: 0; border-radius: 999px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair) inset; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink); padding: 3px 10px; cursor: pointer; white-space: nowrap; }
211
+ .pw-chc:hover { background: var(--cz-well); }
212
+ /* Task or Milestone (round 3 point 2): the choice on top of the date popup, the add row's choice */
213
+ .hi-pop .pw-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--cz-well); margin-bottom: 8px; }
214
+ .hi-pop .pw-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink2); padding: 5px 10px; cursor: pointer; }
215
+ .hi-pop .pw-seg button[aria-checked="true"] { background: var(--cz-card); color: var(--cz-ink); font-weight: var(--fw-strong); box-shadow: 0 0 0 1px var(--cz-hair); }
216
+ .hi-pop .pw-jn { margin: 6px 0 0; color: var(--cz-ink3); }
217
+ .pw-addty { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink3); padding: 2px 8px; cursor: pointer; margin-right: 10px; }
218
+ .pw-addty:hover, .pw-addty.on { background: var(--cz-well); color: var(--cz-ink); }
219
+ /* a Details value that opens something reads in the link colour; a value read from the work stays plain (round 3 design check) */
220
+ button.pw-fv { color: var(--cz-blueink); }
221
+ button.pw-fv .grey { color: var(--cz-ink3); }
222
+ @media (hover: hover) { button.pw-fv:hover > span:first-child { text-decoration: underline; text-underline-offset: 2px; } }
223
+ /* When did this happen? under the status list (round 3 point 18) */
224
+ .hi-pop .pw-when { padding: 0 6px 4px; }