qube_rails 0.2.0 → 0.3.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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +321 -0
  3. data/README.md +406 -76
  4. data/app/assets/javascripts/qube_rails/question.js +469 -43
  5. data/app/assets/stylesheets/qube_rails.css +1349 -912
  6. data/app/controllers/qube_rails/connections_controller.rb +42 -9
  7. data/app/controllers/qube_rails/questions_controller.rb +39 -7
  8. data/app/controllers/qube_rails/runs_controller.rb +4 -3
  9. data/app/controllers/qube_rails/storyboard_controller.rb +1 -1
  10. data/app/models/qube_rails/connection.rb +131 -9
  11. data/app/models/qube_rails/quickbooks_record.rb +22 -0
  12. data/app/models/qube_rails/run.rb +28 -10
  13. data/app/views/qube_rails/_error.html.erb +2 -2
  14. data/app/views/qube_rails/_manage_connection.html.erb +19 -0
  15. data/app/views/qube_rails/_question.html.erb +4 -1
  16. data/app/views/qube_rails/question/_choice.html.erb +34 -11
  17. data/app/views/qube_rails/question/_disclosure.html.erb +7 -0
  18. data/app/views/qube_rails/question/_exit_button.html.erb +8 -0
  19. data/app/views/qube_rails/question/_field.html.erb +4 -3
  20. data/app/views/qube_rails/question/_footer.html.erb +12 -4
  21. data/app/views/qube_rails/question/_inline_search.html.erb +12 -0
  22. data/app/views/qube_rails/question/_pick.html.erb +29 -6
  23. data/app/views/qube_rails/question/_picks.html.erb +2 -1
  24. data/app/views/qube_rails/question/_question.html.erb +31 -7
  25. data/app/views/qube_rails/question/_submit.html.erb +9 -0
  26. data/app/views/qube_rails/question/fields/_boolean.html.erb +2 -2
  27. data/app/views/qube_rails/question/fields/_number.html.erb +2 -2
  28. data/app/views/qube_rails/question/fields/_rows.html.erb +17 -4
  29. data/app/views/qube_rails/question/fields/_search.html.erb +6 -3
  30. data/app/views/qube_rails/question/fields/_select.html.erb +6 -5
  31. data/app/views/qube_rails/question/fields/_text.html.erb +2 -2
  32. data/app/views/qube_rails/question/rows/_segmented.html.erb +3 -1
  33. data/app/views/qube_rails/run_status/_detail.html.erb +5 -1
  34. data/app/views/qube_rails/run_status/_status.html.erb +5 -2
  35. data/app/views/qube_rails/storyboard/show.html.erb +4 -3
  36. data/config/locales/en.yml +30 -1
  37. data/config/routes.rb +2 -0
  38. data/db/migrate/20261031000000_add_qube_connection_type_and_run_headline.rb +12 -0
  39. data/db/migrate/20261124000000_add_qube_company_file_change.rb +17 -0
  40. data/lib/generators/qube_rails/templates/connection_events.rb.tt +17 -1
  41. data/lib/generators/qube_rails/templates/initializer.rb.tt +12 -4
  42. data/lib/qube_rails/configuration.rb +5 -2
  43. data/lib/qube_rails/connection_events.rb +70 -7
  44. data/lib/qube_rails/engine.rb +1 -0
  45. data/lib/qube_rails/link_check.rb +274 -0
  46. data/lib/qube_rails/operation.rb +116 -32
  47. data/lib/qube_rails/question_view.rb +293 -35
  48. data/lib/qube_rails/request.rb +2 -0
  49. data/lib/qube_rails/rows_view.rb +18 -5
  50. data/lib/qube_rails/run_status_view.rb +12 -7
  51. data/lib/qube_rails/storyboard/ask_about_add.json +9 -11
  52. data/lib/qube_rails/storyboard/choose.json +10 -7
  53. data/lib/qube_rails/storyboard/enum_select.json +5 -4
  54. data/lib/qube_rails/storyboard/missing_record.json +11 -14
  55. data/lib/qube_rails/storyboard/name_clash.json +51 -21
  56. data/lib/qube_rails/storyboard/near_match.json +18 -15
  57. data/lib/qube_rails/storyboard/number_boolean.json +5 -4
  58. data/lib/qube_rails/storyboard/record_search.json +15 -16
  59. data/lib/qube_rails/storyboard/refusal.json +15 -18
  60. data/lib/qube_rails/storyboard/rows.json +45 -31
  61. data/lib/qube_rails/storyboard.rb +28 -7
  62. data/lib/qube_rails/sync_status.rb +16 -3
  63. data/lib/qube_rails/version.rb +1 -1
  64. data/lib/qube_rails/view_helpers.rb +4 -2
  65. data/lib/qube_rails.rb +11 -2
  66. metadata +10 -2
@@ -1,1115 +1,1552 @@
1
1
  /* qube_rails: opt-in looks for the QuickBooks screens (a question, a record's status, the
2
- storyboard). Every selector is inside :where(), so it has no specificity and any rule of your
3
- app's wins. Theme it with the --qube-* variables (README, "Styling"), on :root or any element
4
- around the screens. No reset, no global styles: only qube- elements are touched.
2
+ storyboard). Every selector is inside :where(), so it has no specificity, and it all sits in
3
+ the "components" cascade layer, after "base" and before "utilities" (Tailwind's order, declared
4
+ here so it holds whichever stylesheet loads first): your unlayered CSS and your utility classes
5
+ win, and a reset in "base" (Tailwind v4's preflight) doesn't strip it. Theme it with the
6
+ --qube-* variables (README, "Styling"), on :root or any element around the screens. No reset, no global styles: only qube- elements are touched.
5
7
  Dark mode follows the page's color-scheme: with `color-scheme: light dark` on your page, the
6
8
  accent, status colours and surfaces switch with prefers-color-scheme. */
7
9
 
8
- :where(.qube-question, .qube-run-status, .qube-error, .qube-storyboard) {
9
- --qube-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
10
- --qube-accent-color: var(--qube-accent, #2563eb);
11
- --qube-accent-text-color: var(--qube-accent-text, #fff);
12
- --qube-border-color: var(--qube-border, color-mix(in srgb, currentColor 14%, transparent));
13
- --qube-control-border-color: var(--qube-control-border, color-mix(in srgb, currentColor 24%, transparent));
14
- --qube-tint-color: color-mix(in srgb, currentColor 4%, transparent);
15
- --qube-radius-size: var(--qube-radius, 8px);
16
- --qube-control-radius: calc(var(--qube-radius-size) - 2px);
17
- --qube-gap-size: var(--qube-gap, 16px);
18
- --qube-muted-color: var(--qube-muted, color-mix(in srgb, currentColor 62%, transparent));
19
- --qube-error-color: var(--qube-error, #c2410c);
20
- --qube-success-color: var(--qube-success, #15803d);
21
- --qube-warning-color: var(--qube-warning, #d97706);
22
- --qube-surface-color: var(--qube-surface, transparent);
23
- --qube-solid-color: var(--qube-surface, Canvas);
24
- font-family: var(--qube-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
25
- font-size: var(--qube-font-size, 0.875rem);
26
- line-height: 1.5;
27
- }
10
+ @layer theme, base, components, utilities;
28
11
 
29
- @supports (color: light-dark(#000, #fff)) {
12
+ @layer components {
30
13
  :where(.qube-question, .qube-run-status, .qube-error, .qube-storyboard) {
31
- --qube-accent-color: var(--qube-accent, light-dark(#2563eb, #3b82f6));
32
- --qube-error-color: var(--qube-error, light-dark(#c2410c, #fb923c));
33
- --qube-success-color: var(--qube-success, light-dark(#15803d, #4ade80));
34
- --qube-warning-color: var(--qube-warning, light-dark(#d97706, #fbbf24));
14
+ --qube-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
15
+ --qube-accent-color: var(--qube-accent, #2563eb);
16
+ --qube-accent-text-color: var(--qube-accent-text, #fff);
17
+ --qube-border-color: var(--qube-border, color-mix(in srgb, currentColor 14%, transparent));
18
+ --qube-control-border-color: var(--qube-control-border, color-mix(in srgb, currentColor 24%, transparent));
19
+ --qube-tint-color: color-mix(in srgb, currentColor 4%, transparent);
20
+ --qube-radius-size: var(--qube-radius, 8px);
21
+ --qube-control-radius: calc(var(--qube-radius-size) - 2px);
22
+ --qube-gap-size: var(--qube-gap, 16px);
23
+ --qube-muted-color: var(--qube-muted, color-mix(in srgb, currentColor 62%, transparent));
24
+ --qube-error-color: var(--qube-error, #c2410c);
25
+ --qube-success-color: var(--qube-success, #15803d);
26
+ --qube-warning-color: var(--qube-warning, #d97706);
27
+ --qube-surface-color: var(--qube-surface, transparent);
28
+ --qube-solid-color: var(--qube-surface, Canvas);
29
+ font-family: var(--qube-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
30
+ font-size: var(--qube-font-size, 0.875rem);
31
+ line-height: 1.5;
35
32
  }
36
- }
37
33
 
38
- /* ---- The question card: the message first, then what it's about, then the choices */
39
-
40
- :where(.qube-question) {
41
- display: grid;
42
- gap: var(--qube-gap-size);
43
- max-width: var(--qube-max-width, 52rem);
44
- padding: clamp(16px, 3vw, 24px);
45
- border: 1px solid var(--qube-border-color);
46
- border-radius: var(--qube-radius-size);
47
- background: var(--qube-surface-color);
48
- box-sizing: border-box;
49
- }
34
+ @supports (color: light-dark(#000, #fff)) {
35
+ :where(.qube-question, .qube-run-status, .qube-error, .qube-storyboard) {
36
+ --qube-accent-color: var(--qube-accent, light-dark(#2563eb, #3b82f6));
37
+ --qube-error-color: var(--qube-error, light-dark(#c2410c, #fb923c));
38
+ --qube-success-color: var(--qube-success, light-dark(#15803d, #4ade80));
39
+ --qube-warning-color: var(--qube-warning, light-dark(#d97706, #fbbf24));
40
+ }
41
+ }
50
42
 
51
- :where(.qube-question-message) {
52
- max-width: 65ch;
53
- margin: 0;
54
- font-size: 1.1429em;
55
- font-weight: 600;
56
- line-height: 1.45;
57
- text-wrap: pretty;
58
- }
43
+ /* ---- The question card: the message first, then what it's about, then the choices */
59
44
 
60
- /* What it's about: a quiet two-column key/value list */
61
- :where(.qube-question-details) {
62
- justify-self: start;
63
- border-collapse: collapse;
64
- font-size: 0.9286em;
65
- }
45
+ /* Under the record's status, not touching it */
46
+ :where(.qube-run-status ~ .qube-question) {
47
+ margin-top: var(--qube-gap-size, 16px);
48
+ }
66
49
 
67
- :where(.qube-question-details th) {
68
- padding: 2px 24px 2px 0;
69
- font-weight: 400;
70
- text-align: left;
71
- vertical-align: top;
72
- white-space: nowrap;
73
- color: var(--qube-muted-color);
74
- }
50
+ :where(.qube-question) {
51
+ display: grid;
52
+ gap: var(--qube-gap-size);
53
+ max-width: var(--qube-max-width, 52rem);
54
+ padding: clamp(16px, 3vw, 24px);
55
+ border: 1px solid var(--qube-border-color);
56
+ border-radius: var(--qube-radius-size);
57
+ background: var(--qube-surface-color);
58
+ box-sizing: border-box;
59
+ }
75
60
 
76
- :where(.qube-question-details td) {
77
- padding: 2px 0;
78
- font-variant-numeric: tabular-nums;
79
- }
61
+ :where(.qube-question-message) {
62
+ max-width: 65ch;
63
+ margin: 0;
64
+ font-size: 1.1429em;
65
+ font-weight: 600;
66
+ line-height: 1.45;
67
+ text-wrap: pretty;
68
+ }
80
69
 
81
- /* ---- Choices, by kind: picks as option rows, each form choice its own section ("or" between),
82
- exits in a footer row. At most one filled button: a form's submit, or in a plain question the
83
- first choice. */
70
+ /* What it's about: a quiet two-column key/value list */
71
+ :where(.qube-question-details) {
72
+ justify-self: start;
73
+ border-collapse: collapse;
74
+ font-size: 0.9286em;
75
+ }
84
76
 
85
- :where(.qube-choices) {
86
- display: grid;
87
- gap: 16px;
88
- padding-top: var(--qube-gap-size);
89
- border-top: 1px solid var(--qube-border-color);
90
- }
77
+ :where(.qube-question-details th) {
78
+ padding: 2px 24px 2px 0;
79
+ font-weight: 400;
80
+ text-align: left;
81
+ vertical-align: top;
82
+ white-space: nowrap;
83
+ color: var(--qube-muted-color);
84
+ }
91
85
 
92
- :where(.qube-choice) {
93
- display: grid;
94
- gap: 12px;
95
- margin: 0;
96
- }
86
+ :where(.qube-question-details td) {
87
+ padding: 2px 0;
88
+ font-variant-numeric: tabular-nums;
89
+ }
97
90
 
98
- /* A pick: a quiet, full-width option row that says what clicking it does */
99
- :where(.qube-picks) {
100
- display: grid;
101
- gap: 8px;
102
- }
91
+ /* ---- Choices, by kind: picks as option rows, each form choice its own section ("or" between),
92
+ exits in a footer row. At most one filled button: the first offered record's "Use this one", a
93
+ form's submit, or in a plain question the first choice. */
103
94
 
104
- :where(.qube-pick) {
105
- display: flex;
106
- align-items: center;
107
- justify-content: space-between;
108
- gap: 16px;
109
- width: 100%;
110
- min-height: 48px;
111
- padding: 10px 14px;
112
- font: inherit;
113
- text-align: left;
114
- color: inherit;
115
- background: var(--qube-solid-color);
116
- border: 1px solid var(--qube-control-border-color);
117
- border-radius: var(--qube-control-radius);
118
- cursor: pointer;
119
- user-select: none;
120
- touch-action: manipulation;
121
- -webkit-tap-highlight-color: transparent;
122
- transition: transform 160ms var(--qube-ease-out), background-color 150ms ease, border-color 150ms ease;
123
- }
95
+ :where(.qube-choices) {
96
+ display: grid;
97
+ gap: 16px;
98
+ padding-top: var(--qube-gap-size);
99
+ container: qube-choices / inline-size;
100
+ }
124
101
 
125
- :where(.qube-pick-action) {
126
- flex-shrink: 0;
127
- font-size: 0.9286em;
128
- font-weight: 500;
129
- color: var(--qube-accent-color);
130
- white-space: nowrap;
131
- }
102
+ :where(.qube-choice) {
103
+ display: grid;
104
+ gap: 12px;
105
+ margin: 0;
106
+ }
132
107
 
133
- :where(.qube-pick:active) {
134
- transform: scale(0.99);
135
- }
108
+ /* A pick: a quiet, full-width option row that says what clicking it does */
109
+ :where(.qube-picks) {
110
+ display: grid;
111
+ gap: 8px;
112
+ }
136
113
 
137
- :where(.qube-pick-text) {
138
- display: flex;
139
- flex-wrap: wrap;
140
- align-items: baseline;
141
- gap: 2px 10px;
142
- min-width: 0;
143
- }
114
+ :where(.qube-pick) {
115
+ display: flex;
116
+ align-items: center;
117
+ justify-content: space-between;
118
+ gap: 16px;
119
+ width: 100%;
120
+ min-height: 48px;
121
+ padding: 10px 14px;
122
+ font: inherit;
123
+ text-align: left;
124
+ color: inherit;
125
+ background: var(--qube-solid-color);
126
+ border: 1px solid var(--qube-control-border-color);
127
+ border-radius: var(--qube-control-radius);
128
+ cursor: pointer;
129
+ user-select: none;
130
+ touch-action: manipulation;
131
+ -webkit-tap-highlight-color: transparent;
132
+ transition: transform 160ms var(--qube-ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
133
+ }
144
134
 
145
- :where(.qube-pick-label) {
146
- font-weight: 500;
147
- }
135
+ :where(.qube-pick-action) {
136
+ flex-shrink: 0;
137
+ font-size: 0.9286em;
138
+ font-weight: 500;
139
+ color: var(--qube-accent-color);
140
+ white-space: nowrap;
141
+ }
148
142
 
149
- :where(.qube-pick-detail) {
150
- color: var(--qube-muted-color);
151
- }
143
+ :where(.qube-pick:active) {
144
+ transform: scale(0.99);
145
+ }
152
146
 
153
- :where(.qube-pick-description) {
154
- flex-basis: 100%;
155
- font-size: 0.9286em;
156
- color: var(--qube-muted-color);
157
- }
147
+ :where(.qube-pick-text) {
148
+ display: flex;
149
+ flex-wrap: wrap;
150
+ align-items: baseline;
151
+ gap: 2px 10px;
152
+ min-width: 0;
153
+ }
158
154
 
159
- @media (hover: hover) and (pointer: fine) {
160
- :where(.qube-pick:hover) {
161
- background: color-mix(in srgb, currentColor 4%, var(--qube-solid-color));
162
- border-color: color-mix(in srgb, currentColor 34%, transparent);
155
+ :where(.qube-pick-label) {
156
+ font-weight: 500;
163
157
  }
164
- }
165
158
 
166
- /* "or" between picks and a form, or between forms */
167
- :where(.qube-choice-divider) {
168
- display: flex;
169
- align-items: center;
170
- gap: 12px;
171
- font-size: 0.8571em;
172
- color: var(--qube-muted-color);
173
- }
159
+ :where(.qube-pick-detail) {
160
+ color: var(--qube-muted-color);
161
+ }
174
162
 
175
- :where(.qube-choice-divider)::before,
176
- :where(.qube-choice-divider)::after {
177
- content: "";
178
- flex: 1;
179
- border-top: 1px solid var(--qube-border-color);
180
- }
163
+ /* A detail's parts (name, email, phone) wrap between, not inside, unless one is wider than the line */
164
+ :where(.qube-detail-part) {
165
+ display: inline-block;
166
+ max-width: 100%;
167
+ overflow-wrap: anywhere;
168
+ }
181
169
 
182
- /* A form choice: its field's label leads, its submit under it */
183
- :where(.qube-choice-form .qube-label) {
184
- font-size: 1em;
185
- }
170
+ :where(.qube-pick-description) {
171
+ flex-basis: 100%;
172
+ font-size: 0.9286em;
173
+ color: var(--qube-muted-color);
174
+ }
186
175
 
187
- /* The exits: one row under a hairline (no hairline when they're all there is) */
188
- :where(.qube-choice-footer) {
189
- display: flex;
190
- flex-wrap: wrap;
191
- align-items: flex-start;
192
- gap: 8px;
193
- }
176
+ @media (hover: hover) and (pointer: fine) {
177
+ :where(.qube-pick:hover) {
178
+ background: color-mix(in srgb, currentColor 4%, var(--qube-solid-color));
179
+ border-color: color-mix(in srgb, currentColor 34%, transparent);
180
+ }
181
+ }
194
182
 
195
- :where(.qube-picks, .qube-choice-form) + :where(.qube-choice-footer) {
196
- padding-top: 16px;
197
- border-top: 1px solid var(--qube-border-color);
198
- }
183
+ /* "or" between picks and a form, or between forms */
184
+ :where(.qube-choice-divider) {
185
+ display: flex;
186
+ align-items: center;
187
+ gap: 12px;
188
+ font-size: 0.8571em;
189
+ color: var(--qube-muted-color);
190
+ }
199
191
 
200
- :where(.qube-choice-footer .qube-choice:has(.qube-choice-description)) {
201
- flex-basis: 100%;
202
- }
192
+ :where(.qube-choice-divider)::before,
193
+ :where(.qube-choice-divider)::after {
194
+ content: "";
195
+ flex: 1;
196
+ }
203
197
 
204
- :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy) {
205
- display: inline-flex;
206
- align-items: center;
207
- justify-self: start;
208
- gap: 8px;
209
- min-height: 40px;
210
- padding: 0 14px;
211
- font: inherit;
212
- font-weight: 500;
213
- line-height: 1.25;
214
- text-align: left;
215
- color: inherit;
216
- background: var(--qube-solid-color);
217
- border: 1px solid var(--qube-control-border-color);
218
- border-radius: var(--qube-control-radius);
219
- cursor: pointer;
220
- user-select: none;
221
- touch-action: manipulation;
222
- -webkit-tap-highlight-color: transparent;
223
- transition:
224
- transform 160ms var(--qube-ease-out),
225
- background-color 150ms ease,
226
- border-color 150ms ease,
227
- color 150ms ease,
228
- opacity 150ms ease;
229
- }
198
+ /* A form choice: its fields, then its button row, in one column (a rows field takes the width) */
199
+ :where(.qube-choice-form) {
200
+ max-width: var(--qube-form-width, 36rem);
201
+ }
230
202
 
231
- /* Pressing gives way a little */
232
- :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy):where(:active:not(:disabled)) {
233
- transform: scale(0.97);
234
- }
203
+ :where(.qube-choice-form:has(.qube-rows-field)) {
204
+ max-width: none;
205
+ }
235
206
 
236
- :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button):where(:disabled) {
237
- opacity: 0.45;
238
- cursor: not-allowed;
239
- }
207
+ /* Beside full-width picks a form takes the width too, so every button shares one right edge */
208
+ :where(.qube-question:has(.qube-picks) .qube-choice-form) {
209
+ max-width: none;
210
+ }
240
211
 
241
- /* The one primary action, and the retry */
242
- :where(.qube-choice-button[data-qube-button="primary"], .qube-retry-start) {
243
- color: var(--qube-accent-text-color);
244
- background: var(--qube-accent-color);
245
- border-color: var(--qube-accent-color);
246
- }
212
+ :where(.qube-choice-form .qube-label) {
213
+ font-size: 1em;
214
+ }
247
215
 
248
- /* Cancel: no box until hovered */
249
- :where(.qube-choice-button[data-qube-button="ghost"]) {
250
- color: var(--qube-muted-color);
251
- background: transparent;
252
- border-color: transparent;
253
- }
216
+ /* "(optional)" after a label */
217
+ :where(.qube-optional) {
218
+ font-weight: 400;
219
+ color: var(--qube-muted-color);
220
+ }
254
221
 
255
- @media (hover: hover) and (pointer: fine) {
256
- :where(.qube-choice-button, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy):where(:hover:not(:disabled)) {
257
- background: color-mix(in srgb, currentColor 6%, var(--qube-solid-color));
222
+ /* A button row: cancel at the start, the rest (step count, Back, Next or the submit) at the end,
223
+ which is the right edge of the fields above. The exits' own row (the footer) is laid out the same. */
224
+ :where(.qube-choice-actions, .qube-choice-footer) {
225
+ display: flex;
226
+ flex-wrap: wrap;
227
+ align-items: center;
228
+ gap: 8px 16px;
258
229
  }
259
230
 
260
- :where(.qube-choice-button[data-qube-button="primary"], .qube-retry-start):where(:hover:not(:disabled)) {
261
- background: color-mix(in srgb, var(--qube-accent-color) 88%, black);
262
- border-color: color-mix(in srgb, var(--qube-accent-color) 88%, black);
231
+ :where(.qube-choice-actions-start, .qube-choice-actions-end, .qube-choice-footer-start, .qube-choice-footer-end) {
232
+ display: flex;
233
+ flex-wrap: wrap;
234
+ align-items: center;
235
+ gap: 8px;
263
236
  }
264
237
 
265
- :where(.qube-choice-button[data-qube-button="ghost"]):where(:hover) {
266
- color: inherit;
267
- background: var(--qube-tint-color);
238
+ :where(.qube-choice-actions-end, .qube-choice-footer-end) {
239
+ justify-content: flex-end;
240
+ margin-inline-start: auto;
268
241
  }
269
- }
270
242
 
271
- :where(.qube-choice-detail) {
272
- font-weight: 400;
273
- opacity: 0.72;
274
- }
243
+ :where(.qube-choice-actions-start:empty, .qube-choice-footer-start:empty, .qube-choice-footer-end:empty) {
244
+ display: none;
245
+ }
275
246
 
276
- :where(.qube-choice-description) {
277
- max-width: 65ch;
278
- margin: -4px 0 0;
279
- font-size: 0.9286em;
280
- color: var(--qube-muted-color);
281
- }
247
+ /* A ghost (cancel) at the start of a row: its text lines up with the fields' left edge */
248
+ :where(.qube-choice-actions-start, .qube-choice-footer-start) :where([data-qube-button="ghost"]) {
249
+ margin-inline-start: -14px;
250
+ }
282
251
 
283
- /* ---- Focus: always visible from the keyboard, never removed */
252
+ :where(.qube-picks, .qube-choice-form) + :where(.qube-choice-footer) {
253
+ padding-top: 16px;
254
+ }
284
255
 
285
- :where(.qube-question, .qube-run-status, .qube-storyboard) :where(:focus-visible) {
286
- outline: 2px solid var(--qube-accent-color);
287
- outline-offset: 2px;
288
- }
256
+ /* Exits with descriptions stack, each with its own, cancel last (still at the start) */
257
+ :where(.qube-choice-footer:has(.qube-choice-description)) {
258
+ flex-direction: column;
259
+ align-items: stretch;
260
+ gap: 16px;
261
+ }
289
262
 
290
- /* ---- Fields */
263
+ :where(.qube-choice-footer:has(.qube-choice-description)) :where(.qube-choice-footer-start, .qube-choice-footer-end) {
264
+ flex-direction: column;
265
+ align-items: stretch;
266
+ gap: 16px;
267
+ margin-inline-start: 0;
268
+ }
291
269
 
292
- :where(.qube-field) {
293
- display: grid;
294
- gap: 6px;
295
- }
270
+ :where(.qube-choice-footer:has(.qube-choice-description) .qube-choice-footer-start) {
271
+ order: 1;
272
+ }
296
273
 
297
- :where(.qube-field-boolean) {
298
- display: flex;
299
- align-items: center;
300
- gap: 10px;
301
- min-height: 40px;
302
- }
274
+ /* Where a rows field is in its steps: "2 of 3", before Back */
275
+ :where(.qube-rows-step) {
276
+ margin-inline-end: 4px;
277
+ font-size: 0.9286em;
278
+ font-variant-numeric: tabular-nums;
279
+ color: var(--qube-muted-color);
280
+ }
303
281
 
304
- :where(.qube-label, .qube-rows-label) {
305
- margin: 0;
306
- font-size: 0.9286em;
307
- font-weight: 500;
308
- }
282
+ :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy) {
283
+ display: inline-flex;
284
+ align-items: center;
285
+ justify-self: start;
286
+ gap: 8px;
287
+ min-height: 40px;
288
+ padding: 8px 14px;
289
+ box-sizing: border-box;
290
+ font: inherit;
291
+ font-weight: 500;
292
+ line-height: 1.25;
293
+ text-align: left;
294
+ color: inherit;
295
+ background: var(--qube-solid-color);
296
+ border: 1px solid var(--qube-control-border-color);
297
+ border-radius: var(--qube-control-radius);
298
+ cursor: pointer;
299
+ user-select: none;
300
+ touch-action: manipulation;
301
+ -webkit-tap-highlight-color: transparent;
302
+ transition:
303
+ transform 160ms var(--qube-ease-out),
304
+ background-color 150ms ease,
305
+ border-color 150ms ease,
306
+ color 150ms ease,
307
+ opacity 150ms ease;
308
+ }
309
309
 
310
- :where(.qube-field-boolean .qube-label) {
311
- font-size: 1em;
312
- font-weight: 400;
313
- cursor: pointer;
314
- }
310
+ /* Pressing gives way a little */
311
+ :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy):where(:active:not(:disabled)) {
312
+ transform: scale(0.97);
313
+ }
315
314
 
316
- :where(.qube-input, .qube-select, .qube-search-input) {
317
- box-sizing: border-box;
318
- width: 100%;
319
- max-width: 28rem;
320
- min-width: 8rem;
321
- min-height: 38px;
322
- padding: 0 10px;
323
- font: inherit;
324
- color: inherit;
325
- background: var(--qube-solid-color);
326
- border: 1px solid var(--qube-control-border-color);
327
- border-radius: var(--qube-control-radius);
328
- transition: border-color 150ms ease;
329
- }
315
+ :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button):where(:disabled) {
316
+ opacity: 0.45;
317
+ cursor: not-allowed;
318
+ }
330
319
 
331
- :where(.qube-input, .qube-select, .qube-search-input):where(:focus) {
332
- border-color: var(--qube-accent-color);
333
- }
320
+ /* The one primary action, and the retry */
321
+ :where(.qube-choice-button[data-qube-button="primary"], .qube-retry-start) {
322
+ color: var(--qube-accent-text-color);
323
+ background: var(--qube-accent-color);
324
+ border-color: var(--qube-accent-color);
325
+ }
334
326
 
335
- :where(.qube-input, .qube-select, .qube-search-input):where(:user-invalid) {
336
- border-color: var(--qube-error-color);
337
- }
327
+ /* Cancel: no box until hovered */
328
+ :where(.qube-choice-button[data-qube-button="ghost"]) {
329
+ color: var(--qube-muted-color);
330
+ background: transparent;
331
+ border-color: transparent;
332
+ }
338
333
 
339
- :where(.qube-input, .qube-select, .qube-search-input):where(:disabled) {
340
- opacity: 0.5;
341
- }
334
+ @media (hover: hover) and (pointer: fine) {
335
+ :where(.qube-choice-button, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy):where(:hover:not(:disabled)) {
336
+ background: color-mix(in srgb, currentColor 6%, var(--qube-solid-color));
337
+ }
342
338
 
343
- :where(.qube-checkbox) {
344
- width: 16px;
345
- height: 16px;
346
- margin: 0;
347
- accent-color: var(--qube-accent-color);
348
- cursor: pointer;
349
- }
339
+ :where(.qube-choice-button[data-qube-button="primary"], .qube-retry-start):where(:hover:not(:disabled)) {
340
+ background: color-mix(in srgb, var(--qube-accent-color) 88%, black);
341
+ border-color: color-mix(in srgb, var(--qube-accent-color) 88%, black);
342
+ }
350
343
 
351
- /* ---- The search box: a combobox whose matches drop down from the input */
344
+ :where(.qube-choice-button[data-qube-button="ghost"]):where(:hover) {
345
+ color: inherit;
346
+ background: var(--qube-tint-color);
347
+ }
348
+ }
352
349
 
353
- :where(.qube-search) {
354
- position: relative;
355
- max-width: 28rem;
356
- }
350
+ :where(.qube-choice-detail) {
351
+ font-weight: 400;
352
+ opacity: 0.72;
353
+ }
357
354
 
358
- :where(.qube-search-results) {
359
- position: absolute;
360
- top: calc(100% + 4px);
361
- left: 0;
362
- right: 0;
363
- z-index: 20;
364
- display: grid;
365
- gap: 1px;
366
- max-height: 16rem;
367
- overflow-y: auto;
368
- padding: 4px;
369
- background: var(--qube-solid-color);
370
- border: 1px solid var(--qube-border-color);
371
- border-radius: var(--qube-radius-size);
372
- box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.25), 0 2px 6px -2px rgb(0 0 0 / 0.08);
373
- transform-origin: top center;
374
- transition: opacity 150ms var(--qube-ease-out), transform 150ms var(--qube-ease-out);
375
- }
355
+ :where(.qube-choice-description) {
356
+ max-width: 65ch;
357
+ margin: -4px 0 0;
358
+ font-size: 0.9286em;
359
+ color: var(--qube-muted-color);
360
+ }
376
361
 
377
- /* Enters from the input; closes at once */
378
- @starting-style {
379
- :where(.qube-search-results) {
380
- opacity: 0;
381
- transform: translateY(-4px) scale(0.98);
362
+ /* Under a ghost button (no box), the description starts where the button's text does; at the
363
+ start of a row the ghost's text is already at the edge */
364
+ :where([data-qube-button="ghost"] ~ .qube-choice-description) {
365
+ padding-inline-start: 14px;
382
366
  }
383
- }
384
367
 
385
- :where(.qube-search-results:empty) {
386
- display: none;
387
- }
368
+ :where(.qube-choice-actions-start, .qube-choice-footer-start) :where([data-qube-button="ghost"] ~ .qube-choice-description) {
369
+ padding-inline-start: 0;
370
+ }
388
371
 
389
- :where(.qube-search-result) {
390
- display: grid;
391
- gap: 2px;
392
- min-height: 36px;
393
- padding: 7px 10px;
394
- font: inherit;
395
- text-align: left;
396
- color: inherit;
397
- background: transparent;
398
- border: 0;
399
- border-radius: calc(var(--qube-radius-size) - 4px);
400
- cursor: pointer;
401
- }
372
+ /* ---- Focus: always visible from the keyboard, never removed */
402
373
 
403
- /* The highlighted match: instant, from the keyboard or the pointer */
404
- :where(.qube-search-result[aria-selected="true"]) {
405
- background: color-mix(in srgb, var(--qube-accent-color) 12%, transparent);
406
- }
374
+ :where(.qube-question, .qube-run-status, .qube-storyboard) :where(:focus-visible) {
375
+ outline: 2px solid var(--qube-accent-color);
376
+ outline-offset: 2px;
377
+ }
407
378
 
408
- :where(.qube-search-result [data-qube-search-detail]) {
409
- overflow-wrap: anywhere;
410
- font-size: 0.9286em;
411
- color: var(--qube-muted-color);
412
- }
379
+ /* ---- Fields */
413
380
 
414
- :where(.qube-search-results [data-qube-search-note]) {
415
- padding: 7px 10px;
416
- color: var(--qube-muted-color);
417
- }
381
+ :where(.qube-field) {
382
+ display: grid;
383
+ gap: 6px;
384
+ }
418
385
 
419
- /* ---- A rows field: a block per record, its fields stacked. Nothing scrolls sideways: each
420
- record's name sits beside its fields when there's room, above them when there isn't. */
386
+ :where(.qube-field-boolean) {
387
+ display: flex;
388
+ align-items: center;
389
+ gap: 10px;
390
+ min-height: 40px;
391
+ }
421
392
 
422
- :where(.qube-rows-field) {
423
- gap: 12px;
424
- }
393
+ :where(.qube-label, .qube-rows-label) {
394
+ margin: 0;
395
+ font-size: 0.9286em;
396
+ font-weight: 500;
397
+ }
425
398
 
426
- :where(.qube-rows-set-all) {
427
- display: flex;
428
- flex-wrap: wrap;
429
- align-items: center;
430
- gap: 8px;
431
- font-size: 0.9286em;
432
- }
399
+ :where(.qube-field-boolean .qube-label) {
400
+ font-size: 1em;
401
+ font-weight: 400;
402
+ cursor: pointer;
403
+ }
433
404
 
434
- :where(.qube-rows-set-all-label) {
435
- color: var(--qube-muted-color);
436
- }
405
+ :where(.qube-input, .qube-select, .qube-search-input) {
406
+ box-sizing: border-box;
407
+ width: 100%;
408
+ max-width: 28rem;
409
+ min-width: 8rem;
410
+ min-height: 38px;
411
+ padding: 0 10px;
412
+ font: inherit;
413
+ color: inherit;
414
+ background: var(--qube-solid-color);
415
+ border: 1px solid var(--qube-control-border-color);
416
+ border-radius: var(--qube-control-radius);
417
+ transition: border-color 150ms ease, background-color 150ms ease;
418
+ }
437
419
 
438
- :where(.qube-set-all-button) {
439
- min-height: 36px;
440
- padding: 0 12px;
441
- }
420
+ :where(.qube-input, .qube-select, .qube-search-input):where(:focus) {
421
+ border-color: var(--qube-accent-color);
422
+ }
442
423
 
443
- :where(.qube-rows) {
444
- display: grid;
445
- container-type: inline-size;
446
- border-top: 1px solid var(--qube-border-color);
447
- }
424
+ :where(.qube-input, .qube-select, .qube-search-input):where(:user-invalid, [aria-invalid="true"]) {
425
+ border-color: var(--qube-error-color);
426
+ }
448
427
 
449
- :where(.qube-row) {
450
- display: grid;
451
- gap: 12px;
452
- padding: 16px 0;
453
- border-bottom: 1px solid var(--qube-border-color);
454
- }
428
+ /* A search box being typed in has no pick yet, which isn't a mistake: the error edge waits
429
+ until the focus leaves it (or QuBe Sync refuses the answer) */
430
+ :where(.qube-search-input:user-invalid:focus:not([aria-invalid="true"])) {
431
+ border-color: var(--qube-accent-color);
432
+ }
455
433
 
456
- :where(.qube-row-header) {
457
- display: flex;
458
- flex-wrap: wrap;
459
- align-items: baseline;
460
- gap: 2px 8px;
461
- min-width: 0;
462
- }
434
+ :where(.qube-input, .qube-select, .qube-search-input):where(:disabled) {
435
+ opacity: 0.5;
436
+ }
463
437
 
464
- :where(.qube-row-label) {
465
- font-weight: 500;
466
- }
438
+ :where(.qube-checkbox) {
439
+ width: 16px;
440
+ height: 16px;
441
+ margin: 0;
442
+ accent-color: var(--qube-accent-color);
443
+ cursor: pointer;
444
+ }
467
445
 
468
- :where(.qube-row-detail) {
469
- color: var(--qube-muted-color);
470
- }
446
+ /* ---- The search box: a combobox whose matches drop down from the input */
471
447
 
472
- :where(.qube-row-body) {
473
- display: grid;
474
- gap: 12px;
475
- min-width: 0;
476
- }
448
+ :where(.qube-search) {
449
+ position: relative;
450
+ max-width: 28rem;
451
+ }
477
452
 
478
- :where(.qube-row-fields) {
479
- display: grid;
480
- grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
481
- gap: 12px 16px;
482
- }
453
+ /* In a form choice they fill its column, so the submit lines up (after the widths above) */
454
+ :where(.qube-choice-form) :where(.qube-input, .qube-select, .qube-search-input, .qube-search) {
455
+ max-width: none;
456
+ }
483
457
 
484
- /* Nothing to show yet (no choice made): no gap for it */
485
- :where(.qube-row-fields:not(:has(> .qube-row-cell:not([hidden])))) {
486
- display: none;
487
- }
458
+ /* A picked match: a check in the box and an accent edge, so its text reads as the selection */
459
+ :where(.qube-search[data-qube-picked] .qube-search-input) {
460
+ padding-inline-start: 34px;
461
+ font-weight: 500;
462
+ background: color-mix(in srgb, var(--qube-accent-color) 6%, var(--qube-solid-color));
463
+ border-color: color-mix(in srgb, var(--qube-accent-color) 60%, var(--qube-control-border-color));
464
+ }
488
465
 
489
- @container (min-width: 36rem) {
490
- :where(.qube-row) {
491
- grid-template-columns: 12rem minmax(0, 1fr);
492
- gap: 12px 24px;
493
- align-items: start;
466
+ :where(.qube-search[data-qube-picked])::before {
467
+ content: "";
468
+ position: absolute;
469
+ inset-inline-start: 11px;
470
+ top: 0;
471
+ width: 16px;
472
+ height: 100%;
473
+ max-height: 38px;
474
+ background: var(--qube-accent-color);
475
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
476
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
477
+ pointer-events: none;
478
+ animation: qube-picked-in 240ms var(--qube-ease-out);
494
479
  }
495
480
 
496
- :where(.qube-row-header) {
497
- flex-direction: column;
498
- padding-top: 9px;
481
+ /* The check confirms the pick: it pops in, not from nothing */
482
+ @keyframes qube-picked-in {
483
+ from {
484
+ opacity: 0;
485
+ transform: scale(0.7);
486
+ }
499
487
  }
500
- }
501
488
 
502
- :where(.qube-row .qube-label) {
503
- font-size: 0.9286em;
504
- }
489
+ :where(.qube-search-results) {
490
+ position: absolute;
491
+ top: calc(100% + 4px);
492
+ left: 0;
493
+ right: 0;
494
+ z-index: 20;
495
+ display: grid;
496
+ gap: 1px;
497
+ max-height: 16rem;
498
+ overflow-y: auto;
499
+ padding: 4px;
500
+ background: var(--qube-solid-color);
501
+ border: 1px solid var(--qube-border-color);
502
+ border-radius: var(--qube-radius-size);
503
+ box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.25), 0 2px 6px -2px rgb(0 0 0 / 0.08);
504
+ transform-origin: top center;
505
+ transition: opacity 150ms var(--qube-ease-out), transform 150ms var(--qube-ease-out);
506
+ }
505
507
 
506
- :where(.qube-row-fields) :where(.qube-input, .qube-select, .qube-search-input, .qube-search) {
507
- max-width: none;
508
- min-width: 0;
509
- }
508
+ /* Enters from the input; closes at once */
509
+ @starting-style {
510
+ :where(.qube-search-results) {
511
+ opacity: 0;
512
+ transform: translateY(-4px) scale(0.98);
513
+ }
514
+ }
510
515
 
511
- /* A field that starts to apply fades in; one that stops is gone at once (hidden) */
512
- :where(.qube-row-cell) {
513
- min-width: 0;
514
- transition: opacity 150ms var(--qube-ease-out);
515
- }
516
+ :where(.qube-search-results:empty) {
517
+ display: none;
518
+ }
516
519
 
517
- @starting-style {
518
- :where(.qube-row-cell) {
519
- opacity: 0;
520
+ :where(.qube-search-result) {
521
+ display: grid;
522
+ gap: 2px;
523
+ min-height: 36px;
524
+ padding: 7px 10px;
525
+ font: inherit;
526
+ text-align: left;
527
+ color: inherit;
528
+ background: transparent;
529
+ border: 0;
530
+ border-radius: calc(var(--qube-radius-size) - 4px);
531
+ cursor: pointer;
520
532
  }
521
- }
522
533
 
523
- /* What the record already has: read-only */
524
- :where(.qube-row-preset) {
525
- gap: 6px;
526
- }
534
+ /* The highlighted match: instant, from the keyboard or the pointer */
535
+ :where(.qube-search-result[aria-selected="true"]) {
536
+ background: color-mix(in srgb, var(--qube-accent-color) 12%, transparent);
537
+ }
527
538
 
528
- :where(.qube-row-preset-value) {
529
- display: flex;
530
- align-items: center;
531
- min-height: 38px;
532
- }
539
+ :where(.qube-search-result [data-qube-search-detail]) {
540
+ font-size: 0.9286em;
541
+ color: var(--qube-muted-color);
542
+ }
533
543
 
534
- /* The record's choice (create it, or use one QuickBooks has): a segmented control */
535
- :where(.qube-segmented-field) {
536
- min-width: 0;
537
- margin: 0;
538
- padding: 0;
539
- border: 0;
540
- }
544
+ :where(.qube-search-results [data-qube-search-note]) {
545
+ padding: 7px 10px;
546
+ color: var(--qube-muted-color);
547
+ }
541
548
 
542
- :where(.qube-visually-hidden) {
543
- position: absolute;
544
- width: 1px;
545
- height: 1px;
546
- overflow: hidden;
547
- clip-path: inset(50%);
548
- white-space: nowrap;
549
- }
549
+ /* ---- A rows field: a block per record, its fields stacked. Nothing scrolls sideways: each
550
+ record's name sits beside its fields when there's room, above them when there isn't. */
550
551
 
551
- :where(.qube-segmented) {
552
- display: flex;
553
- flex-wrap: wrap;
554
- gap: 2px;
555
- width: fit-content;
556
- max-width: 100%;
557
- padding: 3px;
558
- border-radius: calc(var(--qube-control-radius) + 2px);
559
- background: color-mix(in srgb, currentColor 7%, transparent);
560
- box-sizing: border-box;
561
- }
552
+ :where(.qube-rows-field) {
553
+ gap: 12px;
554
+ }
562
555
 
563
- :where(.qube-segment) {
564
- position: relative;
565
- display: inline-flex;
566
- flex: 1 1 auto;
567
- align-items: center;
568
- justify-content: center;
569
- min-height: 36px;
570
- padding: 0 14px;
571
- font-weight: 500;
572
- color: var(--qube-muted-color);
573
- border-radius: var(--qube-control-radius);
574
- cursor: pointer;
575
- user-select: none;
576
- -webkit-tap-highlight-color: transparent;
577
- transition:
578
- transform 160ms var(--qube-ease-out),
579
- background-color 150ms ease,
580
- color 150ms ease,
581
- box-shadow 150ms ease;
582
- }
556
+ :where(.qube-rows-set-all) {
557
+ display: flex;
558
+ flex-wrap: wrap;
559
+ align-items: center;
560
+ gap: 8px;
561
+ font-size: 0.9286em;
562
+ }
583
563
 
584
- :where(.qube-segment-input) {
585
- position: absolute;
586
- inset: 0;
587
- width: 100%;
588
- height: 100%;
589
- margin: 0;
590
- opacity: 0;
591
- cursor: pointer;
592
- }
564
+ :where(.qube-rows-set-all-label) {
565
+ color: var(--qube-muted-color);
566
+ }
593
567
 
594
- :where(.qube-segment:has(:checked)) {
595
- color: inherit;
596
- background: var(--qube-solid-color);
597
- box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 0 1px var(--qube-border-color);
598
- }
568
+ :where(.qube-set-all-button) {
569
+ min-height: 36px;
570
+ padding: 0 12px;
571
+ }
599
572
 
600
- :where(.qube-segment:active) {
601
- transform: scale(0.97);
602
- }
573
+ :where(.qube-rows) {
574
+ display: grid;
575
+ container-type: inline-size;
576
+ }
603
577
 
604
- :where(.qube-segment:has(:focus-visible)) {
605
- outline: 2px solid var(--qube-accent-color);
606
- outline-offset: 2px;
607
- }
578
+ :where(.qube-row) {
579
+ display: grid;
580
+ gap: 12px;
581
+ padding: 16px 0;
582
+ }
608
583
 
609
- :where(.qube-segment:has(:disabled)) {
610
- opacity: 0.5;
611
- cursor: not-allowed;
612
- }
584
+ :where(.qube-row-header) {
585
+ display: flex;
586
+ flex-wrap: wrap;
587
+ align-items: baseline;
588
+ gap: 2px 8px;
589
+ min-width: 0;
590
+ }
613
591
 
614
- @media (hover: hover) and (pointer: fine) {
615
- :where(.qube-segment:hover) {
616
- color: inherit;
592
+ :where(.qube-row-label) {
593
+ font-weight: 500;
617
594
  }
618
- }
619
595
 
620
- @container (max-width: 24rem) {
621
- :where(.qube-segmented) {
622
- width: 100%;
596
+ :where(.qube-row-detail) {
597
+ color: var(--qube-muted-color);
623
598
  }
624
- }
625
599
 
626
- /* "Use for all N": a text button under a filled field */
627
- :where(.qube-use-for-all) {
628
- display: inline-flex;
629
- align-items: center;
630
- min-height: 32px;
631
- margin-top: 2px;
632
- padding: 0;
633
- font: inherit;
634
- font-size: 0.9286em;
635
- font-weight: 500;
636
- color: var(--qube-accent-color);
637
- background: none;
638
- border: 0;
639
- cursor: pointer;
640
- transition: transform 160ms var(--qube-ease-out);
641
- }
600
+ :where(.qube-row-body) {
601
+ display: grid;
602
+ gap: 12px;
603
+ min-width: 0;
604
+ }
642
605
 
643
- :where(.qube-use-for-all[hidden]) {
644
- display: none;
645
- }
606
+ :where(.qube-row-fields) {
607
+ display: grid;
608
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
609
+ gap: 12px 16px;
610
+ }
646
611
 
647
- :where(.qube-use-for-all:active) {
648
- transform: scale(0.97);
649
- }
612
+ /* Nothing to show yet (no choice made): no gap for it */
613
+ :where(.qube-row-fields:not(:has(> .qube-row-cell:not([hidden])))) {
614
+ display: none;
615
+ }
616
+
617
+ @container (min-width: 36rem) {
618
+ :where(.qube-row) {
619
+ grid-template-columns: 12rem minmax(0, 1fr);
620
+ gap: 12px 24px;
621
+ align-items: start;
622
+ }
650
623
 
651
- @media (hover: hover) and (pointer: fine) {
652
- :where(.qube-use-for-all:hover) {
653
- text-decoration: underline;
654
- text-underline-offset: 3px;
624
+ :where(.qube-row-header) {
625
+ flex-direction: column;
626
+ padding-top: 9px;
627
+ }
655
628
  }
656
- }
657
629
 
658
- /* What "Set all to" or "Use for all" just filled: a tint that fades out */
659
- @keyframes qube-filled {
660
- from {
661
- background-color: color-mix(in srgb, var(--qube-accent-color) 22%, var(--qube-solid-color));
630
+ :where(.qube-row .qube-label) {
631
+ font-size: 0.9286em;
662
632
  }
663
- }
664
633
 
665
- :where([data-qube-filled]) :where(.qube-input, .qube-select, .qube-search-input, .qube-segmented) {
666
- animation: qube-filled 600ms ease-out;
667
- }
634
+ :where(.qube-row-fields) :where(.qube-input, .qube-select, .qube-search-input, .qube-search) {
635
+ max-width: none;
636
+ min-width: 0;
637
+ }
668
638
 
669
- /* ---- Status: a compact pill with a coloured dot */
639
+ /* A field that starts to apply fades in; one that stops is gone at once (hidden) */
640
+ :where(.qube-row-cell) {
641
+ min-width: 0;
642
+ transition: opacity 150ms var(--qube-ease-out);
643
+ }
670
644
 
671
- :where(.qube-run-status) {
672
- display: grid;
673
- justify-items: start;
674
- gap: 8px;
675
- }
645
+ @starting-style {
646
+ :where(.qube-row-cell) {
647
+ opacity: 0;
648
+ }
649
+ }
676
650
 
677
- :where(.qube-run-summary) {
678
- --qube-dot-color: var(--qube-accent-color);
679
- display: inline-flex;
680
- align-items: flex-start;
681
- gap: 8px;
682
- max-width: 100%;
683
- margin: 0;
684
- padding: 3px 12px 3px 10px;
685
- font-weight: 500;
686
- border: 1px solid var(--qube-border-color);
687
- border-radius: 14px;
688
- box-sizing: border-box;
689
- background: var(--qube-tint-color);
690
- }
651
+ /* What the record already has: read-only */
652
+ :where(.qube-row-preset) {
653
+ gap: 6px;
654
+ }
691
655
 
692
- :where(.qube-run-summary)::before {
693
- content: "";
694
- flex-shrink: 0;
695
- width: 8px;
696
- height: 8px;
697
- margin-top: calc(0.75em - 4px);
698
- border-radius: 50%;
699
- background: var(--qube-dot-color);
700
- }
656
+ :where(.qube-row-preset-value) {
657
+ display: flex;
658
+ align-items: center;
659
+ min-height: 38px;
660
+ }
701
661
 
702
- :where(.qube-sync-needs_answer .qube-run-summary, .qube-connection-stalled .qube-run-summary) {
703
- --qube-dot-color: var(--qube-warning-color);
704
- }
662
+ /* The record's choice (create it, or use one QuickBooks has): a segmented control */
663
+ :where(.qube-segmented-field) {
664
+ min-width: 0;
665
+ margin: 0;
666
+ padding: 0;
667
+ border: 0;
668
+ }
705
669
 
706
- :where(.qube-sync-in_quickbooks .qube-run-summary, .qube-sync-done .qube-run-summary) {
707
- --qube-dot-color: var(--qube-success-color);
708
- }
670
+ :where(.qube-visually-hidden) {
671
+ position: absolute;
672
+ width: 1px;
673
+ height: 1px;
674
+ overflow: hidden;
675
+ clip-path: inset(50%);
676
+ white-space: nowrap;
677
+ }
709
678
 
710
- :where(.qube-sync-failed .qube-run-summary) {
711
- --qube-dot-color: var(--qube-error-color);
712
- }
679
+ :where(.qube-segmented) {
680
+ display: flex;
681
+ flex-wrap: wrap;
682
+ gap: 2px;
683
+ width: fit-content;
684
+ max-width: 100%;
685
+ padding: 3px;
686
+ border-radius: calc(var(--qube-control-radius) + 2px);
687
+ background: color-mix(in srgb, currentColor 7%, transparent);
688
+ box-sizing: border-box;
689
+ }
713
690
 
714
- :where(.qube-sync-cancelled .qube-run-summary) {
715
- --qube-dot-color: var(--qube-muted-color);
716
- }
691
+ :where(.qube-segment) {
692
+ position: relative;
693
+ display: inline-flex;
694
+ flex: 1 1 auto;
695
+ align-items: center;
696
+ justify-content: center;
697
+ min-height: 36px;
698
+ padding: 7px 14px;
699
+ box-sizing: border-box;
700
+ font-weight: 500;
701
+ line-height: 1.5;
702
+ text-align: center;
703
+ color: var(--qube-muted-color);
704
+ border-radius: var(--qube-control-radius);
705
+ cursor: pointer;
706
+ user-select: none;
707
+ -webkit-tap-highlight-color: transparent;
708
+ transition:
709
+ transform 160ms var(--qube-ease-out),
710
+ background-color 150ms ease,
711
+ color 150ms ease,
712
+ box-shadow 150ms ease;
713
+ }
717
714
 
718
- :where(.qube-run-reason) {
719
- max-width: 65ch;
720
- margin: 0;
721
- }
715
+ :where(.qube-segment-input) {
716
+ position: absolute;
717
+ inset: 0;
718
+ width: 100%;
719
+ height: 100%;
720
+ margin: 0;
721
+ opacity: 0;
722
+ cursor: pointer;
723
+ }
722
724
 
723
- :where(.qube-run-error-detail, .qube-run-quiet) {
724
- max-width: 65ch;
725
- margin: 0;
726
- color: var(--qube-muted-color);
727
- }
725
+ :where(.qube-segment:has(:checked)) {
726
+ color: inherit;
727
+ background: var(--qube-solid-color);
728
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 0 1px var(--qube-border-color);
729
+ }
728
730
 
729
- /* Why it waits: the connection stalled. Calm, like an error, in the warning colour */
730
- :where(.qube-run-stall) {
731
- max-width: 65ch;
732
- margin: 0;
733
- padding: 10px 14px;
734
- border-radius: var(--qube-control-radius);
735
- background: color-mix(in srgb, var(--qube-warning-color) 9%, transparent);
736
- box-shadow: inset 3px 0 0 var(--qube-warning-color);
737
- }
731
+ :where(.qube-segment:active) {
732
+ transform: scale(0.97);
733
+ }
738
734
 
739
- :where(.qube-retry-start-form, .qube-redeliver-form) {
740
- margin: 0;
741
- }
735
+ :where(.qube-segment:has(:focus-visible)) {
736
+ outline: 2px solid var(--qube-accent-color);
737
+ outline-offset: 2px;
738
+ }
742
739
 
743
- /* ---- A one-shot error: calm, inline, a coloured edge */
740
+ :where(.qube-segment:has(:disabled)) {
741
+ opacity: 0.5;
742
+ cursor: not-allowed;
743
+ }
744
744
 
745
- :where(.qube-error) {
746
- max-width: 65ch;
747
- margin: 0;
748
- padding: 10px 14px;
749
- border-radius: var(--qube-control-radius);
750
- background: color-mix(in srgb, var(--qube-error-color) 8%, transparent);
751
- box-shadow: inset 3px 0 0 var(--qube-error-color);
752
- transition: opacity 200ms var(--qube-ease-out), transform 200ms var(--qube-ease-out);
753
- }
745
+ @media (hover: hover) and (pointer: fine) {
746
+ :where(.qube-segment:hover) {
747
+ color: inherit;
748
+ }
749
+ }
754
750
 
755
- @starting-style {
756
- :where(.qube-error) {
757
- opacity: 0;
758
- transform: translateY(-4px);
751
+ @container (max-width: 24rem) {
752
+ :where(.qube-segmented) {
753
+ width: 100%;
754
+ }
759
755
  }
760
- }
761
756
 
762
- /* ---- Narrow screens: choices stack, full width */
757
+ /* "Use for all N": a text button under a filled field */
758
+ :where(.qube-use-for-all) {
759
+ display: inline-flex;
760
+ align-items: center;
761
+ min-height: 32px;
762
+ margin-top: 2px;
763
+ padding: 0;
764
+ font: inherit;
765
+ font-size: 0.9286em;
766
+ font-weight: 500;
767
+ color: var(--qube-accent-color);
768
+ background: none;
769
+ border: 0;
770
+ cursor: pointer;
771
+ transition: transform 160ms var(--qube-ease-out);
772
+ }
763
773
 
764
- @media (max-width: 30rem) {
765
- :where(.qube-choice-footer > .qube-choice) {
766
- flex-basis: 100%;
774
+ :where(.qube-use-for-all[hidden]) {
775
+ display: none;
767
776
  }
768
777
 
769
- :where(.qube-choice-button) {
770
- justify-self: stretch;
778
+ :where(.qube-use-for-all:active) {
779
+ transform: scale(0.97);
771
780
  }
772
- }
773
781
 
774
- /* ---- Reduced motion: fades stay, movement goes */
782
+ @media (hover: hover) and (pointer: fine) {
783
+ :where(.qube-use-for-all:hover) {
784
+ text-decoration: underline;
785
+ text-underline-offset: 3px;
786
+ }
787
+ }
775
788
 
776
- @media (prefers-reduced-motion: reduce) {
777
- :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy, .qube-pick):where(:active) {
778
- transform: none;
789
+ /* What "Use for the other records too" just did, where the button was */
790
+ :where(.qube-used-for-all) {
791
+ display: flex;
792
+ align-items: center;
793
+ min-height: 32px;
794
+ margin-top: 2px;
795
+ font-size: 0.9286em;
796
+ color: var(--qube-muted-color);
779
797
  }
780
798
 
781
- @starting-style {
782
- :where(.qube-search-results, .qube-error) {
783
- transform: none;
799
+ /* What "Set all to" or "Use for all" just filled: a tint that fades out */
800
+ @keyframes qube-filled {
801
+ from {
802
+ background-color: color-mix(in srgb, var(--qube-accent-color) 22%, var(--qube-solid-color));
784
803
  }
785
804
  }
786
805
 
787
- :where(.qube-segment, .qube-use-for-all):where(:active) {
788
- transform: none;
806
+ :where([data-qube-filled]) :where(.qube-input, .qube-select, .qube-search-input, .qube-segmented) {
807
+ animation: qube-filled 600ms ease-out;
789
808
  }
790
- }
791
809
 
792
- /* ---- The storyboard (GET qube/storyboard): a gallery of every screen */
810
+ /* ---- Status: a compact pill with a coloured dot */
793
811
 
794
- :where(.qube-storyboard) {
795
- display: grid;
796
- gap: 24px;
797
- max-width: 76rem;
798
- margin: 0 auto;
799
- padding: 24px 16px 64px;
800
- box-sizing: border-box;
801
- }
812
+ :where(.qube-run-status) {
813
+ display: grid;
814
+ justify-items: start;
815
+ gap: 8px;
816
+ }
802
817
 
803
- :where(.qube-storyboard-header) {
804
- display: flex;
805
- flex-wrap: wrap;
806
- align-items: flex-end;
807
- justify-content: space-between;
808
- gap: 16px;
809
- }
818
+ :where(.qube-run-summary) {
819
+ --qube-dot-color: var(--qube-accent-color);
820
+ display: inline-flex;
821
+ align-items: flex-start;
822
+ gap: 8px;
823
+ max-width: 100%;
824
+ margin: 0;
825
+ padding: 3px 12px 3px 10px;
826
+ font-weight: 500;
827
+ border: 1px solid var(--qube-border-color);
828
+ border-radius: 14px;
829
+ box-sizing: border-box;
830
+ background: var(--qube-tint-color);
831
+ }
810
832
 
811
- :where(.qube-storyboard-header h1) {
812
- margin: 0 0 4px;
813
- font-size: 1.5rem;
814
- font-weight: 600;
815
- line-height: 1.25;
816
- letter-spacing: -0.01em;
817
- }
833
+ :where(.qube-run-summary)::before {
834
+ content: "";
835
+ flex-shrink: 0;
836
+ width: 8px;
837
+ height: 8px;
838
+ margin-top: calc(0.75em - 4px);
839
+ border-radius: 50%;
840
+ background: var(--qube-dot-color);
841
+ }
818
842
 
819
- :where(.qube-storyboard-note) {
820
- max-width: 70ch;
821
- margin: 0;
822
- color: var(--qube-muted-color);
823
- }
843
+ :where(.qube-sync-needs_answer .qube-run-summary, .qube-connection-stalled .qube-run-summary) {
844
+ --qube-dot-color: var(--qube-warning-color);
845
+ }
824
846
 
825
- :where(.qube-storyboard-notice) {
826
- margin: 0;
827
- padding: 10px 14px;
828
- border-radius: var(--qube-control-radius);
829
- background: color-mix(in srgb, var(--qube-success-color) 10%, transparent);
830
- box-shadow: inset 3px 0 0 var(--qube-success-color);
831
- }
847
+ :where(.qube-sync-in_quickbooks .qube-run-summary, .qube-sync-done .qube-run-summary) {
848
+ --qube-dot-color: var(--qube-success-color);
849
+ }
832
850
 
833
- /* The canvas theme: App (as your page is), Light or Dark */
834
- :where(.qube-storyboard-theme) {
835
- display: inline-flex;
836
- gap: 2px;
837
- margin: 0;
838
- padding: 2px;
839
- border: 1px solid var(--qube-border-color);
840
- border-radius: var(--qube-radius-size);
841
- }
851
+ :where(.qube-sync-failed .qube-run-summary) {
852
+ --qube-dot-color: var(--qube-error-color);
853
+ }
842
854
 
843
- :where(.qube-storyboard-theme legend) {
844
- position: absolute;
845
- width: 1px;
846
- height: 1px;
847
- overflow: hidden;
848
- clip-path: inset(50%);
849
- }
855
+ :where(.qube-sync-cancelled .qube-run-summary) {
856
+ --qube-dot-color: var(--qube-muted-color);
857
+ }
850
858
 
851
- :where(.qube-storyboard-theme label) {
852
- position: relative;
853
- display: inline-flex;
854
- align-items: center;
855
- min-height: 32px;
856
- padding: 0 12px;
857
- font-size: 0.9286em;
858
- font-weight: 500;
859
- color: var(--qube-muted-color);
860
- border-radius: var(--qube-control-radius);
861
- cursor: pointer;
862
- transition: background-color 150ms ease, color 150ms ease;
863
- }
859
+ :where(.qube-run-reason) {
860
+ max-width: 65ch;
861
+ margin: 0;
862
+ }
864
863
 
865
- :where(.qube-storyboard-theme input) {
866
- position: absolute;
867
- inset: 0;
868
- margin: 0;
869
- opacity: 0;
870
- cursor: pointer;
871
- }
864
+ :where(.qube-run-error-detail, .qube-run-quiet) {
865
+ max-width: 65ch;
866
+ margin: 0;
867
+ color: var(--qube-muted-color);
868
+ }
872
869
 
873
- :where(.qube-storyboard-theme label:has(:checked)) {
874
- color: inherit;
875
- background: color-mix(in srgb, currentColor 9%, transparent);
876
- }
870
+ /* Why it waits: the connection stalled. Calm, like an error, in the warning colour */
871
+ :where(.qube-run-stall) {
872
+ max-width: 65ch;
873
+ margin: 0;
874
+ padding: 10px 14px;
875
+ border-radius: var(--qube-control-radius);
876
+ background: color-mix(in srgb, var(--qube-warning-color) 9%, transparent);
877
+ box-shadow: inset 3px 0 0 var(--qube-warning-color);
878
+ }
877
879
 
878
- :where(.qube-storyboard-theme label:has(:focus-visible)) {
879
- outline: 2px solid var(--qube-accent-color);
880
- outline-offset: 2px;
881
- }
880
+ :where(.qube-retry-start-form, .qube-redeliver-form) {
881
+ margin: 0;
882
+ }
882
883
 
883
- :where(.qube-storyboard-body) {
884
- display: grid;
885
- gap: 24px;
886
- }
884
+ /* ---- A one-shot error: calm, inline, a coloured edge */
887
885
 
888
- /* The screens' list: a sticky strip on a narrow screen, a sticky sidebar on a wide one */
889
- :where(.qube-storyboard-nav) {
890
- position: sticky;
891
- top: 0;
892
- z-index: 5;
893
- display: flex;
894
- gap: 16px;
895
- margin: 0 -16px;
896
- padding: 8px 16px;
897
- overflow-x: auto;
898
- background: var(--qube-solid-color);
899
- border-bottom: 1px solid var(--qube-border-color);
900
- }
886
+ :where(.qube-error) {
887
+ max-width: 65ch;
888
+ margin: 0;
889
+ padding: 10px 14px;
890
+ border-radius: var(--qube-control-radius);
891
+ background: color-mix(in srgb, var(--qube-error-color) 8%, transparent);
892
+ box-shadow: inset 3px 0 0 var(--qube-error-color);
893
+ transition: opacity 200ms var(--qube-ease-out), transform 200ms var(--qube-ease-out);
894
+ }
901
895
 
902
- :where(.qube-storyboard-nav-group) {
903
- display: flex;
904
- align-items: center;
905
- gap: 4px;
906
- }
896
+ @starting-style {
897
+ :where(.qube-error) {
898
+ opacity: 0;
899
+ transform: translateY(-4px);
900
+ }
901
+ }
907
902
 
908
- :where(.qube-storyboard-nav-title) {
909
- margin: 0 4px 0 0;
910
- font-size: 0.8571em;
911
- font-weight: 600;
912
- white-space: nowrap;
913
- color: var(--qube-muted-color);
914
- }
903
+ /* ---- Sections: what it's about, the choices, then the way out, each under a hairline */
915
904
 
916
- :where(.qube-storyboard-nav ul) {
917
- display: flex;
918
- gap: 2px;
919
- margin: 0;
920
- padding: 0;
921
- list-style: none;
922
- }
905
+ :where(.qube-choices) {
906
+ border-top: 1px solid var(--qube-border-color);
907
+ }
923
908
 
924
- :where(.qube-storyboard-nav a) {
925
- display: block;
926
- padding: 6px 10px;
927
- white-space: nowrap;
928
- color: inherit;
929
- text-decoration: none;
930
- border-radius: var(--qube-control-radius);
931
- }
909
+ /* The exits' row, or a lone form's button row, is the card's footer */
910
+ :where(.qube-choice-footer:not([data-qube-plain])),
911
+ :where(.qube-choices > .qube-choice-form:not(:has(~ .qube-choice-footer:not([hidden]))) > .qube-choice-actions) {
912
+ margin-top: 4px;
913
+ padding-top: 16px;
914
+ border-top: 1px solid var(--qube-border-color);
915
+ }
932
916
 
933
- @media (hover: hover) and (pointer: fine) {
934
- :where(.qube-storyboard-nav a:hover) {
935
- background: color-mix(in srgb, currentColor 6%, transparent);
917
+ /* A card that is one form is as wide as the form, so its lines and buttons end together */
918
+ :where(.qube-question:not(:has(.qube-picks, .qube-rows-field)):has(.qube-choice-form)) {
919
+ max-width: calc(var(--qube-form-width, 36rem) + 2 * clamp(16px, 3vw, 24px) + 2px);
936
920
  }
937
- }
938
921
 
939
- :where(.qube-storyboard-nav a[aria-current]) {
940
- font-weight: 500;
941
- background: color-mix(in srgb, currentColor 8%, transparent);
942
- }
922
+ /* ---- A chain (offered records with a search), a branch at a time */
943
923
 
944
- @media (min-width: 60rem) {
945
- :where(.qube-storyboard-body) {
946
- grid-template-columns: 13rem minmax(0, 1fr);
947
- gap: 40px;
948
- align-items: start;
924
+ /* The way back to the offered records, over a chain's search */
925
+ :where(.qube-branch-back) {
926
+ justify-self: start;
927
+ margin-inline-start: -14px;
949
928
  }
950
929
 
951
- :where(.qube-storyboard-nav) {
952
- top: 16px;
953
- flex-direction: column;
954
- gap: 20px;
955
- max-height: calc(100vh - 32px);
956
- margin: 0;
930
+ /* The search keeps the width the offered records had, so the card doesn't move */
931
+ :where(.qube-question:has(.qube-branch-back)),
932
+ :where(.qube-question:has(.qube-branch-back) .qube-choice-form) {
933
+ max-width: none;
934
+ }
935
+
936
+ /* A search's note with no matches under it ("No matches", a failed search) is a line under the
937
+ box, not a floating list over the buttons */
938
+ :where(.qube-search-results:has(> [data-qube-search-note]):not(:has([data-qube-search-result]))) {
939
+ position: static;
957
940
  padding: 0;
958
- overflow-x: hidden;
959
- overflow-y: auto;
960
- scrollbar-width: thin;
961
941
  background: none;
962
942
  border: 0;
943
+ box-shadow: none;
944
+ transform: none;
945
+ }
946
+
947
+ :where(.qube-search-results:not(:has([data-qube-search-result])) > [data-qube-search-note]) {
948
+ padding: 6px 0 0;
949
+ }
950
+
951
+ /* Moving between a chain's branches (the script marks the question, so a page load is still):
952
+ the branch comes in from its side, the search from the right and the records from the left */
953
+ :where([data-qube-branch-moved] [data-qube-branch-part]:not(.qube-choice-button)) {
954
+ transition: opacity 200ms var(--qube-ease-out), transform 200ms var(--qube-ease-out);
955
+ }
956
+
957
+ @starting-style {
958
+ :where([data-qube-branch-moved="search"] [data-qube-branch-part]:not(.qube-choice-button)) {
959
+ opacity: 0;
960
+ transform: translateX(8px);
961
+ }
962
+
963
+ :where([data-qube-branch-moved="offered"] [data-qube-branch-part]:not(.qube-choice-button)) {
964
+ opacity: 0;
965
+ transform: translateX(-8px);
966
+ }
967
+ }
968
+
969
+ /* "Use this one" arrives as a match is picked */
970
+ :where(.qube-choice[data-qube-choice-role="search"] .qube-choice-actions-end > button[type="submit"]) {
971
+ transition:
972
+ transform 160ms var(--qube-ease-out),
973
+ opacity 160ms var(--qube-ease-out),
974
+ background-color 150ms ease,
975
+ border-color 150ms ease,
976
+ color 150ms ease;
977
+ }
978
+
979
+ @starting-style {
980
+ :where(.qube-choice[data-qube-choice-role="search"] .qube-choice-actions-end > button[type="submit"]) {
981
+ opacity: 0;
982
+ transform: scale(0.97);
983
+ }
984
+ }
985
+
986
+ /* ---- Narrow screens: choices stack, full width */
987
+
988
+ /* A search's row that also holds the decline is long once "Use this one" joins it. Where it
989
+ wouldn't fit on a line, its end is on top and cancel under it from the start, so a pick
990
+ moves nothing */
991
+ @container qube-choices (max-width: 44rem) {
992
+ :where(.qube-choice[data-qube-choice-role="search"] > .qube-choice-actions:has(.qube-choice-actions-end > [data-qube-exit])) {
993
+ flex-direction: column-reverse;
994
+ align-items: stretch;
995
+ }
996
+
997
+ :where(.qube-choice[data-qube-choice-role="search"] > .qube-choice-actions:has(.qube-choice-actions-end > [data-qube-exit]) > .qube-choice-actions-end) {
998
+ margin-inline-start: 0;
999
+ }
1000
+ }
1001
+
1002
+ @media (max-width: 30rem) {
1003
+ /* An offered record: its "Use this one" under its text, so the text has the whole width */
1004
+ :where(.qube-pick) {
1005
+ flex-wrap: wrap;
1006
+ gap: 10px;
1007
+ }
1008
+
1009
+ :where(.qube-pick-action.qube-choice-button) {
1010
+ flex-grow: 1;
1011
+ justify-content: center;
1012
+ }
1013
+ }
1014
+
1015
+ /* A narrow question: a button row's end (step count, Back, the primary) on top, wrapping only if
1016
+ it must, and cancel under it; stacked exits fill the width */
1017
+ @container qube-choices (max-width: 30rem) {
1018
+ :where(.qube-choice-actions, .qube-choice-footer) {
1019
+ flex-direction: column-reverse;
1020
+ align-items: stretch;
1021
+ }
1022
+
1023
+ :where(.qube-choice-actions-end, .qube-choice-footer-end) {
1024
+ margin-inline-start: 0;
1025
+ }
1026
+
1027
+ :where(.qube-choice-actions-start, .qube-choice-footer-start) {
1028
+ justify-content: flex-start;
1029
+ }
1030
+
1031
+ :where(.qube-choice-footer-end) :where(.qube-choice, .qube-choice-button),
1032
+ :where(.qube-choice-actions-end > .qube-choice-button) {
1033
+ flex-grow: 1;
1034
+ justify-content: center;
1035
+ }
1036
+
1037
+ :where(.qube-choice-footer:has(.qube-choice-description)) :where(.qube-choice-button) {
1038
+ justify-self: stretch;
1039
+ }
1040
+ }
1041
+
1042
+ /* ---- Reduced motion: fades stay, movement goes */
1043
+
1044
+ @media (prefers-reduced-motion: reduce) {
1045
+ :where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy, .qube-pick):where(:active) {
1046
+ transform: none;
1047
+ }
1048
+
1049
+ @starting-style {
1050
+ :where(.qube-search-results, .qube-error) {
1051
+ transform: none;
1052
+ }
1053
+
1054
+ :where([data-qube-branch-moved] [data-qube-branch-part]:not(.qube-choice-button)),
1055
+ :where(.qube-choice[data-qube-choice-role="search"] .qube-choice-actions-end > button[type="submit"]) {
1056
+ transform: none;
1057
+ }
1058
+ }
1059
+
1060
+ :where(.qube-segment, .qube-use-for-all):where(:active) {
1061
+ transform: none;
1062
+ }
1063
+
1064
+ :where(.qube-search[data-qube-picked])::before {
1065
+ animation-name: qube-fade-in;
1066
+ }
1067
+ }
1068
+
1069
+ @keyframes qube-fade-in {
1070
+ from {
1071
+ opacity: 0;
1072
+ }
1073
+ }
1074
+
1075
+ /* ---- The storyboard (GET qube/storyboard): a gallery of every screen */
1076
+
1077
+ :where(.qube-storyboard) {
1078
+ display: grid;
1079
+ gap: 24px;
1080
+ max-width: 76rem;
1081
+ margin: 0 auto;
1082
+ padding: 24px 16px 64px;
1083
+ box-sizing: border-box;
1084
+ }
1085
+
1086
+ :where(.qube-storyboard-header) {
1087
+ display: flex;
1088
+ flex-wrap: wrap;
1089
+ align-items: flex-end;
1090
+ justify-content: space-between;
1091
+ gap: 16px;
1092
+ }
1093
+
1094
+ :where(.qube-storyboard-header h1) {
1095
+ margin: 0 0 4px;
1096
+ font-size: 1.5rem;
1097
+ font-weight: 600;
1098
+ line-height: 1.25;
1099
+ letter-spacing: -0.01em;
1100
+ }
1101
+
1102
+ :where(.qube-storyboard-note) {
1103
+ max-width: 70ch;
1104
+ margin: 0;
1105
+ color: var(--qube-muted-color);
1106
+ }
1107
+
1108
+ :where(.qube-storyboard-notice) {
1109
+ margin: 0;
1110
+ padding: 10px 14px;
1111
+ border-radius: var(--qube-control-radius);
1112
+ background: color-mix(in srgb, var(--qube-success-color) 10%, transparent);
1113
+ box-shadow: inset 3px 0 0 var(--qube-success-color);
1114
+ }
1115
+
1116
+ /* The canvas theme: App (as your page is), Light or Dark */
1117
+ :where(.qube-storyboard-theme) {
1118
+ display: inline-flex;
1119
+ gap: 2px;
1120
+ margin: 0;
1121
+ padding: 2px;
1122
+ border: 1px solid var(--qube-border-color);
1123
+ border-radius: var(--qube-radius-size);
1124
+ }
1125
+
1126
+ :where(.qube-storyboard-theme legend) {
1127
+ position: absolute;
1128
+ width: 1px;
1129
+ height: 1px;
1130
+ overflow: hidden;
1131
+ clip-path: inset(50%);
1132
+ }
1133
+
1134
+ :where(.qube-storyboard-theme label) {
1135
+ position: relative;
1136
+ display: inline-flex;
1137
+ align-items: center;
1138
+ min-height: 32px;
1139
+ padding: 0 12px;
1140
+ font-size: 0.9286em;
1141
+ font-weight: 500;
1142
+ color: var(--qube-muted-color);
1143
+ border-radius: var(--qube-control-radius);
1144
+ cursor: pointer;
1145
+ transition: background-color 150ms ease, color 150ms ease;
1146
+ }
1147
+
1148
+ :where(.qube-storyboard-theme input) {
1149
+ position: absolute;
1150
+ inset: 0;
1151
+ margin: 0;
1152
+ opacity: 0;
1153
+ cursor: pointer;
1154
+ }
1155
+
1156
+ :where(.qube-storyboard-theme label:has(:checked)) {
1157
+ color: inherit;
1158
+ background: color-mix(in srgb, currentColor 9%, transparent);
1159
+ }
1160
+
1161
+ :where(.qube-storyboard-theme label:has(:focus-visible)) {
1162
+ outline: 2px solid var(--qube-accent-color);
1163
+ outline-offset: 2px;
1164
+ }
1165
+
1166
+ :where(.qube-storyboard-body) {
1167
+ display: grid;
1168
+ gap: 24px;
1169
+ }
1170
+
1171
+ /* The screens' list: a sticky strip on a narrow screen, a sticky sidebar on a wide one */
1172
+ :where(.qube-storyboard-nav) {
1173
+ position: sticky;
1174
+ top: 0;
1175
+ z-index: 5;
1176
+ display: flex;
1177
+ gap: 16px;
1178
+ margin: 0 -16px;
1179
+ padding: 8px 16px;
1180
+ overflow-x: auto;
1181
+ background: var(--qube-solid-color);
1182
+ border-bottom: 1px solid var(--qube-border-color);
963
1183
  }
964
1184
 
965
1185
  :where(.qube-storyboard-nav-group) {
966
- flex-direction: column;
967
- align-items: stretch;
1186
+ display: flex;
1187
+ align-items: center;
1188
+ gap: 4px;
968
1189
  }
969
1190
 
970
1191
  :where(.qube-storyboard-nav-title) {
971
- margin: 0 0 4px 10px;
1192
+ margin: 0 4px 0 0;
1193
+ font-size: 0.8571em;
1194
+ font-weight: 600;
1195
+ white-space: nowrap;
1196
+ color: var(--qube-muted-color);
972
1197
  }
973
1198
 
974
1199
  :where(.qube-storyboard-nav ul) {
975
- flex-direction: column;
1200
+ display: flex;
1201
+ gap: 2px;
1202
+ margin: 0;
1203
+ padding: 0;
1204
+ list-style: none;
976
1205
  }
977
1206
 
978
1207
  :where(.qube-storyboard-nav a) {
979
- white-space: normal;
1208
+ display: block;
1209
+ padding: 6px 10px;
1210
+ white-space: nowrap;
1211
+ color: inherit;
1212
+ text-decoration: none;
1213
+ border-radius: var(--qube-control-radius);
980
1214
  }
981
- }
982
1215
 
983
- :where(.qube-storyboard-screens) {
984
- display: grid;
985
- gap: 24px;
986
- min-width: 0;
987
- }
1216
+ @media (hover: hover) and (pointer: fine) {
1217
+ :where(.qube-storyboard-nav a:hover) {
1218
+ background: color-mix(in srgb, currentColor 6%, transparent);
1219
+ }
1220
+ }
988
1221
 
989
- :where(.qube-storyboard-panel) {
990
- display: grid;
991
- gap: 12px;
992
- min-width: 0;
993
- padding-top: 24px;
994
- border-top: 1px solid var(--qube-border-color);
995
- scroll-margin-top: 72px;
996
- }
1222
+ :where(.qube-storyboard-nav a[aria-current]) {
1223
+ font-weight: 500;
1224
+ background: color-mix(in srgb, currentColor 8%, transparent);
1225
+ }
997
1226
 
998
- :where(.qube-storyboard-panel:first-child) {
999
- padding-top: 0;
1000
- border-top: 0;
1001
- }
1227
+ @media (min-width: 60rem) {
1228
+ :where(.qube-storyboard-body) {
1229
+ grid-template-columns: 13rem minmax(0, 1fr);
1230
+ gap: 40px;
1231
+ align-items: start;
1232
+ }
1002
1233
 
1003
- :where(.qube-storyboard-panel-head) {
1004
- display: flex;
1005
- flex-wrap: wrap;
1006
- align-items: baseline;
1007
- gap: 4px 12px;
1008
- }
1234
+ :where(.qube-storyboard-nav) {
1235
+ top: 16px;
1236
+ flex-direction: column;
1237
+ gap: 20px;
1238
+ max-height: calc(100vh - 32px);
1239
+ margin: 0;
1240
+ padding: 0;
1241
+ overflow-x: hidden;
1242
+ overflow-y: auto;
1243
+ scrollbar-width: thin;
1244
+ background: none;
1245
+ border: 0;
1246
+ }
1009
1247
 
1010
- :where(.qube-storyboard-panel h2) {
1011
- margin: 0;
1012
- font-size: 1.1429em;
1013
- font-weight: 600;
1014
- }
1248
+ :where(.qube-storyboard-nav-group) {
1249
+ flex-direction: column;
1250
+ align-items: stretch;
1251
+ }
1015
1252
 
1016
- :where(.qube-storyboard-panel h2 a) {
1017
- color: inherit;
1018
- text-decoration: none;
1019
- }
1253
+ :where(.qube-storyboard-nav-title) {
1254
+ margin: 0 0 4px 10px;
1255
+ }
1020
1256
 
1021
- :where(.qube-storyboard-panel h2 a)::after {
1022
- content: " #";
1023
- color: var(--qube-muted-color);
1024
- opacity: 0;
1025
- transition: opacity 150ms ease;
1026
- }
1257
+ :where(.qube-storyboard-nav ul) {
1258
+ flex-direction: column;
1259
+ }
1027
1260
 
1028
- :where(.qube-storyboard-panel h2 a:hover, .qube-storyboard-panel h2 a:focus-visible)::after {
1029
- opacity: 1;
1030
- }
1261
+ :where(.qube-storyboard-nav a) {
1262
+ white-space: normal;
1263
+ }
1264
+ }
1031
1265
 
1032
- :where(.qube-storyboard-group) {
1033
- font-size: 0.8571em;
1034
- color: var(--qube-muted-color);
1035
- }
1266
+ :where(.qube-storyboard-screens) {
1267
+ display: grid;
1268
+ gap: 24px;
1269
+ min-width: 0;
1270
+ }
1036
1271
 
1037
- :where(.qube-storyboard-open) {
1038
- margin-left: auto;
1039
- font-size: 0.9286em;
1040
- color: var(--qube-muted-color);
1041
- }
1272
+ :where(.qube-storyboard-panel) {
1273
+ display: grid;
1274
+ gap: 12px;
1275
+ min-width: 0;
1276
+ padding-top: 24px;
1277
+ border-top: 1px solid var(--qube-border-color);
1278
+ scroll-margin-top: 72px;
1279
+ }
1042
1280
 
1043
- :where(.qube-storyboard-panel > .qube-storyboard-note) {
1044
- margin-top: -6px;
1045
- }
1281
+ :where(.qube-storyboard-panel:first-child) {
1282
+ padding-top: 0;
1283
+ border-top: 0;
1284
+ }
1046
1285
 
1047
- /* Each screen on a neutral canvas */
1048
- :where(.qube-storyboard-canvas) {
1049
- display: grid;
1050
- padding: clamp(20px, 5vw, 48px) clamp(16px, 5vw, 48px);
1051
- color: inherit;
1052
- background: color-mix(in srgb, currentColor 2.5%, transparent);
1053
- }
1286
+ :where(.qube-storyboard-panel-head) {
1287
+ display: flex;
1288
+ flex-wrap: wrap;
1289
+ align-items: baseline;
1290
+ gap: 4px 12px;
1291
+ }
1054
1292
 
1055
- :where(.qube-storyboard:has([data-qube-canvas-theme="light"]:checked) .qube-storyboard-canvas) {
1056
- color-scheme: light;
1057
- color: #18181b;
1058
- background: #f6f6f7;
1059
- }
1293
+ :where(.qube-storyboard-panel h2) {
1294
+ margin: 0;
1295
+ font-size: 1.1429em;
1296
+ font-weight: 600;
1297
+ }
1060
1298
 
1061
- :where(.qube-storyboard:has([data-qube-canvas-theme="dark"]:checked) .qube-storyboard-canvas) {
1062
- color-scheme: dark;
1063
- color: #ececee;
1064
- background: #111113;
1065
- }
1299
+ :where(.qube-storyboard-panel h2 a) {
1300
+ color: inherit;
1301
+ text-decoration: none;
1302
+ }
1066
1303
 
1067
- :where(.qube-storyboard-empty) {
1068
- margin: 0;
1069
- color: var(--qube-muted-color);
1070
- }
1304
+ :where(.qube-storyboard-panel h2 a)::after {
1305
+ content: " #";
1306
+ color: var(--qube-muted-color);
1307
+ opacity: 0;
1308
+ transition: opacity 150ms ease;
1309
+ }
1071
1310
 
1072
- :where(.qube-storyboard-files) {
1073
- font-size: 0.9286em;
1074
- }
1311
+ :where(.qube-storyboard-panel h2 a:hover, .qube-storyboard-panel h2 a:focus-visible)::after {
1312
+ opacity: 1;
1313
+ }
1075
1314
 
1076
- :where(.qube-storyboard-files summary) {
1077
- width: fit-content;
1078
- padding: 6px 0;
1079
- color: var(--qube-muted-color);
1080
- cursor: pointer;
1081
- }
1315
+ :where(.qube-storyboard-group) {
1316
+ font-size: 0.8571em;
1317
+ color: var(--qube-muted-color);
1318
+ }
1082
1319
 
1083
- :where(.qube-storyboard-files ul) {
1084
- display: grid;
1085
- gap: 4px;
1086
- margin: 4px 0 0;
1087
- padding: 0;
1088
- list-style: none;
1089
- }
1320
+ :where(.qube-storyboard-open) {
1321
+ margin-left: auto;
1322
+ font-size: 0.9286em;
1323
+ color: var(--qube-muted-color);
1324
+ }
1090
1325
 
1091
- :where(.qube-storyboard-files li) {
1092
- display: flex;
1093
- align-items: center;
1094
- gap: 8px;
1095
- min-width: 0;
1096
- }
1326
+ :where(.qube-storyboard-panel > .qube-storyboard-note) {
1327
+ margin-top: -6px;
1328
+ }
1329
+
1330
+ /* Each screen on a neutral canvas */
1331
+ :where(.qube-storyboard-canvas) {
1332
+ display: grid;
1333
+ padding: clamp(20px, 5vw, 48px) clamp(16px, 5vw, 48px);
1334
+ color: inherit;
1335
+ background: color-mix(in srgb, currentColor 2.5%, transparent);
1336
+ }
1337
+
1338
+ :where(.qube-storyboard:has([data-qube-canvas-theme="light"]:checked) .qube-storyboard-canvas) {
1339
+ color-scheme: light;
1340
+ color: #18181b;
1341
+ background: #f6f6f7;
1342
+ }
1343
+
1344
+ :where(.qube-storyboard:has([data-qube-canvas-theme="dark"]:checked) .qube-storyboard-canvas) {
1345
+ color-scheme: dark;
1346
+ color: #ececee;
1347
+ background: #111113;
1348
+ }
1349
+
1350
+ :where(.qube-storyboard-empty) {
1351
+ margin: 0;
1352
+ color: var(--qube-muted-color);
1353
+ }
1354
+
1355
+ :where(.qube-storyboard-files) {
1356
+ font-size: 0.9286em;
1357
+ }
1358
+
1359
+ :where(.qube-storyboard-files summary) {
1360
+ width: fit-content;
1361
+ padding: 6px 0;
1362
+ color: var(--qube-muted-color);
1363
+ cursor: pointer;
1364
+ }
1365
+
1366
+ :where(.qube-storyboard-files ul) {
1367
+ display: grid;
1368
+ gap: 4px;
1369
+ margin: 4px 0 0;
1370
+ padding: 0;
1371
+ list-style: none;
1372
+ }
1373
+
1374
+ :where(.qube-storyboard-files li) {
1375
+ display: flex;
1376
+ align-items: center;
1377
+ gap: 8px;
1378
+ min-width: 0;
1379
+ }
1380
+
1381
+ :where(.qube-storyboard-files code) {
1382
+ min-width: 0;
1383
+ overflow-x: auto;
1384
+ padding: 4px 8px;
1385
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1386
+ font-size: 0.9231em;
1387
+ white-space: nowrap;
1388
+ border-radius: var(--qube-control-radius);
1389
+ background: var(--qube-tint-color);
1390
+ user-select: all;
1391
+ }
1097
1392
 
1098
- :where(.qube-storyboard-files code) {
1099
- min-width: 0;
1100
- overflow-x: auto;
1101
- padding: 4px 8px;
1102
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1103
- font-size: 0.9231em;
1104
- white-space: nowrap;
1105
- border-radius: var(--qube-control-radius);
1106
- background: var(--qube-tint-color);
1107
- user-select: all;
1393
+ :where(.qube-storyboard-copy) {
1394
+ flex-shrink: 0;
1395
+ min-height: 28px;
1396
+ padding: 0 10px;
1397
+ font-size: 0.9231em;
1398
+ }
1399
+
1400
+ /* Hidden stays hidden: what needs the script (a rows field and its submit), a chain's branch not
1401
+ on show, a search's submit before a pick, and an exit's form in another form's button row (it
1402
+ takes no row of the grid). Last, so no rule above that sets display wins the zero-specificity tie. */
1403
+ :where([data-qube-needs-script][hidden]),
1404
+ :where([data-qube-branch-part][hidden]),
1405
+ :where(.qube-choice-button[hidden]),
1406
+ :where(.qube-choice[hidden]) {
1407
+ display: none;
1408
+ }
1108
1409
  }
1109
1410
 
1110
- :where(.qube-storyboard-copy) {
1111
- flex-shrink: 0;
1112
- min-height: 28px;
1113
- padding: 0 10px;
1114
- font-size: 0.9231em;
1411
+ /* Ahead of the engine (priv/ahead/qube_sync.css, CHANGELOG): a form behind "or <its label>…"
1412
+ under a record that is the main action (a name clash's "Add it under another name"), a row
1413
+ about one record (title, lines, facts), option rows on a fill rather than a border, a
1414
+ decline beside offered records with their weight, and a search box inline under them */
1415
+ @layer components {
1416
+ :where(.qube-choice-disclosure) {
1417
+ display: grid;
1418
+ gap: 12px;
1419
+ }
1420
+
1421
+ :where(.qube-choice-disclosure > summary) {
1422
+ justify-self: start;
1423
+ list-style: none;
1424
+ }
1425
+
1426
+ :where(.qube-choice-disclosure > summary)::-webkit-details-marker {
1427
+ display: none;
1428
+ }
1429
+
1430
+ /* The form drops in under "or <its label>…" as it opens; closing is instant */
1431
+ :where(.qube-choice-disclosure[open] > .qube-choice) {
1432
+ animation: qube-disclosure-open 200ms var(--qube-ease-out);
1433
+ }
1434
+
1435
+ @keyframes qube-disclosure-open {
1436
+ from {
1437
+ opacity: 0;
1438
+ transform: translateY(-4px);
1439
+ }
1440
+ }
1441
+
1442
+ /* Open, its submit is the main action: the record's "Use this one" steps back to secondary */
1443
+ :where(.qube-choices:has(> .qube-choice-disclosure[open]) .qube-pick-action[data-qube-button="primary"]) {
1444
+ color: inherit;
1445
+ background: var(--qube-solid-color);
1446
+ border-color: var(--qube-control-border-color);
1447
+ }
1448
+
1449
+ @media (hover: hover) and (pointer: fine) {
1450
+ :where(.qube-choices:has(> .qube-choice-disclosure[open]) .qube-pick-action[data-qube-button="primary"]:hover) {
1451
+ background: color-mix(in srgb, currentColor 6%, var(--qube-solid-color));
1452
+ }
1453
+ }
1454
+
1455
+ /* An option row sits on a quiet fill, not in a box of its own inside the card */
1456
+ :where(.qube-pick) {
1457
+ background: color-mix(in srgb, currentColor 5%, var(--qube-solid-color));
1458
+ border-color: transparent;
1459
+ }
1460
+
1461
+ @media (hover: hover) and (pointer: fine) {
1462
+ :where(.qube-pick:hover) {
1463
+ background: color-mix(in srgb, currentColor 9%, var(--qube-solid-color));
1464
+ border-color: transparent;
1465
+ }
1466
+ }
1467
+
1468
+ /* An offered record: only its button is a target, so the row stays still under the pointer */
1469
+ :where(div.qube-pick) {
1470
+ cursor: auto;
1471
+ user-select: auto;
1472
+ }
1473
+
1474
+ :where(div.qube-pick:active) {
1475
+ transform: none;
1476
+ }
1477
+
1478
+ @media (hover: hover) and (pointer: fine) {
1479
+ :where(div.qube-pick:hover) {
1480
+ background: color-mix(in srgb, currentColor 5%, var(--qube-solid-color));
1481
+ }
1482
+ }
1483
+
1484
+ /* A row about one record: its name, then its lines, then its facts, each on a line of its own */
1485
+ :where(.qube-pick-line, .qube-pick-facts) {
1486
+ flex-basis: 100%;
1487
+ }
1488
+
1489
+ :where(.qube-pick-facts) {
1490
+ display: flex;
1491
+ flex-wrap: wrap;
1492
+ gap: 2px 16px;
1493
+ font-variant-numeric: tabular-nums;
1494
+ }
1495
+
1496
+ :where(.qube-pick-fact) {
1497
+ white-space: nowrap;
1498
+ }
1499
+
1500
+ :where(.qube-pick-fact-label) {
1501
+ color: var(--qube-muted-color);
1502
+ }
1503
+
1504
+ /* A decline beside offered records weighs the same as their buttons: just under them, at the
1505
+ same right edge, not in the footer by cancel */
1506
+ :where(.qube-choice-alongside) {
1507
+ display: flex;
1508
+ flex-wrap: wrap;
1509
+ justify-content: flex-end;
1510
+ gap: 8px;
1511
+ }
1512
+
1513
+ :where(.qube-choice-alongside > .qube-choice) {
1514
+ justify-items: end;
1515
+ }
1516
+
1517
+ :where(.qube-choice-alongside) + :where(.qube-choice-footer) {
1518
+ padding-top: 16px;
1519
+ }
1520
+
1521
+ @container qube-choices (max-width: 30rem) {
1522
+ :where(.qube-choice-alongside > .qube-choice) {
1523
+ flex-grow: 1;
1524
+ justify-items: stretch;
1525
+ }
1526
+
1527
+ :where(.qube-choice-alongside .qube-choice-button) {
1528
+ justify-content: center;
1529
+ }
1530
+ }
1531
+
1532
+ /* A search beside offered records is its box alone, under them; its label is for screen
1533
+ readers (the box says "Search QuickBooks…") */
1534
+ :where(.qube-search-inline) :where(.qube-search, .qube-search-input) {
1535
+ max-width: none;
1536
+ }
1537
+
1538
+ :where(.qube-search-inline .qube-label) {
1539
+ position: absolute;
1540
+ width: 1px;
1541
+ height: 1px;
1542
+ overflow: hidden;
1543
+ clip-path: inset(50%);
1544
+ white-space: nowrap;
1545
+ }
1546
+
1547
+ @media (prefers-reduced-motion: reduce) {
1548
+ :where(.qube-choice-disclosure[open] > .qube-choice) {
1549
+ animation-name: qube-fade-in;
1550
+ }
1551
+ }
1115
1552
  }