@incodetech/prizma-core-screens 0.2.7 → 0.2.12

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 (168) hide show
  1. package/dist/BiometricConsentScreen.d.ts +95 -0
  2. package/dist/BiometricConsentScreen.js +91 -0
  3. package/dist/BiometricConsentStrings.d.ts +84 -0
  4. package/dist/BiometricConsentStrings.js +31 -0
  5. package/dist/CaptureScreen.d.ts +13 -0
  6. package/dist/CaptureScreen.js +2 -2
  7. package/dist/DemoScreensLayout.css +16 -0
  8. package/dist/DemoScreensRedirectScreen.d.ts +6 -1
  9. package/dist/DemoScreensRedirectScreen.js +3 -2
  10. package/dist/DemoScreensStrings.d.ts +5 -0
  11. package/dist/DigitalIdUploadErrorScreen.d.ts +31 -0
  12. package/dist/DigitalIdUploadErrorScreen.js +26 -0
  13. package/dist/DigitalIdUploadFileTooLargeScreen.d.ts +27 -0
  14. package/dist/DigitalIdUploadFileTooLargeScreen.js +21 -0
  15. package/dist/DigitalIdUploadReviewScreen.d.ts +57 -0
  16. package/dist/DigitalIdUploadReviewScreen.js +44 -0
  17. package/dist/DigitalIdUploadStrings.d.ts +64 -0
  18. package/dist/DigitalIdUploadStrings.js +19 -0
  19. package/dist/DigitalIdUploadTutorialScreen.d.ts +28 -0
  20. package/dist/DigitalIdUploadTutorialScreen.js +23 -0
  21. package/dist/DocumentCaptureIllustration.d.ts +1 -1
  22. package/dist/EkybCountryScreen.d.ts +6 -6
  23. package/dist/EkybCountryScreen.js +20 -7
  24. package/dist/EkybStrings.d.ts +6 -1
  25. package/dist/ErrorScreensScreen.d.ts +5 -2
  26. package/dist/ErrorScreensScreen.js +15 -4
  27. package/dist/ErrorScreensStrings.d.ts +17 -2
  28. package/dist/ErrorScreensStrings.js +18 -10
  29. package/dist/FaceCaptureCapturingScreen.d.ts +63 -0
  30. package/dist/FaceCaptureCapturingScreen.js +62 -2
  31. package/dist/FaceCaptureLayout.css +69 -4
  32. package/dist/FaceCaptureStrings.d.ts +23 -0
  33. package/dist/FormScreen.css +14 -0
  34. package/dist/FormScreen.d.ts +28 -0
  35. package/dist/FormScreen.js +3 -2
  36. package/dist/IdCaptureLayout.css +165 -2
  37. package/dist/IdCaptureStageScreen.d.ts +47 -0
  38. package/dist/IdCaptureStageScreen.js +39 -3
  39. package/dist/IdCaptureStrings.d.ts +19 -0
  40. package/dist/ListScreen.d.ts +19 -0
  41. package/dist/ListScreen.js +7 -2
  42. package/dist/LoaderScreen.d.ts +7 -5
  43. package/dist/LoaderScreen.js +7 -5
  44. package/dist/LoadersStrings.d.ts +18 -5
  45. package/dist/OcrReviewErrorScreen.d.ts +30 -0
  46. package/dist/OcrReviewErrorScreen.js +24 -0
  47. package/dist/OcrReviewLayout.css +24 -0
  48. package/dist/OcrReviewLoadingScreen.d.ts +25 -0
  49. package/dist/OcrReviewLoadingScreen.js +19 -0
  50. package/dist/OcrReviewScreen.d.ts +76 -0
  51. package/dist/OcrReviewScreen.js +65 -0
  52. package/dist/OcrReviewStrings.d.ts +47 -0
  53. package/dist/OcrReviewStrings.js +17 -0
  54. package/dist/OcrReviewSuccessScreen.d.ts +30 -0
  55. package/dist/OcrReviewSuccessScreen.js +24 -0
  56. package/dist/PermissionsAllowScreen.d.ts +8 -11
  57. package/dist/PermissionsAllowScreen.js +8 -11
  58. package/dist/PermissionsAskScreen.d.ts +41 -0
  59. package/dist/PermissionsAskScreen.js +43 -0
  60. package/dist/PermissionsBrowserStepsScreen.d.ts +9 -2
  61. package/dist/PermissionsBrowserStepsScreen.js +12 -3
  62. package/dist/PermissionsLayout.css +47 -0
  63. package/dist/PermissionsStrings.d.ts +20 -9
  64. package/dist/PermissionsStrings.js +10 -4
  65. package/dist/PhoneInputOtpScreen.d.ts +8 -0
  66. package/dist/PhoneInputOtpScreen.js +26 -19
  67. package/dist/PhoneInputStrings.d.ts +11 -3
  68. package/dist/PhoneInputVerifyScreen.js +21 -5
  69. package/dist/QualifiedSignatureDocumentScreen.d.ts +8 -5
  70. package/dist/QualifiedSignatureDocumentScreen.js +9 -6
  71. package/dist/QualifiedSignatureResultScreen.d.ts +16 -13
  72. package/dist/QualifiedSignatureResultScreen.js +17 -18
  73. package/dist/QualifiedSignatureStrings.d.ts +11 -4
  74. package/dist/ResultScreen.d.ts +8 -0
  75. package/dist/ResultScreen.js +14 -3
  76. package/dist/ReusabilityCredentialSelectionScreen.d.ts +95 -0
  77. package/dist/ReusabilityCredentialSelectionScreen.js +94 -0
  78. package/dist/ReusabilityLayout.css +241 -0
  79. package/dist/ReusabilityPrivacyPolicyScreen.d.ts +55 -0
  80. package/dist/ReusabilityPrivacyPolicyScreen.js +44 -0
  81. package/dist/ReusabilityStrings.d.ts +85 -0
  82. package/dist/ReusabilityStrings.js +37 -0
  83. package/dist/ReviewScreen.d.ts +38 -12
  84. package/dist/ReviewScreen.js +41 -8
  85. package/dist/ScreenLayout.css +382 -6
  86. package/dist/VideoSelfieErrorScreen.js +1 -1
  87. package/dist/VideoSelfieIdCaptureScreen.js +1 -1
  88. package/dist/VideoSelfieLayout.css +304 -2
  89. package/dist/VideoSelfieSelfieCaptureScreen.js +1 -1
  90. package/dist/VideoSelfieSpeakScreen.js +1 -1
  91. package/dist/VideoSelfieStrings.d.ts +4 -1
  92. package/dist/VideoSelfieTurnHeadScreen.js +14 -11
  93. package/dist/VideoSelfieTutorialScreen.d.ts +9 -0
  94. package/dist/VideoSelfieTutorialScreen.js +10 -1
  95. package/dist/VideoSelfieWaveScreen.js +1 -1
  96. package/dist/ViewfinderScreen.css +36 -0
  97. package/dist/flows.d.ts +8 -0
  98. package/dist/flows.js +17 -0
  99. package/dist/index.d.ts +16 -0
  100. package/dist/index.js +12 -0
  101. package/dist/styles.css +3 -0
  102. package/package.json +68 -3
  103. package/samples/video-selfie-camera-wide.jpg +0 -0
  104. package/samples/video-selfie-room-wide.jpg +0 -0
  105. package/src/BiometricConsentScreen.tsx +192 -0
  106. package/src/BiometricConsentStrings.ts +119 -0
  107. package/src/CaptureScreen.tsx +17 -0
  108. package/src/DemoScreensLayout.css +16 -0
  109. package/src/DemoScreensRedirectScreen.tsx +14 -6
  110. package/src/DemoScreensStrings.ts +5 -0
  111. package/src/DigitalIdUploadErrorScreen.tsx +83 -0
  112. package/src/DigitalIdUploadFileTooLargeScreen.tsx +67 -0
  113. package/src/DigitalIdUploadReviewScreen.tsx +119 -0
  114. package/src/DigitalIdUploadStrings.ts +88 -0
  115. package/src/DigitalIdUploadTutorialScreen.tsx +59 -0
  116. package/src/DocumentCaptureIllustration.tsx +1 -1
  117. package/src/EkybCountryScreen.tsx +23 -6
  118. package/src/EkybStrings.ts +6 -1
  119. package/src/ErrorScreensScreen.tsx +15 -4
  120. package/src/ErrorScreensStrings.ts +37 -12
  121. package/src/FaceCaptureCapturingScreen.tsx +102 -13
  122. package/src/FaceCaptureLayout.css +69 -4
  123. package/src/FaceCaptureStrings.ts +24 -0
  124. package/src/FormScreen.css +14 -0
  125. package/src/FormScreen.tsx +34 -0
  126. package/src/IdCaptureLayout.css +165 -2
  127. package/src/IdCaptureStageScreen.tsx +75 -0
  128. package/src/IdCaptureStrings.ts +19 -0
  129. package/src/ListScreen.tsx +48 -9
  130. package/src/LoaderScreen.tsx +7 -5
  131. package/src/LoadersStrings.ts +18 -5
  132. package/src/OcrReviewErrorScreen.tsx +53 -0
  133. package/src/OcrReviewLayout.css +24 -0
  134. package/src/OcrReviewLoadingScreen.tsx +48 -0
  135. package/src/OcrReviewScreen.tsx +190 -0
  136. package/src/OcrReviewStrings.ts +69 -0
  137. package/src/OcrReviewSuccessScreen.tsx +52 -0
  138. package/src/PermissionsAllowScreen.tsx +9 -10
  139. package/src/PermissionsAskScreen.tsx +105 -0
  140. package/src/PermissionsBrowserStepsScreen.tsx +11 -3
  141. package/src/PermissionsLayout.css +47 -0
  142. package/src/PermissionsStrings.ts +42 -12
  143. package/src/PhoneInputOtpScreen.tsx +23 -3
  144. package/src/PhoneInputStrings.ts +11 -3
  145. package/src/PhoneInputVerifyScreen.tsx +24 -4
  146. package/src/QualifiedSignatureDocumentScreen.tsx +9 -7
  147. package/src/QualifiedSignatureResultScreen.tsx +28 -26
  148. package/src/QualifiedSignatureStrings.ts +11 -4
  149. package/src/ResultScreen.tsx +33 -2
  150. package/src/ReusabilityCredentialSelectionScreen.tsx +246 -0
  151. package/src/ReusabilityLayout.css +241 -0
  152. package/src/ReusabilityPrivacyPolicyScreen.tsx +109 -0
  153. package/src/ReusabilityStrings.ts +127 -0
  154. package/src/ReviewScreen.tsx +96 -27
  155. package/src/ScreenLayout.css +382 -6
  156. package/src/VideoSelfieErrorScreen.tsx +1 -1
  157. package/src/VideoSelfieIdCaptureScreen.tsx +9 -1
  158. package/src/VideoSelfieLayout.css +304 -2
  159. package/src/VideoSelfieSelfieCaptureScreen.tsx +9 -1
  160. package/src/VideoSelfieSpeakScreen.tsx +9 -1
  161. package/src/VideoSelfieStrings.ts +4 -2
  162. package/src/VideoSelfieTurnHeadScreen.tsx +25 -14
  163. package/src/VideoSelfieTutorialScreen.tsx +11 -0
  164. package/src/VideoSelfieWaveScreen.tsx +9 -1
  165. package/src/ViewfinderScreen.css +36 -0
  166. package/src/flows.ts +25 -0
  167. package/src/index.ts +74 -3
  168. package/src/styles.css +3 -0
@@ -0,0 +1,127 @@
1
+ // Reusability (Incode Bridge) — copy contract.
2
+ //
3
+ // The credential-reuse step of an Incode Bridge session: a returning person
4
+ // who already verified with another member of the network is offered the
5
+ // document they verified there, so they can skip ID capture at the company
6
+ // they are onboarding with now. The SDK module is `identity-reuse`
7
+ // (`incode-identity-reuse`, i18n namespace `identityReuse`); the product name
8
+ // is Incode Bridge; the design file calls it Reusability. Bridge is NOT Trust
9
+ // Graph: it moves the person's own credential, with their consent, to remove
10
+ // friction — it makes no fraud claim (MVP spec, Notion, 2026-08-17).
11
+ //
12
+ // Figma: `Reusability - In Experimentation` (f4AsCbOBP29IbTQLxBNgNG), section
13
+ // `Reusability Iterations` (7877:68814) — the iteration Camila shared with the
14
+ // Identity team on 2026-09-19 and that the Web SDK built as ENG-57939 (Dusan,
15
+ // PR #1021, "one-click credential selection with shared-data sheet"). Four
16
+ // frames:
17
+ // · 7877:68816 `doc selection` Multiple documents — two reusable passports
18
+ // and the "Scan a new document" row
19
+ // · 7877:68875 `doc selection` Single document — one passport and the row
20
+ // · 7877:68927 `shared info` Shared data — Core's bottom sheet over the
21
+ // selection listing what will be shared
22
+ // · 7877:68997 `demo_5` Privacy Policy — Incode's policy, read in
23
+ // the flow, Done at the bottom
24
+ //
25
+ // Two product decisions shape the copy (consent review with legal, Granola
26
+ // 2026-09-16; Vlado, #reusability 2026-09-15):
27
+ // 1. The subtitle says WHO holds the data and that Incode only passes it:
28
+ // "A company you previously verified with holds a document you can reuse.
29
+ // Incode only passes it to {Company B}." The donor is never named (it may
30
+ // be a regulated entity); the recipient is.
31
+ // 2. Selecting a document ADVANCES — no confirm button. A mis-tap is
32
+ // recovered with the nav's way back, not with a second step.
33
+ //
34
+ // No hardcoded English anywhere in a screen: every visible string arrives
35
+ // here, so the host's locale pack drives the module. The SDK's `identityReuse`
36
+ // namespace already carries ES and PT for almost every sentence below.
37
+
38
+ /** The document types the identity-reuse backend returns. The SDK's own
39
+ * vocabulary (`identityReuse.documentType.*`). */
40
+ export type ReusabilityDocumentType = 'passport' | 'idCard' | 'driversLicense';
41
+
42
+ /**
43
+ * One reusable credential, as the backend describes it — DATA, not copy. The
44
+ * host formats the date (the SDK composes "Verified" + an `Intl` short date
45
+ * client-side, `identity-reuse.tsx` `formatVerifiedAt`) and masks the number.
46
+ */
47
+ export interface ReusableCredential {
48
+ /** Stable id the host submits back on selection. */
49
+ id: string;
50
+ documentType: ReusabilityDocumentType;
51
+ /** ISO 3166-1 alpha-2. Resolves to Core's flag raster bank
52
+ * (`PrizmaCountryFlag`, 24×18); a country outside the bundled bank falls back
53
+ * to `countryFlag`. */
54
+ countryCode: string;
55
+ /** Emoji fallback for a country the raster bank does not carry — Core's own
56
+ * fallback rule for the Combined input and the Document List card. */
57
+ countryFlag?: string;
58
+ /** Already masked by the backend ("MP1******3815"). */
59
+ maskedNumber: string;
60
+ /** Already formatted by the host ("Apr 2023"). Rendered after
61
+ * `selection.verifiedPrefix`. */
62
+ verifiedOn: string;
63
+ }
64
+
65
+ export interface ReusabilityStrings {
66
+ /** "verified by" attribution in the footer tag. */
67
+ verifiedLabel: string;
68
+ /** Accessible name for the logo nav row. */
69
+ navLabel?: string;
70
+
71
+ /** The `doc selection` frames — the one screen of the module. */
72
+ selection: {
73
+ /** H2 ("Share your details for a faster verification"). */
74
+ title: string;
75
+ /** H5 under the title. The frame's recipient placeholder is `{Company B}`;
76
+ * the SDK interpolates `{{companyName}}` (`identityReuse.subtitleWithCompany`). */
77
+ subtitle: string;
78
+ /** Accessible name of the option list. */
79
+ listLabel: string;
80
+ /** The document-type label on each credential row ("Passport"). */
81
+ documentType: Record<ReusabilityDocumentType, string>;
82
+ /** The pill on the first row — the backend orders the list best match
83
+ * first, and the first is tagged ("Recommended"). */
84
+ recommendedTag: string;
85
+ /** The word before the formatted date on each row ("Verified"). The SDK
86
+ * translates only this word and appends the date locally. */
87
+ verifiedPrefix: string;
88
+ /** The last row — capture a document instead of reusing one. */
89
+ scanNewLabel: string;
90
+ /** The pill on that row ("Slowest"). */
91
+ slowestTag: string;
92
+ /** First tertiary link under the list ("What data will be shared?"):
93
+ * opens the shared-details sheet. */
94
+ sharedDataLink: string;
95
+ /** Second tertiary link ("Incode’s Privacy Policy"): opens the policy. */
96
+ privacyPolicyLink: string;
97
+ };
98
+
99
+ /** The `shared info` frame — Core's bottom sheet over the selection. */
100
+ sharedDetails: {
101
+ /** Sheet heading, Core's H1 ("Shared details"). */
102
+ title: string;
103
+ /** Under the heading ("Only the following information will be shared with
104
+ * {Company B}."). */
105
+ subtitle: string;
106
+ /** The bullet list — what the recipient asked for. In production these
107
+ * come from the recipient's data-sharing request (ENG-57939 acceptance
108
+ * criteria), so the list is host data rendered through this slot. */
109
+ items: string[];
110
+ /** The sheet's one button ("Understood"). */
111
+ ctaLabel: string;
112
+ };
113
+
114
+ /**
115
+ * The `demo_5` frame — Incode's privacy policy, read inside the flow. The
116
+ * document ITSELF is not here: it is host content (the policy at
117
+ * incode.com/privacy, in the host's language), supplied through the screen's
118
+ * `body` slot the way Qualified Signature's viewers take their contract.
119
+ */
120
+ privacyPolicy: {
121
+ /** H2 the archetype requires; the frame draws none (DEVIATIONS #RU-7).
122
+ * The link's own label ("Incode’s Privacy Policy") is the natural title. */
123
+ title: string;
124
+ /** Primary under the document ("Done"): back to the selection. */
125
+ ctaLabel: string;
126
+ };
127
+ }
@@ -13,12 +13,18 @@ import type {
13
13
  import './ScreenLayout.css';
14
14
 
15
15
  /**
16
- * The three stages every captured-media review section shares. Identical
17
- * skeleton — only the header block (Title vs loading bar), the media's own
18
- * state and the presence of the CTA row change. Named to match the modules'
19
- * own stage axis (`DocumentCaptureConfirmStage`, Video Selfie's review step).
16
+ * The stages a captured-media review section shares. Identical skeleton —
17
+ * only the header block (Title vs loading bar), the media's own state and
18
+ * the presence of the CTA row change. `review`/`analyzing`/`success` name the
19
+ * modules' own confirm-flow axis (`DocumentCaptureConfirmStage`, Video
20
+ * Selfie's review step); `error` is Digital ID Upload-only so far — its
21
+ * verdict screen shows the SAME rejected-file media the confirm flow does
22
+ * (`PrizmaCaptureDigitalId state="error"`), drawn with the identical
23
+ * header/media/CTA skeleton as `analyzing`/`success` (`Upload Digital ID`
24
+ * file wxFsHRvllern4VnjRqM4JO, node 25874:11957) — not archetype F, whose
25
+ * verdict screens carry no media stage of their own.
20
26
  */
21
- export type PrizmaReviewStage = 'review' | 'analyzing' | 'success';
27
+ export type PrizmaReviewStage = 'review' | 'analyzing' | 'success' | 'error';
22
28
 
23
29
  export interface PrizmaReviewScreenProps
24
30
  extends Omit<PrizmaScreenShellProps, 'dark' | 'title' | 'children'>,
@@ -27,7 +33,7 @@ export interface PrizmaReviewScreenProps
27
33
  stage?: PrizmaReviewStage;
28
34
  /** H2 review/base title ("Review your document"). */
29
35
  title: string;
30
- /** Supporting copy under the title — drawn on `review` only (Figma). */
36
+ /** Supporting copy under the title — drawn on `review`/`error` (Figma). */
31
37
  subtitle?: string;
32
38
  /** Title shown on `success`; falls back to `title` when omitted. */
33
39
  successTitle?: string;
@@ -41,6 +47,25 @@ export interface PrizmaReviewScreenProps
41
47
  analyzingState?: 'analyzing' | 'uploading';
42
48
  /** Loading-bar progress on `analyzing`, 0–100. */
43
49
  progress?: number;
50
+ /**
51
+ * Only takes effect while the nav is hidden (`showHeader=false` — every
52
+ * current no-nav stage is `analyzing`/`success`). Default `false` —
53
+ * Document Capture's verified layout (DEVIATIONS #DC-22/24): the header
54
+ * sits where a title normally would, Spacing/32 above the stage, and
55
+ * whatever follows (the stage, then an optional band) centres or flows
56
+ * independently.
57
+ *
58
+ * `true`: the header and the media centre as ONE group — leftover space
59
+ * splits evenly above the header and below the trailing content (the CTA
60
+ * band, or nothing) — because with no nav the header has nothing to anchor
61
+ * to. Digital ID Upload's Figma draws BOTH its no-nav stages this way: a
62
+ * top flex-1 region bottom-anchoring the header, the fixed media, then a
63
+ * bottom flex-1 region (empty on `analyzing`, bottom-anchoring the CTA on
64
+ * `success`) — `Upload Digital ID` file wxFsHRvllern4VnjRqM4JO, nodes
65
+ * 25351:14726 (analyzing) / 25351:14727 (success). `review` always shows
66
+ * its own nav, so this is a no-op there regardless of the value passed.
67
+ */
68
+ centeredWhenNoNav?: boolean;
44
69
  /**
45
70
  * The flexing captured-media slot: a `PrizmaIdCapture` still, an uploaded-file
46
71
  * preview card, a portrait review. Kept a slot so one template serves every
@@ -55,7 +80,7 @@ export interface PrizmaReviewScreenProps
55
80
  * offset and footer all come from ScreenLayout.css regardless.
56
81
  */
57
82
  stageClassName?: string;
58
- /** Primary CTA — the forward action. Drawn on `review` and `success`. */
83
+ /** Primary CTA — the forward action. Drawn on `review`, `success`, `error`. */
59
84
  primaryLabel: string;
60
85
  /** Secondary CTA ("Replace" / "Retake") — drawn on `review` only. */
61
86
  secondaryLabel?: string;
@@ -71,11 +96,12 @@ export interface PrizmaReviewScreenProps
71
96
  * Archetype H — Review (captured-media confirmation).
72
97
  *
73
98
  * The "header → flexing captured-media stage → CTA band → tag" recipe, with a
74
- * `review → analyzing → success` stage axis. It exists because two Document
75
- * Capture screens hand-built it independently (`DocumentCaptureConfirmImage`,
76
- * `DocumentCaptureConfirmUpload`) with their own three-band arithmetic in
77
- * `DocumentCaptureLayout.css`, and Video Selfie's review step needs the same
78
- * skeleton — a captured still under a title, confirmed or replaced.
99
+ * `review → analyzing → success` stage axis (+ `error`, see `PrizmaReviewStage`).
100
+ * It exists because two Document Capture screens hand-built it independently
101
+ * (`DocumentCaptureConfirmImage`, `DocumentCaptureConfirmUpload`) with their
102
+ * own three-band arithmetic in `DocumentCaptureLayout.css`, and Video Selfie's
103
+ * review step needs the same skeleton — a captured still under a title,
104
+ * confirmed or replaced.
79
105
  *
80
106
  * It is NOT archetype F (Result): F centres a small status + CTA block, while a
81
107
  * review TOP-aligns the header over a large media stage that flexes to fill the
@@ -101,6 +127,7 @@ export const PrizmaReviewScreen = forwardRef<HTMLDivElement, PrizmaReviewScreenP
101
127
  analyzingLabel,
102
128
  analyzingState = 'analyzing',
103
129
  progress = 0,
130
+ centeredWhenNoNav = false,
104
131
  children,
105
132
  stageClassName,
106
133
  primaryLabel,
@@ -122,6 +149,7 @@ export const PrizmaReviewScreen = forwardRef<HTMLDivElement, PrizmaReviewScreenP
122
149
  const withNav = showHeader ?? Boolean(overrides?.logo);
123
150
  const showSecondary = stage === 'review' && Boolean(secondaryLabel);
124
151
  const showBand = stage !== 'analyzing' && Boolean(primaryLabel || secondaryLabel);
152
+ const centeredGroup = !withNav && centeredWhenNoNav;
125
153
 
126
154
  return (
127
155
  <PrizmaScreenShell ref={ref} {...shell}>
@@ -136,7 +164,14 @@ export const PrizmaReviewScreen = forwardRef<HTMLDivElement, PrizmaReviewScreenP
136
164
  .filter(Boolean)
137
165
  .join(' ')}
138
166
  >
139
- <div className="prizma-screen-layout__review-header">
167
+ <div
168
+ className={[
169
+ 'prizma-screen-layout__review-header',
170
+ centeredGroup ? 'prizma-screen-layout__review-header--centered' : '',
171
+ ]
172
+ .filter(Boolean)
173
+ .join(' ')}
174
+ >
140
175
  {stage === 'analyzing' ? (
141
176
  <div className="prizma-screen-layout__review-loading">
142
177
  <PrizmaLoadingBar
@@ -149,9 +184,15 @@ export const PrizmaReviewScreen = forwardRef<HTMLDivElement, PrizmaReviewScreenP
149
184
  <PrizmaTitle
150
185
  variant={overrides?.align === 'left' ? 'left' : 'centered'}
151
186
  title={stage === 'success' ? successTitle ?? title : title}
152
- showSubtitle={stage === 'review' && Boolean(subtitle)}
187
+ showSubtitle={(stage === 'review' || stage === 'error') && Boolean(subtitle)}
153
188
  subtitle={subtitle}
154
- icon={stage === 'success' ? { type: 'status', status: 'success' } : undefined}
189
+ icon={
190
+ stage === 'success'
191
+ ? { type: 'status', status: 'success' }
192
+ : stage === 'error'
193
+ ? { type: 'status', status: 'error' }
194
+ : undefined
195
+ }
155
196
  />
156
197
  )}
157
198
  </div>
@@ -160,6 +201,7 @@ export const PrizmaReviewScreen = forwardRef<HTMLDivElement, PrizmaReviewScreenP
160
201
  className={[
161
202
  'prizma-screen-layout__review-stage',
162
203
  stage === 'analyzing' ? 'prizma-screen-layout__review-stage--flush' : '',
204
+ centeredGroup ? 'prizma-screen-layout__review-stage--centered-group' : '',
163
205
  stageClassName ?? '',
164
206
  ]
165
207
  .filter(Boolean)
@@ -168,18 +210,45 @@ export const PrizmaReviewScreen = forwardRef<HTMLDivElement, PrizmaReviewScreenP
168
210
  {children}
169
211
  </div>
170
212
 
171
- {showBand ? (
172
- <div className="prizma-screen-layout__band prizma-screen-layout__band--review">
173
- <PrizmaButtonGroup
174
- orientation="horizontal-v1"
175
- showSecondary={showSecondary}
176
- primaryLabel={primaryLabel}
177
- onPrimaryClick={() => onAction?.({ type: 'cta', screenId })}
178
- secondaryLabel={secondaryLabel}
179
- onSecondaryClick={() => onAction?.({ type: 'secondary', screenId })}
180
- />
181
- </div>
182
- ) : null}
213
+ {(() => {
214
+ const band = showBand ? (
215
+ <div
216
+ className={[
217
+ 'prizma-screen-layout__band',
218
+ 'prizma-screen-layout__band--review',
219
+ // No footer tag to reserve the bottom space (§6, owner rule
220
+ // 2026-08-18: header/footer are independently controlled) —
221
+ // fall back to the band's own Spacing/24, same as any other
222
+ // screen that "genuinely carries no tag" (ScreenLayout.css).
223
+ // Otherwise the CTA sits flush against the shell edge.
224
+ !showFooter ? 'prizma-screen-layout__band--bare' : '',
225
+ ]
226
+ .filter(Boolean)
227
+ .join(' ')}
228
+ >
229
+ <PrizmaButtonGroup
230
+ orientation="horizontal-v1"
231
+ showSecondary={showSecondary}
232
+ primaryLabel={primaryLabel}
233
+ onPrimaryClick={() => onAction?.({ type: 'cta', screenId })}
234
+ secondaryLabel={secondaryLabel}
235
+ onSecondaryClick={() => onAction?.({ type: 'secondary', screenId })}
236
+ />
237
+ </div>
238
+ ) : null;
239
+ // Balances the header's own flex-1 (`--centered`) so the header +
240
+ // media sit as one group centred between equal top/bottom space,
241
+ // instead of the media alone centring below a pinned header. The
242
+ // band (if any — `success`) bottom-anchors inside this same
243
+ // trailing region instead of just following the stage, matching
244
+ // Figma's own bottom flex-1 container; `analyzing` carries no
245
+ // band, so the region is just an empty spacer.
246
+ return centeredGroup ? (
247
+ <div className="prizma-screen-layout__review-trailing">{band}</div>
248
+ ) : (
249
+ band
250
+ );
251
+ })()}
183
252
 
184
253
  {showFooter ? (
185
254
  <div className="prizma-screen-layout__band__tag">