alibai 0.1.0 → 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.
package/viewer/viewer.css CHANGED
@@ -98,7 +98,7 @@ h1:focus { outline: none; }
98
98
  .project { margin-left: auto; min-width: 0; color: var(--al-ink-2); font: var(--al-text-xs) var(--al-font-mono); }
99
99
  .preferences, .languages { display: flex; align-items: center; gap: 4px; }
100
100
  .preferences { gap: 8px; flex: none; flex-wrap: wrap; }
101
- .theme, .languages button, .chip, .search {
101
+ .theme, .languages button, .chip, .search, .icon-control, .dialog-close {
102
102
  background: var(--al-surface);
103
103
  border: 1px solid var(--al-line);
104
104
  border-radius: var(--al-radius-md);
@@ -113,7 +113,16 @@ h1:focus { outline: none; }
113
113
  color: var(--al-tape-ink);
114
114
  border-color: var(--al-tape);
115
115
  }
116
- .theme:hover, .languages button:hover, .chip:hover { border-color: var(--al-muted); }
116
+ .theme:hover, .languages button:hover, .chip:hover, .icon-control:hover { border-color: var(--al-muted); }
117
+ .icon-control {
118
+ display: inline-grid;
119
+ place-items: center;
120
+ width: 44px;
121
+ height: 44px;
122
+ padding: 0;
123
+ }
124
+ .icon-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
125
+ .icon-control:disabled { opacity: .45; border-color: var(--al-line); cursor: default; }
117
126
  main { display: grid; gap: 20px; padding-block: 28px 48px; }
118
127
 
119
128
  .filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
@@ -195,105 +204,420 @@ tbody tr:hover td:first-child, tbody tr:focus-within td:first-child { box-shadow
195
204
  .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
196
205
  .badge.pass { color: var(--al-pass); background: var(--al-pass-bg); }
197
206
  .badge.fail { color: var(--al-fail); background: var(--al-fail-bg); }
207
+ .case-detail {
208
+ --case-arrow-size: 44px;
209
+ --case-arrow-height: 64px;
210
+ display: grid;
211
+ grid-template-columns: var(--case-arrow-size) minmax(0, 1fr) var(--case-arrow-size);
212
+ row-gap: inherit;
213
+ column-gap: 12px;
214
+ }
215
+ .summary, .evidence { grid-column: 2; }
198
216
  .summary {
217
+ grid-row: 1;
199
218
  display: grid;
200
- grid-template-columns: minmax(0, 1fr) auto;
201
- gap: 20px;
202
- position: relative;
203
- overflow: hidden;
219
+ gap: 8px;
204
220
  background: var(--al-surface);
205
221
  border: 1px solid var(--al-line);
206
222
  border-radius: var(--al-radius-md);
207
- padding: 24px;
223
+ padding: 20px 24px 24px;
208
224
  }
209
- .summary::before {
210
- content: "";
211
- position: absolute;
212
- inset: 0 0 auto;
213
- height: 6px;
214
- background: repeating-linear-gradient(-45deg, var(--al-tape) 0 14px, var(--al-ink) 14px 28px);
215
- }
216
- .case-label { margin-bottom: 6px; }
217
- .meta, .counts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
218
- .meta { font-size: var(--al-text-sm); color: var(--al-ink-2); }
219
- .meta > div { display: flex; gap: 6px; flex-wrap: wrap; }
220
- .meta .branch { max-width: min(34ch, 57vw); }
225
+ .case-navigation {
226
+ grid-area: 1 / 1 / 3 / -1;
227
+ align-self: start;
228
+ position: sticky;
229
+ top: calc(50% - var(--case-arrow-height) / 2);
230
+ display: flex;
231
+ justify-content: space-between;
232
+ /* The navigation spans both gutters, leaving the content clickable. */
233
+ pointer-events: none;
234
+ }
235
+ .case-position { display: none; }
236
+ .case-navigation .icon-control {
237
+ pointer-events: auto;
238
+ width: var(--case-arrow-size);
239
+ height: var(--case-arrow-height);
240
+ border-color: var(--al-line);
241
+ background: var(--al-surface);
242
+ color: var(--al-ink-2);
243
+ }
244
+ .case-navigation a.icon-control:hover { background: var(--al-surface-2); color: var(--al-ink); }
245
+ .case-navigation .icon-control:disabled {
246
+ opacity: 1;
247
+ background: transparent;
248
+ color: color-mix(in srgb, var(--al-ink-3) 55%, transparent);
249
+ }
250
+ .case-header {
251
+ display: flex;
252
+ flex-wrap: wrap;
253
+ align-items: center;
254
+ gap: 8px;
255
+ margin-bottom: 4px;
256
+ }
257
+ .case-heading { display: flex; flex: 1 1 min-content; min-width: 0; align-items: center; gap: 4px; }
258
+ .case-back {
259
+ flex: none;
260
+ background: transparent;
261
+ border: 0;
262
+ }
263
+ .case-back:hover { background: var(--al-surface-2); }
264
+ .case-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; overflow-wrap: break-word; }
265
+ .case-header .badge { white-space: normal; }
266
+ .case-header .badge:is(.info, .open) { overflow-wrap: anywhere; }
267
+ .case-header .badge::before { flex: none; }
268
+ .summary h1 { font-size: clamp(var(--al-text-xl), 3vw, var(--al-text-2xl)); letter-spacing: -.01em; }
269
+ .summary .note { max-width: 72ch; color: var(--al-ink-2); font-size: var(--al-text-md); line-height: 1.6; }
270
+ .meta {
271
+ display: grid;
272
+ grid-template-columns: repeat(2, minmax(0, 1fr));
273
+ gap: 6px 32px;
274
+ margin-top: 12px;
275
+ padding-top: 16px;
276
+ border-top: 1px solid var(--al-line);
277
+ font-size: var(--al-text-sm);
278
+ color: var(--al-ink-2);
279
+ }
280
+ .meta > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; gap: 8px; min-width: 0; }
281
+ .meta dd { min-width: 0; }
282
+ .meta .branch { max-width: 100%; }
221
283
  .meta dt { color: var(--al-muted); }
222
- .meta code { font-size: var(--al-text-xs); }
223
- .meta .git-changes { flex-basis: 100%; }
284
+ .meta code, .meta .branch, .meta time { font-size: var(--al-text-xs); }
285
+ .meta code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
286
+ .meta .git-changes { grid-column: 1 / -1; }
224
287
  .git-changes summary { cursor: pointer; font-weight: 600; }
225
288
  .git-changes ul { margin: 4px 0; padding-inline-start: 20px; }
226
289
  .git-changes li code { white-space: pre-wrap; }
227
- .counts { gap: 22px; margin-top: 16px; }
228
- .count { display: grid; gap: 4px; }
229
- .count b { font: 600 var(--al-text-2xl)/1 var(--al-font-mono); }
230
- .count.pass b, .stamp.pass { color: var(--al-pass); }
231
- .count.fail b, .stamp.fail { color: var(--al-fail); }
232
- .count.zero b { color: var(--al-ink-3); }
233
- .verdict { display: grid; justify-items: end; align-content: start; gap: 12px; text-align: right; }
234
- .verdict .note { max-width: 29ch; }
235
- .stamp {
290
+ .counts { display: flex; flex-wrap: wrap; align-items: center; max-width: 100%; justify-content: flex-end; gap: 4px 16px; margin-inline-start: auto; }
291
+ .counts .badge { margin-inline-end: 4px; }
292
+ .count {
293
+ display: flex;
294
+ flex-wrap: wrap;
295
+ align-items: baseline;
296
+ justify-content: flex-end;
297
+ gap: 2px 6px;
298
+ min-width: 0;
236
299
  color: var(--al-ink-2);
237
- font: 700 1.2rem/1 var(--al-font-label);
238
- letter-spacing: .1em;
239
- text-transform: uppercase;
240
- padding: 8px 12px;
241
- border: 2px solid currentColor;
242
- border-radius: 4px;
243
- transform: rotate(-2.5deg);
300
+ font-size: var(--al-text-sm);
301
+ text-align: end;
302
+ overflow-wrap: break-word;
244
303
  }
304
+ .count b { font: 600 var(--al-text-lg)/1.35 var(--al-font-mono); white-space: nowrap; color: var(--al-ink); }
305
+ .count.pass b { color: var(--al-pass); }
306
+ .count.fail b { color: var(--al-fail); }
245
307
 
246
- .evidence { min-width: 0; display: grid; gap: 12px; }
247
- .timeline { list-style: none; display: grid; gap: 14px; position: relative; margin: 0; padding: 0 0 0 29px; }
248
- .timeline::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 22px; width: 2px; background: var(--al-line); }
308
+ .evidence { grid-row: 2; min-width: 0; display: grid; gap: 12px; }
309
+ .evidence-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-inline-start: var(--timeline-indent); }
310
+ .evidence-tools { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
311
+ .head-count { color: var(--al-ink-2); font: 600 var(--al-text-sm) var(--al-font-mono); }
312
+ .select-all, .exhibit-select { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; cursor: pointer; }
313
+ .select-all { font-size: var(--al-text-sm); color: var(--al-ink-2); }
314
+ .exhibit-select { justify-content: center; min-width: 20px; }
315
+ :is(.select-all, .exhibit-select) input {
316
+ width: 1rem;
317
+ height: 1rem;
318
+ margin: 0;
319
+ accent-color: var(--al-tape-text);
320
+ cursor: inherit;
321
+ }
322
+ .export-remote {
323
+ position: sticky;
324
+ z-index: 2;
325
+ bottom: max(16px, env(safe-area-inset-bottom));
326
+ justify-self: center;
327
+ display: flex;
328
+ align-items: center;
329
+ flex-wrap: wrap;
330
+ gap: 8px;
331
+ max-width: 100%;
332
+ padding: 6px 6px 6px 16px;
333
+ border: 1px solid var(--al-line);
334
+ border-radius: 10px;
335
+ background: var(--al-surface);
336
+ box-shadow: 0 1px 2px rgba(20, 23, 29, .06), 0 8px 24px rgba(20, 23, 29, .12);
337
+ }
338
+ .remote-selection, .report-actions { display: flex; align-items: center; gap: 4px; }
339
+ /* A zero basis keeps the bar on one row; the count truncates before anything wraps. */
340
+ .remote-selection { flex: 1 1 0; min-width: 0; }
341
+ .report-actions { padding-inline-start: 8px; border-inline-start: 1px solid var(--al-line); gap: 6px; }
342
+ .selection-count { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--al-ink); font: 600 var(--al-text-sm) var(--al-font-mono); white-space: nowrap; }
343
+ .evidence-button, .clear-selection, .comment-submit, .comment-cancel {
344
+ min-height: 32px;
345
+ padding: 4px 12px;
346
+ border: 1px solid var(--al-line);
347
+ border-radius: 6px;
348
+ background: var(--al-surface);
349
+ color: var(--al-ink-2);
350
+ font: 600 var(--al-text-sm)/1.3 var(--al-font-sans);
351
+ white-space: nowrap;
352
+ }
353
+ :is(.evidence-button, .comment-cancel):hover { border-color: var(--al-muted); color: var(--al-ink); }
354
+ :is(.evidence-button.primary, .comment-submit) { background: var(--al-ink); border-color: var(--al-ink); color: var(--al-surface); }
355
+ :is(.evidence-button.primary, .comment-submit):hover:not(:disabled) { background: color-mix(in srgb, var(--al-ink) 85%, var(--al-surface)); }
356
+ .comment-submit.danger { background: var(--al-fail); border-color: var(--al-fail); color: #fff; }
357
+ .clear-selection, .comment-cancel { border-color: transparent; background: transparent; }
358
+ .clear-selection { padding-inline: 8px; color: var(--al-muted); }
359
+ .clear-selection:hover { color: var(--al-ink); background: var(--al-surface-2); }
360
+ :is(.evidence-button, .clear-selection, .comment-submit, .comment-cancel):disabled { opacity: .45; cursor: default; }
361
+ .comment-submit:not(.danger):disabled { opacity: 1; border-color: var(--al-line); background: transparent; color: var(--al-ink-3); }
362
+ .export-status, .comment-status { color: var(--al-muted); font-size: var(--al-text-sm); }
363
+ .export-status { flex-basis: 100%; padding-inline-end: 10px; }
364
+ :is(.export-status, .comment-status):empty { display: none; }
365
+ :root:has(.export-remote:not([hidden])) { scroll-padding-bottom: 8rem; }
366
+ .timeline {
367
+ --track-x: 10px;
368
+ --marker-size: 16px;
369
+ --timeline-gap: 16px;
370
+ list-style: none;
371
+ display: grid;
372
+ gap: var(--timeline-gap);
373
+ margin: 0;
374
+ padding: 0 0 0 var(--timeline-indent);
375
+ }
376
+ .evidence, .report-evidence { --timeline-indent: 29px; }
249
377
  .exhibit { position: relative; border: 1px solid var(--al-line); border-radius: var(--al-radius-md); background: var(--al-surface); min-width: 0; }
250
- .exhibit::before {
378
+ .exhibit::before, .exhibit:not(:last-child)::after {
251
379
  content: "";
252
380
  position: absolute;
253
- left: -26px;
254
- top: 19px;
255
- width: 12px;
256
- height: 12px;
381
+ left: calc(var(--track-x) - var(--timeline-indent) - 1px);
382
+ top: 26px;
383
+ }
384
+ .exhibit:not(:last-child)::after {
385
+ width: 2px;
386
+ height: calc(100% + var(--timeline-gap) + 2px);
387
+ transform: translateX(-50%);
388
+ background: var(--al-line);
389
+ }
390
+ .exhibit::before {
391
+ z-index: 1;
392
+ box-sizing: border-box;
393
+ width: var(--marker-size);
394
+ height: var(--marker-size);
395
+ transform: translate(-50%, -50%);
257
396
  border: 2px solid var(--al-skip);
258
397
  border-radius: 50%;
259
398
  background: var(--al-surface);
260
399
  }
261
400
  .exhibit.pass::before { border-color: var(--al-pass); }
262
- .exhibit.fail { border-color: color-mix(in srgb, var(--al-fail) 55%, var(--al-line)); }
263
401
  .exhibit.fail::before { border-color: var(--al-fail); background: var(--al-fail); }
264
- .exhibit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--al-line); }
265
- .exhibit-head h3 { flex: 1 1 220px; font-size: var(--al-text-md); font-weight: 600; }
266
- .exhibit-head .logic-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
402
+ .exhibit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 52px; padding: 10px 24px; border-bottom: 1px solid var(--al-line); }
403
+ .exhibit-head h3 { flex: 1 1 220px; min-width: 0; font-size: var(--al-text-md); font-weight: 600; line-height: 1.4; }
404
+ .exhibit-head .logic-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--al-font-mono); font-size: var(--al-text-sm); }
405
+ .exhibit-time { color: var(--al-muted); font-size: var(--al-text-xs); }
267
406
  .tag {
268
407
  padding: 4px 7px;
269
408
  border-radius: 2px;
270
- background: var(--al-tape);
271
- color: var(--al-tape-ink);
409
+ background: var(--al-surface-2);
410
+ color: var(--al-ink-2);
272
411
  }
273
- .kind, .exhibit-time { font-size: var(--al-text-xs); color: var(--al-muted); }
274
- .exhibit-body { display: grid; gap: 10px; min-width: 0; padding: 14px 16px; }
412
+ .kind { font-size: var(--al-text-xs); color: var(--al-muted); white-space: nowrap; }
413
+ .exhibit-body { display: grid; gap: 12px; min-width: 0; padding: 16px 24px; }
275
414
  .exhibit-body > * { min-width: 0; }
276
415
  .note { color: var(--al-ink-2); font-size: var(--al-text-sm); white-space: pre-wrap; }
277
416
 
278
- .comparison, .thumb {
417
+ .comments { display: grid; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid var(--al-line); }
418
+ .comments-title { margin: 0; font-size: var(--al-text-sm); font-weight: 600; color: var(--al-ink-2); }
419
+ .comments-count { color: var(--al-muted); font-weight: 400; }
420
+ .comment-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
421
+ .comment {
422
+ min-width: 0;
423
+ border: 1px solid var(--al-line);
424
+ border-radius: 6px;
425
+ background: var(--al-surface);
426
+ }
427
+ .comment-head {
428
+ border-radius: 5px 5px 0 0;
429
+ display: flex;
430
+ align-items: center;
431
+ justify-content: space-between;
432
+ gap: 8px;
433
+ min-height: 36px;
434
+ padding: 2px 4px 2px 12px;
435
+ border-bottom: 1px solid var(--al-line);
436
+ background: var(--al-surface-2);
437
+ color: var(--al-muted);
438
+ font-size: var(--al-text-xs);
439
+ }
440
+ .comment-meta time, .comment-edited { cursor: default; }
441
+ .comment-menu-wrap { position: relative; }
442
+ .comment-menu-button.icon-control { width: 32px; height: 28px; border-color: transparent; background: transparent; color: var(--al-muted); }
443
+ .comment-menu-button.icon-control:hover, .comment-menu-button[aria-expanded="true"] { background: var(--al-surface); color: var(--al-ink); border-color: var(--al-line); }
444
+ .comment-menu-button svg { stroke-width: 3; }
445
+ .comment-menu {
446
+ position: absolute;
447
+ z-index: 3;
448
+ inset: calc(100% + 4px) 0 auto auto;
449
+ display: grid;
450
+ min-width: 128px;
451
+ padding: 4px;
452
+ border: 1px solid var(--al-line);
453
+ border-radius: var(--al-radius-md);
454
+ background: var(--al-surface);
455
+ box-shadow: 0 8px 24px rgba(20, 23, 29, .16);
456
+ }
457
+ .comment-menu-item {
458
+ padding: 6px 10px;
459
+ border: 0;
460
+ border-radius: var(--al-radius-sm);
461
+ background: transparent;
462
+ color: var(--al-ink);
463
+ font-size: var(--al-text-sm);
464
+ text-align: start;
465
+ }
466
+ .comment-menu-item:is(:hover, :focus-visible) { background: var(--al-surface-2); outline: none; }
467
+ .comment-menu-item.delete { color: var(--al-fail); }
468
+ .comment-body { padding: 10px 12px; font-size: var(--al-text-sm); line-height: 1.6; }
469
+ .comment-body > * + * { margin-top: 8px; }
470
+ .comment-body code { padding: 1px 5px; border-radius: 3px; background: var(--al-surface-2); font-size: .92em; }
471
+ .comment-body pre { padding: 8px 12px; border-radius: var(--al-radius-sm); background: var(--al-surface-2); white-space: pre-wrap; }
472
+ .comment-body pre code { padding: 0; background: none; }
473
+ .comment-body a { color: var(--al-focus); }
474
+ .comment-confirm {
475
+ display: flex;
476
+ align-items: center;
477
+ justify-content: space-between;
478
+ flex-wrap: wrap;
479
+ gap: 8px 12px;
480
+ padding: 8px 8px 8px 12px;
481
+ border-top: 1px solid var(--al-line);
482
+ background: var(--al-fail-bg);
483
+ color: var(--al-fail);
484
+ font-size: var(--al-text-sm);
485
+ font-weight: 600;
486
+ }
487
+ .comment-buttons { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
488
+ .comment-form {
489
+ display: flex;
490
+ flex-wrap: wrap;
491
+ align-items: flex-end;
492
+ min-width: 0;
493
+ border: 1px solid var(--al-line);
494
+ border-radius: 6px;
495
+ background: var(--al-surface);
496
+ }
497
+ .comment-form:focus-within { border-color: var(--al-focus); box-shadow: 0 0 0 1px var(--al-focus); }
498
+ .comment .comment-form { margin: 8px; }
499
+ .comment-form textarea {
500
+ flex: 1 1 100%;
501
+ min-width: 0;
502
+ min-height: calc(2lh + 16px);
503
+ max-height: calc(8lh + 16px);
504
+ field-sizing: content;
505
+ resize: none;
506
+ padding: 8px 12px;
507
+ border: 0;
508
+ outline: none;
509
+ background: transparent;
510
+ font: var(--al-text-sm)/20px var(--al-font-sans);
511
+ color: inherit;
512
+ }
513
+ .comment-form textarea::placeholder { color: var(--al-muted); }
514
+ .comment-footer {
515
+ display: flex;
516
+ flex: 1 1 100%;
517
+ align-items: center;
518
+ justify-content: space-between;
519
+ gap: 8px;
520
+ padding: 0 6px 6px 12px;
521
+ }
522
+ .comment-hint { color: var(--al-muted); font-size: var(--al-text-xs); }
523
+ .comment-form.compact textarea { flex: 1 1 0; min-height: calc(1lh + 16px); }
524
+ .comment-form.compact .comment-footer { flex: none; padding: 6px; }
525
+ .comment-form.compact .comment-hint { display: none; }
526
+
527
+ .screenshots { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 10px; }
528
+ .screenshots > .note { grid-column: 1; }
529
+ .compare-toggle { grid-column: 2; width: 36px; height: 36px; margin-inline-start: 12px; }
530
+ .screenshot-pair figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
531
+ figcaption .compare-toggle { width: 32px; height: 32px; margin: 0; }
532
+ .screenshot-pair { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
533
+ .screenshot-pair.single { grid-template-columns: repeat(2, minmax(0, 280px)); }
534
+ .screenshot-pair figure { display: grid; grid-template-rows: auto 1fr; gap: 4px; min-width: 0; }
535
+ .thumb {
279
536
  position: relative;
537
+ display: grid;
538
+ align-items: center;
280
539
  overflow: hidden;
281
- aspect-ratio: 16 / 10;
282
540
  border: 1px solid var(--al-line);
283
541
  border-radius: 6px;
284
542
  background: var(--al-surface-2);
285
543
  }
286
- .comparison-figure { position: relative; max-width: 560px; }
287
- .comparison { isolation: isolate; }
288
- .comparison:focus-within { outline: 2px solid var(--al-focus); outline-offset: 3px; }
544
+ .shot-open { padding: 0; border: 0; background: transparent; min-width: 0; min-height: 56px; cursor: zoom-in; }
545
+ .shot-open:focus-visible { outline-offset: -3px; }
546
+ .shot-copy { position: absolute; inset: 5px 5px auto auto; }
547
+ @media (hover: hover) and (pointer: fine) {
548
+ .thumb:not(:hover):not(:focus-within) .shot-copy { opacity: 0; pointer-events: none; }
549
+ }
550
+ .copy-status {
551
+ position: fixed;
552
+ z-index: 2;
553
+ width: max-content;
554
+ max-width: calc(100% - 16px);
555
+ color: var(--al-ink-2);
556
+ font-size: var(--al-text-sm);
557
+ pointer-events: none;
558
+ }
559
+ .copy-status:not(:empty) {
560
+ padding: 7px 10px;
561
+ border: 1px solid var(--al-line);
562
+ border-radius: var(--al-radius-md);
563
+ background: var(--al-surface);
564
+ }
289
565
  .shot {
290
566
  display: block;
291
567
  width: 100%;
292
- height: 100%;
568
+ height: auto;
293
569
  object-fit: contain;
570
+ }
571
+ body:has(.screenshot-dialog[open]) { overflow: hidden; }
572
+ .screenshot-dialog {
573
+ position: fixed;
574
+ inset: 0;
575
+ width: 100%;
576
+ height: 100dvh;
577
+ max-width: none;
578
+ max-height: none;
579
+ margin: 0;
580
+ padding: clamp(16px, 2.5vw, 24px);
581
+ border: 0;
582
+ background: var(--al-paper);
583
+ color: var(--al-ink);
584
+ }
585
+ .screenshot-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
586
+ .compare-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; }
587
+ .compare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
588
+ .compare-head h2 {
589
+ display: -webkit-box;
590
+ -webkit-box-orient: vertical;
591
+ -webkit-line-clamp: 2;
592
+ min-width: 0;
593
+ overflow: hidden;
594
+ line-height: 1.3;
595
+ }
596
+ .dialog-close {
597
+ flex: none;
598
+ min-height: 44px;
599
+ font-weight: 600;
600
+ background: var(--al-ink);
601
+ border-color: var(--al-ink);
602
+ color: var(--al-paper);
603
+ }
604
+ .image-viewport .shot { height: 100%; }
605
+ .compare-viewport { display: grid; place-items: center; container-type: size; }
606
+ .compare-captions { display: flex; justify-content: space-between; gap: 8px; }
607
+ .comparison {
608
+ --capture-ratio: 1.6;
609
+ position: relative;
610
+ width: min(100cqw, calc(100cqh * var(--capture-ratio)));
611
+ aspect-ratio: var(--capture-ratio);
612
+ outline: 1px solid var(--al-line);
613
+ }
614
+ .comparison:focus-within { outline: 2px solid var(--al-focus); outline-offset: 3px; }
615
+ .comparison .shot {
616
+ position: absolute;
617
+ inset: 0;
618
+ height: 100%;
294
619
  background: var(--al-surface-2);
295
620
  }
296
- .comparison .shot, .comparison input { position: absolute; inset: 0; }
297
621
  .comparison .after { clip-path: inset(0 0 0 var(--position, 50%)); }
298
622
  .handle { position: absolute; inset: 0 auto 0 clamp(1px, var(--position, 50%), 100% - 1px); width: 2px; margin-left: -1px; background: var(--al-tape); }
299
623
  .handle::after {
@@ -310,27 +634,18 @@ tbody tr:hover td:first-child, tbody tr:focus-within td:first-child { box-shadow
310
634
  place-items: center;
311
635
  font-weight: 700;
312
636
  }
313
- .compare-captions {
637
+ .comparison input {
314
638
  position: absolute;
315
- z-index: 1;
316
- inset: auto 8px 8px;
317
- display: flex;
318
- justify-content: space-between;
319
- pointer-events: none;
320
- }
321
- .cap {
322
- background: rgb(20 23 29 / .85);
323
- color: #fff;
324
- font: 700 10px/1 var(--al-font-label);
325
- letter-spacing: .07em;
326
- text-transform: uppercase;
327
- border-radius: 3px;
328
- padding: 5px 6px;
639
+ inset: 50% auto auto 50%;
640
+ transform: translate(-50%, -50%);
641
+ width: max(100%, 44px);
642
+ height: max(100%, 44px);
643
+ margin: 0;
644
+ opacity: 0;
645
+ cursor: ew-resize;
646
+ touch-action: none;
329
647
  }
330
- .comparison input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize; }
331
- .single { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 12px; }
332
- .single figure { display: grid; gap: 6px; }
333
- .thumb:has(.missing) { border-style: dashed; background: var(--al-surface); }
648
+ .thumb:has(.missing) { min-height: 88px; aspect-ratio: 16 / 10; }
334
649
  .missing {
335
650
  display: grid;
336
651
  height: 100%;
@@ -339,7 +654,6 @@ tbody tr:hover td:first-child, tbody tr:focus-within td:first-child { box-shadow
339
654
  padding: 8px;
340
655
  color: var(--al-muted);
341
656
  font-size: var(--al-text-xs);
342
- background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--al-surface-2) 8px 9px);
343
657
  }
344
658
 
345
659
  .input { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 8px; }
@@ -383,22 +697,22 @@ pre { white-space: pre-wrap; overflow-wrap: anywhere; }
383
697
  .appbar nav { flex: 1; }
384
698
  .project { display: none; }
385
699
  main { gap: 16px; padding-block: 20px 36px; }
386
- .summary { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
387
- .verdict { justify-items: start; text-align: left; }
388
- .timeline { padding-left: 20px; }
389
- .timeline::before { left: 5px; }
390
- .exhibit::before { left: -21px; width: 10px; height: 10px; }
391
- .exhibit-head, .exhibit-body { padding: 10px 12px; }
700
+ .case-detail { grid-template-columns: minmax(0, 1fr); }
701
+ .summary, .evidence { grid-column: 1; }
702
+ .summary { grid-row: 2; padding: 16px; }
703
+ .evidence { grid-row: 3; }
704
+ /* Side arrows would cover the cards: show a compact pager above the summary instead. */
705
+ .case-navigation { grid-area: 1 / 1; position: static; align-items: center; pointer-events: auto; }
706
+ .case-navigation .icon-control { height: 40px; }
707
+ .case-position { display: block; color: var(--al-muted); font-size: var(--al-text-xs); }
708
+ .meta { grid-template-columns: minmax(0, 1fr); }
709
+ .meta > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
710
+ .evidence, .report-evidence { --timeline-indent: 20px; }
711
+ .timeline { --track-x: 7px; --marker-size: 14px; }
712
+ .exhibit-head { padding: 10px 16px; }
713
+ .exhibit-body, .comments { padding: 12px 16px; }
392
714
  .exhibit-head h3 { flex-basis: 100%; order: 1; }
393
- .exhibit-time { margin-left: auto; }
394
- .compare-captions { position: static; margin-bottom: 6px; }
395
- .cap {
396
- padding: 0;
397
- background: none;
398
- color: var(--al-muted);
399
- font-size: var(--al-text-xs);
400
- }
401
- .single { gap: 8px; }
715
+ .exhibit-head .badge { margin-left: auto; }
402
716
  .search { margin: 0; width: 100%; }
403
717
  thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
404
718
  table, tbody { display: block; }
@@ -419,7 +733,43 @@ pre { white-space: pre-wrap; overflow-wrap: anywhere; }
419
733
  .time-cell { grid-column: 1 / -1; }
420
734
  }
421
735
 
736
+ @media (max-width: 640px) {
737
+ .screenshot-pair, .screenshot-pair.single { grid-template-columns: minmax(0, 1fr); }
738
+ }
739
+
422
740
  @media (max-width: 480px) {
423
741
  .preferences { flex-basis: 100%; }
742
+ .case-header { column-gap: 6px; }
743
+ .case-header .badge { padding-inline: 6px; }
744
+ .counts { column-gap: 12px; }
745
+ .case-header .count { column-gap: 4px; }
424
746
  .diff { grid-template-columns: minmax(0, 1fr); }
747
+ .export-remote { gap: 4px; padding: 4px 4px 4px 10px; }
748
+ .report-actions { padding-inline-start: 4px; gap: 4px; }
749
+ .export-remote .evidence-button { padding-inline: 8px; }
750
+ .clear-selection { padding-inline: 6px; }
751
+ .selection-count { font-size: var(--al-text-xs); }
752
+ }
753
+
754
+ .case-report { max-width: 960px; }
755
+ .case-report .summary { grid-column: auto; }
756
+ .case-report .counts { flex-flow: row wrap; }
757
+ .case-report .logic-title { overflow: visible; white-space: normal; }
758
+ .case-report .screenshot-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
759
+ .case-report .shot { max-height: 520px; }
760
+ .report-evidence { display: grid; gap: 12px; min-width: 0; }
761
+ .report-print-frame { position: fixed; width: 0; height: 0; border: 0; }
762
+
763
+ @media print {
764
+ .case-report {
765
+ display: block;
766
+ max-width: none;
767
+ padding: 0;
768
+ print-color-adjust: exact;
769
+ }
770
+ .case-report .summary, .case-report .exhibit { break-inside: avoid; page-break-inside: avoid; }
771
+ .report-evidence, .case-report .timeline { display: block; }
772
+ .report-evidence h2 { margin-block: 12px 8px; break-after: avoid; }
773
+ .case-report .exhibit + .exhibit { margin-block-start: var(--timeline-gap); }
774
+ .case-report .shot { max-height: 145mm; }
425
775
  }