dsh-ppt 0.25.0 → 0.27.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 (48) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.en.md +14 -13
  3. package/README.md +14 -13
  4. package/docs/DATA.md +2 -2
  5. package/docs/REFERENCE.en.md +8 -8
  6. package/docs/REFERENCE.zh.md +8 -8
  7. package/docs/USAGE.en.md +12 -7
  8. package/docs/USAGE.md +12 -7
  9. package/docs/VALIDATION.md +8 -0
  10. package/docs/WORKBENCH.md +4 -4
  11. package/docs/assets/intro/workflow-en-dark.svg +1 -1
  12. package/docs/assets/intro/workflow-en-light.svg +1 -1
  13. package/docs/assets/intro/workflow-en-mobile-dark.svg +1 -1
  14. package/docs/assets/intro/workflow-en-mobile-light.svg +1 -1
  15. package/docs/assets/intro/workflow-zh-dark.svg +1 -1
  16. package/docs/assets/intro/workflow-zh-light.svg +1 -1
  17. package/docs/assets/intro/workflow-zh-mobile-dark.svg +1 -1
  18. package/docs/assets/intro/workflow-zh-mobile-light.svg +1 -1
  19. package/lib/client.js +312 -84
  20. package/lib/ecosystem.d.ts +73 -0
  21. package/lib/ecosystem.js +1352 -0
  22. package/lib/execution.d.ts +6 -1
  23. package/lib/execution.js +77 -4
  24. package/lib/tools.js +133 -1
  25. package/lib/types.d.ts +121 -1
  26. package/lib/workbench-language.js +4 -0
  27. package/lib/workbench.d.ts +2 -0
  28. package/lib/workbench.js +397 -10
  29. package/package.json +1 -1
  30. package/skills/dsh-ppt/SKILL.md +6 -6
  31. package/skills/dsh-ppt/package.json +1 -1
  32. package/skills/dsh-ppt/references/advanced.md +10 -5
  33. package/skills/dsh-ppt/references/syntax.md +1 -0
  34. package/skills/dsh-ppt/scripts/build-deck.mjs +53 -10
  35. package/skills/dsh-ppt/scripts/deck-absorb.mjs +114 -1
  36. package/skills/dsh-ppt/scripts/deck-advanced.mjs +153 -25
  37. package/skills/dsh-ppt/scripts/deck-chrome.mjs +1814 -0
  38. package/skills/dsh-ppt/scripts/deck-core.mjs +122 -6
  39. package/skills/dsh-ppt/scripts/deck-covers.mjs +804 -0
  40. package/skills/dsh-ppt/scripts/deck-delivery.mjs +636 -41
  41. package/skills/dsh-ppt/scripts/deck-diagrams.mjs +2842 -0
  42. package/skills/dsh-ppt/scripts/deck-director.mjs +167 -4
  43. package/skills/dsh-ppt/scripts/deck-icons.mjs +469 -0
  44. package/skills/dsh-ppt/scripts/deck-layouts.mjs +816 -5177
  45. package/skills/dsh-ppt/scripts/deck-media.mjs +159 -15
  46. package/skills/dsh-ppt/scripts/deck-mermaid.mjs +2737 -0
  47. package/skills/dsh-ppt/scripts/deck-office.mjs +1541 -0
  48. package/skills/dsh-ppt/scripts/deck-taste.mjs +347 -0
@@ -0,0 +1,804 @@
1
+ /**
2
+ * deck-covers.mjs —— dsh-ppt 海报级封面变体、实时章节议程过场与 Aesthetic Studio 材质/光影样式模块。
3
+ *
4
+ * 包含:
5
+ * - 4 套海报级封面(keynote-glow / editorial-grid / architectural / split-bleed)HTML + 原生 OOXML 双端同构渲染
6
+ * - section[agenda] 实时多章节议程追踪过场页(自动汇总全套 section 章节并高亮当前章)
7
+ * - AESTHETIC_STUDIO_CSS(海报封面、议程过场、Spotlight KPI、Bento-Hero、4 种卡片材质与矢量图标徽章样式)
8
+ *
9
+ * 零外部运行时依赖。
10
+ */
11
+
12
+ import { relativeLuminance, mixHex } from './deck-themes.mjs'
13
+ import {
14
+ CANVAS_IN,
15
+ roundRectAdj,
16
+ escapeHtml,
17
+ renderInlineHtml,
18
+ computeTextFit,
19
+ ooxmlRichParagraph,
20
+ ooxmlShape,
21
+ ooxmlLine,
22
+ computeBadgePillWidth,
23
+ renderSlideChromePptx,
24
+ } from './deck-chrome.mjs'
25
+
26
+ export const POSTER_COVER_VARIANTS = new Set([
27
+ 'keynote-glow',
28
+ 'editorial-grid',
29
+ 'architectural',
30
+ 'split-bleed',
31
+ ])
32
+
33
+ export function renderPosterCoverPptx(slide, ctx) {
34
+ const { coverVariant, title, subtitle, kicker, metaText, total, theme, langAttr, manifest, idBase, nextId } = ctx
35
+ if (!POSTER_COVER_VARIANTS.has(coverVariant)) return null
36
+ const tk = theme.tokens
37
+ const shapes = []
38
+
39
+ // Poster Cover 1:Apple / Linear Keynote 光晕剧场封面
40
+ if (coverVariant === 'keynote-glow') {
41
+ const darkGlow = theme.dark || relativeLuminance(tk.canvas) < 0.36
42
+ const gradStops = darkGlow
43
+ ? [
44
+ { offset: 0, color: mixHex(tk.canvas, '#020617', 0.45) },
45
+ { offset: 0.55, color: tk.canvas },
46
+ { offset: 1, color: mixHex(tk.canvas, tk.accentPrimary, 0.16) },
47
+ ]
48
+ : [
49
+ { offset: 0, color: tk.canvas },
50
+ { offset: 0.65, color: mixHex(tk.canvas, tk.surface1, 0.55) },
51
+ { offset: 1, color: mixHex(tk.canvas, tk.accentSoft, 0.48) },
52
+ ]
53
+ shapes.push(ooxmlShape(nextId(), 'Keynote Backdrop', { x: 0, y: 0, w: CANVAS_IN.w, h: CANVAS_IN.h }, {
54
+ preset: 'rect',
55
+ gradientStops: gradStops,
56
+ gradientAngle: 135,
57
+ }))
58
+ // 右上主氛围径向光斑 + 左下辅氛围径向光斑(4段柔滑过渡避免 LibreOffice 椭圆边界断层)
59
+ shapes.push(ooxmlShape(nextId(), 'Ambient Glow Primary', { x: 6.7, y: -2.2, w: 8.8, h: 8.8 }, {
60
+ preset: 'ellipse',
61
+ radialGradientStops: [
62
+ { offset: 0, color: tk.accentPrimary, alpha: darkGlow ? 0.28 : 0.15 },
63
+ { offset: 0.42, color: tk.accentPrimary, alpha: darkGlow ? 0.11 : 0.05 },
64
+ { offset: 0.75, color: tk.accentPrimary, alpha: darkGlow ? 0.025 : 0.01 },
65
+ { offset: 1, color: tk.accentPrimary, alpha: 0 },
66
+ ],
67
+ }))
68
+ shapes.push(ooxmlShape(nextId(), 'Ambient Glow Secondary', { x: -2.4, y: 2.5, w: 7.4, h: 7.4 }, {
69
+ preset: 'ellipse',
70
+ radialGradientStops: [
71
+ { offset: 0, color: tk.accentSecondary, alpha: darkGlow ? 0.22 : 0.11 },
72
+ { offset: 0.44, color: tk.accentSecondary, alpha: darkGlow ? 0.08 : 0.04 },
73
+ { offset: 0.76, color: tk.accentSecondary, alpha: darkGlow ? 0.02 : 0.01 },
74
+ { offset: 1, color: tk.accentSecondary, alpha: 0 },
75
+ ],
76
+ }))
77
+ if (kicker !== '') {
78
+ const kw = computeBadgePillWidth(kicker.toUpperCase(), 10.5, 6.2, 1.8)
79
+ shapes.push(ooxmlShape(idBase + 4, 'Kicker Pill', { x: (CANVAS_IN.w - kw) / 2, y: 1.56, w: kw, h: 0.36 }, {
80
+ preset: 'roundRect',
81
+ adj: 50000,
82
+ fill: darkGlow ? tk.accentPrimary : tk.accentSoft,
83
+ fillAlpha: darkGlow ? 0.18 : 0.9,
84
+ stroke: tk.accentPrimary,
85
+ strokeAlpha: darkGlow ? 0.45 : 0.35,
86
+ strokePt: 0.75,
87
+ anchor: 'ctr',
88
+ marginsIn: { l: 0.10, r: 0.10, t: 0.02, b: 0.02 },
89
+ paragraphs: [
90
+ ooxmlRichParagraph(kicker.toUpperCase(), {
91
+ sizePt: 10.5,
92
+ color: tk.accentText,
93
+ bold: true,
94
+ lang: langAttr,
95
+ align: 'ctr',
96
+ font: theme.fonts.body,
97
+ spc: 160,
98
+ }),
99
+ ],
100
+ }))
101
+ }
102
+ const titleBox = { x: 1.15, y: 2.15, w: 11.03, h: 2.15 }
103
+ const titleFit = computeTextFit(title, titleBox, 'coverTitle', { maxPt: 48, minPt: 28, padXPt: 4, padYPt: 4 })
104
+ shapes.push(ooxmlShape(idBase + 2, 'Title', titleBox, {
105
+ txBox: true,
106
+ anchor: 'ctr',
107
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
108
+ fontScale: titleFit.fontScale,
109
+ paragraphs: [
110
+ ooxmlRichParagraph(title, {
111
+ sizePt: titleFit.fontPt,
112
+ color: tk.inkPrimary,
113
+ bold: true,
114
+ lang: langAttr,
115
+ align: 'ctr',
116
+ font: theme.fonts.heading,
117
+ lineHeight: titleFit.lineHeight,
118
+ }),
119
+ ],
120
+ }))
121
+ shapes.push(ooxmlShape(nextId(), 'Keynote Divider', { x: (CANVAS_IN.w - 1.35) / 2, y: 4.44, w: 1.35, h: 0.05 }, {
122
+ preset: 'roundRect',
123
+ adj: 50000,
124
+ gradientStops: [
125
+ { offset: 0, color: tk.accentPrimary },
126
+ { offset: 1, color: tk.accentSecondary },
127
+ ],
128
+ gradientAngle: 0,
129
+ }))
130
+ if (subtitle !== '') {
131
+ const subBox = { x: 1.85, y: 4.68, w: 9.63, h: 1.1 }
132
+ const subFit = computeTextFit(subtitle, subBox, 'body', { maxPt: 19, minPt: 14, padXPt: 4, padYPt: 2 })
133
+ shapes.push(ooxmlShape(idBase + 3, 'Subtitle', subBox, {
134
+ txBox: true,
135
+ anchor: 't',
136
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
137
+ fontScale: subFit.fontScale,
138
+ paragraphs: [
139
+ ooxmlRichParagraph(subtitle, {
140
+ sizePt: subFit.fontPt,
141
+ color: tk.inkSecondary,
142
+ lang: langAttr,
143
+ align: 'ctr',
144
+ font: theme.fonts.body,
145
+ lineHeight: 1.45,
146
+ }),
147
+ ],
148
+ }))
149
+ }
150
+ if (metaText) {
151
+ shapes.push(ooxmlShape(nextId(), 'Cover meta', { x: 1.5, y: 6.52, w: 10.33, h: 0.36 }, {
152
+ txBox: true,
153
+ anchor: 'ctr',
154
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
155
+ paragraphs: [
156
+ ooxmlRichParagraph(metaText, {
157
+ sizePt: 11,
158
+ color: tk.inkMuted,
159
+ lang: langAttr,
160
+ align: 'ctr',
161
+ font: theme.fonts.body,
162
+ spc: 80,
163
+ }),
164
+ ],
165
+ }))
166
+ }
167
+ return shapes.join('')
168
+ }
169
+
170
+ // Poster Cover 2:瑞士杂志网格封面(Monocle / FT / Nature)
171
+ if (coverVariant === 'editorial-grid') {
172
+ shapes.push(ooxmlShape(nextId(), 'Editorial Top Rule', { x: 0.62, y: 0.42, w: 12.09, h: 0.04 }, {
173
+ preset: 'rect',
174
+ fill: tk.inkPrimary,
175
+ }))
176
+ shapes.push(ooxmlLine(nextId(), 'Editorial Header Rule', { x: 0.62, y: 0.92 }, { x: 12.71, y: 0.92 }, {
177
+ color: tk.hairline,
178
+ widthPt: 0.75,
179
+ }))
180
+ if (kicker !== '') {
181
+ shapes.push(ooxmlShape(idBase + 4, 'Kicker', { x: 0.62, y: 0.52, w: 8.2, h: 0.34 }, {
182
+ txBox: true,
183
+ anchor: 'ctr',
184
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
185
+ paragraphs: [
186
+ ooxmlRichParagraph(kicker.toUpperCase(), {
187
+ sizePt: 10.5,
188
+ color: tk.accentText,
189
+ bold: true,
190
+ lang: langAttr,
191
+ font: theme.fonts.body,
192
+ spc: 200,
193
+ }),
194
+ ],
195
+ }))
196
+ }
197
+ const rightTag = manifest.brand?.name || (langAttr === 'en-US' ? 'SPECIAL REPORT' : '专题深度报告')
198
+ shapes.push(ooxmlShape(nextId(), 'Editorial Edition Tag', { x: 9.2, y: 0.52, w: 3.51, h: 0.34 }, {
199
+ txBox: true,
200
+ anchor: 'ctr',
201
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
202
+ paragraphs: [
203
+ ooxmlRichParagraph(rightTag.toUpperCase(), {
204
+ sizePt: 10,
205
+ color: tk.inkMuted,
206
+ bold: true,
207
+ lang: langAttr,
208
+ align: 'r',
209
+ font: theme.fonts.body,
210
+ spc: 160,
211
+ }),
212
+ ],
213
+ }))
214
+ shapes.push(ooxmlLine(nextId(), 'Editorial Grid Spine', { x: 9.75, y: 0.92 }, { x: 9.75, y: 6.12 }, {
215
+ color: tk.hairline,
216
+ widthPt: 0.75,
217
+ }))
218
+ const yearMark = /\b(20\d{2})\b/.exec([kicker, title, subtitle, metaText].join(' '))?.[1] || '01'
219
+ shapes.push(ooxmlShape(nextId(), 'Editorial Watermark', { x: 9.95, y: 1.55, w: 2.75, h: 2.2 }, {
220
+ txBox: true,
221
+ anchor: 't',
222
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
223
+ paragraphs: [
224
+ ooxmlRichParagraph(yearMark, {
225
+ sizePt: yearMark.length > 2 ? 64 : 92,
226
+ color: theme.dark ? tk.surface2 : tk.hairline,
227
+ bold: true,
228
+ lang: 'en-US',
229
+ align: 'r',
230
+ font: theme.fonts.heading,
231
+ lineHeight: 0.95,
232
+ }),
233
+ ],
234
+ }))
235
+ shapes.push(ooxmlShape(nextId(), 'Editorial Accent Rule', { x: 0.62, y: 1.48, w: 0.95, h: 0.06 }, {
236
+ preset: 'rect',
237
+ fill: tk.accentPrimary,
238
+ }))
239
+ const titleBox = { x: 0.62, y: 1.72, w: 8.75, h: 2.35 }
240
+ const titleFit = computeTextFit(title, titleBox, 'coverTitle', { maxPt: 46, minPt: 26, padXPt: 2, padYPt: 4 })
241
+ shapes.push(ooxmlShape(idBase + 2, 'Title', titleBox, {
242
+ txBox: true,
243
+ anchor: 'ctr',
244
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
245
+ fontScale: titleFit.fontScale,
246
+ paragraphs: [
247
+ ooxmlRichParagraph(title, {
248
+ sizePt: titleFit.fontPt,
249
+ color: tk.inkPrimary,
250
+ bold: true,
251
+ lang: langAttr,
252
+ font: theme.fonts.heading,
253
+ lineHeight: titleFit.lineHeight,
254
+ }),
255
+ ],
256
+ }))
257
+ if (subtitle !== '') {
258
+ const subBox = { x: 0.62, y: 4.25, w: 8.55, h: 1.35 }
259
+ const subFit = computeTextFit(subtitle, subBox, 'body', { maxPt: 19, minPt: 14, padXPt: 2, padYPt: 2 })
260
+ shapes.push(ooxmlShape(idBase + 3, 'Subtitle', subBox, {
261
+ txBox: true,
262
+ anchor: 't',
263
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
264
+ fontScale: subFit.fontScale,
265
+ paragraphs: [
266
+ ooxmlRichParagraph(subtitle, {
267
+ sizePt: subFit.fontPt,
268
+ color: tk.inkSecondary,
269
+ lang: langAttr,
270
+ font: theme.fonts.body,
271
+ lineHeight: 1.45,
272
+ }),
273
+ ],
274
+ }))
275
+ }
276
+ shapes.push(ooxmlLine(nextId(), 'Editorial Footer Top', { x: 0.62, y: 6.12 }, { x: 12.71, y: 6.12 }, {
277
+ color: tk.inkPrimary,
278
+ widthPt: 1.0,
279
+ }))
280
+ const colsMeta = [
281
+ { lbl: langAttr === 'en-US' ? 'BRIEFING' : '报告主题', val: slide.text || manifest.brand?.name || kicker || title.slice(0, 18) },
282
+ { lbl: langAttr === 'en-US' ? 'SOURCE / ORG' : '发布机构', val: slide.source || manifest.brand?.footer || (langAttr === 'en-US' ? 'Executive Research' : '战略研究与交付组') },
283
+ { lbl: langAttr === 'en-US' ? 'DECK SCOPE' : '文档规格', val: `${total} ${langAttr === 'en-US' ? 'Slides · 16:9' : '页 · 16:9 精排版'}` },
284
+ ]
285
+ const colW = 12.09 / 3
286
+ colsMeta.forEach((cm, ci) => {
287
+ const cx = 0.62 + ci * colW
288
+ if (ci > 0) {
289
+ shapes.push(ooxmlLine(nextId(), 'Editorial Meta Div ' + ci, { x: cx - 0.14, y: 6.22 }, { x: cx - 0.14, y: 7.06 }, {
290
+ color: tk.hairline,
291
+ widthPt: 0.6,
292
+ }))
293
+ }
294
+ shapes.push(ooxmlShape(nextId(), 'Editorial Meta ' + (ci + 1), { x: cx, y: 6.24, w: colW - 0.24, h: 0.82 }, {
295
+ txBox: true,
296
+ anchor: 't',
297
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
298
+ paragraphs: [
299
+ ooxmlRichParagraph(cm.lbl, { sizePt: 9, color: tk.inkMuted, bold: true, lang: langAttr, font: theme.fonts.body, spc: 120, spaceAfterPt: 3 }),
300
+ ooxmlRichParagraph(cm.val, { sizePt: 11.5, color: tk.inkPrimary, bold: true, lang: langAttr, font: theme.fonts.body }),
301
+ ],
302
+ }))
303
+ })
304
+ return shapes.join('')
305
+ }
306
+
307
+ // Poster Cover 3 & 4:建筑感非对称封面(architectural / split-bleed —— 麦肯锡/东方极简)
308
+ const isSplitBleed = coverVariant === 'split-bleed'
309
+ const wingW = isSplitBleed ? 5.25 : 4.25
310
+ const wingX = CANVAS_IN.w - wingW
311
+ const wingFillA = tk.coverBg && relativeLuminance(tk.coverBg) < 0.28
312
+ ? tk.coverBg
313
+ : mixHex(tk.accentPrimary, '#081226', 0.42)
314
+ const wingFillB = mixHex(wingFillA, tk.accentSecondary, 0.28)
315
+ shapes.push(ooxmlShape(nextId(), 'Architectural Top Rule', { x: 0, y: 0, w: wingX, h: 0.07 }, {
316
+ preset: 'rect',
317
+ fill: tk.accentPrimary,
318
+ }))
319
+ shapes.push(ooxmlShape(nextId(), 'Architectural Wing', { x: wingX, y: 0, w: wingW, h: CANVAS_IN.h }, {
320
+ preset: 'rect',
321
+ gradientStops: [
322
+ { offset: 0, color: wingFillA },
323
+ { offset: 1, color: wingFillB },
324
+ ],
325
+ gradientAngle: 155,
326
+ }))
327
+ shapes.push(ooxmlShape(nextId(), 'Wing Geo Band 1', { x: wingX + 0.42, y: 0.72, w: wingW - 0.84, h: 0.03 }, {
328
+ preset: 'rect',
329
+ fill: '#FFFFFF',
330
+ fillAlpha: 0.35,
331
+ }))
332
+ shapes.push(ooxmlShape(nextId(), 'Wing Geo Block', { x: wingX + 0.42, y: 4.85, w: wingW - 0.84, h: 1.95 }, {
333
+ preset: 'roundRect',
334
+ adj: roundRectAdj(wingW - 0.84, 1.95, 10),
335
+ fill: '#FFFFFF',
336
+ fillAlpha: 0.09,
337
+ stroke: '#FFFFFF',
338
+ strokeAlpha: 0.22,
339
+ strokePt: 0.75,
340
+ }))
341
+ const yearWing = /\b(20\d{2})\b/.exec([kicker, title, subtitle, metaText].join(' '))?.[1] || String(total).padStart(2, '0')
342
+ shapes.push(ooxmlShape(nextId(), 'Wing Watermark', { x: wingX + 0.35, y: 1.65, w: wingW - 0.70, h: 2.3 }, {
343
+ txBox: true,
344
+ anchor: 'ctr',
345
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
346
+ paragraphs: [
347
+ ooxmlRichParagraph(yearWing, {
348
+ sizePt: yearWing.length > 2 ? 76 : 112,
349
+ color: '#FFFFFF',
350
+ bold: true,
351
+ lang: 'en-US',
352
+ align: 'r',
353
+ font: theme.fonts.heading,
354
+ }),
355
+ ],
356
+ }))
357
+ if (metaText) {
358
+ shapes.push(ooxmlShape(nextId(), 'Wing Meta', { x: wingX + 0.62, y: 5.15, w: wingW - 1.24, h: 1.35 }, {
359
+ txBox: true,
360
+ anchor: 'ctr',
361
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
362
+ paragraphs: [
363
+ ooxmlRichParagraph(langAttr === 'en-US' ? 'EXECUTIVE BRIEFING' : '深度决策交付稿', {
364
+ sizePt: 9.5,
365
+ color: '#FDE68A',
366
+ bold: true,
367
+ lang: langAttr,
368
+ font: theme.fonts.body,
369
+ spc: 160,
370
+ spaceAfterPt: 6,
371
+ }),
372
+ ooxmlRichParagraph(metaText, {
373
+ sizePt: 11.5,
374
+ color: '#E2E8F0',
375
+ lang: langAttr,
376
+ font: theme.fonts.body,
377
+ lineHeight: 1.4,
378
+ }),
379
+ ],
380
+ }))
381
+ }
382
+ const leftContentW = wingX - 1.45
383
+ if (kicker !== '') {
384
+ shapes.push(ooxmlShape(idBase + 4, 'Kicker', { x: 0.78, y: 1.42, w: leftContentW, h: 0.36 }, {
385
+ txBox: true,
386
+ anchor: 'ctr',
387
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
388
+ paragraphs: [
389
+ ooxmlRichParagraph(kicker.toUpperCase(), {
390
+ sizePt: 11.5,
391
+ color: tk.accentText,
392
+ bold: true,
393
+ lang: langAttr,
394
+ font: theme.fonts.body,
395
+ spc: 180,
396
+ }),
397
+ ],
398
+ }))
399
+ }
400
+ const titleBox = { x: 0.78, y: 1.92, w: leftContentW, h: 2.3 }
401
+ const titleFit = computeTextFit(title, titleBox, 'coverTitle', { maxPt: 42, minPt: 26, padXPt: 2, padYPt: 4 })
402
+ shapes.push(ooxmlShape(idBase + 2, 'Title', titleBox, {
403
+ txBox: true,
404
+ anchor: 'ctr',
405
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
406
+ fontScale: titleFit.fontScale,
407
+ paragraphs: [
408
+ ooxmlRichParagraph(title, {
409
+ sizePt: titleFit.fontPt,
410
+ color: tk.inkPrimary,
411
+ bold: true,
412
+ lang: langAttr,
413
+ font: theme.fonts.heading,
414
+ lineHeight: titleFit.lineHeight,
415
+ }),
416
+ ],
417
+ }))
418
+ shapes.push(ooxmlShape(nextId(), 'Architectural Rule', { x: 0.78, y: 4.38, w: 1.15, h: 0.06 }, {
419
+ preset: 'rect',
420
+ fill: tk.accentPrimary,
421
+ }))
422
+ if (subtitle !== '') {
423
+ const subBox = { x: 0.78, y: 4.62, w: leftContentW, h: 1.35 }
424
+ const subFit = computeTextFit(subtitle, subBox, 'body', { maxPt: 18.5, minPt: 13.5, padXPt: 2, padYPt: 2 })
425
+ shapes.push(ooxmlShape(idBase + 3, 'Subtitle', subBox, {
426
+ txBox: true,
427
+ anchor: 't',
428
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
429
+ fontScale: subFit.fontScale,
430
+ paragraphs: [
431
+ ooxmlRichParagraph(subtitle, {
432
+ sizePt: subFit.fontPt,
433
+ color: tk.inkSecondary,
434
+ lang: langAttr,
435
+ font: theme.fonts.body,
436
+ lineHeight: 1.44,
437
+ }),
438
+ ],
439
+ }))
440
+ }
441
+ return shapes.join('')
442
+ }
443
+
444
+ export function renderPosterCoverHtml(slide, ctx) {
445
+ const { coverVariant, title, subtitle, kicker, meta, total, langId, manifest, theme } = ctx
446
+ if (!POSTER_COVER_VARIANTS.has(coverVariant)) return null
447
+
448
+ if (coverVariant === 'keynote-glow') {
449
+ return (
450
+ '<div class="cover-shell is-keynote-glow">' +
451
+ '<div class="cover-glow-orb orb-a" aria-hidden="true"></div>' +
452
+ '<div class="cover-glow-orb orb-b" aria-hidden="true"></div>' +
453
+ '<div class="cover-center-stack">' +
454
+ (kicker !== '' ? '<div class="kicker cover-pill-kicker">' + escapeHtml(kicker) + '</div>' : '') +
455
+ '<h1>' + renderInlineHtml(title) + '</h1>' +
456
+ '<div class="cover-glow-rule" aria-hidden="true"></div>' +
457
+ (subtitle !== '' ? '<div class="subtitle">' + renderInlineHtml(subtitle) + '</div>' : '') +
458
+ '</div>' +
459
+ (meta !== '' ? '<div class="meta">' + escapeHtml(meta) + '</div>' : '') +
460
+ '</div>'
461
+ )
462
+ }
463
+
464
+ if (coverVariant === 'editorial-grid') {
465
+ const yearMark = /\b(20\d{2})\b/.exec([kicker, title, subtitle, meta].join(' '))?.[1] || '01'
466
+ const rightTag = manifest.brand?.name || (langId === 'en' ? 'SPECIAL REPORT' : '专题深度报告')
467
+ return (
468
+ '<div class="cover-shell is-editorial-grid">' +
469
+ '<div class="ed-top-bar"><span class="kicker">' + escapeHtml(kicker) + '</span><span class="ed-edition">' + escapeHtml(rightTag) + '</span></div>' +
470
+ '<div class="ed-main-grid">' +
471
+ '<div class="ed-copy"><div class="ed-accent-bar"></div><h1>' + renderInlineHtml(title) + '</h1>' +
472
+ (subtitle !== '' ? '<div class="subtitle">' + renderInlineHtml(subtitle) + '</div>' : '') +
473
+ '</div>' +
474
+ '<div class="ed-watermark" aria-hidden="true">' + escapeHtml(yearMark) + '</div>' +
475
+ '</div>' +
476
+ '<div class="ed-meta-strip">' +
477
+ '<div><span>' + (langId === 'en' ? 'BRIEFING' : '报告主题') + '</span><strong>' + escapeHtml(slide.text || manifest.brand?.name || kicker || title.slice(0, 18)) + '</strong></div>' +
478
+ '<div><span>' + (langId === 'en' ? 'SOURCE / ORG' : '发布机构') + '</span><strong>' + escapeHtml(slide.source || manifest.brand?.footer || (langId === 'en' ? 'Executive Research' : '战略研究与交付组')) + '</strong></div>' +
479
+ '<div><span>' + (langId === 'en' ? 'DECK SCOPE' : '文档规格') + '</span><strong>' + total + (langId === 'en' ? ' Slides · 16:9' : ' 页 · 16:9 精排版') + '</strong></div>' +
480
+ '</div>' +
481
+ '</div>'
482
+ )
483
+ }
484
+
485
+ const yearWing = /\b(20\d{2})\b/.exec([kicker, title, subtitle, meta].join(' '))?.[1] || String(total).padStart(2, '0')
486
+ const tk = theme?.tokens
487
+ const wingStyle = tk
488
+ ? (() => {
489
+ const a = tk.coverBg && relativeLuminance(tk.coverBg) < 0.28
490
+ ? tk.coverBg
491
+ : mixHex(tk.accentPrimary, '#081226', 0.42)
492
+ const b = mixHex(a, tk.accentSecondary, 0.28)
493
+ return ` style="background:linear-gradient(155deg,${a},${b})"`
494
+ })()
495
+ : ''
496
+ return (
497
+ '<div class="cover-shell is-architectural' + (coverVariant === 'split-bleed' ? ' is-split-bleed' : '') + '">' +
498
+ '<div class="arch-left">' +
499
+ (kicker !== '' ? '<div class="kicker">' + escapeHtml(kicker) + '</div>' : '') +
500
+ '<h1>' + renderInlineHtml(title) + '</h1>' +
501
+ '<div class="arch-rule"></div>' +
502
+ (subtitle !== '' ? '<div class="subtitle">' + renderInlineHtml(subtitle) + '</div>' : '') +
503
+ '</div>' +
504
+ '<aside class="arch-wing"' + wingStyle + '>' +
505
+ '<div class="arch-wing-num" aria-hidden="true">' + escapeHtml(yearWing) + '</div>' +
506
+ (meta !== '' ? '<div class="arch-wing-card"><span>' + (langId === 'en' ? 'EXECUTIVE BRIEFING' : '深度决策交付稿') + '</span><p>' + escapeHtml(meta) + '</p></div>' : '') +
507
+ '</aside>' +
508
+ '</div>'
509
+ )
510
+ }
511
+
512
+ export function resolveSectionAgendaChapters(slide, index, manifest) {
513
+ if (Array.isArray(slide.items) && slide.items.length >= 2) {
514
+ return slide.items.slice(0, 6).map((it, ci) => ({
515
+ num: it.tag || String(ci + 1).padStart(2, '0'),
516
+ title: it.title || it.text || `Chapter ${ci + 1}`,
517
+ active: it.status === 'accent' || slide.activeIndex === ci + 1 || (ci === 0 && !slide.activeIndex && !slide.items.some((x) => x.status === 'accent')),
518
+ }))
519
+ }
520
+ const allSections = Array.isArray(manifest.slides)
521
+ ? manifest.slides
522
+ .map((s, si) => ({ slide: s, slideIndex: si }))
523
+ .filter((entry) => entry.slide?.layout === 'section')
524
+ : []
525
+ if (allSections.length >= 2) {
526
+ return allSections.slice(0, 6).map((entry, ci) => ({
527
+ num: /^\d+$/.test((entry.slide.kicker || '').trim())
528
+ ? entry.slide.kicker.trim().padStart(2, '0')
529
+ : String(ci + 1).padStart(2, '0'),
530
+ title: entry.slide.title || `Section ${ci + 1}`,
531
+ active: entry.slideIndex === index || entry.slide === slide,
532
+ }))
533
+ }
534
+ return []
535
+ }
536
+
537
+ export function renderSectionAgendaPptx(slide, ctx) {
538
+ const { index, total, title, subtitle, kicker, theme, langAttr, manifest, chromeCfg, idBase, nextId } = ctx
539
+ const agendaChapters = resolveSectionAgendaChapters(slide, index, manifest)
540
+ if (agendaChapters.length < 2) return null
541
+
542
+ const tk = theme.tokens
543
+ const shapes = []
544
+ const activeChapter = agendaChapters.find((c) => c.active) || agendaChapters[0]
545
+ const chapNum = activeChapter.num
546
+
547
+ shapes.push(ooxmlShape(nextId(), 'Section side band', { x: 0, y: 0, w: 0.14, h: CANVAS_IN.h }, {
548
+ preset: 'rect',
549
+ fill: tk.accentPrimary,
550
+ }))
551
+ shapes.push(ooxmlShape(nextId(), 'Section Watermark', { x: 0.68, y: 1.05, w: 3.4, h: 1.65 }, {
552
+ txBox: true,
553
+ anchor: 'b',
554
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
555
+ paragraphs: [
556
+ ooxmlRichParagraph(chapNum, {
557
+ sizePt: 88,
558
+ color: theme.dark ? tk.surface2 : tk.hairline,
559
+ bold: true,
560
+ lang: 'en-US',
561
+ font: theme.fonts.heading,
562
+ lineHeight: 0.9,
563
+ }),
564
+ ],
565
+ }))
566
+ const kickerClean = kicker.trim()
567
+ const secKickerText = (!kickerClean || /^\d+$/.test(kickerClean))
568
+ ? (langAttr === 'en-US' ? `SECTION ${chapNum}` : `第 ${chapNum} 部分`)
569
+ : kickerClean
570
+ shapes.push(ooxmlShape(idBase + 1, 'Kicker', { x: 0.72, y: 2.74, w: 5.8, h: 0.34 }, {
571
+ txBox: true,
572
+ anchor: 'ctr',
573
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
574
+ paragraphs: [
575
+ ooxmlRichParagraph(secKickerText.toUpperCase(), {
576
+ sizePt: 11,
577
+ color: tk.accentText,
578
+ bold: true,
579
+ lang: langAttr,
580
+ font: theme.fonts.body,
581
+ spc: 180,
582
+ }),
583
+ ],
584
+ }))
585
+ shapes.push(ooxmlShape(nextId(), 'Accent bar', { x: 0.72, y: 3.16, w: 1.1, h: 0.06 }, {
586
+ preset: 'rect',
587
+ fill: tk.accentPrimary,
588
+ }))
589
+ const tBox = { x: 0.72, y: 3.36, w: 6.14, h: 1.75 }
590
+ const tFit = computeTextFit(title, tBox, 'sectionTitle', { maxPt: 31, minPt: 22 })
591
+ shapes.push(ooxmlShape(idBase + 2, 'Title', tBox, {
592
+ txBox: true,
593
+ anchor: 't',
594
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
595
+ fontScale: tFit.fontScale,
596
+ paragraphs: [
597
+ ooxmlRichParagraph(title, {
598
+ sizePt: tFit.fontPt,
599
+ color: tk.inkPrimary,
600
+ bold: true,
601
+ lang: langAttr,
602
+ font: theme.fonts.heading,
603
+ lineHeight: tFit.lineHeight,
604
+ }),
605
+ ],
606
+ }))
607
+ if (subtitle !== '') {
608
+ shapes.push(ooxmlShape(idBase + 3, 'Subtitle', { x: 0.72, y: 5.22, w: 5.85, h: 1.1 }, {
609
+ txBox: true,
610
+ anchor: 't',
611
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
612
+ paragraphs: [
613
+ ooxmlRichParagraph(subtitle, {
614
+ sizePt: 15.5,
615
+ color: tk.inkSecondary,
616
+ lang: langAttr,
617
+ font: theme.fonts.body,
618
+ lineHeight: 1.42,
619
+ }),
620
+ ],
621
+ }))
622
+ }
623
+ shapes.push(ooxmlLine(nextId(), 'Section Agenda Spine', { x: 7.04, y: 1.15 }, { x: 7.04, y: 6.35 }, {
624
+ color: tk.hairline,
625
+ widthPt: 0.75,
626
+ }))
627
+ shapes.push(ooxmlShape(nextId(), 'Agenda Tracker Heading', { x: 7.45, y: 1.15, w: 5.2, h: 0.34 }, {
628
+ txBox: true,
629
+ anchor: 'ctr',
630
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
631
+ paragraphs: [
632
+ ooxmlRichParagraph(langAttr === 'en-US' ? 'AGENDA · PRESENTATION ROADMAP' : '汇报议程 · 章节进度', {
633
+ sizePt: 10,
634
+ color: tk.inkMuted,
635
+ bold: true,
636
+ lang: langAttr,
637
+ font: theme.fonts.body,
638
+ spc: 160,
639
+ }),
640
+ ],
641
+ }))
642
+ const listTop = 1.66
643
+ const rowGap = 0.16
644
+ const rowH = Math.min(0.76, (4.65 - rowGap * (agendaChapters.length - 1)) / agendaChapters.length)
645
+ agendaChapters.forEach((ch, ci) => {
646
+ const ry = listTop + ci * (rowH + rowGap)
647
+ if (ch.active) {
648
+ shapes.push(ooxmlShape(nextId(), 'Agenda Active Row', { x: 7.42, y: ry, w: 5.25, h: rowH }, {
649
+ preset: 'roundRect',
650
+ adj: roundRectAdj(5.25, rowH, Math.max(6, chromeCfg.cardRadiusPx)),
651
+ fill: tk.accentSoft,
652
+ stroke: tk.accentPrimary,
653
+ strokePt: 1.0,
654
+ }))
655
+ shapes.push(ooxmlShape(nextId(), 'Agenda Active Rail', { x: 7.42, y: ry, w: 0.06, h: rowH }, {
656
+ preset: 'rect',
657
+ fill: tk.accentPrimary,
658
+ }))
659
+ } else {
660
+ shapes.push(ooxmlLine(nextId(), 'Agenda Row Hairline ' + ci, { x: 7.45, y: ry + rowH }, { x: 12.65, y: ry + rowH }, {
661
+ color: tk.hairline,
662
+ widthPt: 0.5,
663
+ }))
664
+ }
665
+ shapes.push(ooxmlShape(nextId(), 'Agenda Num ' + (ci + 1), { x: 7.62, y: ry + (rowH - 0.34) / 2, w: 0.58, h: 0.34 }, {
666
+ preset: 'roundRect',
667
+ adj: roundRectAdj(0.58, 0.34, 6),
668
+ fill: ch.active ? tk.accentPrimary : '',
669
+ anchor: 'ctr',
670
+ marginsIn: { l: 0.02, r: 0.02, t: 0.01, b: 0.01 },
671
+ paragraphs: [
672
+ ooxmlRichParagraph(ch.num, {
673
+ sizePt: 12.5,
674
+ color: ch.active ? tk.inkOnAccent : tk.inkMuted,
675
+ bold: true,
676
+ lang: 'en-US',
677
+ align: 'ctr',
678
+ font: theme.fonts.heading,
679
+ }),
680
+ ],
681
+ }))
682
+ shapes.push(ooxmlShape(nextId(), 'Agenda Title ' + (ci + 1), { x: 8.34, y: ry + 0.04, w: 4.22, h: rowH - 0.08 }, {
683
+ txBox: true,
684
+ anchor: 'ctr',
685
+ marginsIn: { l: 0, r: 0, t: 0, b: 0 },
686
+ paragraphs: [
687
+ ooxmlRichParagraph(ch.title, {
688
+ sizePt: ch.active ? 15.5 : 14,
689
+ color: ch.active ? tk.inkPrimary : tk.inkMuted,
690
+ bold: ch.active,
691
+ lang: langAttr,
692
+ font: ch.active ? theme.fonts.heading : theme.fonts.body,
693
+ }),
694
+ ],
695
+ }))
696
+ })
697
+ shapes.push(renderSlideChromePptx(slide, index, total, theme, langAttr, manifest, nextId))
698
+ return shapes.join('')
699
+ }
700
+
701
+ export function renderSectionAgendaHtml(slide, ctx) {
702
+ const { index, title, subtitle, kicker, langId, manifest } = ctx
703
+ const agendaChapters = resolveSectionAgendaChapters(slide, index, manifest)
704
+ if (agendaChapters.length < 2) return null
705
+ const activeChap = agendaChapters.find((c) => c.active) || agendaChapters[0]
706
+ const kickerClean = kicker.trim()
707
+ const secKickerHtml = (!kickerClean || /^\d+$/.test(kickerClean))
708
+ ? (langId === 'en' ? `SECTION ${activeChap.num}` : `第 ${activeChap.num} 部分`)
709
+ : kickerClean
710
+ return (
711
+ '<div class="section-agenda-shell">' +
712
+ '<div class="section-agenda-left">' +
713
+ '<div class="section-watermark" aria-hidden="true">' + escapeHtml(activeChap.num) + '</div>' +
714
+ '<div class="kicker">' + escapeHtml(secKickerHtml) + '</div>' +
715
+ '<div class="accent-line"></div>' +
716
+ '<h2>' + renderInlineHtml(title) + '</h2>' +
717
+ (subtitle !== '' ? '<div class="subtitle">' + renderInlineHtml(subtitle) + '</div>' : '') +
718
+ '</div>' +
719
+ '<div class="section-agenda-right">' +
720
+ '<div class="section-agenda-head">' + (langId === 'en' ? 'AGENDA · ROADMAP' : '汇报议程 · 章节进度') + '</div>' +
721
+ '<ol class="section-agenda-list">' +
722
+ agendaChapters.map((ch) =>
723
+ '<li class="' + (ch.active ? 'is-active' : '') + '"><span class="chap-num">' + escapeHtml(ch.num) + '</span><span class="chap-title">' + renderInlineHtml(ch.title) + '</span></li>',
724
+ ).join('') +
725
+ '</ol></div></div>'
726
+ )
727
+ }
728
+
729
+ export const AESTHETIC_STUDIO_CSS = `
730
+ /* Phase 6 Aesthetic Studio: Poster Covers, Agenda Sections, Spotlight KPIs, Glass/Frameless Materiality & Vector Icons */
731
+ .cover-shell.is-keynote-glow{position:relative;overflow:hidden;align-items:center;text-align:center;padding:clamp(36px,5vw,72px);border-radius:calc(var(--radius) * 1.4);background:linear-gradient(135deg,color-mix(in srgb,var(--bg) 88%,#020617),var(--bg) 58%,color-mix(in srgb,var(--bg) 84%,var(--accent)))}
732
+ .cover-glow-orb{position:absolute;border-radius:50%;filter:blur(56px);pointer-events:none;opacity:.28}
733
+ .cover-glow-orb.orb-a{width:440px;height:440px;top:-140px;right:-90px;background:radial-gradient(circle,var(--accent),transparent 70%)}
734
+ .cover-glow-orb.orb-b{width:380px;height:380px;bottom:-140px;left:-80px;background:radial-gradient(circle,var(--accent2),transparent 70%)}
735
+ .cover-center-stack{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:18px;max-width:960px}
736
+ .cover-pill-kicker{display:inline-flex;padding:5px 16px;border-radius:999px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 42%,transparent)}
737
+ .cover-glow-rule{width:96px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent2))}
738
+ .cover-shell.is-editorial-grid{display:grid;grid-template-rows:auto 1fr auto;gap:22px;height:100%;padding:8px 0}
739
+ .ed-top-bar{display:flex;justify-content:space-between;align-items:center;border-top:3px solid var(--fg);border-bottom:1px solid var(--hairline);padding:10px 0}
740
+ .ed-edition{font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--muted)}
741
+ .ed-main-grid{display:grid;grid-template-columns:1fr 220px;gap:28px;align-items:center}
742
+ .ed-accent-bar{width:68px;height:4px;background:var(--accent);margin-bottom:18px}
743
+ .ed-watermark{border-left:1px solid var(--hairline);padding-left:24px;text-align:right;font-family:var(--font-heading);font-size:clamp(54px,7vw,108px);font-weight:800;line-height:.95;color:var(--hairline)}
744
+ .ed-meta-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;border-top:1.5px solid var(--fg);padding-top:14px}
745
+ .ed-meta-strip > div{display:flex;flex-direction:column;gap:4px;padding-left:14px;border-left:1px solid var(--hairline)}
746
+ .ed-meta-strip > div:first-child{border-left:0;padding-left:0}
747
+ .ed-meta-strip span{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--muted)}
748
+ .ed-meta-strip strong{font-size:14px;color:var(--fg)}
749
+ .cover-shell.is-architectural{display:grid;grid-template-columns:1.55fr 1fr;gap:0;height:100%;border-radius:calc(var(--radius) * 1.2);overflow:hidden;border:1px solid var(--hairline)}
750
+ .cover-shell.is-architectural.is-split-bleed{grid-template-columns:1.25fr 1fr}
751
+ .arch-left{padding:clamp(32px,4.2vw,60px);display:flex;flex-direction:column;justify-content:center;gap:16px;background:var(--bg);border-top:5px solid var(--accent)}
752
+ .arch-rule{width:76px;height:4px;background:var(--accent)}
753
+ .arch-wing{background:linear-gradient(155deg,var(--cover-bg),color-mix(in srgb,var(--cover-bg) 68%,var(--accent2)));color:#F8FAFC;padding:clamp(26px,3.2vw,44px);display:flex;flex-direction:column;justify-content:space-between}
754
+ .arch-wing-num{text-align:right;font-family:var(--font-heading);font-size:clamp(60px,7vw,108px);font-weight:800;line-height:.92;opacity:.92}
755
+ .arch-wing-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:10px;padding:16px 18px}
756
+ .arch-wing-card span{display:block;font-size:11px;font-weight:700;letter-spacing:.14em;color:#FDE68A;margin-bottom:6px}
757
+ .arch-wing-card p{margin:0;font-size:13px;line-height:1.45;color:#E2E8F0}
758
+ .section-agenda-shell{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(24px,3.5vw,48px);align-items:center;height:100%}
759
+ .section-agenda-left{display:flex;flex-direction:column;gap:12px}
760
+ .section-watermark{font-family:var(--font-heading);font-size:clamp(64px,7.5vw,112px);font-weight:800;line-height:.9;color:var(--hairline)}
761
+ .section-agenda-right{border-left:1px solid var(--hairline);padding-left:clamp(20px,3vw,40px)}
762
+ .section-agenda-head{font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--muted);margin-bottom:14px}
763
+ .section-agenda-list{margin:0;padding:0;list-style:none;display:grid;gap:10px}
764
+ .section-agenda-list li{display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:8px;border-bottom:1px solid var(--hairline);color:var(--muted)}
765
+ .section-agenda-list li.is-active{background:var(--accent-soft);border:1px solid var(--accent);border-left:4px solid var(--accent);color:var(--fg);font-weight:700}
766
+ .section-agenda-list .chap-num{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:26px;border-radius:6px;font-family:var(--font-heading);font-size:13px;font-weight:800}
767
+ .section-agenda-list li.is-active .chap-num{background:var(--accent);color:var(--ink-on-accent)}
768
+ .surface-card.mat-frameless{background:transparent !important;border:0 !important;border-top:1px solid var(--hairline) !important;border-bottom:1px solid var(--hairline) !important;border-radius:0 !important;padding:16px 4px !important;box-shadow:none !important}
769
+ .surface-card.mat-frameless.is-focal,.surface-card.mat-frameless.is-hero{border-top:2.5px solid var(--accent) !important}
770
+ .surface-card.mat-editorial-rule{background:transparent !important;border:0 !important;border-top:3px double var(--fg) !important;border-bottom:1px solid var(--hairline) !important;border-radius:0 !important;padding:16px 4px !important;box-shadow:none !important}
771
+ .surface-card.mat-editorial-rule.is-focal,.surface-card.mat-editorial-rule.is-hero{border-top-color:var(--accent) !important}
772
+ .surface-card.mat-glass{background:color-mix(in srgb,var(--surface1) 72%,transparent) !important;backdrop-filter:blur(12px);border:1px solid color-mix(in srgb,var(--fg) 14%,transparent) !important;box-shadow:inset 0 1px 0 color-mix(in srgb,#FFFFFF 22%,transparent),0 14px 36px rgba(0,0,0,.14) !important}
773
+ .surface-card.mat-glass.is-focal,.surface-card.mat-glass.is-hero{border-color:color-mix(in srgb,var(--accent) 62%,transparent) !important}
774
+ .kpi-spotlight{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(22px,2.8vw,40px);align-items:stretch;width:100%}
775
+ .kpi-hero .kpi-value.is-hero-val{font-size:clamp(44px,5.6vw,82px)}
776
+ .kpi-head-row,.card-icon-row{display:flex;align-items:center;gap:10px}
777
+ .card-icon-tag{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-text)}
778
+ .kpi-sat-stack{display:flex;flex-direction:column;justify-content:space-between}
779
+ .kpi-sat-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:14px 2px;border-top:1px solid var(--hairline)}
780
+ .kpi-sat-row:first-child{border-top:2px solid var(--accent)}
781
+ .kpi-sat-row:last-child{border-bottom:1px solid var(--hairline)}
782
+ .kpi-sat-metric{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
783
+ .kpi-sat-val{font-family:var(--font-heading);font-size:clamp(24px,2.6vw,38px);font-weight:800;color:var(--fg);font-variant-numeric:tabular-nums}
784
+ .kpi-sat-delta{font-size:12.5px;font-weight:700}
785
+ .kpi-sat-delta.tone-positive{color:var(--positive)}
786
+ .kpi-sat-delta.tone-negative{color:var(--negative)}
787
+ .kpi-sat-delta.tone-warning{color:var(--warning)}
788
+ .kpi-sat-delta.tone-accent{color:var(--accent-text)}
789
+ .bento-hero-grid{display:grid;grid-template-columns:5fr 6.5fr;gap:clamp(14px,1.8vw,24px);align-items:stretch}
790
+ .bento-hero-grid.bento-hero-2 > :first-child{grid-row:1}
791
+ .bento-hero-grid.bento-hero-3 > :first-child{grid-row:1 / span 2}
792
+ .bento-hero-grid.bento-hero-4 > :first-child{grid-row:1 / span 3}
793
+ .surface-card.is-inverted-hero{background:linear-gradient(140deg,var(--cover-bg),color-mix(in srgb,var(--cover-bg) 65%,var(--accent2))) !important;border:0 !important;color:#F8FAFC !important}
794
+ .surface-card.is-inverted-hero .card-title{color:#F8FAFC}
795
+ .surface-card.is-inverted-hero .card-body,.surface-card.is-inverted-hero .card-bullets{color:#E2E8F0}
796
+ .surface-card.is-inverted-hero .card-stat{color:#FDE68A}
797
+ .surface-card.is-inverted-hero .card-icon-tag{color:#CBD5E1}
798
+ .surface-card.is-inverted-hero .deck-icon-badge{color:#FFFFFF;border-color:rgba(255,255,255,.45)}
799
+ .deck-icon-badge{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;color:var(--accent);flex:0 0 auto}
800
+ .deck-icon-badge--soft{background:var(--accent-soft)}
801
+ .deck-icon-badge--ring{border:1.25px solid var(--accent);background:transparent}
802
+ .deck-icon-badge--solid{background:var(--accent);color:var(--ink-on-accent)}
803
+ .deck-icon-badge--bare{width:auto;height:auto;padding:2px;background:transparent}
804
+ `