create-pmos 0.697.0 → 0.699.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.
- package/package.json +20 -20
- package/payload/KIT-VERSION +1 -1
- package/payload/design-system/ui/tokens.css +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +19 -0
- package/workspace/design-system/ui/tokens.css +1 -1
- package/workspace/design-token-reach.js +64 -6
- package/workspace/guide/cli.md +8 -0
- package/workspace/guide/layout.md +9 -0
- package/workspace/lib/design-cli.js +14 -2
- package/workspace/lib/design-drift.js +2 -0
- package/workspace/lib/design-swap.js +146 -0
- package/workspace/lib/design-system.js +7 -4
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-draft-keep.js +65 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/agenda-live.css +7 -7
- package/workspace/public/pm/bd-backlog.css +71 -71
- package/workspace/public/pm/bd-pin-card.css +2 -2
- package/workspace/public/pm/bd-pop-ds.css +1 -1
- package/workspace/public/pm/bd-publish.css +23 -23
- package/workspace/public/pm/bd-shared.css +22 -22
- package/workspace/public/pm/bd-work-ds.css +1 -1
- package/workspace/public/pm/bd-work.css +25 -25
- package/workspace/public/pm/c3-capture.css +3 -3
- package/workspace/public/pm/c3-initiatives.css +21 -21
- package/workspace/public/pm/components.css +585 -585
- package/workspace/public/pm/console3.css +304 -304
- package/workspace/public/pm/cozy-adler.css +6 -6
- package/workspace/public/pm/cozy-board.css +267 -267
- package/workspace/public/pm/cozy-buddy.css +1 -1
- package/workspace/public/pm/cozy-day-pick.css +7 -7
- package/workspace/public/pm/cozy-divider.css +2 -2
- package/workspace/public/pm/cozy-draft-keep.js +74 -0
- package/workspace/public/pm/cozy-ev.css +121 -121
- package/workspace/public/pm/cozy-events.css +22 -22
- package/workspace/public/pm/cozy-goals.css +3 -3
- package/workspace/public/pm/cozy-home-rows.css +50 -50
- package/workspace/public/pm/cozy-home.css +218 -218
- package/workspace/public/pm/cozy-insights.css +197 -197
- package/workspace/public/pm/cozy-lab.css +18 -18
- package/workspace/public/pm/cozy-library.css +1 -1
- package/workspace/public/pm/cozy-live-pill.css +4 -4
- package/workspace/public/pm/cozy-mtg-present.css +32 -32
- package/workspace/public/pm/cozy-nav.js +1 -0
- package/workspace/public/pm/cozy-onboard.css +22 -22
- package/workspace/public/pm/cozy-panel.css +24 -24
- package/workspace/public/pm/cozy-panels.css +4 -4
- package/workspace/public/pm/cozy-phone-rec.css +12 -12
- package/workspace/public/pm/cozy-phone-settings.css +4 -4
- package/workspace/public/pm/cozy-pick.css +7 -7
- package/workspace/public/pm/cozy-pop-work.css +56 -56
- package/workspace/public/pm/cozy-popup.css +25 -25
- package/workspace/public/pm/cozy-proto.css +44 -44
- package/workspace/public/pm/cozy-rec-now.css +23 -23
- package/workspace/public/pm/cozy-rec-present.css +18 -18
- package/workspace/public/pm/cozy-rec-tab.css +8 -8
- package/workspace/public/pm/cozy-reveal.css +14 -14
- package/workspace/public/pm/cozy-routine.css +29 -29
- package/workspace/public/pm/cozy-steps.css +10 -10
- package/workspace/public/pm/cozy-task-pop.css +8 -8
- package/workspace/public/pm/cozy-today-page.css +28 -28
- package/workspace/public/pm/cozy-today.css +165 -165
- package/workspace/public/pm/cozy-viewer.css +21 -21
- package/workspace/public/pm/cozy-vw-mtg.css +105 -105
- package/workspace/public/pm/cozy-vw-rp.css +66 -66
- package/workspace/public/pm/cozy-vw-shell.css +42 -42
- package/workspace/public/pm/cozy-vw.css +90 -90
- package/workspace/public/pm/cozy-xv.css +8 -8
- package/workspace/public/pm/cozy.css +24 -24
- package/workspace/public/pm/dash-view.css +23 -23
- package/workspace/public/pm/draft-keep.js +151 -0
- package/workspace/public/pm/hi-pop.css +29 -29
- package/workspace/public/pm/home-chat.js +1 -1
- package/workspace/public/pm/home-impact.css +10 -10
- package/workspace/public/pm/home-ini.css +34 -34
- package/workspace/public/pm/home-line.css +12 -12
- package/workspace/public/pm/impact.css +12 -12
- package/workspace/public/pm/ini-view.css +240 -240
- package/workspace/public/pm/intent.css +11 -11
- package/workspace/public/pm/komorebi.css +3 -3
- package/workspace/public/pm/load-shapes.css +10 -10
- package/workspace/public/pm/loose-props.css +17 -17
- package/workspace/public/pm/metric-drafts.css +10 -10
- package/workspace/public/pm/ms-suggest.css +12 -12
- package/workspace/public/pm/ov-view.css +10 -10
- package/workspace/public/pm/page-chat.css +1 -1
- package/workspace/public/pm/premium-vw-backlog.css +7 -7
- package/workspace/public/pm/premium-vw-cal.css +22 -22
- package/workspace/public/pm/premium-vw-copy.css +6 -6
- package/workspace/public/pm/premium-vw-doc.css +98 -98
- package/workspace/public/pm/premium-vw-guide.css +9 -9
- package/workspace/public/pm/premium-vw-item.css +7 -7
- package/workspace/public/pm/premium-vw-jira.css +28 -28
- package/workspace/public/pm/premium-vw-meet.css +26 -26
- package/workspace/public/pm/premium-vw-notepad.css +14 -14
- package/workspace/public/pm/premium-vw-notes.css +11 -11
- package/workspace/public/pm/premium-vw-page.js +1 -0
- package/workspace/public/pm/premium-vw-rec.css +22 -22
- package/workspace/public/pm/premium-vw-report.css +14 -14
- package/workspace/public/pm/premium-vw-slides.css +27 -27
- package/workspace/public/pm/premium.css +598 -598
- package/workspace/public/pm/prog-order.css +7 -7
- package/workspace/public/pm/prog-page.css +16 -16
- package/workspace/public/pm/program-charter.css +23 -23
- package/workspace/public/pm/ready-lib.css +4 -4
- package/workspace/public/pm/sort-order.css +3 -3
- package/workspace/public/pm/split-merge.css +21 -21
- package/workspace/public/pm/story.css +3 -3
- package/workspace/public/pm/task-card.css +21 -21
- package/workspace/public/pm/tk-tasks.css +32 -32
- package/workspace/public/pm/tk-view.css +7 -7
- package/workspace/public/pm/wf-page.css +46 -46
- package/workspace/test-lists/design-token-swap.json +9 -0
- package/workspace/test-lists/forms-keep-drafts.json +9 -0
|
@@ -248,52 +248,52 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
248
248
|
.cz :focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
249
249
|
|
|
250
250
|
/* ── The floating place menu (desktop: bottom left; phone: bottom right) ── */
|
|
251
|
-
.cz-fabw { position: fixed; z-index: 60; left: 36px; bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap:
|
|
251
|
+
.cz-fabw { position: fixed; z-index: 60; left: 36px; bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); }
|
|
252
252
|
.cz-fab { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cz-card); color: var(--cz-ink); border: 1px solid var(--cz-hair); box-shadow: var(--cz-float); cursor: pointer; padding: 0; }
|
|
253
253
|
.cz-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
254
|
-
.cz-fabm { box-sizing: border-box; width: 220px; padding:
|
|
254
|
+
.cz-fabm { box-sizing: border-box; width: 220px; padding: var(--space-8); display: flex; flex-direction: column; gap: 2px; border-radius: var(--radius-panel); background: var(--cz-card); border: 1px solid var(--cz-hair); box-shadow: 0 24px 60px -24px rgba(27,42,24,.45); }
|
|
255
255
|
.cz-fabm[hidden] { display: none; }
|
|
256
|
-
.cz-fabm a, .cz-fabm button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0
|
|
256
|
+
.cz-fabm a, .cz-fabm button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 var(--space-12); border-radius: 14px; font: inherit; font-size: var(--fs-body); color: var(--cz-ink2); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; line-height: var(--lh-body); }
|
|
257
257
|
.cz-fabm a:hover, .cz-fabm button:hover { background: var(--cz-well); }
|
|
258
258
|
.cz-fabm [aria-current="page"] { background: var(--cz-bluebg); color: var(--cz-ink); font-weight: var(--fw-strong); }
|
|
259
|
-
.cz-fabm .cz-set { border-top: 1px solid var(--cz-hair); margin-top:
|
|
259
|
+
.cz-fabm .cz-set { border-top: 1px solid var(--cz-hair); margin-top: var(--space-4); border-radius: 0 0 14px 14px; }
|
|
260
260
|
.cz-fabm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
|
|
261
261
|
|
|
262
262
|
/* ── Page panel: no page header on desktop; the panel starts at the top ── */
|
|
263
|
-
.cz-panel { box-sizing: border-box; margin:
|
|
264
|
-
.cz-bar { display: flex; align-items: center; gap:
|
|
265
|
-
.cz-tools { margin-left: auto; display: flex; align-items: center; gap:
|
|
263
|
+
.cz-panel { box-sizing: border-box; margin: var(--space-16); min-height: calc(100vh - 32px); background: var(--cz-card); border-radius: 28px; box-shadow: var(--cz-lift); padding: var(--space-16) var(--space-24) 18px; display: flex; flex-direction: column; gap: var(--space-12); }
|
|
264
|
+
.cz-bar { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
|
|
265
|
+
.cz-tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
|
|
266
266
|
/* Desktop: the place menu floats over the panel's bottom-left corner (mockup), so a page panel keeps that corner clear of content */
|
|
267
267
|
@media (min-width: 721px) { body.cz main.cz-panel.stage { padding-bottom: 96px; } }
|
|
268
268
|
/* Phone: one-line top bar, the floating menu moves to the bottom right */
|
|
269
269
|
.cz-top { display: none; }
|
|
270
270
|
@media (max-width: 720px) {
|
|
271
271
|
.cz-fabw { left: auto; right: 18px; bottom: 24px; align-items: flex-end; }
|
|
272
|
-
.cz-panel { margin: 0; border-radius: 0; min-height: 100vh; padding:
|
|
272
|
+
.cz-panel { margin: 0; border-radius: 0; min-height: 100vh; padding: var(--space-12) var(--space-12) 96px; box-shadow: none; }
|
|
273
273
|
.cz-top { display: flex; align-items: center; gap: 6px; min-height: 48px; }
|
|
274
|
-
.cz-top .cz-title { font-weight: var(--fw-strong); font-size: var(--fs-row); margin-left:
|
|
274
|
+
.cz-top .cz-title { font-weight: var(--fw-strong); font-size: var(--fs-row); margin-left: var(--space-4); margin-right: auto; line-height: var(--lh-row); }
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
/* ── Shared parts ── */
|
|
278
|
-
.cz-pick { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0
|
|
278
|
+
.cz-pick { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 var(--space-12); border-radius: var(--radius-pill); background: var(--cz-well); font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--cz-ink); border: 0; cursor: pointer; line-height: var(--lh-row); }
|
|
279
279
|
.cz-tabs { display: flex; gap: 2px; }
|
|
280
|
-
.cz-tab { height: 34px; padding: 0 13px; border-radius:
|
|
280
|
+
.cz-tab { height: 34px; padding: 0 13px; border-radius: var(--radius-pill); font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--cz-ink3); display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; line-height: var(--lh-row); }
|
|
281
281
|
.cz-tab[aria-selected="true"] { background: var(--cz-well); color: var(--cz-ink); }
|
|
282
282
|
.cz-tab .n { font-weight: var(--fw-strong); color: var(--cz-ink3); font-size: var(--fs-label); line-height: var(--lh-label); }
|
|
283
|
-
.cz-ib { width: 38px; height: 38px; border-radius:
|
|
283
|
+
.cz-ib { width: 38px; height: 38px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); background: none; border: 0; cursor: pointer; flex: none; padding: 0; }
|
|
284
284
|
.cz-ib:hover { background: var(--cz-well); }
|
|
285
285
|
.cz-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
286
286
|
.cz-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
287
|
-
.cz-seg { display: inline-flex; padding: 3px; border-radius:
|
|
288
|
-
.cz-seg button { height: 30px; min-width: 34px; padding: 0 11px; border-radius:
|
|
287
|
+
.cz-seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--cz-well); gap: 2px; }
|
|
288
|
+
.cz-seg button { height: 30px; min-width: 34px; padding: 0 11px; border-radius: var(--radius-pill); font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); background: none; border: 0; cursor: pointer; line-height: var(--lh-label); }
|
|
289
289
|
.cz-seg button[aria-pressed="true"] { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
|
|
290
|
-
.cz-vr { width: 1px; height: 20px; background: var(--cz-hair); margin: 0
|
|
291
|
-
.cz-chip { height: 30px; padding: 0 11px; border-radius:
|
|
290
|
+
.cz-vr { width: 1px; height: 20px; background: var(--cz-hair); margin: 0 var(--space-4); flex: none; }
|
|
291
|
+
.cz-chip { height: 30px; padding: 0 11px; border-radius: var(--radius-pill); border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink2); white-space: nowrap; cursor: pointer; line-height: var(--lh-label); }
|
|
292
292
|
.cz-chip:hover { background: var(--cz-well); }
|
|
293
|
-
.cz-chip.gh { border-color: transparent; background: transparent; padding: 0
|
|
293
|
+
.cz-chip.gh { border-color: transparent; background: transparent; padding: 0 var(--space-8); }
|
|
294
294
|
.cz-chip.on { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
295
295
|
.cz-chip b { font-weight: var(--fw-strong); color: var(--cz-ink); }
|
|
296
|
-
.cz-pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-badge); font-weight: var(--fw-strong); border-radius:
|
|
296
|
+
.cz-pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-badge); font-weight: var(--fw-strong); border-radius: var(--radius-pill); padding: 2px var(--space-8); white-space: nowrap; line-height: var(--lh-badge); }
|
|
297
297
|
.cz-pill.late { background: var(--cz-latebg); color: var(--cz-late); } .cz-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
298
298
|
.cz-pill.q { background: var(--cz-well); color: var(--cz-ink3); } .cz-pill.you { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
299
299
|
.cz-pill.red { background: var(--cz-redbg); color: var(--cz-red); } .cz-pill.risk { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
@@ -328,18 +328,18 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
328
328
|
|
|
329
329
|
/* ── The Viewer (cozy-viewer.js; Main.dc.html section.viewer): one card, one item at a time ── */
|
|
330
330
|
.cz-vw { box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; overflow: hidden; flex: 0 0 500px; width: 500px; max-width: 100%;
|
|
331
|
-
background: var(--cz-card); color: var(--cz-ink); border: 1px solid var(--cz-hair); border-radius:
|
|
331
|
+
background: var(--cz-card); color: var(--cz-ink); border: 1px solid var(--cz-hair); border-radius: var(--radius-panel); box-shadow: var(--cz-vlift); font-family: var(--cz-sans); }
|
|
332
332
|
.cz-vw[hidden] { display: none; }
|
|
333
333
|
.cz-vw:focus { outline: none; }
|
|
334
334
|
.cz-vw.cz-vw-float { position: fixed; z-index: 70; top: 16px; right: 16px; bottom: 16px; width: min(500px, calc(100vw - 32px)); }
|
|
335
|
-
.cz-vw-hd { display: flex; align-items: center; gap: 10px; padding:
|
|
336
|
-
.cz-vw-tile { width: 34px; height: 34px; border-radius:
|
|
335
|
+
.cz-vw-hd { display: flex; align-items: center; gap: 10px; padding: var(--space-12) var(--space-12) var(--space-12) var(--space-16); border-bottom: 1px solid var(--cz-hair); flex: none; }
|
|
336
|
+
.cz-vw-tile { width: 34px; height: 34px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--cz-bluebg); color: var(--cz-blueink); flex: none; }
|
|
337
337
|
.cz-vw-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
338
338
|
.cz-vw-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; } /* the kind in small grey before the bold title, on one line (AgHome) */
|
|
339
339
|
.cz-vw-kind { margin: 0; flex: none; max-width: 45%; font-size: var(--fs-meta); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--lh-meta); }
|
|
340
340
|
.cz-vw-kind:empty { display: none; }
|
|
341
341
|
.cz-vw-title { margin: 0; min-width: 0; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--cz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--lh-row); }
|
|
342
|
-
.cz-vw-ib { width: 40px; height: 40px; border-radius:
|
|
342
|
+
.cz-vw-ib { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--cz-ink2); background: none; border: 0; padding: 0; cursor: pointer; flex: none; font: inherit; }
|
|
343
343
|
.cz-vw-ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
344
344
|
.cz-vw-ib[data-cz-vw="close"] svg { stroke-width: 2; }
|
|
345
345
|
.cz-vw-ib:hover:not(:disabled) { background: var(--cz-well); }
|
|
@@ -387,6 +387,6 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
387
387
|
.hm-scsrc { margin: 2px 0 0; font-size: var(--fs-label); line-height: var(--lh-label); color: var(--cz-ink3); }
|
|
388
388
|
.hm-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: var(--fs-label); line-height: var(--lh-label); color: var(--cz-ink2); }
|
|
389
389
|
.hm-gate .lbl { font-weight: var(--fw-strong); color: var(--cz-ink3); }
|
|
390
|
-
.hm-gate .g { display: inline-flex; align-items: center; height: 22px; padding: 0
|
|
390
|
+
.hm-gate .g { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-8); border-radius: var(--radius-pill); background: var(--cz-card); border: 1px solid var(--cz-hair); }
|
|
391
391
|
.hm-gate .g.no { color: var(--cz-late); border-color: var(--cz-latebg); }
|
|
392
|
-
.hm-gate .g .cz-ck { width: 12px; height: 12px; margin-left:
|
|
392
|
+
.hm-gate .g .cz-ck { width: 12px; height: 12px; margin-left: var(--space-4); stroke: var(--cz-ok); stroke-width: 3; fill: none; }
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
.db { container-type: inline-size; display: flex; flex-direction: column; gap: 14px; padding: 2px 0 18px; color: var(--cz-ink); font-family: var(--cz-sans); }
|
|
7
7
|
.db-wait, .db-note { margin: 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--cz-ink3); }
|
|
8
8
|
.db-grid { display: flex; flex-direction: column; gap: 14px; }
|
|
9
|
-
.db-b { display: flex; flex-direction: column; gap:
|
|
9
|
+
.db-b { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
|
|
10
10
|
.db-h { margin: 0; font-size: var(--fs-section); font-weight: var(--fw-strong); line-height: var(--lh-section); }
|
|
11
|
-
.db-card { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius:
|
|
12
|
-
.db-list { gap: 0; padding-top:
|
|
11
|
+
.db-card { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: var(--radius-card); padding: var(--space-12) 14px; display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
|
|
12
|
+
.db-list { gap: 0; padding-top: var(--space-4); padding-bottom: var(--space-4); }
|
|
13
13
|
|
|
14
14
|
/* the ✦ line: what Claude handled, with the M face; a warning is the honest face on a warm edge */
|
|
15
|
-
.db-hd { display: flex; align-items: flex-start; gap:
|
|
15
|
+
.db-hd { display: flex; align-items: flex-start; gap: var(--space-12); border-radius: var(--radius-card); padding: var(--space-12) 14px; background: var(--cz-bluebg); border: 1px solid color-mix(in srgb, var(--cz-blueink) 18%, transparent); }
|
|
16
16
|
.db-hd.warn { background: var(--cz-latebg); border-color: color-mix(in srgb, var(--cz-late) 55%, transparent); }
|
|
17
17
|
.db-hd p { margin: 0; flex: 1; min-width: 0; font-size: var(--fs-body); line-height: 1.45; color: var(--cz-ink2); }
|
|
18
18
|
.db-hd b { color: var(--cz-ink); font-weight: var(--fw-strong); }
|
|
@@ -33,10 +33,10 @@ button.db-row, button.db-rep, .db-sum, .db-fold { cursor: pointer; }
|
|
|
33
33
|
.db-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--cz-dot-q); }
|
|
34
34
|
.db-dot.ok { background: var(--cz-dot-ok); } .db-dot.risk { background: var(--cz-dot-risk); } .db-dot.late { background: var(--cz-dot-late); }
|
|
35
35
|
.db-dot.q { background: transparent; border: 2px solid var(--cz-ink3); box-sizing: border-box; }
|
|
36
|
-
.db-dots { display: inline-flex; gap:
|
|
36
|
+
.db-dots { display: inline-flex; gap: var(--space-4); flex: none; }
|
|
37
37
|
.db-who { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-badge); font-weight: var(--fw-strong); display: inline-flex; align-items: center; justify-content: center; line-height: var(--lh-badge); }
|
|
38
|
-
.db-tag { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0
|
|
39
|
-
.db-none { margin: 0; display: flex; align-items: center; gap:
|
|
38
|
+
.db-tag { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 var(--space-4); border-radius: 5px; background: var(--cz-bluebg); color: var(--cz-blueink); font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
|
|
39
|
+
.db-none { margin: 0; display: flex; align-items: center; gap: var(--space-8); font-size: var(--fs-body); color: var(--cz-ink3); line-height: var(--lh-body); }
|
|
40
40
|
.db-meta, .db-more, .db-p { margin: 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--cz-ink3); }
|
|
41
41
|
.db-p { font-size: var(--fs-body); color: var(--cz-ink2); line-height: var(--lh-body); }
|
|
42
42
|
.db-top { display: flex; align-items: center; gap: 10px; }
|
|
@@ -54,14 +54,14 @@ button.db-row, button.db-rep, .db-sum, .db-fold { cursor: pointer; }
|
|
|
54
54
|
.db-st small { font-size: var(--fs-meta); color: var(--cz-ink3); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; line-height: var(--lh-meta); }
|
|
55
55
|
|
|
56
56
|
/* milestones: the track, then one row each */
|
|
57
|
-
.db-trk { display: flex; align-items: center; justify-content: space-between; padding:
|
|
57
|
+
.db-trk { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 6px; background: linear-gradient(var(--cz-hair), var(--cz-hair)) center / 100% 2px no-repeat; }
|
|
58
58
|
.db-trk i { width: 12px; height: 12px; transform: rotate(45deg); border-radius: 3px; background: var(--cz-dot-q); }
|
|
59
59
|
.db-trk i.ok, .db-trk i.done { background: var(--cz-dot-ok); } .db-trk i.risk { background: var(--cz-dot-risk); } .db-trk i.late { background: var(--cz-dot-late); }
|
|
60
|
-
.db-ms { display: flex; align-items: center; gap: 10px; padding:
|
|
60
|
+
.db-ms { display: flex; align-items: center; gap: 10px; padding: var(--space-4) 0; font-size: var(--fs-body); line-height: var(--lh-body); }
|
|
61
61
|
.db-ms .db-rt { font-weight: var(--fw-strong); }
|
|
62
|
-
.db-gh { display: flex; align-items: center; gap:
|
|
62
|
+
.db-gh { display: flex; align-items: center; gap: var(--space-4); }
|
|
63
63
|
.db-gh > .db-sum { flex: 1; }
|
|
64
|
-
.db-hr { display: flex; align-items: center; justify-content: space-between; gap:
|
|
64
|
+
.db-hr { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); margin: -10px 0; }
|
|
65
65
|
|
|
66
66
|
/* the window of Did it work? */
|
|
67
67
|
.db-win { height: 4px; border-radius: 99px; background: var(--cz-hair); overflow: hidden; }
|
|
@@ -77,14 +77,14 @@ button.db-row, button.db-rep, .db-sum, .db-fold { cursor: pointer; }
|
|
|
77
77
|
.db-need { background: var(--cz-bluebg); border-color: color-mix(in srgb, var(--cz-blueink) 18%, transparent); }
|
|
78
78
|
.db-nq { display: flex; gap: 10px; align-items: flex-start; }
|
|
79
79
|
.db-nq > svg { flex: none; margin-top: 2px; color: var(--cz-blueink); }
|
|
80
|
-
.db-pick { font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-blueink); margin-top:
|
|
81
|
-
.db-acts { display: flex; justify-content: flex-end; align-items: center; gap:
|
|
82
|
-
.db-ib { all: unset; box-sizing: border-box; cursor: pointer; width: 40px; height: 40px; border-radius:
|
|
80
|
+
.db-pick { font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-blueink); margin-top: var(--space-4); line-height: var(--lh-label); }
|
|
81
|
+
.db-acts { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-4); }
|
|
82
|
+
.db-ib { all: unset; box-sizing: border-box; cursor: pointer; width: 40px; height: 40px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); flex: none; }
|
|
83
83
|
.db-ib.solid { width: 44px; height: 44px; background: var(--cz-blue); color: var(--cz-onsolid); }
|
|
84
84
|
.db-ib[disabled] { opacity: .45; cursor: default; }
|
|
85
85
|
@media (hover: hover) { .db-ib:not([disabled]):not(.solid):hover { background: var(--cz-well); color: var(--cz-ink); } .db-ib.solid:not([disabled]):hover { filter: brightness(1.1); } button.db-row:hover .db-rt b, button.db-rep:hover .db-rt b { text-decoration: underline; text-underline-offset: 3px; } }
|
|
86
|
-
.db-ib:focus-visible, .db-row:focus-visible, .db-rep:focus-visible, .db-fold:focus-visible, .db-sum:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius:
|
|
87
|
-
.db-draft, .db-held { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 10px
|
|
86
|
+
.db-ib:focus-visible, .db-row:focus-visible, .db-rep:focus-visible, .db-fold:focus-visible, .db-sum:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: var(--radius-md); }
|
|
87
|
+
.db-draft, .db-held { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 10px var(--space-12); border-radius: 12px; background: var(--cz-well); }
|
|
88
88
|
.db-held { background: var(--cz-bluebg); }
|
|
89
89
|
.db-draft > .db-acts, .db-held > .db-acts { flex-basis: 100%; }
|
|
90
90
|
.db-dic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--cz-well); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; }
|
|
@@ -94,16 +94,16 @@ button.db-row, button.db-rep, .db-sum, .db-fold { cursor: pointer; }
|
|
|
94
94
|
.db-hu { gap: 10px; }
|
|
95
95
|
.db-hut { font-size: var(--fs-display); font-weight: var(--fw-strong); line-height: 1.35; }
|
|
96
96
|
.db-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
97
|
-
.db-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px
|
|
97
|
+
.db-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px var(--space-12); border-radius: var(--radius-pill); background: var(--cz-well); font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink2); line-height: var(--lh-label); }
|
|
98
98
|
.db-trust .db-acts { margin-top: -6px; }
|
|
99
99
|
.db-done { padding-top: 2px; padding-bottom: 2px; }
|
|
100
100
|
|
|
101
101
|
/* two columns at 720 px and wider (PbA7): each block is its own card, its heading inside */
|
|
102
102
|
@container (min-width: 720px) {
|
|
103
103
|
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
|
|
104
|
-
.db-grid > .db-b { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius:
|
|
104
|
+
.db-grid > .db-b { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: var(--radius-card); padding: 14px var(--space-16); }
|
|
105
105
|
.db-grid > .db-b > .db-card { border: 0; padding: 0; background: none; }
|
|
106
|
-
.db-grid > .db-b > .db-card.db-need { background: var(--cz-bluebg); padding:
|
|
106
|
+
.db-grid > .db-b > .db-card.db-need { background: var(--cz-bluebg); padding: var(--space-12) 14px; }
|
|
107
107
|
.db-grid > .db-b > .db-h, .db-grid > .db-b > .db-hr { padding-bottom: 6px; border-bottom: 1px solid var(--cz-hair); }
|
|
108
108
|
.db-grid > .db-b > .db-hr { margin: -6px 0 0; }
|
|
109
109
|
}
|
|
@@ -112,18 +112,18 @@ button.db-row, button.db-rep, .db-sum, .db-fold { cursor: pointer; }
|
|
|
112
112
|
|
|
113
113
|
/* "Goals I would change" in the product page's proposals row (batch 22 item 5, canvas RdKrKeep) */
|
|
114
114
|
.db-kr { display: flex; flex-direction: column; gap: 0; border: 1px dashed color-mix(in srgb, var(--cz-blueink) 45%, transparent); background: var(--cz-bluebg); }
|
|
115
|
-
.db-krr { display: flex; align-items: center; gap:
|
|
115
|
+
.db-krr { display: flex; align-items: center; gap: var(--space-12); padding: 10px 0; border-top: 1px solid var(--cz-hair); }
|
|
116
116
|
.db-krr:first-child { border-top: 0; padding-top: 0; }
|
|
117
117
|
.db-krr .db-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
118
118
|
.db-krw { font-size: var(--fs-meta); color: var(--cz-ink3); text-decoration-color: color-mix(in srgb, var(--cz-ink) 30%, transparent); line-height: var(--lh-meta); }
|
|
119
119
|
.db-krn { font-size: var(--fs-panel); font-weight: var(--fw-strong); line-height: 1.3; }
|
|
120
120
|
.db-krt { color: var(--cz-blueink); }
|
|
121
|
-
.db-kre { display: flex; gap:
|
|
122
|
-
.db-kri { flex: 1; min-width: 0; font: inherit; font-size: var(--fs-body); padding: 6px 10px; border: 1px solid var(--cz-hair); border-radius:
|
|
121
|
+
.db-kre { display: flex; gap: var(--space-8); }
|
|
122
|
+
.db-kri { flex: 1; min-width: 0; font: inherit; font-size: var(--fs-body); padding: 6px 10px; border: 1px solid var(--cz-hair); border-radius: var(--radius-md); background: var(--cz-card); color: var(--cz-ink); line-height: var(--lh-body); }
|
|
123
123
|
.db-kri.n { flex: none; width: 5.5em; }
|
|
124
124
|
.db-krs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: var(--fs-meta); color: var(--cz-ink2, var(--cz-ink3)); line-height: var(--lh-meta); }
|
|
125
125
|
.db-krs > svg { color: var(--cz-dot-ok); }
|
|
126
|
-
.db-krp { border-radius:
|
|
126
|
+
.db-krp { border-radius: var(--radius-pill); padding: 1px var(--space-8); background: var(--cz-well); font-weight: var(--fw-strong); }
|
|
127
127
|
.db-krq, .db-krf small { margin: 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
|
|
128
128
|
.db-krq { border-top: 1px solid var(--cz-hair); padding-top: 10px; }
|
|
129
129
|
.db-krf { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--cz-hair); padding-top: 10px; }
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* draft-keep.js — every text box keeps a draft until it is sent, saved or cleared (initiative forms-keep-drafts, idea A400).
|
|
3
|
+
*
|
|
4
|
+
* The panel rule closes the oldest panel when a new one opens, and a reload drops what was typed. This module listens at the document
|
|
5
|
+
* level, so no page has to change: what the PM types in a textarea or a text input is kept in this browser's local storage, and when
|
|
6
|
+
* the same box opens again showing the same value it opened with, the text is put back and one quiet Toast says "Draft kept", with Undo.
|
|
7
|
+
*
|
|
8
|
+
* keyFor(el, path) the draft's key, or null when this box keeps nothing (password, email, search, key or token boxes,
|
|
9
|
+
* read-only or disabled boxes, data-draft="off", a box with no name, id, label or placeholder)
|
|
10
|
+
* createKeeper(opts) the engine, on any store: { seen, input, pressed, entered, submitted, tick, undo }
|
|
11
|
+
* toastHtml(n) the design system's Toast (pm-toast), Undo as an icon button
|
|
12
|
+
* PREFIX the storage key prefix
|
|
13
|
+
*
|
|
14
|
+
* The key is data-draft-key on the box or an ancestor (a chat box names its chat), else the page path, the nearest ancestor id and the
|
|
15
|
+
* box's own name. A draft is { v, base, at }: it comes back only on its own base, so a saved value that changed since is never covered.
|
|
16
|
+
* A draft is dropped when its form submits, when a send or save press near the box is followed by the box emptying or going away, when
|
|
17
|
+
* the page empties or resets the box itself, and after 14 days (at most 200 are kept). Contenteditable editors are left alone.
|
|
18
|
+
* Health (record health_read): each return and each Undo posts a count, never the text, to POST /api/draft-keep/mark, and logs [draft-keep].
|
|
19
|
+
*/
|
|
20
|
+
export const PREFIX = 'pmos.draft:';
|
|
21
|
+
const DAY = 864e5, MAX_AGE = 14 * DAY, MAX_DRAFTS = 200, PRESS_WINDOW = 3000;
|
|
22
|
+
const SENSITIVE = /password|passcode|passphrase|\bpass\b|token|secret|api[\s_-]*key|\bkey\b|one-time|\botp\b|\bcc-|card|cvc|\bssn\b|search|filter|\bfind\b/i;
|
|
23
|
+
const SENDS = /\b(send|save|add|post|submit|done|create|keep|reply|ask|update|apply|publish|confirm)\b/i;
|
|
24
|
+
|
|
25
|
+
const attr = (el, k) => { try { const v = el.getAttribute(k); return v == null ? '' : String(v); } catch { return ''; } };
|
|
26
|
+
|
|
27
|
+
/** The draft's key for this box, or null when it keeps nothing. path: the page's path. */
|
|
28
|
+
export function keyFor(el, path) {
|
|
29
|
+
if (!el || !el.tagName) return null;
|
|
30
|
+
const tag = String(el.tagName).toLowerCase();
|
|
31
|
+
if (tag === 'input') { if ((attr(el, 'type') || 'text').toLowerCase() !== 'text') return null; }
|
|
32
|
+
else if (tag !== 'textarea') return null;
|
|
33
|
+
if (el.readOnly || el.disabled) return null;
|
|
34
|
+
const role = attr(el, 'role').toLowerCase();
|
|
35
|
+
if (role === 'searchbox' || role === 'combobox') return null;
|
|
36
|
+
if (el.closest && el.closest('[data-draft="off"]')) return null;
|
|
37
|
+
const words = ['name', 'id', 'aria-label', 'placeholder', 'autocomplete'].map((k) => attr(el, k)).join(' ');
|
|
38
|
+
if (SENSITIVE.test(words)) return null;
|
|
39
|
+
const ident = attr(el, 'name') || attr(el, 'id') || attr(el, 'aria-label') || attr(el, 'placeholder');
|
|
40
|
+
const own = el.closest ? el.closest('[data-draft-key]') : null;
|
|
41
|
+
if (own) return `k:${attr(own, 'data-draft-key')}|${ident || '-'}`;
|
|
42
|
+
if (!ident) return null;
|
|
43
|
+
let scope = '';
|
|
44
|
+
for (let x = el.parentElement; x && !scope; x = x.parentElement) scope = attr(x, 'id');
|
|
45
|
+
return `p:${path || ''}|${scope}|${ident}`;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The engine. opts: { store: { get, set, remove, keys }, now(), path, onRestore(list), onMark(ev, n), near(button, box) }.
|
|
50
|
+
* The page calls seen() when a box appears or takes focus, input() on each change, pressed() on a button press, entered() on Enter
|
|
51
|
+
* in a box, submitted() on a form submit, and tick() a little after each of those.
|
|
52
|
+
*/
|
|
53
|
+
export function createKeeper(opts) {
|
|
54
|
+
const S = opts.store, now = opts.now || Date.now, near = opts.near || (() => false);
|
|
55
|
+
const live = new Set();
|
|
56
|
+
let lastBatch = [];
|
|
57
|
+
const safe = (fn, dflt) => { try { return fn(); } catch { return dflt; } };
|
|
58
|
+
const get = (k) => safe(() => { const d = S.get(PREFIX + k); return d && typeof d.v === 'string' && typeof d.base === 'string' ? d : null; }, null);
|
|
59
|
+
const put = (k, d) => safe(() => S.set(PREFIX + k, d));
|
|
60
|
+
const drop = (k) => safe(() => S.remove(PREFIX + k));
|
|
61
|
+
const recOf = (el) => { for (const r of live) if (r.el === el) return r; return null; };
|
|
62
|
+
|
|
63
|
+
// old drafts go: older than 14 days, then the oldest beyond 200
|
|
64
|
+
safe(() => {
|
|
65
|
+
const all = S.keys().filter((k) => k.startsWith(PREFIX)).map((k) => [k, safe(() => S.get(k), null)]);
|
|
66
|
+
const t = now(), keep = [];
|
|
67
|
+
for (const [k, d] of all) { if (!d || typeof d.at !== 'number' || t - d.at > MAX_AGE) S.remove(k); else keep.push([k, d.at]); }
|
|
68
|
+
keep.sort((a, b) => a[1] - b[1]);
|
|
69
|
+
while (keep.length > MAX_DRAFTS) S.remove(keep.shift()[0]);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
function seen(el) {
|
|
73
|
+
if (recOf(el)) return recOf(el);
|
|
74
|
+
const key = keyFor(el, opts.path);
|
|
75
|
+
if (!key) return null;
|
|
76
|
+
const r = { el, key, base: el.value, last: el.value, pending: 0, restored: null };
|
|
77
|
+
let d = get(key);
|
|
78
|
+
// the same box drawn again right after a send or save (an Add that clears and redraws its list): the draft went with the press
|
|
79
|
+
for (const o of live) if (o.key === key && o.pending && now() - o.pending < PRESS_WINDOW && (!o.el.isConnected || o.el.value === '')) { drop(key); d = null; live.delete(o); }
|
|
80
|
+
if (d && el.value === d.v) r.base = d.base; // the page drew the box again with the draft in it
|
|
81
|
+
else if (d && el.value === d.base && d.v !== d.base) { // the box opened again as it was: put the draft back
|
|
82
|
+
r.last = d.v; r.restored = d.v; el.value = d.v;
|
|
83
|
+
live.add(r);
|
|
84
|
+
safe(() => el.dispatchEvent(new Event('input', { bubbles: true })));
|
|
85
|
+
lastBatch = lastBatch.filter((x) => x.el.isConnected).concat(r);
|
|
86
|
+
if (opts.onRestore) opts.onRestore([r]);
|
|
87
|
+
if (opts.onMark) opts.onMark('restored', 1);
|
|
88
|
+
return r;
|
|
89
|
+
}
|
|
90
|
+
live.add(r);
|
|
91
|
+
return r;
|
|
92
|
+
}
|
|
93
|
+
function input(el) {
|
|
94
|
+
const r = recOf(el) || seen(el);
|
|
95
|
+
if (!r) return;
|
|
96
|
+
r.last = el.value;
|
|
97
|
+
if (el.value === r.base) drop(r.key);
|
|
98
|
+
else put(r.key, { v: el.value, base: r.base, at: now() });
|
|
99
|
+
}
|
|
100
|
+
function pressed(btn) {
|
|
101
|
+
if (!btn) return;
|
|
102
|
+
const label = attr(btn, 'aria-label') || String(btn.textContent || '').trim() || attr(btn, 'title');
|
|
103
|
+
if (String(btn.type || '').toLowerCase() !== 'submit' && !SENDS.test(label)) return;
|
|
104
|
+
for (const r of live) if (safe(() => near(btn, r.el), false)) r.pending = now();
|
|
105
|
+
}
|
|
106
|
+
function entered(el) { const r = recOf(el); if (r) r.pending = now(); }
|
|
107
|
+
function submitted(form) {
|
|
108
|
+
for (const r of live) if (r.el.form && r.el.form === form) { drop(r.key); r.pending = now(); r.base = r.el.value; r.last = r.el.value; }
|
|
109
|
+
}
|
|
110
|
+
function tick() {
|
|
111
|
+
const t = now();
|
|
112
|
+
for (const r of [...live]) {
|
|
113
|
+
const sent = r.pending && t - r.pending < PRESS_WINDOW;
|
|
114
|
+
if (!r.el.isConnected) { if (sent) drop(r.key); live.delete(r); continue; }
|
|
115
|
+
if (r.el.value !== r.last) { // the page changed the box itself: sent, saved or reset
|
|
116
|
+
drop(r.key); r.base = r.el.value; r.last = r.el.value;
|
|
117
|
+
} else if (sent && r.el.value === '') drop(r.key);
|
|
118
|
+
if (r.pending && !sent) r.pending = 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function undo() {
|
|
122
|
+
const batch = lastBatch; lastBatch = [];
|
|
123
|
+
if (!batch.length) return 0;
|
|
124
|
+
for (const r of batch) {
|
|
125
|
+
if (r.el.isConnected && r.el.value === r.restored) {
|
|
126
|
+
r.el.value = r.base; r.last = r.base;
|
|
127
|
+
safe(() => r.el.dispatchEvent(new Event('input', { bubbles: true })));
|
|
128
|
+
}
|
|
129
|
+
drop(r.key);
|
|
130
|
+
}
|
|
131
|
+
if (opts.onMark) opts.onMark('undone', batch.length);
|
|
132
|
+
return batch.length;
|
|
133
|
+
}
|
|
134
|
+
return { seen, input, pressed, entered, submitted, tick, undo };
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const UNDO_ICON = '<svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3"/></svg>';
|
|
138
|
+
|
|
139
|
+
/** The design system's Toast for n returned drafts. */
|
|
140
|
+
export function toastHtml(n) {
|
|
141
|
+
const say = n > 1 ? `${n} drafts kept` : 'Draft kept';
|
|
142
|
+
return `<div class="pm-toast" role="status" aria-live="polite"><span class="in"><span>${say}</span>`
|
|
143
|
+
+ `<button type="button" class="pm-btn" data-dk-undo aria-label="Undo: start empty" title="Undo">${UNDO_ICON}</button></span>`
|
|
144
|
+
+ '<span class="timer" data-dk-timer></span></div>';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* the browser: the page side lives in cozy-draft-keep.js (the Agreed design's layer), loaded once per page */
|
|
148
|
+
if (typeof window !== 'undefined' && typeof document !== 'undefined' && !window.__pmosDraftKeep) {
|
|
149
|
+
window.__pmosDraftKeep = true;
|
|
150
|
+
import('./cozy-draft-keep.js').then((m) => m.install()).catch((e) => console.info('[draft-keep] off:', e && e.message));
|
|
151
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
/* hi-pop.css — the initiative's popovers, menus and the toast with Undo (pm/hi-pop.js), the same on Home and the Board (feedback batch 14
|
|
2
2
|
* item 5). Moved out of home-ini.css, which Home loads after this sheet, so Home's phone rules still win. Every class starts with hi-. */
|
|
3
3
|
/* buttons, as the canvas draws them */
|
|
4
|
-
.hi-btn { height: 36px; padding: 0 14px; border-radius:
|
|
4
|
+
.hi-btn { height: 36px; padding: 0 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); white-space: nowrap; cursor: pointer; line-height: var(--lh-row); }
|
|
5
5
|
.hi-btn svg { flex: none; }
|
|
6
6
|
.hi-btn.sm { height: 30px; padding: 0 11px; font-size: var(--fs-meta); line-height: var(--lh-meta); }
|
|
7
7
|
.hi-btn.dark { background: var(--cz-ink); border-color: transparent; color: var(--cz-card); }
|
|
8
8
|
.hi-btn.ghost { border-color: transparent; background: transparent; color: var(--cz-ink2); }
|
|
9
9
|
.hi-btn.ghost:hover { background: var(--cz-well); }
|
|
10
10
|
.hi-btn:disabled { opacity: .45; cursor: default; }
|
|
11
|
-
.hi-ib { width: 32px; height: 32px; border-radius:
|
|
11
|
+
.hi-ib { width: 32px; height: 32px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; background: none; color: var(--cz-ink2); cursor: pointer; }
|
|
12
12
|
.hi-ib:hover { background: var(--cz-well2); }
|
|
13
13
|
.hi-ib.solid { background: var(--cz-ink); color: var(--cz-card); }
|
|
14
14
|
.hi-ib.sm { width: 28px; height: 28px; }
|
|
15
15
|
/* ── the popovers: Move anyway, Back, the menus ── */
|
|
16
|
-
.hi-pop { position: fixed; z-index: 90; left: var(--hi-x, 24px); top: var(--hi-y, 24px); width: 360px; max-width: calc(100vw - 24px); box-sizing: border-box; background: var(--cz-card); color: var(--cz-ink); border-radius: 20px; padding:
|
|
17
|
-
.hi-pop.menu { width: 290px; padding:
|
|
18
|
-
.hi-pop.sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; border-radius: 28px 28px 0 0; padding: 10px
|
|
16
|
+
.hi-pop { position: fixed; z-index: 90; left: var(--hi-x, 24px); top: var(--hi-y, 24px); width: 360px; max-width: calc(100vw - 24px); box-sizing: border-box; background: var(--cz-card); color: var(--cz-ink); border-radius: 20px; padding: var(--space-16); display: flex; flex-direction: column; gap: 10px; font-family: var(--cz-sans); font-size: var(--fs-body); box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); line-height: var(--lh-body); }
|
|
17
|
+
.hi-pop.menu { width: 290px; padding: var(--space-8); gap: 2px; }
|
|
18
|
+
.hi-pop.sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; border-radius: 28px 28px 0 0; padding: 10px var(--space-16) 28px; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.35); }
|
|
19
19
|
.hi-pop.sheet .hi-btn { height: 48px; justify-content: center; }
|
|
20
20
|
.hi-pop.sheet .hi-acts { flex-direction: column; align-items: stretch; }
|
|
21
|
-
.hi-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--cz-c-d9dce1); align-self: center; margin-bottom:
|
|
21
|
+
.hi-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--cz-c-d9dce1); align-self: center; margin-bottom: var(--space-4); }
|
|
22
22
|
.hi-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(42,46,53,.18); }
|
|
23
23
|
.hi-pop p { margin: 0; }
|
|
24
24
|
.hi-h3 { font-size: var(--fs-section); font-weight: var(--fw-strong); line-height: var(--lh-section); }
|
|
25
25
|
.hi-lbl { margin: 0; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); line-height: var(--lh-label); }
|
|
26
26
|
.hi-small { margin: 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
|
|
27
|
-
.hi-warn { background: var(--cz-riskbg); color: var(--cz-risk); border-radius: 14px; padding:
|
|
27
|
+
.hi-warn { background: var(--cz-riskbg); color: var(--cz-risk); border-radius: 14px; padding: var(--space-12) 14px; font-size: var(--fs-meta); line-height: var(--lh-meta); }
|
|
28
28
|
.hi-field { display: flex; flex-direction: column; gap: 6px; }
|
|
29
29
|
.hi-field > span { font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink2); line-height: var(--lh-label); }
|
|
30
30
|
.hi-field em { font-style: normal; font-weight: var(--fw-strong); color: var(--cz-ink3); }
|
|
31
31
|
.hi-field input, .hi-field textarea { box-sizing: border-box; width: 100%; border: 0; border-radius: 14px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size: var(--fs-body); padding: 10px 14px; outline: 0; line-height: var(--lh-body); }
|
|
32
32
|
.hi-field input { height: 42px; }
|
|
33
33
|
.hi-field textarea { min-height: 56px; resize: vertical; }
|
|
34
|
-
.hi-acts { display: flex; gap:
|
|
34
|
+
.hi-acts { display: flex; gap: var(--space-8); flex-wrap: wrap; align-items: center; }
|
|
35
35
|
.hi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
36
36
|
.hi-chips .cz-chip[aria-pressed="true"] { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
37
|
-
.hi-cks { display: flex; flex-direction: column; gap:
|
|
37
|
+
.hi-cks { display: flex; flex-direction: column; gap: var(--space-4); }
|
|
38
38
|
.hi-pop:not(.sheet) .hi-cks { display: none; } /* the card shows the items; the phone's sheet repeats them (InPhone) */
|
|
39
|
-
.hi-ck { display: flex; align-items: center; gap:
|
|
39
|
+
.hi-ck { display: flex; align-items: center; gap: var(--space-8); font-size: var(--fs-meta); color: var(--cz-ink2); padding: 2px 0; line-height: var(--lh-meta); }
|
|
40
40
|
.hi-ck i { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--cz-c-c5c9d0); box-sizing: border-box; display: inline-grid; place-items: center; flex: none; color: var(--cz-card); }
|
|
41
41
|
.hi-ck.on i { background: var(--cz-ink); border-color: var(--cz-ink); }
|
|
42
|
-
.hi-mlbl { margin: 0; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); padding:
|
|
43
|
-
.hi-hr { height: 1px; background: var(--cz-hair); margin:
|
|
44
|
-
.hi-mi { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0
|
|
42
|
+
.hi-mlbl { margin: 0; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); padding: var(--space-8) var(--space-12) var(--space-4); line-height: var(--lh-label); }
|
|
43
|
+
.hi-hr { height: 1px; background: var(--cz-hair); margin: var(--space-4) 0; }
|
|
44
|
+
.hi-mi { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 var(--space-12); border-radius: 12px; font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--cz-ink); width: 100%; border: 0; background: none; cursor: pointer; text-align: left; line-height: var(--lh-row); }
|
|
45
45
|
.hi-mi:hover, .hi-mi.on { background: var(--cz-well); }
|
|
46
46
|
.hi-mi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
47
47
|
.hi-mi em { font-style: normal; margin-left: auto; font-size: var(--fs-label); color: var(--cz-ink3); font-weight: var(--fw-strong); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--lh-label); }
|
|
@@ -49,41 +49,41 @@
|
|
|
49
49
|
.hi-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
50
50
|
|
|
51
51
|
/* the toast with Undo: info, so it does not move */
|
|
52
|
-
.hi-toast { position: fixed; z-index: 95; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap:
|
|
52
|
+
.hi-toast { position: fixed; z-index: 95; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: var(--space-12); padding: 6px 6px 6px var(--space-16); border-radius: var(--radius-pill); background: var(--cz-ink); color: var(--cz-card); font-family: var(--cz-sans); font-size: var(--fs-body); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); line-height: var(--lh-body); }
|
|
53
53
|
.hi-toast[hidden] { display: none; }
|
|
54
54
|
.hi-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
55
|
-
.hi-toast button { height: 32px; padding: 0
|
|
55
|
+
.hi-toast button { height: 32px; padding: 0 var(--space-12); border-radius: var(--radius-pill); border: 0; background: rgba(255,255,255,.14); color: inherit; font: inherit; font-weight: var(--fw-strong); cursor: pointer; flex: none; }
|
|
56
56
|
.hi-pop.wide:not(.sheet) { width: 560px; }
|
|
57
57
|
.hi-pop.menu .hi-mi .wfi { margin-left: -2px; }
|
|
58
|
-
.hi-wfpad { padding:
|
|
58
|
+
.hi-wfpad { padding: var(--space-4) var(--space-12) 6px; }
|
|
59
59
|
.hi-wfchain { line-height: 1.5; }
|
|
60
60
|
.hi-mut { color: var(--cz-ink3); }
|
|
61
|
-
.hi-wfh { display: flex; align-items: center; gap:
|
|
61
|
+
.hi-wfh { display: flex; align-items: center; gap: var(--space-8); }
|
|
62
62
|
.hi-wfh .hi-h3 { flex: 1; min-width: 0; }
|
|
63
63
|
.hi-wfrows { display: flex; flex-direction: column; }
|
|
64
|
-
.hi-wfrow { display: grid; grid-template-columns: minmax(0, 130px) 14px minmax(0, 130px) minmax(0, 1fr); align-items: center; gap: 10px; padding:
|
|
64
|
+
.hi-wfrow { display: grid; grid-template-columns: minmax(0, 130px) 14px minmax(0, 130px) minmax(0, 1fr); align-items: center; gap: 10px; padding: var(--space-8) 0; border-top: 1px solid var(--cz-hair); font-size: var(--fs-body); line-height: var(--lh-body); }
|
|
65
65
|
.hi-wfrow:first-child { border-top: 0; }
|
|
66
66
|
.hi-wfrow span { min-width: 0; }
|
|
67
67
|
.hi-wfrow em { display: block; font-style: normal; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
|
|
68
|
-
.hi-wfland { display: flex; align-items: center; gap:
|
|
68
|
+
.hi-wfland { display: flex; align-items: center; gap: var(--space-8); }
|
|
69
69
|
.hi-wfland span { flex: 1; }
|
|
70
|
-
.hi-wfland select { font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink); background: var(--cz-well); border: 0; border-radius:
|
|
70
|
+
.hi-wfland select { font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink); background: var(--cz-well); border: 0; border-radius: var(--radius-md); padding: 6px 10px; max-width: 60%; line-height: var(--lh-label); }
|
|
71
71
|
/* A's bridge (batch 20 item 3, canvas WmB): old stages grouped into each new stage, the scope, one picker per old stage, ✕ and ✓ as icons */
|
|
72
72
|
.hi-wfrow.hi-wfgrp { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 150px); }
|
|
73
73
|
.hi-wfgrp i { font-style: normal; color: var(--cz-ink3); }
|
|
74
|
-
.hi-wfgrp em { display: inline; margin-left:
|
|
74
|
+
.hi-wfgrp em { display: inline; margin-left: var(--space-4); }
|
|
75
75
|
.hi-wfseg { display: inline-flex; align-self: flex-start; background: var(--cz-well); border-radius: 14px; padding: 3px; }
|
|
76
|
-
.hi-wfsegb { min-height: 32px; padding: 0
|
|
76
|
+
.hi-wfsegb { min-height: 32px; padding: 0 var(--space-12); border: 0; border-radius: 11px; background: none; color: var(--cz-ink2); font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); cursor: pointer; line-height: var(--lh-label); }
|
|
77
77
|
.hi-wfsegb.on { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 2px rgba(20,24,40,.15); }
|
|
78
78
|
.hi-wfmore summary { cursor: pointer; color: var(--cz-ink2); }
|
|
79
|
-
.hi-wfmaps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding-top:
|
|
80
|
-
.hi-wfmap { display: flex; align-items: center; gap:
|
|
79
|
+
.hi-wfmaps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding-top: var(--space-8); }
|
|
80
|
+
.hi-wfmap { display: flex; align-items: center; gap: var(--space-8); }
|
|
81
81
|
.hi-wfmap span { flex: 1; min-width: 0; }
|
|
82
|
-
.hi-wfmap select { font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink); background: var(--cz-well); border: 0; border-radius:
|
|
82
|
+
.hi-wfmap select { font: inherit; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink); background: var(--cz-well); border: 0; border-radius: var(--radius-md); padding: 6px var(--space-8); max-width: 60%; line-height: var(--lh-label); }
|
|
83
83
|
.hi-actsi { justify-content: flex-end; }
|
|
84
84
|
.hi-actsi .hi-ib { width: 44px; height: 44px; background: var(--cz-well); }
|
|
85
85
|
.hi-actsi .hi-ib.pri { background: var(--cz-solid); color: var(--cz-onsolid); }
|
|
86
|
-
.hi-end { display: flex; align-items: center; gap: 10px; padding: 10px
|
|
86
|
+
.hi-end { display: flex; align-items: center; gap: 10px; padding: 10px var(--space-12); border-radius: var(--radius-card); background: var(--cz-well); font-size: var(--fs-body); line-height: var(--lh-body); }
|
|
87
87
|
.hi-end p { margin: 0; flex: 1; min-width: 0; color: var(--cz-ink2); }
|
|
88
88
|
.hi-endi { display: inline-flex; color: var(--cz-ink3); }
|
|
89
89
|
@media (max-width: 760px) {
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
.hi-wfmaps { grid-template-columns: 1fr; }
|
|
93
93
|
.hi-end { flex-wrap: wrap; }
|
|
94
94
|
}
|
|
95
|
-
.hi-pop .wfi { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius:
|
|
95
|
+
.hi-pop .wfi { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: var(--radius-sm); background: var(--cz-well); color: var(--cz-ink2); }
|
|
96
96
|
.hi-pop .wfi svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
97
97
|
/* a small form in the Viewer (the Board's Add a stakeholder) */
|
|
98
|
-
.hi-form { display: flex; flex-direction: column; gap:
|
|
98
|
+
.hi-form { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-16) 20px var(--space-24); font-size: var(--fs-body); color: var(--cz-ink); line-height: var(--lh-body); }
|
|
99
99
|
/* the stage chip's picker (pm/ini-more.js stagePick; batch 16 item 5c, FmI2Stage): every stage, the current one marked, the switch, then the endings */
|
|
100
100
|
.hi-sp.on { background: var(--cz-bluebg); font-weight: var(--fw-strong); }
|
|
101
101
|
.hi-spn { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--cz-well); font-style: normal; font-size: var(--fs-badge); font-weight: var(--fw-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); line-height: var(--lh-badge); }
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
.hi-spw { cursor: default; }
|
|
106
106
|
.hi-spw:hover { background: none; }
|
|
107
107
|
.hi-spw span { flex: 1; }
|
|
108
|
-
.hi-spw .hi-sw { position: relative; flex: none; width: 32px; height: 20px; border-radius:
|
|
108
|
+
.hi-spw .hi-sw { position: relative; flex: none; width: 32px; height: 20px; border-radius: var(--radius-pill); background: var(--cz-c-d9dce1); border: 0; padding: 0; cursor: pointer; }
|
|
109
109
|
.hi-spw .hi-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cz-card); transition: left .15s; }
|
|
110
110
|
.hi-spw .hi-sw[aria-checked="true"] { background: var(--cz-blue); }
|
|
111
111
|
.hi-spw .hi-sw[aria-checked="true"]::after { left: 15px; }
|
|
@@ -481,7 +481,7 @@ export function mountChat(el, host) {
|
|
|
481
481
|
// chief-of-staff C5 (CsB): the soft "You are on …" chip of the chat over a page; × drops it (sc.drop), and the chip then reads Everything
|
|
482
482
|
const scope = to || wait ? '' : sc.drop ? `<button type="button" class="hm-chip soft" data-hm-scope aria-label="${esc(sc.text)}. Drop this" title="Drop this">${SVG(sc.icon, 14)}<span>${esc(sc.text)}</span>${SVG(XX, 14)}</button>`
|
|
483
483
|
: `<button type="button" class="hm-chip${sc.loose ? ' loose' : ''}" data-hm-scope aria-label="Where this goes: ${esc(sc.text)}. Change" title="Where this goes: ${esc(sc.text)}">${SVG(sc.icon, 14)}<span>In: ${esc(sc.text)}</span></button>`;
|
|
484
|
-
const html = `${also}<form class="hm-box${on ? ' ut-on' : ''}" id="hmForm">${dot}<textarea id="hmIn" rows="1" aria-label="A message for ${esc(R.role.name)}" placeholder="${esc(ph)}"></textarea>`
|
|
484
|
+
const html = `${also}<form class="hm-box${on ? ' ut-on' : ''}" id="hmForm" data-draft-key="chat:${esc(t.key || t.sid || 'new')}">${dot}<textarea id="hmIn" rows="1" aria-label="A message for ${esc(R.role.name)}" placeholder="${esc(ph)}"></textarea>`
|
|
485
485
|
+ `<div class="hm-tb">${add}`
|
|
486
486
|
+ to + wait + scope + `<span class="sp"></span>${host.viewerClosed() ? '<span class="hm-key">Enter sends · Shift+Enter for a new line</span>' : ''}`
|
|
487
487
|
+ `${NPU.undoHtml()}${mic}<button type="submit" class="hm-send" aria-label="Send" title="Send">${SVG(UP, 18)}</button></div>`
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/* pm/home-impact.css — the weekly check of Your impact in Home's chat (batch 16 item 7; batch 23 item 4, canvas IcA). pm/home-impact.js. */
|
|
2
2
|
.im-card { clear: both; margin-top: 10px; max-width: 600px; } /* under Claude's line, never beside it (the line floats on a desk) */
|
|
3
|
-
.im-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap:
|
|
4
|
-
.im-q { position: relative; display: flex; align-items: flex-start; gap: 10px; padding:
|
|
3
|
+
.im-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
|
|
4
|
+
.im-q { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: var(--space-12) var(--space-8) var(--space-12) var(--space-16); border-radius: 18px; background: var(--cz-bluebg); }
|
|
5
5
|
.im-k { flex: none; display: inline-flex; margin-top: 2px; color: var(--cz-blueink); }
|
|
6
6
|
.im-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
7
7
|
.im-t { font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: 1.35; color: var(--cz-ink); overflow-wrap: anywhere; }
|
|
8
8
|
.im-w { font-size: var(--fs-body); color: var(--cz-ink2); overflow-wrap: anywhere; line-height: var(--lh-body); }
|
|
9
|
-
.im-src { display: inline-flex; align-items: center; gap:
|
|
9
|
+
.im-src { display: inline-flex; align-items: center; gap: var(--space-4); margin-top: 2px; font-size: var(--fs-meta); color: var(--cz-ink3); text-decoration: none; line-height: var(--lh-meta); }
|
|
10
10
|
.im-src:hover { text-decoration: underline; }
|
|
11
11
|
.im-src svg, .im-lock svg { flex: none; }
|
|
12
12
|
.im-mw { position: relative; flex: none; }
|
|
13
13
|
.im-more { width: 28px; height: 28px; color: var(--cz-ink2); }
|
|
14
14
|
.ut-ib.im-more svg { stroke-width: 3.2; }
|
|
15
|
-
.im-pop { position: absolute; right: 0; top: 32px; z-index: 5; padding:
|
|
16
|
-
.im-pop button { display: flex; align-items: center; gap:
|
|
15
|
+
.im-pop { position: absolute; right: 0; top: 32px; z-index: 5; padding: var(--space-4); border-radius: 14px; background: var(--cz-card); box-shadow: 0 14px 34px -14px rgba(42, 46, 53, .4), 0 0 0 1px var(--cz-hair); }
|
|
16
|
+
.im-pop button { display: flex; align-items: center; gap: var(--space-8); height: 36px; padding: 0 var(--space-12); border: 0; border-radius: var(--radius-md); background: none; color: var(--cz-ink); font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); white-space: nowrap; cursor: pointer; line-height: var(--lh-row); }
|
|
17
17
|
.im-pop button:hover, .im-pop button:focus-visible { background: var(--cz-well); }
|
|
18
18
|
.im-pop svg { width: 15px; height: 15px; }
|
|
19
|
-
.im-q.im-gone { align-items: center; padding:
|
|
19
|
+
.im-q.im-gone { align-items: center; padding: var(--space-8) var(--space-8) var(--space-8) var(--space-16); background: var(--cz-well); color: var(--cz-ink3); font-size: var(--fs-body); line-height: var(--lh-body); }
|
|
20
20
|
.im-gt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
21
|
-
.im-undo { flex: none; height: 32px; padding: 0
|
|
21
|
+
.im-undo { flex: none; height: 32px; padding: 0 var(--space-12); border: 0; border-radius: var(--radius-pill); background: none; color: var(--cz-blueink); font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); cursor: pointer; line-height: var(--lh-row); }
|
|
22
22
|
.im-undo:hover { background: var(--cz-card); }
|
|
23
23
|
.im-lock { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
|
|
24
|
-
.im-msg { margin:
|
|
24
|
+
.im-msg { margin: var(--space-4) 0 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
|
|
25
25
|
.im-msg:empty { display: none; }
|
|
26
26
|
@media (prefers-reduced-motion: no-preference) { .im-q { transition: background-color .2s ease; } }
|
|
27
27
|
/* the day's moment (pm/home-moment.js, onboarding B3 ObA4Gradual): one ✦, the Guide page inline, ✓ opens the place, ✕ never again */
|
|
28
|
-
.mo-card { clear: both; margin-top: 10px; max-width: 600px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding:
|
|
28
|
+
.mo-card { clear: both; margin-top: 10px; max-width: 600px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: var(--space-12) var(--space-12) var(--space-12) var(--space-16); border-radius: 18px; background: var(--cz-bluebg); }
|
|
29
29
|
.mo-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
30
30
|
.mo-w { font-size: var(--fs-body); color: var(--cz-ink2); line-height: var(--lh-body); overflow-wrap: anywhere; }
|
|
31
31
|
.mo-guide { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--cz-blueink); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-strong); cursor: pointer; }
|
|
32
32
|
.mo-guide:hover { text-decoration: underline; }
|
|
33
|
-
.mo-ok, .mo-x { flex: none; width: 36px; height: 36px; border-radius:
|
|
33
|
+
.mo-ok, .mo-x { flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
|
|
34
34
|
.mo-ok { border: 0; background: var(--cz-ink); color: var(--cz-card); }
|
|
35
35
|
.mo-x { border: 1px solid var(--cz-hair2, var(--cz-hair)); background: var(--cz-card); color: var(--cz-ink2); }
|
|
36
36
|
.mo-ok:disabled, .mo-x:disabled { opacity: .5; cursor: default; }
|