dsh-better-ask-user 0.1.6 → 0.2.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.
@@ -1,594 +1,99 @@
1
- /* The takeover seats where the input card sits, centered on the InputBar
2
- axis at the shared content width (input card - 32): sides = clearance +
3
- 16px so the relation also holds on narrow viewports. */
1
+ /* Align the takeover with the host conversation content axis. */
4
2
  .frame {
3
+ --ask-accent: #3388BB;
5
4
  display: flex;
6
5
  justify-content: center;
7
- padding: 6px calc(var(--dsh-composer-side-clearance) + 16px) 10px;
6
+ padding: 8px calc(var(--dsh-composer-side-clearance) + 16px) calc(12px + env(safe-area-inset-bottom));
8
7
  }
9
-
10
- /* Figma Input 973:36348 body over the 1019:36938 header: no banner strip —
11
- the card keeps zero padding and sections carry their own insets. */
12
8
  .card {
13
9
  display: flex;
14
10
  flex-direction: column;
15
11
  width: 100%;
12
+ min-width: 0;
16
13
  max-width: var(--dsh-chat-content-width);
17
- /* Composer seat sits in a fixed-height conversation column (overflow
18
- hidden): cap the card against the viewport and scroll the option list
19
- so header and footer actions stay reachable on long batches. */
20
- max-height: min(60vh, 520px);
21
- padding: 0 0 10px;
22
- border: 0;
23
- --dsw-elevation-stroke-color: var(--dsw-alias-border-l2-darkmode-thin);
24
- border-radius: var(--dsw-radius-xl);
25
- background: var(--dsw-specific-input-major);
26
- box-shadow: var(--dsw-elevation-panel);
27
- color: var(--dsw-alias-label-primary);
14
+ max-height: min(75vh, 640px);
15
+ max-height: min(75dvh, 640px);
28
16
  overflow: hidden;
29
- /* Elevated surface in dark, same as the menus: the body inside scrolls
30
- once the card hits the cap above, so the thumb takes the l2 pair. Declared
31
- on the card because the elevation belongs to the surface, and the custom
32
- properties inherit down to `.body` (see ui-theme styles/scrollbar.css
33
- for the rebinding contract). */
17
+ border: 0.5px solid var(--dsw-alias-border-l3);
18
+ border-radius: 12px;
19
+ background: var(--dsw-alias-bg-layer-3);
20
+ color: var(--dsw-alias-label-primary);
21
+ font-size: 13px;
22
+ line-height: 20px;
34
23
  --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
35
24
  --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);
36
25
  }
37
-
38
- .card,
39
- .card * {
40
- box-sizing: border-box;
41
- }
42
-
43
- /* Collapsed to the header strip: drop the height cap and the inner scroll
44
- seat so the card hugs the title row, freeing the viewport for the
45
- conversation above while the question stays pending. */
46
- .cardMinimized {
47
- max-height: none;
48
- }
49
-
50
- /* The header strip is the whole card when collapsed: the title row needs
51
- bottom padding once the body that normally carries it is hidden. */
52
- .cardMinimized .header {
53
- padding-bottom: 14px;
54
- }
55
-
56
- /* Header button group: minimize sits next to the close action, both on the
57
- same 24px icon-button grid. */
58
- .headerActions {
59
- display: flex;
60
- align-items: center;
61
- gap: 4px;
62
- flex-shrink: 0;
63
- }
64
-
65
- .waitButton {
66
- white-space: nowrap;
67
- }
68
-
69
- .waitStatus {
70
- color: var(--dsw-alias-label-secondary);
71
- font-size: 12px;
72
- line-height: 24px;
73
- white-space: nowrap;
74
- }
75
-
76
- /* Figma 1019:36938 header, user-tuned: heading block left, close right; the
77
- pager sits in the footer to balance the card. */
78
- .header {
79
- display: flex;
80
- align-items: flex-start;
81
- justify-content: space-between;
82
- gap: 16px;
83
- flex-shrink: 0;
84
- padding: 20px 16px 0 24px;
85
- }
86
-
87
- .headingBlock {
88
- min-width: 0;
89
- }
90
-
91
- .eyebrow {
92
- /* Eyebrow-to-title gap widened from the figma 2px (user-tuned). */
93
- margin-bottom: 5px;
94
- color: var(--dsw-alias-label-tertiary);
95
- font-size: 11px;
96
- line-height: 16px;
97
- }
98
-
99
- .title {
100
- margin: 0;
101
- font-size: 16px;
102
- line-height: 22px;
103
- font-weight: 500;
104
- }
105
-
106
- .detail {
107
- margin: 0 2px 8px;
108
- }
109
-
110
- .footerActions {
111
- display: flex;
112
- align-items: center;
113
- gap: 12px;
114
- flex-shrink: 0;
115
- }
116
-
117
- .pager {
118
- display: flex;
119
- align-items: center;
120
- gap: 6px;
121
- flex-shrink: 0;
122
- }
123
-
124
- .progress {
125
- padding: 0 4px;
126
- color: var(--dsw-alias-label-secondary);
127
- font-size: 14px;
128
- line-height: 24px;
129
- font-weight: 500;
130
- white-space: nowrap;
131
- /* Narrow the plain spaces around the slash without touching glyph tracking. */
132
- word-spacing: -2px;
133
- }
134
-
135
- .iconButton {
136
- display: grid;
137
- place-items: center;
138
- width: 24px;
139
- height: 24px;
140
- padding: 0;
141
- border: none;
142
- border-radius: 999px;
143
- corner-shape: round;
144
- background: transparent;
145
- color: var(--dsw-alias-label-tertiary);
146
- cursor: pointer;
147
- }
148
-
149
- .iconButton:hover:not(:disabled) {
150
- background: var(--dsw-alias-interactive-bg-hover);
151
- color: var(--dsw-alias-label-primary);
152
- }
153
-
154
- .iconButton:disabled {
155
- color: var(--dsw-alias-label-dimmed);
156
- cursor: default;
157
- }
158
-
159
- .body {
160
- display: flex;
161
- flex: 1 1 auto;
162
- flex-direction: column;
163
- min-height: 0;
164
- overflow-y: auto;
165
- overscroll-behavior: contain;
166
- }
167
-
168
- .options {
169
- display: flex;
170
- flex-direction: column;
171
- gap: 1px;
172
- margin: 8px 0 0;
173
- padding: 4px 12px;
174
- }
175
-
176
- .option {
177
- display: flex;
178
- /* flex-start, not center: with a wrapped description the indicator must
179
- stay on the FIRST line (centering drifts it down the taller copy block).
180
- The 8px padding makes a single-line row 40px exactly, so nothing reads
181
- as top-heavy; .number/.checkbox re-center against the first line box. */
182
- align-items: flex-start;
183
- gap: 8px;
184
- width: 100%;
185
- min-height: 40px;
186
- /* Rows are the scroll content, never the slack absorber: a shrinkable row
187
- collapses to min-height while its wrapped copy keeps the taller
188
- intrinsic height, and centered content then paints outside the row box —
189
- over the title and the next row. Overflow belongs to .options. */
190
- flex-shrink: 0;
191
- padding: 8px 12px 8px 8px;
192
- border: 1px solid transparent;
193
- border-radius: var(--dsw-radius-md);
194
- background: transparent;
195
- color: inherit;
196
- text-align: left;
197
- cursor: pointer;
198
- transition: background-color 120ms ease, border-color 120ms ease;
199
- }
200
-
201
- .option:hover:not(:disabled),
202
- .optionSelected {
203
- background: var(--dsw-alias-interactive-bg-hover);
204
- }
205
-
206
- .optionSelected {
207
- border-color: var(--dsw-alias-border-l2);
208
- }
209
-
210
- .option:disabled {
211
- cursor: default;
212
- }
213
-
214
- /* Leading indicator (20×20): single-select shows the option
215
- number, multi-select swaps in a checkbox; the custom-answer row follows —
216
- its checkbox mirrors the typed draft (styling only, exclusivity holds). */
217
- .number {
218
- display: grid;
219
- place-items: center;
220
- flex: 0 0 20px;
221
- width: 20px;
222
- height: 20px;
223
- /* (24px first-line box − 20px indicator) / 2: centers the indicator against
224
- the first text line under the row's flex-start alignment. */
225
- margin-top: 2px;
226
- border-radius: var(--dsw-radius-xs);
227
- background: var(--dsw-alias-bg-overlay);
228
- color: var(--dsw-alias-label-secondary);
229
- font-size: 12px;
230
- font-weight: 500;
231
- line-height: 18px;
232
- }
233
-
234
- /* Multi-select box (figma 1055:41594, user-tuned down to 14×14): a radius-4
235
- box centered in the 20px indicator seat; the box itself is the ::before
236
- layer so the check icon stacks over it in the same grid cell. */
237
- .checkbox {
238
- display: grid;
239
- place-items: center;
240
- flex: 0 0 20px;
241
- width: 20px;
242
- height: 20px;
243
- /* Same first-line centering as .number under flex-start alignment. */
244
- margin-top: 2px;
245
- }
246
-
247
- .checkbox::before {
248
- content: '';
249
- grid-area: 1 / 1;
250
- width: 14px;
251
- height: 14px;
252
- border: 0.5px solid var(--dsw-alias-border-l4);
253
- border-radius: var(--dsw-radius-xs);
254
- transition: background-color 120ms ease, border-color 120ms ease;
255
- }
256
-
257
- .checkbox > svg {
258
- grid-area: 1 / 1;
259
- }
260
-
261
- /* Checked: label-primary fill with a primary-foreground check — the pair
262
- inverts with the theme (dark fill in light mode, light fill in dark mode). */
263
- .checkboxChecked {
264
- color: var(--dsw-alias-label-primary-foreground);
265
- }
266
-
267
- .checkboxChecked::before {
268
- border-color: var(--dsw-alias-label-primary);
269
- background: var(--dsw-alias-label-primary);
270
- }
271
-
272
- .optionCopy {
273
- min-width: 0;
274
- flex: 1;
275
- }
276
-
277
- .optionLine {
278
- display: flex;
279
- align-items: baseline;
280
- flex-wrap: wrap;
281
- gap: 2px 6px;
282
- }
283
-
284
- .optionLabel {
285
- font-size: 14px;
286
- line-height: 24px;
287
- font-weight: 500;
288
- }
289
-
290
- .badge {
291
- padding: 0 4px;
292
- border-radius: var(--dsw-radius-xs);
293
- background: var(--dsw-specific-sidebar-nav-item-active-accent);
294
- color: var(--dsw-alias-button-info-fill);
295
- font-size: 11px;
296
- line-height: 18px;
297
- font-weight: 600;
298
- }
299
-
300
- .description {
301
- color: var(--dsw-alias-label-tertiary);
302
- font-size: 14px;
303
- line-height: 24px;
304
- font-weight: 400;
305
- }
306
-
307
- /* Read-only note standing in for a question the user skipped: it takes the
308
- option rows' horizontal padding so it lines up with the choices above it. */
309
- .reviewNote {
310
- margin: 0;
311
- padding: 8px 12px;
312
- color: var(--dsw-alias-label-tertiary);
313
- font-size: 14px;
314
- line-height: 24px;
315
- }
316
-
317
- /* Custom answer row (figma 973:36427): an option-shaped row whose copy is an
318
- inline text input; focus or a typed draft gives it the selected look.
319
- While a single-select option is chosen, focus alone does not apply that
320
- look, so the radio group shows one selection; typing clears the option. */
321
- .customRow {
322
- display: flex;
323
- /* Same first-line alignment as .option — the indicator seat carries the
324
- 2px re-centering margin. */
325
- align-items: flex-start;
326
- gap: 8px;
327
- width: 100%;
328
- min-height: 40px;
329
- /* Same reason as .option: the custom row is scroll content, and shrinking
330
- it pushes the inline input past the footer. */
331
- flex-shrink: 0;
332
- padding: 8px 12px 8px 8px;
333
- border: 1px solid transparent;
334
- border-radius: var(--dsw-radius-md);
335
- transition: background-color 120ms ease, border-color 120ms ease;
336
- }
337
-
338
- .customRow:hover,
339
- .customRow:focus-within:not(.customRowYielded),
340
- .customRowActive {
341
- background: var(--dsw-alias-interactive-bg-hover);
342
- }
343
-
344
- .customRow:focus-within:not(.customRowYielded),
345
- .customRowActive {
346
- border-color: var(--dsw-alias-border-l2);
347
- }
348
-
349
- /* Auto-growing free-text answer (see AnswerField): mirror and textarea share
350
- one grid cell, the mirror sizes it, and the textarea stretches to it. The
351
- two layers MUST keep identical type, padding and wrapping — a mismatch
352
- makes the box the wrong height for the text the user is typing. */
353
- .field {
354
- display: grid;
355
- min-width: 0;
356
- --dsh-answer-field-padding: 0;
357
- }
358
-
359
- .field > * {
360
- grid-area: 1 / 1;
361
- min-width: 0;
362
- padding: var(--dsh-answer-field-padding);
363
- font: inherit;
364
- font-size: 14px;
365
- line-height: 24px;
366
- white-space: pre-wrap;
367
- word-break: break-word;
368
- overflow-wrap: anywhere;
369
- }
370
-
371
- /* The height ruler, never painted. Growth stops at 6 lines: the card body is
372
- capped at 520px and still owes that budget to the title, the option rows and
373
- the footer actions, so a long answer scrolls in the textarea instead of
374
- pushing the choices it belongs to out of view.
375
- content-box overrides the card-wide border-box so the cap counts TEXT lines
376
- in both variants: under border-box the block variant's 16px of vertical
377
- padding eats two thirds of a line and the sixth one arrives as an 8px sliver.
378
- Width is unaffected — a stretched grid item's used width comes from the
379
- track, not from this box-sizing. */
380
- .fieldMirror {
381
- box-sizing: content-box;
382
- max-height: 144px;
383
- overflow: hidden;
384
- visibility: hidden;
385
- }
386
-
387
- .fieldInput {
388
- resize: none;
389
- /* The stack's only scrollport: past the mirror's cap the field stops growing
390
- and this scrolls. */
391
- overflow-y: auto;
392
- border: none;
393
- outline: none;
394
- background: transparent;
395
- color: var(--dsw-alias-label-primary);
396
- caret-color: var(--dsw-alias-state-business-primary);
397
- }
398
-
399
- .fieldInput::placeholder {
400
- color: var(--dsw-alias-label-caption);
401
- }
402
-
403
- /* Inline variant: the custom row's copy column, borrowing the row's chrome. */
404
- .customInline {
405
- flex: 1;
406
- }
407
-
408
- /* Optionless question: the free-form answer is the whole body, so it carries
409
- its own frame. The 12px side margins add to the .options 12px padding so both
410
- edges align with the title's 24px inset; two lines are reserved before the
411
- answer starts growing. */
412
- .customBlock {
413
- min-height: 64px;
414
- flex-shrink: 0;
415
- margin: 0 12px;
416
- border: 0.5px solid var(--dsw-alias-border-l4);
417
- border-radius: var(--dsw-radius-lg);
418
- background: var(--dsw-alias-bg-module-platform);
419
- --dsh-answer-field-padding: 8px 12px;
420
- }
421
-
422
- .customBlock:focus-within {
423
- border-color: var(--dsw-alias-state-business-primary);
424
- }
425
-
426
- .footer {
427
- display: flex;
428
- align-items: center;
429
- justify-content: space-between;
430
- gap: 12px;
431
- flex-shrink: 0;
432
- margin-top: 12px;
433
- padding: 0 10px 0 18px;
434
- }
435
-
436
- .feedback {
437
- flex: 1;
438
- min-height: 16px;
439
- color: var(--dsw-alias-state-error-primary);
440
- font-size: 11px;
441
- line-height: 16px;
442
- text-align: right;
443
- }
444
-
445
- @media (max-width: 720px) {
446
- .card {
447
- border-radius: var(--dsw-radius-xl);
448
- }
449
-
450
- .header {
451
- padding: 10px 12px 0 18px;
452
- }
453
-
454
- .options {
455
- padding: 4px 8px;
456
- }
457
-
458
- .title {
459
- font-size: 15px;
460
- line-height: 21px;
461
- }
462
-
463
- .option,
464
- .customRow {
465
- padding: 8px 6px;
466
- }
467
-
468
- .footer {
469
- align-items: flex-end;
470
- padding: 0 10px;
471
- }
472
-
473
- .footerActions {
474
- flex-shrink: 0;
475
- }
476
- }
477
-
478
- @media (prefers-reduced-motion: reduce) {
479
- .option,
480
- .customRow {
481
- transition: none;
482
- }
483
- }
484
-
485
- /* ── Better ask-user adaptations: markdown / long text / narrow screens ── */
486
- .title,
487
- .eyebrow,
488
- .optionLabel,
489
- .description {
490
- min-width: 0;
491
- overflow-wrap: anywhere;
492
- word-break: break-word;
493
- }
494
-
495
- .title {
496
- max-height: 30vh;
497
- overflow-y: auto;
498
- }
499
-
500
- .title > div,
501
- .eyebrow > div,
502
- .optionLabel > div,
503
- .description > div {
504
- margin: 0;
505
- }
506
-
507
- .optionLabel {
508
- display: block;
509
- }
510
-
511
- .description {
512
- display: block;
513
- }
514
-
515
- .card {
516
- max-height: min(75vh, 640px);
517
- max-height: min(75dvh, 640px);
518
- }
519
-
520
- .frame {
521
- padding-bottom: calc(10px + env(safe-area-inset-bottom));
522
- }
523
-
26
+ .card, .card * { box-sizing: border-box; }
27
+ .cardMinimized { max-height: none; }
28
+ .header { display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0; gap: 12px; padding: 16px 16px 12px; }
29
+ .headingBlock { flex: 1; min-width: 0; }
30
+ .eyebrow { margin-bottom: 4px; color: var(--dsw-alias-label-tertiary); font-size: 12px; line-height: 18px; }
31
+ .title { margin: 0; max-height: 24vh; max-height: 24dvh; overflow-y: auto; font-size: 14px; line-height: 20px; font-weight: 500; }
32
+ .title, .eyebrow, .optionLabel, .description, .detail { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
33
+ .title > div, .eyebrow > div, .optionLabel > div, .description > div { margin: 0; }
34
+ /* Host compact Markdown retains the surrounding label's typography. */
35
+ .title > [data-markdown-variant='compact'], .optionLabel > [data-markdown-variant='compact'],
36
+ .title > [data-markdown-variant='compact'] > p, .optionLabel > [data-markdown-variant='compact'] > p { color: inherit; font: inherit; }
37
+ .headerActions, .footerActions, .pager { display: flex; align-items: center; flex-shrink: 0; gap: 4px; }
38
+ .footerActions { margin-left: auto; gap: 8px; }
39
+ .iconButton { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; }
40
+ .iconButton:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); }
41
+ .card button:focus-visible { outline: 2px solid var(--ask-accent); outline-offset: -2px; }
42
+ .card button:disabled { cursor: default; }
43
+ .iconButton:disabled, .footerActions > button:disabled, .card[aria-busy='true'] .option, .fieldInput:disabled { opacity: .4; }
44
+ .iconButton:active:not(:disabled) { background: color-mix(in srgb, var(--ask-accent) 10%, transparent); }
45
+ .body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
46
+ .detail { margin: 0 16px 12px; color: var(--dsw-alias-label-secondary); font-size: 13px; line-height: 20px; }
47
+ .options { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 16px; }
48
+ .option, .customRow { display: flex; align-items: flex-start; flex-shrink: 0; gap: 8px; width: 100%; min-height: 36px; padding: 8px; border: 0.5px solid transparent; border-radius: 8px; transition: background-color 100ms ease, border-color 100ms ease; }
49
+ .option { background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
50
+ .option:hover:not(:disabled), .customRow:hover { background: var(--dsw-alias-interactive-bg-hover); }
51
+ .optionSelected, .optionSelected:hover:not(:disabled), .customRowActive { border-color: color-mix(in srgb, var(--ask-accent) 22%, var(--dsw-alias-border-l2)); background: color-mix(in srgb, var(--ask-accent) 7%, transparent); }
52
+ .option:active:not(:disabled) { background: color-mix(in srgb, var(--ask-accent) 13%, transparent); }
53
+ .optionCopy { display: grid; gap: 4px; min-width: 0; flex: 1; }
54
+ .optionLine { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
55
+ .optionLabel { display: block; font-size: 13px; font-weight: 500; line-height: 20px; }
56
+ .badge { padding: 0 6px; border: 0.5px solid var(--dsw-alias-border-l3); border-radius: 999px; color: var(--dsw-alias-label-tertiary); font-size: 12px; font-weight: 400; line-height: 18px; }
57
+ .description { display: block; color: var(--dsw-alias-label-secondary); font-size: 12px; line-height: 18px; font-weight: 400; }
58
+ .radio, .checkbox, .customIcon { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; color: var(--dsw-alias-label-secondary); }
59
+ .radio::before, .checkbox::before { content: ''; box-sizing: border-box; grid-area: 1 / 1; width: 16px; height: 16px; border: 1px solid var(--dsw-alias-border-l4); }
60
+ .radio::before { border-radius: 50%; corner-shape: round; }
61
+ .radioChecked::before { border: 5px solid var(--ask-accent); }
62
+ .checkbox::before { border-radius: 4px; }
63
+ .checkbox > svg { grid-area: 1 / 1; }
64
+ .checkboxChecked { color: color-mix(in srgb, var(--ask-accent) 72%, var(--dsw-alias-label-primary)); }
65
+ .checkboxChecked::before { border-color: var(--ask-accent); background: color-mix(in srgb, var(--ask-accent) 10%, transparent); }
66
+ .customRow { margin-top: 12px; border-color: var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-layer-1); }
67
+ .customRow:has(.fieldInput:focus-visible), .customBlock:has(.fieldInput:focus-visible) { outline: 2px solid var(--ask-accent); outline-offset: -2px; }
68
+ /* Mirror and textarea share typography; only the textarea scrolls after six lines. */
69
+ .field { display: grid; min-width: 0; --dsh-answer-field-padding: 0; }
70
+ .field > * { grid-area: 1 / 1; min-width: 0; padding: var(--dsh-answer-field-padding); font: inherit; font-size: 13px; line-height: 20px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
71
+ .fieldMirror { box-sizing: content-box; max-height: 120px; overflow: hidden; visibility: hidden; }
72
+ .fieldInput { resize: none; overflow-y: auto; border: 0; outline: none; background: transparent; color: var(--dsw-alias-label-primary); caret-color: var(--ask-accent); }
73
+ .fieldInput::placeholder { color: var(--dsw-alias-label-tertiary); }
74
+ .customInline { flex: 1; }
75
+ .customBlock { min-height: 96px; flex-shrink: 0; margin: 0 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-layer-1); --dsh-answer-field-padding: 7px 10px; }
76
+ .footer { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; padding: 8px 16px; border-top: 0.5px solid var(--dsw-alias-border-l2); }
77
+ .footerActions > button { height: 32px; min-height: 32px; padding: 0 12px; border-radius: 6px; font-size: 13px; line-height: 20px; }
78
+ .primaryButton { --dsw-alias-button-primary-fill: color-mix(in srgb, var(--ask-accent) 85%, black); --dsw-alias-button-primary-fill-hover: color-mix(in srgb, var(--ask-accent) 72%, black); --dsw-alias-label-primary-foreground: #fff; border-color: color-mix(in srgb, var(--ask-accent) 25%, var(--dsw-alias-border-l2)); background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); }
79
+ .primaryButton:hover:not(:disabled) { background: var(--dsw-alias-button-primary-fill-hover); }
80
+ .primaryButton:active:not(:disabled) { background: var(--dsw-alias-button-primary-fill-hover); }
81
+ .progress { padding: 0 4px; color: var(--dsw-alias-label-secondary); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 20px; white-space: nowrap; }
82
+ .feedback { flex: 1; min-width: 0; color: var(--dsw-alias-state-error-primary); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; text-align: right; }
83
+ .feedback:empty { display: none; }
84
+ .reviewStatus, .reviewNote { margin: 0; padding: 0 16px 12px; color: var(--dsw-alias-label-secondary); font-size: 12px; line-height: 20px; }
524
85
  @media (max-width: 720px) {
525
- .header {
526
- flex-wrap: wrap;
527
- }
528
-
529
- .headingBlock {
530
- flex: 1 1 100%;
531
- }
532
-
533
- .headerActions {
534
- flex-wrap: wrap;
535
- justify-content: flex-end;
536
- margin-left: auto;
537
- }
538
-
539
- .waitStatus {
540
- white-space: normal;
541
- }
542
-
543
- .card {
544
- max-height: calc(100vh - 160px);
545
- max-height: calc(100dvh - 160px);
546
- }
547
-
548
- .title {
549
- max-height: 24vh;
550
- max-height: 24dvh;
551
- font-size: 15px;
552
- line-height: 21px;
553
- }
554
-
555
- .footer {
556
- flex-wrap: wrap;
557
- }
558
-
559
- .feedback {
560
- flex: 1 1 100%;
561
- text-align: left;
562
- }
563
-
564
- .footerActions {
565
- width: 100%;
566
- justify-content: flex-end;
567
- flex-wrap: wrap;
568
- }
569
-
570
- .option,
571
- .customRow {
572
- min-height: 44px;
573
- }
574
- }
575
-
576
- @media (max-width: 420px) {
577
- .footer {
578
- align-items: stretch;
579
- flex-direction: column;
580
- }
581
-
582
- .pager {
583
- justify-content: space-between;
584
- width: 100%;
585
- }
586
-
587
- .footerActions {
588
- width: 100%;
589
- }
590
-
591
- .footerActions > button {
592
- flex: 1 1 auto;
593
- }
594
- }
86
+ .card { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
87
+ .header { gap: 8px; padding: 16px 8px 16px 16px; }
88
+ .detail { margin: 0 16px 16px; }
89
+ .options { padding: 0 8px 16px; }
90
+ .option, .customRow, .card button { min-height: 44px; }
91
+ .iconButton { width: 44px; height: 44px; }
92
+ .field > * { font-size: 16px; line-height: 24px; }
93
+ .fieldMirror { max-height: 144px; }
94
+ .footer { flex-wrap: wrap; padding: 12px 16px; }
95
+ .feedback { flex: 1 1 100%; order: 1; text-align: left; }
96
+ .footerActions { margin-left: auto; }
97
+ }
98
+ @media (max-width: 420px) { .header { flex-wrap: wrap; } .headingBlock { flex-basis: calc(100% - 104px); } .footerActions { flex: 1 1 100%; } .footerActions > button { flex: 1; } }
99
+ @media (prefers-reduced-motion: reduce) { .option, .customRow { transition: none; } }