create-pmos 0.441.0 → 0.443.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 (87) hide show
  1. package/package.json +25 -25
  2. package/payload/KIT-VERSION +1 -1
  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/workspace/adler-seasons-art-test.js +106 -0
  7. package/workspace/adler-seasons-test.js +111 -0
  8. package/workspace/briefing-premium-board-test.js +19 -17
  9. package/workspace/briefing-premium-initiative-test.js +7 -4
  10. package/workspace/changelog.json +24 -0
  11. package/workspace/goals-clear-ui-test.js +249 -0
  12. package/workspace/guide/adler.md +10 -0
  13. package/workspace/guide/home.md +8 -1
  14. package/workspace/guide/metric-drafts.md +8 -2
  15. package/workspace/home-railcard-test.js +193 -0
  16. package/workspace/ini-workflow-test.js +6 -2
  17. package/workspace/intelligence-gaps-ui-test.js +16 -14
  18. package/workspace/lib/engine/records/index.js +9 -2
  19. package/workspace/lib/initiative-layout.js +3 -1
  20. package/workspace/lib/insights-premium.js +22 -1
  21. package/workspace/lib/metric-drafts.js +37 -10
  22. package/workspace/lib/metric-read-runs.js +20 -13
  23. package/workspace/lib/metric-reads.js +208 -23
  24. package/workspace/lib/metrics-cli.js +62 -5
  25. package/workspace/lib/routes-goal-status.js +89 -6
  26. package/workspace/lib/routes-insights-premium.js +1 -1
  27. package/workspace/lib/routes-metric-drafts.js +26 -3
  28. package/workspace/lib/settings-store.js +38 -0
  29. package/workspace/metric-drafts-ui-test.js +7 -4
  30. package/workspace/okr-goals-ui-test.js +7 -5
  31. package/workspace/package-lock.json +2 -2
  32. package/workspace/package.json +1 -1
  33. package/workspace/premium-board-actions-test.js +2 -1
  34. package/workspace/premium-chat-attach-test.js +2 -0
  35. package/workspace/program-panel-test.js +1 -1
  36. package/workspace/public/pm/bd-ini-panel.js +2 -2
  37. package/workspace/public/pm/c3-ini-ui.js +1 -1
  38. package/workspace/public/pm/cozy-adler.css +21 -0
  39. package/workspace/public/pm/cozy-adler.js +415 -8
  40. package/workspace/public/pm/cozy-ev.css +16 -1
  41. package/workspace/public/pm/cozy-home.css +8 -0
  42. package/workspace/public/pm/cozy-insights.css +82 -0
  43. package/workspace/public/pm/cozy-live-pill.css +5 -0
  44. package/workspace/public/pm/cozy-news.js +1 -1
  45. package/workspace/public/pm/cozy-seasons.js +318 -0
  46. package/workspace/public/pm/cozy-settings.js +88 -5
  47. package/workspace/public/pm/cozy-today.css +15 -0
  48. package/workspace/public/pm/cozy-viewer.js +50 -18
  49. package/workspace/public/pm/cozy-vw-shell.css +4 -0
  50. package/workspace/public/pm/cozy.css +65 -0
  51. package/workspace/public/pm/dash-view.js +4 -2
  52. package/workspace/public/pm/goals-clear.js +258 -0
  53. package/workspace/public/pm/home-app.js +59 -5
  54. package/workspace/public/pm/home-chat.js +1 -1
  55. package/workspace/public/pm/home-day.js +7 -4
  56. package/workspace/public/pm/home-ini.js +2 -2
  57. package/workspace/public/pm/home-mentions.js +1 -1
  58. package/workspace/public/pm/home-today.js +51 -10
  59. package/workspace/public/pm/impact.js +1 -1
  60. package/workspace/public/pm/ini-groups.js +28 -17
  61. package/workspace/public/pm/ini-links.js +1 -1
  62. package/workspace/public/pm/ini-tasks.js +246 -48
  63. package/workspace/public/pm/ini-view-model.js +45 -16
  64. package/workspace/public/pm/ini-view.css +330 -1
  65. package/workspace/public/pm/ini-view.js +196 -83
  66. package/workspace/public/pm/metric-drafts.js +4 -1
  67. package/workspace/public/pm/mission.js +238 -0
  68. package/workspace/public/pm/premium-board.js +1 -1
  69. package/workspace/public/pm/premium-insights.js +178 -24
  70. package/workspace/public/pm/premium-welcome.js +2 -2
  71. package/workspace/public/pm/split-merge.js +1 -1
  72. package/workspace/public/pm/stage-line.js +2 -2
  73. package/workspace/server.js +6 -2
  74. package/workspace/skills/metric-read.skill +7 -5
  75. package/workspace/split-merge-ui-test.js +1 -1
  76. package/workspace/stage-card-test.js +56 -11
  77. package/workspace/task-links-test.js +2 -0
  78. package/workspace/task-milestones-test.js +5 -1
  79. package/workspace/task-plans-test.js +3 -3
  80. package/workspace/task-views-test.js +279 -37
  81. package/workspace/test-lists/adler-seasons-art.json +13 -0
  82. package/workspace/test-lists/batch18-adler-seasons.json +13 -0
  83. package/workspace/test-lists/goals-clear.json +15 -0
  84. package/workspace/test-lists/home-railcard.json +9 -0
  85. package/workspace/test-lists/mission.json +5 -0
  86. package/workspace/test-lists/viewer-tasks.json +5 -0
  87. package/workspace/tk-tasks-test.js +27 -32
@@ -7,7 +7,8 @@
7
7
  * iniView(r, ctx) → { summary, stage, tasks, vs } the whole view, as data (vs: what pm/ini-versions.js rowFor put on the row, or null)
8
8
  * ctx: { steps (Product feature's eight, the model's), today (YYYY-MM-DD, the model's day), usual ({ days } | null, the usual days in the
9
9
  * current stage), grill ({ open, later } | null), program ({ id, title } | null), jiraAt ('Jira · 2h ago' | ''), ask ({ title } | null: a
10
- * session that waits on the PM, Home's), docs (count | null), linked (count | null) }
10
+ * session that waits on the PM, Home's; n: how many wait on this initiative), docs (count | null), linked (count | null), claude (Claude's
11
+ * line while a session works on it, Home's), people ([{ name }]: the stakeholders) }
11
12
  * stagesOf(r, steps) → { list: [{ key, name, ms, status: done | now | next | skip, why }], cur } the initiative's OWN workflow (D99)
12
13
  * sectionOf(task, list) → the stage key the task sits under in the breakdown, or '' (a WBS section is a task's place, never its state)
13
14
  * wbsOf(title) → { code, top } | null "10.5 TC to review" → { code: '10.5', top: '10' }; "WP-03 Token exchange" → { code: 'WP-03', top: 'WP' }
@@ -112,7 +113,12 @@ export function statusOf(r, grill, fmt) {
112
113
  /* a Jira ticket's dates as words (batch 11 item 23): the start and due the PM keeps in PMOS, else the sprint's end */
113
114
  const jDays = (k, today) => { const e = k.due || k.sprintEnd || ''; return k.start && e ? span(k.start, e, today) : k.start ? 'from ' + dateY(k.start, today) : e ? dateY(e, today) : ''; };
114
115
  /* ── one task row ── */
115
- function rowOf(k, today) {
116
+ /** The PMOS status a Jira status reads as: Done, In progress (review and test count as work under way), else To do. */
117
+ const jiraBucket = (st) => (/^(done|closed|resolved|released)$/i.test(String(st || '')) ? 'Done' : /progress|review|test|\bqa\b|doing|started|block/i.test(String(st || '')) ? 'In progress' : 'To do');
118
+ /** k: the task as stored; J: the Jira ticket its title names, when PMOS read that ticket (0.442.0 hotfix, Wawan 13:02 and 13:03). A linked task's
119
+ * status is the ticket's; its start and due stay the PM's, kept in PMOS: Jira's start and due show only while the task has none of its own. */
120
+ function rowOf(k0, today, J = null) {
121
+ const k = J ? { ...k0, status: jiraBucket(J.status), start: k0.start || J.start || '', end: k0.end || J.due || J.sprintEnd || '' } : k0;
116
122
  const closed = CLOSED.has(k.status), d = dayOf(k.end), late = !closed && !!d && d < today;
117
123
  // start and end both (batch 7 item 6): "Oct 15 – Oct 28", one day once, "from Oct 15" with no end
118
124
  const days = k.start && k.end ? span(k.start, k.end, today) : k.start ? 'from ' + dateY(k.start, today) : d ? dateY(k.end, today) : '';
@@ -122,19 +128,31 @@ function rowOf(k, today) {
122
128
  return { uid: k.uid, title: k.title, status: k.status || 'To do', closed, done: k.status === 'Done', wont: k.status === "Won't do", prog: k.status === 'In progress', late, due,
123
129
  days, lateText: late ? plural(between(d, today), 'day', 'days') + ' late' : '', item: !!k.item, ms: !!k.milestone, // ms: the ◇ flag (batch 11 item 3)
124
130
  start: k.start || '', end: k.end || '', owner: who, av: initials(k.owner),
125
- sub: [k.status === 'In progress' ? 'In progress' : '', due, who && who !== 'You' ? who : ''].filter(Boolean).join(' · '), wbs: wbsOf(k.title), canCheck: !!k.uid && !k.draft, order: k.order,
131
+ sub: [k.status === 'In progress' ? 'In progress' : '', due, who && who !== 'You' ? who : ''].filter(Boolean).join(' · '), wbs: wbsOf(k.title), canCheck: !!k.uid && !k.draft && !J, order: k.order,
126
132
  // planned versus actual (batch 11 item 8, pm/ini-versions.js): the compared version's days where they differ, ⊕ added after it, a draft's task
127
- cmp: k.cmp || null, added: !!k.added, dr: !!k.draft, jkey: jiraKeyOf(k.title) };
133
+ cmp: k.cmp || null, added: !!k.added, dr: !!k.draft,
134
+ // jkey: the key of the Jira ticket the task is linked to, only when PMOS read that ticket; jst: its own Jira status (it owns the status)
135
+ jkey: J ? J.key : '', jst: J ? String(J.raw || J.status || '') : '', _k: k0, _t: today };
136
+ }
137
+ /** The Jira keys a task's title holds ("MSD-4376 Navigation tabs" → ['MSD-4376']). A task whose title names a ticket PMOS read IS that ticket
138
+ * (linkOf): it shows the Jira mark and the key once, its status is Jira's, and the ticket's own row does not show again (batch 11 item 4,
139
+ * batch 14 item 6). A key PMOS has not read stays text in a plain task: it looks like a ticket only when it is one (0.442.0 hotfix). */
140
+ const KEY_RE = /\b([A-Z][A-Z0-9]+-\d+)\b/g;
141
+ export const jiraKeysOf = (title) => [...String(title || '').matchAll(KEY_RE)].map((m) => m[1]);
142
+ export const jiraKeyOf = (title) => jiraKeysOf(title)[0] || '';
143
+ /** The read ticket a title names, from a Map key → ticket, or null. */
144
+ export const linkOf = (title, byKey) => { for (const k of jiraKeysOf(title)) if (byKey && byKey.has(k)) return byKey.get(k); return null; };
145
+ /** The rows of a view linked again with more tickets (the drafted tickets that are in Jira, read by pm/ini-groups.js): a row not linked yet
146
+ * whose title names one of them becomes that ticket. tickets: [{ key, status }]. */
147
+ export function linkRows(rows, tickets) {
148
+ const by = new Map((tickets || []).filter((t) => t && t.key).map((t) => [t.key, t]));
149
+ if (!by.size) return rows;
150
+ return rows.map((x) => { if (x.jkey || !x._k) return x; const J = linkOf(x.title, by); return J ? { ...rowOf(x._k, x._t, J), sec: x.sec } : x; });
128
151
  }
129
- /** The Jira key a task's title starts with ("MSD-4376 Navigation tabs" → 'MSD-4376'), or ''. A task named for a ticket IS that ticket:
130
- * Build's section shows it once, as the task (it carries the dates and the owner), not again as a Jira row (batch 11 item 4), and it looks
131
- * like a ticket: the Jira square and the key in blue (batch 14 item 6). */
132
- const KEY_RE = /^\s*([A-Z][A-Z0-9]+-\d+)\b/;
133
- export const jiraKeyOf = (title) => { const m = KEY_RE.exec(String(title || '')); return m ? m[1] : ''; };
134
152
  const urgent = (a, b) => (b.late - a.late) || (a.end || '9999').localeCompare(b.end || '9999') || (a.order != null && b.order != null ? a.order - b.order : 0);
135
153
  /** A section's rows: open ones first by urgency; past 5 open, the 3 most urgent then the rest folded by the next WBS level; done fold last
136
154
  * (Won't do joins it), then the archived ones, which only the List draws, folded after Done (batch 9 item 5b). */
137
- function bodyOf(rows, archived = []) {
155
+ export function bodyOf(rows, archived = []) {
138
156
  const open = rows.filter((x) => !x.closed).sort(urgent), done = rows.filter((x) => x.closed);
139
157
  if (open.length <= 5) return { top: open, groups: [], done, archived };
140
158
  const top = open.slice(0, 3), rest = open.slice(3), by = new Map();
@@ -156,14 +174,16 @@ export function iniView(r, ctx = {}) {
156
174
  const today = todayOf(ctx), t = r.track || {}, tr = r.trail || {};
157
175
  const { list, cur } = stagesOf(r, ctx.steps);
158
176
  const T = (r.tasks || []).filter((k) => k.status !== 'Archived');
159
- const rows = T.map((k) => ({ ...rowOf(k, today), sec: sectionOf(k, list) }));
177
+ // the Jira tickets PMOS read for this initiative: a task whose title names one is linked to it
178
+ const byKey = new Map((t.tickets || []).filter((k) => k && k.key).map((k) => [k.key, k]));
179
+ const rows = T.map((k) => ({ ...rowOf(k, today, linkOf(k.title, byKey)), sec: sectionOf(k, list) }));
160
180
  // archived tasks count nowhere and show in no view but the List's Archived fold (batch 9 item 5b)
161
- const arch = (r.tasks || []).filter((k) => k.status === 'Archived').map((k) => ({ ...rowOf(k, today), sec: sectionOf(k, list) }));
181
+ const arch = (r.tasks || []).filter((k) => k.status === 'Archived').map((k) => ({ ...rowOf(k, today, linkOf(k.title, byKey)), sec: sectionOf(k, list) }));
162
182
  const archOf = (keys) => arch.filter((x) => keys.includes(x.sec));
163
183
  const open = rows.filter((x) => !x.closed), late = open.filter((x) => x.late);
164
184
  const jira = !ownWf(r) && (t.key === 'build' || t.key === 'deliver') && (t.tickets || []).length > 0;
165
185
  // a ticket a task is named for shows once, as the task: it is not drawn or counted again as a Jira row
166
- const named = new Set(T.map((k) => jiraKeyOf(k.title)).filter(Boolean));
186
+ const named = new Set(rows.concat(arch).map((x) => x.jkey).filter(Boolean));
167
187
  const tkOwn = (t.tickets || []).filter((k) => !named.has(k.key));
168
188
 
169
189
  // the dates each stage ran: its board moves, oldest first; the first stage starts with the plan
@@ -254,7 +274,7 @@ export function iniView(r, ctx = {}) {
254
274
  // what waits on the PM: the track's, else the trail's (the Board merges the trail into the track; Home reads the row as sent)
255
275
  const you = t.you || (it.you && it.you.text) || null, youKind = t.youKind || (it.you && it.you.kind) || null, youWhy = t.youWhy || (it.you && it.you.why) || '';
256
276
  let wait = null;
257
- if (ctx.ask && ctx.ask.title) wait = { text: '“' + ctx.ask.title + '” needs your answer.', primary: { act: 'ask', label: 'Answer: ' + ctx.ask.title } };
277
+ if (ctx.ask && ctx.ask.title) wait = { text: '“' + ctx.ask.title + '” needs your answer.', say: 'Can you answer “' + ctx.ask.title + '”? I’ll carry on once you do.', primary: { act: 'ask', label: 'Answer: ' + ctx.ask.title } };
258
278
  else if (you && youKind) wait = { text: youWhy, primary: youKind === 'drift' && it.links && it.links.prd ? { act: 'doc:' + it.links.prd, label: 'Open the PRD' } : youKind === 'commit' ? { act: 'commit', label: 'Send to Jira' } : { act: 'page', label: you } };
259
279
  else if (you) { const opn = tk.filter((k) => k.status !== 'Done').length; wait = { text: opn ? plural(opn, 'ticket is', 'tickets are') + ' still open, so the sign-off can wait until they close.' : 'Every release ticket is done.', primary: { act: 'page', label: you } }; }
260
280
  else if (ctx.grill && ctx.grill.open && !ctx.grill.later) wait = { text: 'PMOS asks what the BRD needs that the Why does not say yet.', primary: { act: 'grill', label: 'Answer the questions' } };
@@ -264,6 +284,11 @@ export function iniView(r, ctx = {}) {
264
284
  : { line: s.tone === 'late' && /^The plan ended /.test(why) ? 'Late' : s.text, tone: s.tone === 'late' || s.tone === 'risk' ? 'warn' : s.tone === 'ok' ? 'ok' : '', right: progress,
265
285
  text: [why, lateSay].filter(Boolean).join(' '), primary: null, status: null };
266
286
  summary.owner = r.owner ? { name: r.owner, av: initials(r.owner) } : null;
287
+ // the card in Adler's voice (batch 18 item 1, XvpA1): what he asks, how many asks wait here, Claude's line while it works, the stakeholders
288
+ summary.say = wait ? wait.say || summary.text : '';
289
+ summary.n = wait ? Math.max(1, (ctx.ask && ctx.ask.n) || 1) : 0;
290
+ summary.claude = !wait && ctx.claude ? String(ctx.claude) : '';
291
+ summary.stake = (ctx.people || []).filter((x) => x && x.name).map((x) => ({ name: x.name, av: initials(x.name) }));
267
292
  summary.wf = r.wf || { id: PF_ID, name: 'Product feature', icon: 'feature' };
268
293
  summary.program = ctx.program || null;
269
294
  const today2 = (n) => String(n).padStart(2, '0');
@@ -335,15 +360,19 @@ export function groupSections(tasks, by, L, T) {
335
360
  if (arch.length) out.push(sec('group', 's:Archived', 'Archived', [], { archived: arch, open: false }));
336
361
  } else if (by === 'epic') {
337
362
  const G = ticketGroups(T), pushed = new Set(((T && T.tickets) || []).map((t) => t.key).filter(Boolean));
363
+ // a task linked to a ticket in Jira shows once: as that ticket, in its epic, carrying the task's dates (its bar on the Timeline)
364
+ const linked = new Map(all.concat(arch).filter((x) => x.jkey && pushed.has(x.jkey)).map((x) => [x.jkey, x]));
338
365
  G.forEach((g, i) => out.push({ kind: 'epic', key: 'ep:' + g.id, label: g.name, sub: '', epicKey: g.key || '', gid: g.id, send: T.pushing ? 0 : g.send,
339
- count: g.inJira === g.n ? g.n + ' in Jira' : (g.n - g.inJira) + ' drafted', warn: false, open: i === 0, top: [], groups: [], done: [], archived: [], jira: null, tk: g.rows }));
366
+ count: g.inJira === g.n ? g.n + ' in Jira' : (g.n - g.inJira) + ' drafted', warn: false, open: i === 0, top: [], groups: [], done: [], archived: [], jira: null,
367
+ tk: g.rows.map((r) => (r.inJira && r.key && linked.has(r.key) ? { ...r, x: linked.get(r.key) } : r)) }));
340
368
  // "Jira read at 9:02", said once, under the last epic that has a ticket in Jira
341
369
  const lastJ = out.filter((x) => x.kind === 'epic' && x.tk.some((r) => r.inJira)).pop(); if (lastJ && T.checkedAt) lastJ.tkRead = T.checkedAt;
342
370
  // nothing drafted: By epic says what comes next (every gap has its next action): Draft the tickets, or why there is nothing to draft
343
371
  if (!G.length) out.push({ kind: 'epic', key: 'ep:', label: 'Jira tickets', sub: '', count: '', open: true, top: [], groups: [], done: [], archived: [], jira: null,
344
372
  tkEmpty: !T ? { reading: true } : T.ok !== true ? { error: T.error || 'The tickets could not be read.' } : T.items ? { items: T.items } : { none: true } });
345
373
  for (let i = jr.length - 1; i >= 0; i--) if (pushed.has(jr[i].key)) jr.splice(i, 1);
346
- out.push(sec('group', 'yours', 'Your tasks', all, { archived: arch, open: !G.length }));
374
+ const own = (x) => !(x.jkey && linked.has(x.jkey));
375
+ out.push(sec('group', 'yours', 'Your tasks', all.filter(own), { archived: arch.filter(own), open: !G.length }));
347
376
  const send = G.reduce((a, g) => a + g.send, 0), open = tasks.open || 0, meta = [open ? open + ' open' : '', 'grouped by epic'].filter(Boolean).join(' · ');
348
377
  if (T && T.ok === true && T.pushing) sum = { line: 'Sending to Jira', tone: 'live', text: 'Claude is creating the tickets with your Atlassian connection. Each task shows its Jira key when it is done.', meta };
349
378
  else if (send) sum = { line: plural(send, 'ticket is', 'tickets are') + ' drafted, not in Jira', tone: 'you', text: 'Each PRD story is a task with its Jira ticket drafted. Nothing reaches Jira until you send it.', meta, primary: { act: 'sendall', label: 'Send to Jira' } };
@@ -1,5 +1,6 @@
1
1
  /* pm/ini-view.css — the ONE initiative view (feedback batch 6 item 1; canvas OvIniA, OvAEdges), drawn by pm/ini-view.js on the Board's
2
- * panel, Home's initiative page and the phone. Token vars from cozy.css only, so dark mode follows the page. No motion. */
2
+ * panel, Home's initiative page and the phone. Token vars from cozy.css only, so dark mode follows the page. The only motion is the
3
+ * mission's and Adler's wash on the card (batch 18 item 1), and it stops under reduced motion and Settings > Adler > Motion: Still. */
3
4
  .iv { display: flex; flex-direction: column; gap: 12px; color: var(--cz-ink); font-family: var(--cz-sans); }
4
5
  .iv button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
5
6
  .iv button:disabled { cursor: default; }
@@ -271,6 +272,11 @@ button.iv-chip:hover { background: var(--cz-well) !important; }
271
272
  .ivt-r.ax .ivt-n { background: var(--cz-well); }
272
273
  .ivt-r.ax .ivt-c span { position: absolute; top: 8px; font-size: var(--fs-1); font-weight: 700; color: var(--cz-ink3); white-space: nowrap; padding-left: 4px; }
273
274
  .ivt-r.ax .ivt-c span.b { color: var(--cz-ink2); font-weight: 800; }
275
+ .ivt-r.ax .ivt-c span.cut { visibility: hidden; } /* cut by an edge or under the Today chip (ini-tasks.js wireDrag) */
276
+ /* Home's phone rule gives every button in its Viewer 44 px (home-ini.css .hi-v button): a bar, a mark or a title in the Timeline keeps its
277
+ * own size, or each bar grows to 44 px and spills over the next row (0.442.0 hotfix). The row stays the press area. */
278
+ .iv .ivt :is(.ivt-b, .ivt-d, .ivt-g, .iv-tt, .iv-cb, .iv-car), .iv .iva .iva-r.k :is(.iva-tb, .iva-md, .iv-tt, .iv-cb, .iv-dc) { min-height: 0; min-width: 0; }
279
+ .ivt-d.ms { width: 12px; height: 12px; margin: -6px 0 0 -6px !important; border-radius: 2px !important; transform: rotate(45deg); }
274
280
  .ivt-n { position: sticky; left: 0; z-index: 3; width: var(--nw); flex: none; background: var(--cz-card); display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; min-width: 0; }
275
281
  .ivt-r.k .ivt-n { padding-left: 34px; }
276
282
  .ivt-n .iv-tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; font-size: var(--fs-2); }
@@ -679,3 +685,326 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
679
685
  @media (min-width: 721px) {
680
686
  body.ivt-full #czViewer:has(.ivt) { position: fixed !important; inset: 12px; width: auto !important; max-width: none !important; flex-basis: auto !important; z-index: 90; border-radius: 16px; }
681
687
  }
688
+
689
+ /* ── the one view button and its sheet (batch 18 item 1, XvpA4Sheet): View, Group by, Zoom; three rows of the same shape ── */
690
+ .ivx-vb { display: inline-flex !important; align-items: center; gap: 2px; height: 36px; padding: 0 8px 0 10px !important; border-radius: 999px !important; background: var(--cz-well) !important; color: var(--cz-ink2) !important; flex: none; }
691
+ .ivx-vb:hover, .ivx-vb[aria-expanded="true"] { color: var(--cz-ink) !important; background: var(--cz-well2) !important; }
692
+ .tkc.ivq .ivs { width: 340px; max-width: calc(100vw - 16px); max-height: none; padding: 12px 12px 14px; gap: 0; box-sizing: border-box; }
693
+ .tkc.ivq.vs-pop.sheet .ivs { width: 100%; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); }
694
+ .ivs-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--cz-well2); margin: 2px auto 8px; }
695
+ .tkc.ivq.vs-pop.sheet .ivs-grab { display: block; }
696
+ .ivs-h { margin: 10px 4px 6px; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink2); }
697
+ .ivs-h:first-of-type { margin-top: 2px; }
698
+ .ivs-seg { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--cz-well); }
699
+ .ivs-seg button { flex: 1 1 0; min-width: 0; height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--cz-ink2); font: inherit; font-size: var(--fs-3); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
700
+ .ivs-seg button.mo { flex: 0 0 44px; }
701
+ .ivs-seg button.mo.on { flex: 0 1 auto; padding: 0 12px; }
702
+ .ivs-seg button:hover { color: var(--cz-ink); }
703
+ .ivs-seg button.on { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 3px rgba(42,46,53,.14); }
704
+ .ivs-note { margin: 10px 4px 0; font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink3); line-height: 1.4; }
705
+ .ivk-pk { display: flex; margin: 0 0 10px; }
706
+ .ivt-lg .ivt-fl { margin-left: 4px; width: 32px; height: 32px; }
707
+
708
+ /* the tasks with no dates, one row at the foot (XvpA3bMonths) */
709
+ .ivt { position: relative; }
710
+ .ivt-nd { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 14px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
711
+ .ivt-nd .w { display: inline-flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
712
+ .ivt-nd .w svg { color: var(--cz-ink3); flex: none; }
713
+ .ivt-set { min-height: 36px; padding: 0 10px !important; border-radius: 999px !important; color: var(--cz-blueink) !important; font-weight: 800; font-size: var(--fs-2); }
714
+ .ivt-set:hover { background: var(--cz-bluebg) !important; }
715
+ .ivt-ndl { border-top: 1px solid var(--cz-hair); padding: 2px 8px 6px 14px; }
716
+ /* an earlier start fades in at the left edge once the Timeline scrolls from its start */
717
+ .ivt-fade { position: absolute; left: var(--nw); top: 30px; bottom: 0; width: 24px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .2s; background: linear-gradient(90deg, var(--cz-card), transparent); }
718
+ .ivt.scl .ivt-fade { opacity: 1; }
719
+ .ivt:has(.ivt-nd) .ivt-fade { bottom: 45px; }
720
+ .ivt-wn { display: none; color: var(--cz-ink3); font-weight: 700; font-size: var(--fs-2); white-space: nowrap; }
721
+ .ivt-wn b { color: var(--cz-late); font-weight: 800; }
722
+ @container (max-width: 520px) {
723
+ /* a phone: each title sits above its bar, from the bar's start; it sticks to the left edge once the start scrolls away */
724
+ /* --tl-n is a place on the whole track, not on the screen: the title is at most a screen wide, and starts no later than one screen
725
+ * before the track's end (0.442.0 hotfix: a start past the first screen squeezed the title to nothing, only the dates showed) */
726
+ .ivt-r.k .ivt-n { position: sticky; left: 0; width: auto; max-width: var(--tl-fw, calc(100cqw - 12px)); margin-left: var(--tl-fl, max(0px, min(var(--tl-n, 0px), 100% - 100cqw + 12px))); padding-left: 6px; padding-right: 6px; background: transparent; gap: 8px; z-index: 3; }
727
+ /* a group's name lets the Today line through: an opaque name cut gaps in it (0.442.0 hotfix) */
728
+ .ivt-r.g .ivt-n { background: transparent; }
729
+ .ivt-r.k .ivt-n .iv-tt { flex: 0 1 auto; }
730
+ .ivt-wn { display: inline; flex: none; }
731
+ .ivt-r.k .ivt-g { display: none; }
732
+ }
733
+
734
+ /* ── Timeline at All: a desktop's name column and bars (XvpD3Timeline); a phone's narrow number column, each title above its bar
735
+ * (XvpA3Timeline). Rows are 44 px; positions are % of the track (.iva-c); Today's chip at the foot. ── */
736
+ .iva { --an: 40px; --lw: clamp(200px, 38cqw, 300px); overflow: hidden; }
737
+ .iva .iva-n { width: var(--an); flex: none; display: inline-flex; align-items: center; justify-content: center; align-self: stretch; }
738
+ .iva .iva-l { width: var(--lw); flex: none; min-width: 0; display: flex; align-items: center; gap: 8px; padding-right: 10px; box-sizing: border-box; text-align: left; }
739
+ .iva .iva-c { position: relative; flex: 1; min-width: 0; display: block; align-self: stretch; margin-right: 14px; }
740
+ .iva-ax { display: flex; height: 34px; background: var(--cz-well); }
741
+ .iva-ax .iva-c span { position: absolute; top: 9px; font-size: var(--fs-1); font-weight: 700; color: var(--cz-ink3); white-space: nowrap; transform: translateX(-2px); }
742
+ .iva-ax .iva-c span.b { color: var(--cz-ink2); font-weight: 800; }
743
+ .iva-ft { display: flex; height: 34px; position: relative; }
744
+ .iva-tc { position: absolute; top: 6px; transform: translateX(-50%); font-style: normal; font-size: var(--fs-1); font-weight: 800; color: var(--cz-card); background: var(--cz-blue); border-radius: 999px; padding: 2px 9px; white-space: nowrap; z-index: 3; }
745
+ .iva-bd { position: relative; }
746
+ .iva-ly { position: absolute; top: 0; bottom: -10px; left: calc(var(--an) + var(--lw)); right: 14px; pointer-events: none; z-index: 2; }
747
+ .iva-ly i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--cz-hair); }
748
+ .iva-ly i.iva-tl { width: 2px; margin-left: -1px; background: var(--cz-blue); bottom: -16px; }
749
+ .iva [data-tlx] { left: var(--tl-x); }
750
+ .iva [data-tlw] { width: var(--tl-w); }
751
+ .iva-r { display: flex !important; width: 100%; min-height: 44px; border-top: 1px solid var(--cz-hair) !important; position: relative; text-align: left; align-items: stretch; padding: 0 !important; border-radius: 0 !important; }
752
+ .iva-r.g:disabled { cursor: default; opacity: 1; color: inherit; }
753
+ .iva-r.g.op { background: color-mix(in srgb, var(--cz-blue) 6%, var(--cz-card)) !important; }
754
+ .iva-r.k { background: color-mix(in srgb, var(--cz-blue) 3%, var(--cz-card)); }
755
+ .iva-r.g .iva-l b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
756
+ .iva-r.g.mut .iva-l b { color: var(--cz-ink3); font-weight: 700; }
757
+ .iva-r.g .iva-l small { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); white-space: nowrap; flex: none; }
758
+ .iva-ch { margin-left: auto; color: var(--cz-ink3); display: inline-flex; flex: none; }
759
+ .iva-cv { display: none; }
760
+ .iva-r.k .iva-n { padding-left: 14px; }
761
+ .iva-r.k .iva-l { padding-left: 14px; }
762
+ .iva-r.k .iva-l .iv-tt { font-size: var(--fs-2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
763
+ .iva-r.x .iva-l .iv-tt { color: var(--cz-ink3); font-weight: 600; }
764
+ .iva-nt { font-size: var(--fs-1); font-weight: 800; white-space: nowrap; flex: none; }
765
+ .iva-nt.lt { color: var(--cz-late); }
766
+ .iva-nt.you { color: var(--cz-blueink); }
767
+ .iva-mg { color: var(--cz-ink2); display: inline-flex; }
768
+ .iva-l .ivt-wn { display: none; }
769
+ .iva-l .iv-dc { margin-left: 0; }
770
+ .iva-b { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: color-mix(in srgb, var(--cz-ink3) 22%, var(--cz-card)); z-index: 1; }
771
+ .iva-b.now { background: var(--cz-blue); }
772
+ .iva-b.dn { background: color-mix(in srgb, var(--cz-ink3) 55%, var(--cz-card)); }
773
+ .iva-md { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px !important; transform: rotate(45deg); border-radius: 2px !important; border: 2px solid var(--cz-ink2) !important; background: var(--cz-card) !important; box-sizing: border-box; z-index: 2; padding: 0 !important; }
774
+ .iva-md.st { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px !important; }
775
+ .iva-md.dn { background: var(--cz-ink3) !important; border-color: var(--cz-ink3) !important; }
776
+ .iva-md.lt { border-color: var(--cz-late) !important; }
777
+ .iva-tb { position: absolute; top: 50%; height: 10px; margin-top: -5px !important; border-radius: 5px !important; background: var(--cz-well2) !important; z-index: 1; padding: 0 !important; min-width: 6px; }
778
+ .iva-tb.pr { background: color-mix(in srgb, var(--cz-blue) 45%, var(--cz-card)) !important; }
779
+ .iva-tb.lt { background: color-mix(in srgb, var(--cz-late) 45%, var(--cz-card)) !important; }
780
+ .iva-tb.dn { background: color-mix(in srgb, var(--cz-ink3) 30%, var(--cz-card)) !important; }
781
+ .iva-tb.dr { background: transparent !important; outline: 1.5px dashed var(--cz-ink3); outline-offset: -1.5px; }
782
+ .iva-r.k .iv-bxw { align-self: center; }
783
+ .iva-r.k .iv-cb { margin-top: 0 !important; }
784
+ button.iva-tb:hover, button.iva-r.g:not(:disabled):hover { filter: brightness(.97); }
785
+ @container (max-width: 520px) {
786
+ /* a phone: the narrow number column only; each task's title, with its dates, above its bar from the bar's start */
787
+ .iva { --lw: 0px; --an: 44px; }
788
+ .iva .iva-n { border-right: 1px solid var(--cz-hair); }
789
+ .iva-ax .iva-n, .iva-ft .iva-n { border-right: 0; }
790
+ .iva .iva-l { padding: 0; }
791
+ .iva-ax .iva-c span.mo, .iva-ly i.mo { display: none; }
792
+ .iva-ax .iva-c span.qm { visibility: hidden; position: relative; }
793
+ .iva-ax .iva-c span.qm::after { content: attr(data-q); font-size: var(--fs-1); visibility: visible; position: absolute; left: 0; top: 0; white-space: nowrap; }
794
+ .iva-r.g:not(.nm) .iva-l { display: none; }
795
+ .iva-r.g.nm .iva-l, .iva-r.k .iva-l { position: absolute; top: 5px; width: auto; --at: max(0px, min((100% - var(--an) - 14px) * var(--tl-p, 0), 100% - var(--an) - 234px)); left: calc(var(--an) + var(--at)); max-width: calc(100% - var(--an) - var(--at) - 8px); padding: 0; z-index: 3; gap: 5px; }
796
+ .iva-r.g.nm .iva-l small, .iva-r.g.nm .iva-ch { display: none; }
797
+ .iva-r.g.nm .iva-l b { font-size: var(--fs-2); }
798
+ .iva-r.g.nm .iva-b, .iva-r.g.nm .iva-md, .iva-r.k .iva-tb, .iva-r.k .iva-md { top: 32px; }
799
+ .iva-r.k .iva-n, .iva-r.k .iva-l { padding-left: 0; }
800
+ .iva-r.k .iva-l { padding-left: 0; }
801
+ .iva-r.k .iva-mg { display: none; }
802
+ .iva-r.k .iva-l .ivt-wn { display: inline; }
803
+ .iva-r.k .iva-nt { display: none; }
804
+ .iva-cv { display: inline-flex; position: absolute; right: -10px; top: 50%; margin-top: -7px; color: var(--cz-ink3); z-index: 3; }
805
+ }
806
+ @media (prefers-reduced-motion: reduce) { .ivt-fade { transition: none; } }
807
+ .iv-grp.iv-rest { padding: 0 12px 0 14px !important; min-height: 44px; }
808
+ .iv-grp.iv-rest b { flex: none; color: var(--cz-ink2); }
809
+ .iv-grp.iv-rest .n { flex: 1; }
810
+
811
+ /* ── Tasks as one panel, its header inside (batch 18 item 1, XvpD1Desktop, Wawan 10:18): a Viewer 820 px wide or more, where the two columns start. The two columns
812
+ * themselves (the card left, Tasks right, both from the same top) are the Viewer layout's. ── */
813
+ @container iv (min-width: 820px) {
814
+ .iv-tasks { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 22px; padding: 14px 18px 18px; box-sizing: border-box; min-width: 0; }
815
+ .iv-tasks > .iv-th { margin-top: 0; }
816
+ .iv-tasks .iv-wbs { border: 0; border-radius: 0; }
817
+ }
818
+
819
+ /* ── the card and the mission (batch 18 item 1, agreed A; XvpA1, XvpA2Dark, XvpE1States, XvpE2Stages, XvpE5Adler, XvpD1Desktop) ── */
820
+ .iv { container: iv / inline-size; }
821
+ .iv-cols { display: flex; flex-direction: column; gap: 12px; }
822
+ .iv-cl, .iv-cr { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
823
+ /* two columns from about 900 px: the card in a 420 px column that stays in view while Tasks scroll */
824
+ @container iv (min-width: 820px) {
825
+ .iv-cols { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 12px 24px; align-items: start; }
826
+ .iv-cl { position: sticky; top: 0; }
827
+ /* Tasks starts level with the card (canvas v582), fills the Viewer's height and scrolls on its own */
828
+ .iv-cr > .iv-tasks { height: var(--iv-h, auto); overflow-y: auto; overscroll-behavior: contain; flex: none; }
829
+ .iv-cl > .iv-msc { display: flex; }
830
+ }
831
+ /* the Milestones card under the card, desktop only (Wawan 10:53, canvas v586): a green tick when done, the next in blue */
832
+ .iv-msc { display: none; flex-direction: column; gap: 2px; padding: 12px 10px 8px; background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 22px; }
833
+ .iv-msh { display: flex; align-items: baseline; gap: 8px; padding: 2px 6px 4px; }
834
+ .iv-msh b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
835
+ .iv-msh .n { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
836
+ .iv-msl { display: flex; flex-direction: column; }
837
+ .iv-msr { display: flex !important; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px !important; border-radius: 12px !important; width: 100%; text-align: left; background: transparent; color: inherit; font: inherit; border: 0; box-sizing: border-box; }
838
+ button.iv-msr { cursor: pointer; }
839
+ button.iv-msr:hover { background: var(--cz-well) !important; }
840
+ .iv-msk { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink3); flex: none; }
841
+ .iv-msk.dn { background: var(--cz-okbg); color: var(--cz-ok); }
842
+ .iv-msr.up .iv-msk { color: var(--cz-blueink); }
843
+ .iv-msr.up.late .iv-msk { color: var(--cz-late); }
844
+ .iv-msn { flex: 1; min-width: 0; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); line-height: 1.3; padding: 6px 0; overflow-wrap: anywhere; }
845
+ .iv-msr.dn .iv-msn { color: var(--cz-ink3); font-weight: 600; }
846
+ .iv-msd { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); white-space: nowrap; }
847
+ .iv-msr.up .iv-msd { color: var(--cz-blueink); }
848
+ .iv-msr.up.late .iv-msd { color: var(--cz-late); }
849
+ /* full width (pm/ini-tasks.js): the Timeline takes the window, so the columns stack */
850
+ body.ivt-full #czViewer:has(.ivt) .iv-cols { display: flex; flex-direction: column; align-items: stretch; }
851
+ body.ivt-full #czViewer:has(.ivt) .iv-cl { position: static; }
852
+ body.ivt-full #czViewer:has(.ivt) .iv-msc { display: none; }
853
+ body.ivt-full #czViewer:has(.ivt) .iv-cr > .iv-tasks { height: auto; overflow: visible; }
854
+ .iv-card { --tl-done: color-mix(in srgb, var(--cz-ink3) 88%, var(--cz-card)); --tl-plan: color-mix(in srgb, var(--cz-ink3) 24%, var(--cz-card)); padding: 16px 16px 14px; gap: 12px; position: relative; overflow: hidden; }
855
+ /* Adler's theme: the whole card takes his wash while he is on it; it drifts slowly. Without him the card is plain. */
856
+ .iv-card.adl { background: var(--iv-wash); background-size: 180% 180%; animation: iv-wash 14s ease-in-out infinite alternate; }
857
+ .iv-card.adl .iv-hr { background: var(--iv-washhr); }
858
+ .iv-card.adl .iv-ask .ad-svg { animation: iv-bob 3.6s ease-in-out infinite; }
859
+ @keyframes iv-wash { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
860
+ @keyframes iv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
861
+ .iv-hr { height: 1px; background: var(--cz-hair); margin: 0 -16px; }
862
+ /* the ask: his face, the ask in his voice, the count, one → */
863
+ .iv-ask { display: flex; align-items: flex-start; gap: 12px; }
864
+ .iv-ask > .ad-svg, .iv-ask > .ad-dot { flex: none; margin-top: 2px; }
865
+ .iv-ask .iv-why { flex: 1; min-width: 0; font-weight: 800; font-size: var(--fs-4); line-height: 1.4; }
866
+ .iv-ask.cl .iv-why { font-weight: 700; font-size: var(--fs-3); color: var(--cz-ink2); align-self: center; }
867
+ .iv-ask .iv-go { width: 40px; height: 40px; }
868
+ .iv-cnt { min-width: 26px; height: 26px; margin-top: 7px; padding: 0 8px !important; border-radius: 999px !important; background: var(--cz-bluebg) !important; color: var(--cz-blueink) !important; font-size: var(--fs-2); font-weight: 800; display: inline-flex !important; align-items: center; justify-content: center; flex: none; }
869
+ /* the meta line: 40 px presses on one line that never wraps; the program chip truncates first */
870
+ .iv-card .iv-meta { flex-wrap: nowrap; gap: 4px; min-width: 0; }
871
+ .iv-mt { width: 40px; height: 40px; flex: none; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 999px !important; color: var(--cz-ink3); }
872
+ .iv-mt .iv-av { width: 28px; height: 28px; font-size: var(--fs-1); background: var(--cz-well2); color: var(--cz-ink2); }
873
+ .iv-card.adl .iv-mt .iv-av { background: var(--cz-card); }
874
+ .iv-ring { color: var(--cz-ink3); }
875
+ .iv-ring svg { width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--cz-ink3) 60%, transparent); }
876
+ .iv-avs { width: auto; padding: 0 6px !important; }
877
+ .iv-avs .iv-av + .iv-av { margin-left: -8px; box-shadow: 0 0 0 2px var(--cz-well); }
878
+ .iv-avn { min-width: 28px; height: 28px; margin-left: -8px; border-radius: 999px; background: var(--cz-card); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--cz-well); }
879
+ .iv-mt.iv-addp { width: 40px !important; height: 40px; border: 0 !important; margin: 0; }
880
+ .iv-mt.iv-addp svg { width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--cz-ink3) 60%, transparent); }
881
+ button.iv-mt.iv-wf { padding: 0 !important; margin: 0 !important; }
882
+ .iv-mt .wfi { width: 17px; height: 17px; }
883
+ .iv-card .iv-prog { min-width: 0; height: 34px; display: inline-flex !important; align-items: center; gap: 6px; padding: 0 12px !important; margin: 0 0 0 4px !important; background: var(--cz-card) !important; color: var(--cz-ink2) !important; font-size: var(--fs-2); font-weight: 800; }
884
+ .iv-card .iv-prog span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
885
+ .iv-card .iv-prog svg { flex: none; }
886
+ @media (hover: hover) { button.iv-mt:hover { background: var(--cz-well2) !important; color: var(--cz-ink); } }
887
+ /* the mission's box: on a phone the stage's number and name over it; in two columns only the buttons stay */
888
+ .iv-sc.iv-mis { border: 0; padding: 0; border-radius: 0; gap: 8px; }
889
+ .iv-mis .iv-sch { min-height: 26px; flex-wrap: nowrap; }
890
+ .iv-shn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
891
+ .iv-shn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
892
+ .iv-mis .iv-stc { background: transparent !important; color: var(--cz-ink) !important; padding: 0 !important; min-height: 26px; }
893
+ .iv-setd { display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; font-size: var(--fs-3); font-weight: 800; color: var(--cz-blueink) !important; }
894
+ .iv-mis .iv-scgo.on { height: 40px; padding: 0 14px 0 16px !important; font-size: var(--fs-3); font-weight: 800; }
895
+ .iv-mi { position: relative; cursor: pointer; border-radius: 14px; overflow: hidden; }
896
+ /* the picture spans the card edge to edge (Wawan 12:25); at the card's top it takes the card's corners */
897
+ .iv-card .iv-mi { margin: 0 -16px; border-radius: 0; }
898
+ .iv-card > .iv-sc:first-child > .iv-mi:first-child { margin-top: -16px; }
899
+ @container iv (min-width: 820px) {
900
+ .iv-card > .iv-sc:first-child > .iv-sch:not(:has(.iv-setd, .iv-scgo, .iv-chp)) + .iv-mi { margin-top: -16px; }
901
+ }
902
+ /* the Board's page draws its icons with a stroke on every svg (cozy-board.css .bd-page svg); the mission is a picture, not an icon */
903
+ .iv-mi svg.mi-svg { fill: initial; stroke: none; stroke-width: 1; }
904
+ .iv-mi:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
905
+ .iv-mi .mi-svg { display: block; height: auto; }
906
+ .iv-mi-nm { display: none; position: relative; height: 18px; margin-top: 4px; }
907
+ .iv-mi-nm span { position: absolute; transform: translateX(-50%); font-size: var(--fs-1); font-weight: 800; color: var(--cz-blueink); white-space: nowrap; }
908
+ .iv-mi-nm span.late { color: var(--cz-late); }
909
+ @container iv (min-width: 820px) {
910
+ .iv-mis .iv-shn { display: none; }
911
+ .iv-mis .iv-sch:not(:has(.iv-setd, .iv-scgo, .iv-chp)) { display: none; }
912
+ .iv-mi-nm { display: block; }
913
+ }
914
+ .iv-mi-tip { position: absolute; top: 6px; transform: translateX(-14px); background: var(--cz-ink); color: var(--cz-card); font-size: var(--fs-2); padding: 6px 10px; border-radius: 10px; white-space: nowrap; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--cz-vlift); pointer-events: none; z-index: 2; }
915
+ .iv-mi-tip.r { transform: translateX(calc(-100% + 14px)); }
916
+ .iv-mi-tip[hidden] { display: none; }
917
+ .iv-mi-tip b { font-weight: 800; }
918
+ .iv-mi-tip i { font-style: normal; font-weight: 600; opacity: .75; }
919
+ /* in place: N of M done, ⋯, the next stage, then the list */
920
+ .iv-mio { display: flex; flex-direction: column; gap: 6px; }
921
+ .iv-mio:not(.on) { display: none; }
922
+ @container iv (min-width: 820px) {
923
+ .iv-mio:not(.on) { display: flex; }
924
+ .iv-mio .iv-msh, .iv-mio .iv-msl { display: none; }
925
+ }
926
+ .iv-mio-h { display: flex; align-items: center; gap: 8px; min-height: 40px; }
927
+ .iv-mio-h .iv-sp { flex: 1; }
928
+ .iv-mio-h .iv-mo { width: 40px; height: 40px; background: var(--cz-card); }
929
+ .iv-mio-h .iv-scgo { height: 40px; background: var(--cz-card) !important; font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
930
+ .iv-mio .iv-msh { padding: 6px 6px 0; }
931
+ .iv-mio-h { flex-wrap: wrap; row-gap: 4px; }
932
+ .iv-mio-b { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
933
+ /* the dates are never cut (Wawan 11:58): too long for the row, they take their own line and the buttons go under them, right */
934
+ .iv-mio-h .iv-dtc { display: block !important; line-height: 36px; white-space: nowrap; min-width: 0; max-width: 100%; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
935
+ .iv-mio-h .iv-mo, .iv-mio-h .iv-scgo { flex: none; }
936
+ .iv-dtc.w { color: var(--cz-late) !important; }
937
+ /* a real win (XvpE5Adler 1): he stands in the card with a soft green glow, his thanks and the one primary */
938
+ .iv-win { display: flex; align-items: flex-end; gap: 12px; position: relative; }
939
+ .iv-wfig { flex: none; position: relative; }
940
+ .iv-wfig::before { content: ''; position: absolute; inset: 20% -10% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cz-ok) 30%, transparent), transparent); }
941
+ .iv-wfig .ad-svg { position: relative; width: 96px; height: auto; }
942
+ .iv-wt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-bottom: 8px; }
943
+ .iv-wt p { margin: 0; font-size: var(--fs-4); font-weight: 700; line-height: 1.45; align-self: stretch; }
944
+ .iv-wt .iv-scgo.on { height: 40px; padding: 0 14px 0 16px !important; font-size: var(--fs-3); font-weight: 800; }
945
+ /* an empty Tasks with Adler resting in it */
946
+ .iv-empty.ad { align-items: center; text-align: center; gap: 10px; }
947
+ .iv-empty.ad .iv-q { font-size: var(--fs-3); color: var(--cz-ink2); max-width: 320px; }
948
+ .iv-ea { display: flex; align-items: center; gap: 8px; }
949
+
950
+ /* the mission's art: classes for the --mi-* tokens of cozy.css */
951
+ .mi-s0 { stop-color: var(--mi-s0); } .mi-s1 { stop-color: var(--mi-s1); }
952
+ .mi-t0 { stop-color: var(--mi-gold); stop-opacity: 0; } .mi-t1 { stop-color: var(--mi-t1); }
953
+ .mi-star { fill: var(--mi-star); }
954
+ .mi-pl { fill: var(--mi-pl); stroke: var(--mi-pls); } .mi-pq { fill: var(--mi-pq); stroke: var(--mi-pqs); }
955
+ .mi-ring { stroke: var(--mi-gold); } .mi-spot { fill: var(--mi-spot); opacity: .8; } .mi-qm { fill: var(--mi-qm); font-size: var(--fs-1); font-weight: 800; }
956
+ .mi-gr { fill: var(--mi-gr); }
957
+ .mi-st.dn { fill: var(--mi-dn); } .mi-st.nw { fill: var(--mi-nw); } .mi-st.q { fill: var(--mi-q); } .mi-st.late { fill: var(--mi-late); } .mi-st.hold { fill: var(--mi-hold); }
958
+ .mi-dsh { stroke: var(--mi-dash); } .mi-dsh.nw { stroke: var(--mi-nw); } .mi-dsh.late { stroke: var(--mi-late); } .mi-dsh.dn { stroke: var(--mi-dn); }
959
+ .mi-pole { fill: var(--mi-pole); }
960
+ .mi-fl.dn { fill: var(--mi-gold); } .mi-fl.q { fill: var(--mi-dash); } .mi-fl.late { fill: var(--mi-late); }
961
+ .mi-ln { stroke: var(--mi-line); }
962
+ .mi-wh { fill: var(--mi-wh); } .mi-lens { fill: var(--mi-lens); }
963
+ .mi-beam { stroke: var(--mi-lens); opacity: .7; }
964
+ .mi-pad { fill: var(--mi-pad); } .mi-padl { stroke: var(--mi-pad); }
965
+ .mi-gh { stroke: var(--mi-gh); }
966
+ .mi-rb { fill: var(--mi-rb); } .mi-fin { fill: var(--mi-fin); } .mi-fin.late { fill: var(--mi-late); } .mi-win { fill: var(--mi-lens); }
967
+ .mi-spark { fill: var(--mi-gold); }
968
+ .mi-smoke { fill: var(--mi-smoke); }
969
+ .mi-path { stroke: var(--mi-path); }
970
+ .mi-fo { fill: var(--mi-t1); } .mi-fy { fill: var(--mi-gold); }
971
+ .mi-flag { fill: var(--mi-nw); }
972
+ .mi-lamp { fill: var(--mi-off); } .mi-lamp.on { fill: var(--mi-ok); } .mi-lamp.ls { fill: var(--mi-gold); }
973
+ .mi-wave { stroke: var(--mi-gold); }
974
+ .mi-glow { fill: var(--mi-glow); } .mi-td { stroke: var(--mi-td); }
975
+ .mi-pz { fill: var(--mi-pz); }
976
+ .mi-ms { cursor: pointer; outline: none; }
977
+ .mi-ms:focus-visible rect { stroke: var(--cz-blue); stroke-width: 2; rx: 8px; }
978
+ /* the motion: draw-in, flame, sparks, scan, twinkle, waves; slow and small */
979
+ .mi-svg .mi-tw { animation: mi-twinkle 2.6s ease-in-out infinite; }
980
+ .mi-svg .mi-seek { animation: mi-pulse 2.6s ease-in-out infinite; }
981
+ .mi-svg .mi-scan { animation: mi-scan 3.4s ease-in-out infinite; }
982
+ .mi-svg .mi-beam { animation: mi-beam 1.6s linear infinite; }
983
+ .mi-svg .mi-spark { animation: mi-fade .5s ease-out infinite; }
984
+ .mi-svg .mi-spark.mi-k1 { animation-delay: .22s; } .mi-svg .mi-spark.mi-k2 { animation-delay: .44s; }
985
+ .mi-svg .mi-flame { transform-box: fill-box; transform-origin: 50% 0%; animation: mi-flick .12s ease-in-out infinite alternate; }
986
+ .mi-svg .mi-rk { animation: mi-shake 2.4s ease-in-out infinite; }
987
+ .mi-svg .mi-puff { transform-box: fill-box; transform-origin: center; animation: mi-puff 3.2s ease-in-out infinite; }
988
+ .mi-svg .mi-vn { stroke-dasharray: 100; stroke-dashoffset: 100; animation: mi-draw 1.6s ease-out .2s forwards; }
989
+ .mi-svg .mi-flag { animation: mi-wavef 1.8s ease-in-out infinite; }
990
+ .mi-svg .mi-wave { animation: mi-fade 1.5s ease-out infinite; }
991
+ .mi-svg .mi-wave.mi-k1 { animation-delay: .5s; } .mi-svg .mi-wave.mi-k2 { animation-delay: 1s; }
992
+ /* the stars twinkle out of step (was an inline animation-delay; R28-1) */
993
+ .mi-svg .mi-d1 { animation-delay: 0.37s; } .mi-svg .mi-d2 { animation-delay: 0.74s; } .mi-svg .mi-d3 { animation-delay: 1.11s; } .mi-svg .mi-d4 { animation-delay: 1.48s; } .mi-svg .mi-d5 { animation-delay: 1.85s; } .mi-svg .mi-d6 { animation-delay: 2.22s; }
994
+ @keyframes mi-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .75; } }
995
+ @keyframes mi-pulse { 0%, 100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.25); opacity: 1; } }
996
+ @keyframes mi-scan { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } }
997
+ @keyframes mi-beam { to { stroke-dashoffset: -14; } }
998
+ @keyframes mi-fade { 0% { opacity: 1; } 100% { opacity: 0; } }
999
+ @keyframes mi-flick { from { transform: scaleY(.7); opacity: .85; } to { transform: scaleY(1.2); opacity: 1; } }
1000
+ @keyframes mi-shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(.4px, -1.2px); } 50% { transform: translate(-.3px, -2px); } 75% { transform: translate(.3px, -.8px); } }
1001
+ @keyframes mi-puff { 0%, 100% { transform: scale(.85) translateY(0); opacity: .85; } 50% { transform: scale(1.15) translateY(-1.5px); opacity: .55; } }
1002
+ @keyframes mi-draw { to { stroke-dashoffset: 0; } }
1003
+ @keyframes mi-wavef { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-9deg); } }
1004
+ /* still: the OS asks for less motion, or Settings > Adler > Motion is Still */
1005
+ @media (prefers-reduced-motion: reduce) {
1006
+ .mi-svg *, .iv-card.adl, .iv-card.adl .iv-ask .ad-svg { animation: none !important; }
1007
+ .mi-svg .mi-vn { stroke-dashoffset: 0; }
1008
+ }
1009
+ html.ad-still .mi-svg *, html.ad-still .iv-card.adl, html.ad-still .iv-card.adl .iv-ask .ad-svg { animation: none !important; }
1010
+ html.ad-still .mi-svg .mi-vn { stroke-dashoffset: 0; }