@echothink-ui/documents 0.1.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/src/styles.css ADDED
@@ -0,0 +1,962 @@
1
+ @import "@echothink-ui/core/styles.css";
2
+
3
+ .eth-doc-editor-shell {
4
+ --eth-doc-editor-shell-padding: var(--eth-space-lg);
5
+ --eth-doc-editor-shell-page-padding: var(--eth-space-2xl);
6
+ --eth-doc-editor-shell-min-block: 32rem;
7
+
8
+ background: var(--eth-color-layer-01);
9
+ border: 1px solid var(--eth-color-border-subtle);
10
+ color: var(--eth-color-text-primary);
11
+ display: grid;
12
+ font-family: var(--eth-font-family), "IBM Plex Sans", sans-serif;
13
+ inline-size: 100%;
14
+ min-inline-size: 0;
15
+ overflow: hidden;
16
+ }
17
+
18
+ .eth-doc-editor-shell--compact {
19
+ --eth-doc-editor-shell-padding: var(--eth-space-md);
20
+ --eth-doc-editor-shell-page-padding: var(--eth-space-xl);
21
+ --eth-doc-editor-shell-min-block: 28rem;
22
+ }
23
+
24
+ .eth-doc-editor-shell--comfortable {
25
+ --eth-doc-editor-shell-padding: var(--eth-space-xl);
26
+ --eth-doc-editor-shell-page-padding: var(--eth-space-3xl);
27
+ --eth-doc-editor-shell-min-block: 36rem;
28
+ }
29
+
30
+ .eth-doc-editor-shell__bar {
31
+ align-items: flex-start;
32
+ background: var(--eth-color-layer-01);
33
+ border-block-end: 1px solid var(--eth-color-border-subtle);
34
+ display: flex;
35
+ gap: var(--eth-space-lg);
36
+ justify-content: space-between;
37
+ min-inline-size: 0;
38
+ padding: var(--eth-space-lg);
39
+ }
40
+
41
+ .eth-doc-editor-shell__title {
42
+ min-inline-size: 0;
43
+ }
44
+
45
+ .eth-doc-editor-shell__title h2 {
46
+ color: var(--eth-color-text-primary);
47
+ font-size: calc(1.75rem * var(--eth-text-scale, 1));
48
+ font-weight: 400;
49
+ letter-spacing: 0;
50
+ line-height: 1.25;
51
+ margin: 0;
52
+ overflow-wrap: anywhere;
53
+ }
54
+
55
+ .eth-doc-editor-shell__status {
56
+ align-items: center;
57
+ display: flex;
58
+ flex: 0 0 auto;
59
+ flex-wrap: wrap;
60
+ gap: var(--eth-space-sm);
61
+ justify-content: flex-end;
62
+ max-inline-size: 100%;
63
+ }
64
+
65
+ .eth-doc-lock-badge {
66
+ --eth-doc-lock-badge-block-size: 1.5rem;
67
+
68
+ display: inline-flex;
69
+ max-inline-size: 100%;
70
+ min-inline-size: 0;
71
+ vertical-align: middle;
72
+ }
73
+
74
+ .eth-doc-lock-badge--comfortable {
75
+ --eth-doc-lock-badge-block-size: 1.75rem;
76
+ }
77
+
78
+ .eth-doc-lock-badge__tag {
79
+ block-size: var(--eth-doc-lock-badge-block-size);
80
+ margin: 0;
81
+ max-inline-size: 100%;
82
+ }
83
+
84
+ .eth-doc-lock-badge__tag .cds--tag__label {
85
+ align-items: center;
86
+ display: inline-flex;
87
+ max-inline-size: min(20rem, 100%);
88
+ min-inline-size: 0;
89
+ }
90
+
91
+ .eth-doc-lock-badge__content {
92
+ align-items: center;
93
+ display: inline-flex;
94
+ gap: var(--eth-space-xs);
95
+ max-inline-size: 100%;
96
+ min-inline-size: 0;
97
+ }
98
+
99
+ .eth-doc-lock-badge__icon {
100
+ block-size: 0.75rem;
101
+ flex: 0 0 auto;
102
+ inline-size: 0.75rem;
103
+ }
104
+
105
+ .eth-doc-lock-badge__label,
106
+ .eth-doc-lock-badge__detail {
107
+ min-inline-size: 0;
108
+ overflow: hidden;
109
+ text-overflow: ellipsis;
110
+ white-space: nowrap;
111
+ }
112
+
113
+ .eth-doc-lock-badge__label {
114
+ font-weight: 600;
115
+ }
116
+
117
+ .eth-doc-lock-badge__detail {
118
+ color: color-mix(in srgb, currentColor 72%, var(--eth-color-text-secondary));
119
+ font-weight: 400;
120
+ }
121
+
122
+ .eth-doc-lock-badge__tag--locked-by-agent {
123
+ background-color: var(--eth-color-warning, #fcf4d6);
124
+ color: #684e00;
125
+ }
126
+
127
+ .eth-doc-editor-shell__toolbar {
128
+ background: var(--eth-color-layer-02);
129
+ border-block-end: 1px solid var(--eth-color-border-subtle);
130
+ inline-size: 100%;
131
+ min-inline-size: 0;
132
+ overflow-x: auto;
133
+ }
134
+
135
+ .eth-doc-toolbar {
136
+ align-items: center;
137
+ background: var(--eth-color-layer-01);
138
+ border: 1px solid var(--eth-color-border-subtle);
139
+ display: flex;
140
+ flex-wrap: wrap;
141
+ gap: 0;
142
+ inline-size: 100%;
143
+ min-block-size: 3rem;
144
+ min-inline-size: 0;
145
+ padding-inline: var(--eth-space-xs);
146
+ }
147
+
148
+ .eth-doc-toolbar:empty {
149
+ display: none;
150
+ }
151
+
152
+ .eth-doc-toolbar__group {
153
+ align-items: center;
154
+ display: flex;
155
+ flex: 0 1 auto;
156
+ flex-wrap: wrap;
157
+ gap: var(--eth-space-xs);
158
+ min-block-size: 3rem;
159
+ min-inline-size: 0;
160
+ padding: var(--eth-space-sm) var(--eth-space-sm);
161
+ }
162
+
163
+ .eth-doc-toolbar__group + .eth-doc-toolbar__group {
164
+ border-inline-start: 1px solid var(--eth-color-border-subtle);
165
+ }
166
+
167
+ .eth-doc-toolbar__group--actions {
168
+ justify-content: flex-end;
169
+ margin-inline-start: auto;
170
+ }
171
+
172
+ .eth-doc-toolbar__group--mode {
173
+ gap: 0;
174
+ }
175
+
176
+ .eth-doc-toolbar__group--mode .eth-doc-toolbar__mode-button + .eth-doc-toolbar__mode-button {
177
+ margin-inline-start: -1px;
178
+ }
179
+
180
+ .eth-doc-toolbar__mode-button.eth-button {
181
+ min-inline-size: 4.5rem;
182
+ }
183
+
184
+ .eth-doc-toolbar__action.eth-button {
185
+ min-inline-size: max-content;
186
+ }
187
+
188
+ .eth-doc-toolbar__action .eth-button__icon,
189
+ .eth-doc-toolbar__action-icon,
190
+ .eth-doc-toolbar__icon-link .eth-button__icon {
191
+ align-items: center;
192
+ display: inline-flex;
193
+ flex: 0 0 auto;
194
+ justify-content: center;
195
+ }
196
+
197
+ .eth-doc-toolbar__action-icon {
198
+ margin-inline-end: var(--eth-space-sm);
199
+ }
200
+
201
+ .eth-doc-toolbar__format-symbol {
202
+ align-items: center;
203
+ color: currentcolor;
204
+ display: inline-flex;
205
+ font-family: var(--eth-font-family);
206
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
207
+ font-style: normal;
208
+ font-weight: 600;
209
+ inline-size: 1rem;
210
+ justify-content: center;
211
+ line-height: 1;
212
+ }
213
+
214
+ .eth-doc-toolbar__format-symbol--underline {
215
+ text-decoration: underline;
216
+ text-underline-offset: 0.125rem;
217
+ }
218
+
219
+ .eth-doc-toolbar__format-symbol--strike {
220
+ text-decoration: line-through;
221
+ }
222
+
223
+ .eth-doc-toolbar__icon-link {
224
+ align-items: center;
225
+ block-size: 2.5rem;
226
+ color: var(--eth-color-link);
227
+ display: inline-flex;
228
+ inline-size: 2.5rem;
229
+ justify-content: center;
230
+ min-inline-size: 2.5rem;
231
+ padding: 0;
232
+ text-decoration: none;
233
+ }
234
+
235
+ .eth-doc-toolbar__icon-link:hover {
236
+ background: var(--eth-color-layer-hover);
237
+ }
238
+
239
+ .eth-doc-toolbar__link--disabled {
240
+ color: var(--eth-color-text-helper);
241
+ cursor: not-allowed;
242
+ opacity: 0.55;
243
+ pointer-events: none;
244
+ }
245
+
246
+ @media (width <= 42rem) {
247
+ .eth-doc-toolbar {
248
+ align-items: stretch;
249
+ padding-inline: 0;
250
+ }
251
+
252
+ .eth-doc-toolbar__group,
253
+ .eth-doc-toolbar__group--actions {
254
+ inline-size: 100%;
255
+ justify-content: flex-start;
256
+ margin-inline-start: 0;
257
+ }
258
+
259
+ .eth-doc-toolbar__group + .eth-doc-toolbar__group {
260
+ border-block-start: 1px solid var(--eth-color-border-subtle);
261
+ border-inline-start: 0;
262
+ }
263
+
264
+ .eth-doc-toolbar__group--actions .eth-doc-toolbar__action.eth-button {
265
+ flex: 1 1 9rem;
266
+ }
267
+ }
268
+
269
+ .eth-doc-editor-shell__grid {
270
+ align-items: start;
271
+ background: var(--eth-color-background);
272
+ display: grid;
273
+ gap: var(--eth-space-lg);
274
+ grid-template-columns: var(--eth-doc-editor-shell-grid-template, minmax(0, 1fr));
275
+ min-block-size: var(--eth-doc-editor-shell-min-block);
276
+ min-inline-size: 0;
277
+ padding: var(--eth-doc-editor-shell-padding);
278
+ }
279
+
280
+ .eth-doc-editor-shell__outline,
281
+ .eth-doc-editor-shell__editor,
282
+ .eth-doc-editor-shell__inspector {
283
+ min-inline-size: 0;
284
+ }
285
+
286
+ .eth-doc-editor-shell__editor {
287
+ background: var(--eth-color-layer-01);
288
+ border: 1px solid var(--eth-color-border-subtle);
289
+ min-block-size: calc(var(--eth-doc-editor-shell-min-block) - 2rem);
290
+ overflow: auto;
291
+ padding: var(--eth-doc-editor-shell-page-padding);
292
+ }
293
+
294
+ .eth-doc-editor-shell__editor :where(h1, h2, h3, p, ul, ol) {
295
+ max-inline-size: 46rem;
296
+ }
297
+
298
+ .eth-doc-editor-shell__editor :where(h1, h2, h3) {
299
+ color: var(--eth-color-text-primary);
300
+ font-weight: 400;
301
+ letter-spacing: 0;
302
+ margin-block: 0 var(--eth-space-md);
303
+ }
304
+
305
+ .eth-doc-editor-shell__editor :where(h1) {
306
+ font-size: calc(2.625rem * var(--eth-text-scale, 1));
307
+ line-height: 1.19;
308
+ }
309
+
310
+ .eth-doc-editor-shell__editor :where(h2) {
311
+ font-size: calc(1.75rem * var(--eth-text-scale, 1));
312
+ line-height: 1.2857;
313
+ margin-block-start: var(--eth-space-2xl);
314
+ }
315
+
316
+ .eth-doc-editor-shell__editor :where(h3) {
317
+ font-size: calc(1rem * var(--eth-text-scale, 1));
318
+ font-weight: 600;
319
+ line-height: 1.375;
320
+ margin-block-start: var(--eth-space-xl);
321
+ }
322
+
323
+ .eth-doc-editor-shell__editor :where(p, li) {
324
+ color: var(--eth-color-text-primary);
325
+ font-size: calc(1rem * var(--eth-text-scale, 1));
326
+ line-height: 1.5;
327
+ }
328
+
329
+ .eth-doc-editor-shell__editor :where(p) {
330
+ margin-block: 0 var(--eth-space-lg);
331
+ }
332
+
333
+ .eth-doc-editor-shell__inspector {
334
+ background: var(--eth-color-layer-01);
335
+ border: 1px solid var(--eth-color-border-subtle);
336
+ color: var(--eth-color-text-primary);
337
+ min-block-size: calc(var(--eth-doc-editor-shell-min-block) - 2rem);
338
+ }
339
+
340
+ .eth-doc-editor-shell__inspector-stack {
341
+ display: grid;
342
+ }
343
+
344
+ .eth-doc-editor-shell__inspector > :not(.eth-doc-editor-shell__inspector-stack) {
345
+ margin: 0;
346
+ padding: var(--eth-space-lg);
347
+ }
348
+
349
+ .eth-doc-editor-shell__inspector-stack > section {
350
+ border-block-end: 1px solid var(--eth-color-border-subtle);
351
+ display: grid;
352
+ gap: var(--eth-space-md);
353
+ padding: var(--eth-space-lg);
354
+ }
355
+
356
+ .eth-doc-editor-shell__inspector-stack > section:last-child {
357
+ border-block-end: 0;
358
+ }
359
+
360
+ .eth-doc-editor-shell__inspector :where(h3) {
361
+ color: var(--eth-color-text-primary);
362
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
363
+ font-weight: 600;
364
+ line-height: 1.4286;
365
+ margin: 0;
366
+ }
367
+
368
+ .eth-doc-editor-shell__inspector :where(p, li, dd, dt) {
369
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
370
+ line-height: 1.4286;
371
+ }
372
+
373
+ .eth-doc-editor-shell__inspector :where(p, ul, ol, dl) {
374
+ margin: 0;
375
+ }
376
+
377
+ .eth-doc-editor-shell__inspector :where(ul, ol) {
378
+ display: grid;
379
+ gap: var(--eth-space-sm);
380
+ padding-inline-start: var(--eth-space-lg);
381
+ }
382
+
383
+ .eth-doc-editor-shell__inspector :where(dl) {
384
+ display: grid;
385
+ gap: var(--eth-space-sm);
386
+ }
387
+
388
+ .eth-doc-editor-shell__inspector :where(dl > div) {
389
+ display: grid;
390
+ gap: var(--eth-space-2xs);
391
+ }
392
+
393
+ .eth-doc-editor-shell__inspector :where(dt) {
394
+ color: var(--eth-color-text-secondary);
395
+ }
396
+
397
+ .eth-doc-editor-shell__inspector :where(dd) {
398
+ color: var(--eth-color-text-primary);
399
+ font-weight: 600;
400
+ margin: 0;
401
+ }
402
+
403
+ .eth-doc-outline {
404
+ background: var(--eth-color-layer-01);
405
+ border: 1px solid var(--eth-color-border-subtle);
406
+ color: var(--eth-color-text-primary);
407
+ display: grid;
408
+ inline-size: 100%;
409
+ max-inline-size: 20rem;
410
+ min-inline-size: 14rem;
411
+ overflow: hidden;
412
+ }
413
+
414
+ .eth-doc-outline__header {
415
+ align-items: baseline;
416
+ background: var(--eth-color-layer-02);
417
+ border-block-end: 1px solid var(--eth-color-border-subtle);
418
+ display: flex;
419
+ gap: var(--eth-space-md);
420
+ justify-content: space-between;
421
+ min-inline-size: 0;
422
+ padding: var(--eth-space-md) var(--eth-space-lg);
423
+ }
424
+
425
+ .eth-doc-outline__label {
426
+ color: var(--eth-color-text-primary);
427
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
428
+ font-weight: 600;
429
+ line-height: 1.3333;
430
+ overflow: hidden;
431
+ text-overflow: ellipsis;
432
+ text-transform: uppercase;
433
+ white-space: nowrap;
434
+ }
435
+
436
+ .eth-doc-outline__count {
437
+ color: var(--eth-color-text-secondary);
438
+ flex: 0 0 auto;
439
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
440
+ line-height: 1.3333;
441
+ white-space: nowrap;
442
+ }
443
+
444
+ .eth-doc-outline__list {
445
+ display: grid;
446
+ list-style: none;
447
+ margin: 0;
448
+ min-inline-size: 0;
449
+ padding: var(--eth-space-xs) 0;
450
+ }
451
+
452
+ .eth-doc-outline__list .eth-doc-outline__list {
453
+ border-inline-start: 1px solid var(--eth-color-border-subtle);
454
+ margin-inline-start: var(--eth-space-lg);
455
+ padding-block: 0;
456
+ }
457
+
458
+ .eth-doc-outline__item {
459
+ min-inline-size: 0;
460
+ position: relative;
461
+ }
462
+
463
+ .eth-doc-outline__link {
464
+ align-items: center;
465
+ color: var(--eth-color-text-primary);
466
+ display: flex;
467
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
468
+ gap: var(--eth-space-sm);
469
+ line-height: 1.4286;
470
+ min-block-size: 2rem;
471
+ min-inline-size: 0;
472
+ padding: var(--eth-space-sm) var(--eth-space-lg);
473
+ position: relative;
474
+ text-decoration: none;
475
+ }
476
+
477
+ .eth-doc-outline__link:hover {
478
+ background: var(--eth-color-layer-hover);
479
+ color: var(--eth-color-text-primary);
480
+ }
481
+
482
+ .eth-doc-outline__link:focus-visible {
483
+ outline: 2px solid var(--eth-color-focus);
484
+ outline-offset: -2px;
485
+ }
486
+
487
+ .eth-doc-outline__text {
488
+ min-inline-size: 0;
489
+ overflow-wrap: anywhere;
490
+ }
491
+
492
+ .eth-doc-outline__item--level-1 > .eth-doc-outline__link {
493
+ font-weight: 600;
494
+ }
495
+
496
+ .eth-doc-outline__item--level-3 > .eth-doc-outline__link,
497
+ .eth-doc-outline__item--level-4 > .eth-doc-outline__link {
498
+ color: var(--eth-color-text-secondary);
499
+ font-size: calc(0.8125rem * var(--eth-text-scale, 1));
500
+ }
501
+
502
+ .eth-doc-outline__item--active > .eth-doc-outline__link {
503
+ background: var(--eth-color-layer-selected);
504
+ box-shadow: inset 3px 0 0 var(--eth-color-interactive-primary);
505
+ color: var(--eth-color-text-primary);
506
+ font-weight: 600;
507
+ }
508
+
509
+ .eth-doc-outline__item--active > .eth-doc-outline__link:hover {
510
+ background: var(--eth-color-layer-selected);
511
+ }
512
+
513
+ .eth-doc-outline__item--contains-active > .eth-doc-outline__link {
514
+ color: var(--eth-color-text-primary);
515
+ }
516
+
517
+ .eth-doc-outline__empty {
518
+ border: 1px dashed var(--eth-color-border-subtle);
519
+ color: var(--eth-color-text-secondary);
520
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
521
+ line-height: 1.4286;
522
+ margin: var(--eth-space-lg);
523
+ padding: var(--eth-space-lg);
524
+ }
525
+
526
+ .eth-doc-viewer {
527
+ background: var(--eth-color-layer-01);
528
+ border: 1px solid var(--eth-color-border-subtle);
529
+ color: var(--eth-color-text-primary);
530
+ display: grid;
531
+ inline-size: 100%;
532
+ min-inline-size: 0;
533
+ }
534
+
535
+ .eth-doc-viewer__header {
536
+ align-items: flex-start;
537
+ background: var(--eth-color-layer-02);
538
+ border-block-end: 1px solid var(--eth-color-border-subtle);
539
+ display: flex;
540
+ gap: var(--eth-space-lg);
541
+ justify-content: space-between;
542
+ padding: var(--eth-space-lg) var(--eth-space-xl);
543
+ }
544
+
545
+ .eth-doc-viewer__header h2 {
546
+ color: var(--eth-color-text-primary);
547
+ font-size: calc(1.25rem * var(--eth-text-scale, 1));
548
+ font-weight: 600;
549
+ letter-spacing: 0;
550
+ line-height: 1.4;
551
+ margin: 0;
552
+ overflow-wrap: anywhere;
553
+ }
554
+
555
+ .eth-doc-viewer__metadata.eth-meta-grid {
556
+ background: var(--eth-color-layer-01);
557
+ border: 0;
558
+ border-block-end: 1px solid var(--eth-color-border-subtle);
559
+ display: flex;
560
+ flex-wrap: wrap;
561
+ }
562
+
563
+ .eth-doc-viewer__metadata.eth-meta-grid div {
564
+ border-inline-end: 1px solid var(--eth-color-border-subtle);
565
+ flex: 0 1 13rem;
566
+ min-inline-size: 11rem;
567
+ padding: var(--eth-space-md) var(--eth-space-xl);
568
+ }
569
+
570
+ .eth-doc-viewer__metadata.eth-meta-grid dt {
571
+ color: var(--eth-color-text-secondary);
572
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
573
+ line-height: 1.3333;
574
+ }
575
+
576
+ .eth-doc-viewer__metadata.eth-meta-grid dd {
577
+ color: var(--eth-color-text-primary);
578
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
579
+ font-weight: 600;
580
+ line-height: 1.4286;
581
+ overflow-wrap: anywhere;
582
+ }
583
+
584
+ .eth-doc-viewer__body {
585
+ display: grid;
586
+ grid-template-columns: minmax(0, 1fr);
587
+ min-inline-size: 0;
588
+ }
589
+
590
+ .eth-doc-viewer--with-annotations .eth-doc-viewer__body {
591
+ grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
592
+ }
593
+
594
+ .eth-doc-viewer__content {
595
+ min-inline-size: 0;
596
+ padding: var(--eth-space-xl);
597
+ }
598
+
599
+ .eth-doc-viewer--with-annotations .eth-doc-viewer__content {
600
+ border-inline-end: 1px solid var(--eth-color-border-subtle);
601
+ }
602
+
603
+ .eth-doc-viewer__content > :first-child {
604
+ margin-block-start: 0;
605
+ }
606
+
607
+ .eth-doc-viewer__content > :last-child {
608
+ margin-block-end: 0;
609
+ }
610
+
611
+ .eth-doc-viewer__content :where(article) {
612
+ display: grid;
613
+ gap: var(--eth-space-xl);
614
+ max-inline-size: 50rem;
615
+ }
616
+
617
+ .eth-doc-viewer__content :where(section) {
618
+ display: grid;
619
+ gap: var(--eth-space-sm);
620
+ }
621
+
622
+ .eth-doc-viewer__content :where(h1, h2, h3, h4, p, ul, ol, blockquote, pre) {
623
+ margin: 0;
624
+ }
625
+
626
+ .eth-doc-viewer__content :where(h1) {
627
+ color: var(--eth-color-text-primary);
628
+ font-size: calc(1.75rem * var(--eth-text-scale, 1));
629
+ font-weight: 400;
630
+ letter-spacing: 0;
631
+ line-height: 1.2857;
632
+ }
633
+
634
+ .eth-doc-viewer__content :where(h2) {
635
+ color: var(--eth-color-text-primary);
636
+ font-size: calc(1rem * var(--eth-text-scale, 1));
637
+ font-weight: 600;
638
+ letter-spacing: 0;
639
+ line-height: 1.375;
640
+ }
641
+
642
+ .eth-doc-viewer__content :where(h3, h4) {
643
+ color: var(--eth-color-text-primary);
644
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
645
+ font-weight: 600;
646
+ letter-spacing: 0;
647
+ line-height: 1.4286;
648
+ }
649
+
650
+ .eth-doc-viewer__content :where(p, li) {
651
+ color: var(--eth-color-text-primary);
652
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
653
+ line-height: 1.5715;
654
+ }
655
+
656
+ .eth-doc-viewer__content :where(ul, ol) {
657
+ display: grid;
658
+ gap: var(--eth-space-xs);
659
+ padding-inline-start: var(--eth-space-xl);
660
+ }
661
+
662
+ .eth-doc-viewer__content :where(a) {
663
+ color: var(--eth-color-link);
664
+ text-decoration: underline;
665
+ text-underline-offset: 0.125rem;
666
+ }
667
+
668
+ .eth-doc-viewer__content :where(a:focus-visible) {
669
+ outline: 2px solid var(--eth-color-focus);
670
+ outline-offset: 2px;
671
+ }
672
+
673
+ .eth-doc-viewer__annotations {
674
+ background: var(--eth-color-layer-02);
675
+ min-inline-size: 0;
676
+ padding: var(--eth-space-lg);
677
+ }
678
+
679
+ .eth-doc-viewer__annotations h3 {
680
+ color: var(--eth-color-text-primary);
681
+ font-size: calc(1rem * var(--eth-text-scale, 1));
682
+ font-weight: 600;
683
+ letter-spacing: 0;
684
+ line-height: 1.375;
685
+ margin: 0 0 var(--eth-space-md);
686
+ }
687
+
688
+ .eth-doc-viewer__annotations ul {
689
+ display: grid;
690
+ gap: var(--eth-space-md);
691
+ list-style: none;
692
+ margin: 0;
693
+ padding: 0;
694
+ }
695
+
696
+ .eth-doc-viewer__annotation {
697
+ background: var(--eth-color-layer-01);
698
+ border: 1px solid var(--eth-color-border-subtle);
699
+ padding: var(--eth-space-md);
700
+ }
701
+
702
+ .eth-doc-viewer__annotation-header {
703
+ align-items: center;
704
+ display: flex;
705
+ flex-wrap: wrap;
706
+ gap: var(--eth-space-sm);
707
+ }
708
+
709
+ .eth-doc-viewer__annotation-header strong {
710
+ color: var(--eth-color-text-primary);
711
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
712
+ font-weight: 600;
713
+ line-height: 1.4286;
714
+ min-inline-size: 0;
715
+ }
716
+
717
+ .eth-doc-viewer__annotation-header .cds--tag {
718
+ margin: 0;
719
+ }
720
+
721
+ .eth-doc-viewer__annotation-header time {
722
+ color: var(--eth-color-text-secondary);
723
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
724
+ line-height: 1.3333;
725
+ margin-inline-start: auto;
726
+ white-space: nowrap;
727
+ }
728
+
729
+ .eth-doc-viewer__annotation p {
730
+ color: var(--eth-color-text-primary);
731
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
732
+ line-height: 1.4286;
733
+ margin: var(--eth-space-sm) 0 0;
734
+ }
735
+
736
+ .eth-doc-agent-lock-panel {
737
+ inline-size: 100%;
738
+ max-inline-size: 62rem;
739
+ }
740
+
741
+ .eth-doc-agent-lock-panel .eth-surface__subtitle {
742
+ max-inline-size: 48rem;
743
+ }
744
+
745
+ .eth-doc-agent-lock-panel .eth-meta-grid {
746
+ background: var(--eth-color-layer-02);
747
+ }
748
+
749
+ .eth-doc-agent-lock-panel .eth-meta-grid dd {
750
+ align-items: center;
751
+ display: flex;
752
+ gap: var(--eth-space-sm);
753
+ min-block-size: 1.5rem;
754
+ min-inline-size: 0;
755
+ }
756
+
757
+ .eth-doc-agent-lock-panel .eth-meta-grid .cds--tag {
758
+ margin: 0;
759
+ }
760
+
761
+ .eth-doc-agent-lock-panel__notice .cds--inline-notification {
762
+ inline-size: 100%;
763
+ margin: 0;
764
+ max-inline-size: none;
765
+ }
766
+
767
+ .eth-doc-agent-lock-panel__changes-section {
768
+ display: grid;
769
+ gap: var(--eth-space-md);
770
+ }
771
+
772
+ .eth-doc-agent-lock-panel__changes-header {
773
+ align-items: center;
774
+ display: flex;
775
+ gap: var(--eth-space-md);
776
+ justify-content: space-between;
777
+ }
778
+
779
+ .eth-doc-agent-lock-panel__changes-header h3 {
780
+ color: var(--eth-color-text-primary);
781
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
782
+ font-weight: 600;
783
+ line-height: 1.4286;
784
+ margin: 0;
785
+ }
786
+
787
+ .eth-doc-agent-lock-panel__count {
788
+ color: var(--eth-color-text-secondary);
789
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
790
+ line-height: 1.3333;
791
+ white-space: nowrap;
792
+ }
793
+
794
+ .eth-doc-agent-lock-panel__changes {
795
+ background: var(--eth-color-layer-02);
796
+ border: 1px solid var(--eth-color-border-subtle);
797
+ counter-reset: pending-change;
798
+ display: grid;
799
+ list-style: none;
800
+ margin: 0;
801
+ padding: 0;
802
+ }
803
+
804
+ .eth-doc-agent-lock-panel__change {
805
+ border-block-end: 1px solid var(--eth-color-border-subtle);
806
+ counter-increment: pending-change;
807
+ display: grid;
808
+ gap: var(--eth-space-md);
809
+ grid-template-columns: 1.5rem minmax(0, 1fr);
810
+ padding: var(--eth-space-md);
811
+ }
812
+
813
+ .eth-doc-agent-lock-panel__change:last-child {
814
+ border-block-end: 0;
815
+ }
816
+
817
+ .eth-doc-agent-lock-panel__change::before {
818
+ align-items: center;
819
+ background: var(--eth-color-layer-01);
820
+ block-size: 1.5rem;
821
+ border: 1px solid var(--eth-color-border-subtle);
822
+ color: var(--eth-color-text-secondary);
823
+ content: counter(pending-change);
824
+ display: inline-flex;
825
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
826
+ font-weight: 600;
827
+ inline-size: 1.5rem;
828
+ justify-content: center;
829
+ line-height: 1;
830
+ }
831
+
832
+ .eth-doc-agent-lock-panel__change-body {
833
+ display: grid;
834
+ gap: var(--eth-space-sm);
835
+ min-inline-size: 0;
836
+ }
837
+
838
+ .eth-doc-agent-lock-panel__summary {
839
+ color: var(--eth-color-text-primary);
840
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
841
+ font-weight: 600;
842
+ line-height: 1.4286;
843
+ overflow-wrap: anywhere;
844
+ }
845
+
846
+ .eth-doc-agent-lock-panel__diff {
847
+ background: var(--eth-color-layer-01);
848
+ border-inline-start: 3px solid var(--eth-color-border-strong);
849
+ color: var(--eth-color-text-secondary);
850
+ font-family: var(--eth-font-mono);
851
+ font-size: calc(0.75rem * var(--eth-text-scale, 1));
852
+ line-height: 1.3333;
853
+ margin: 0;
854
+ max-block-size: 12rem;
855
+ overflow: auto;
856
+ padding: var(--eth-space-sm) var(--eth-space-md);
857
+ white-space: pre-wrap;
858
+ }
859
+
860
+ .eth-doc-agent-lock-panel__empty {
861
+ border: 1px dashed var(--eth-color-border-subtle);
862
+ color: var(--eth-color-text-secondary);
863
+ font-size: calc(0.875rem * var(--eth-text-scale, 1));
864
+ line-height: 1.4286;
865
+ margin: 0;
866
+ padding: var(--eth-space-lg);
867
+ }
868
+
869
+ .eth-doc-agent-lock-panel__actions {
870
+ border-block-start: 1px solid var(--eth-color-border-subtle);
871
+ justify-content: flex-end;
872
+ padding-block-start: var(--eth-space-lg);
873
+ }
874
+
875
+ @media (width <= 42rem) {
876
+ .eth-doc-editor-shell__bar {
877
+ align-items: stretch;
878
+ flex-direction: column;
879
+ }
880
+
881
+ .eth-doc-editor-shell__status {
882
+ justify-content: flex-start;
883
+ }
884
+
885
+ .eth-doc-toolbar {
886
+ min-inline-size: 100%;
887
+ }
888
+
889
+ .eth-doc-toolbar__group,
890
+ .eth-doc-toolbar__group--mode {
891
+ border-inline: 0;
892
+ border-block-end: 1px solid var(--eth-color-border-subtle);
893
+ inline-size: 100%;
894
+ margin-inline-start: 0;
895
+ overflow-x: auto;
896
+ }
897
+
898
+ .eth-doc-toolbar__group:last-child {
899
+ border-block-end: 0;
900
+ }
901
+
902
+ .eth-doc-editor-shell__grid {
903
+ grid-template-columns: minmax(0, 1fr);
904
+ }
905
+
906
+ .eth-doc-editor-shell__editor,
907
+ .eth-doc-editor-shell__inspector {
908
+ min-block-size: auto;
909
+ }
910
+
911
+ .eth-doc-outline {
912
+ max-inline-size: none;
913
+ min-inline-size: 0;
914
+ }
915
+
916
+ .eth-doc-outline__header {
917
+ align-items: flex-start;
918
+ flex-direction: column;
919
+ gap: var(--eth-space-xs);
920
+ }
921
+
922
+ .eth-doc-viewer__header,
923
+ .eth-doc-viewer__content,
924
+ .eth-doc-viewer__annotations {
925
+ padding-inline: var(--eth-space-lg);
926
+ }
927
+
928
+ .eth-doc-viewer__metadata.eth-meta-grid div {
929
+ flex: 1 1 11rem;
930
+ padding-inline: var(--eth-space-lg);
931
+ }
932
+
933
+ .eth-doc-viewer--with-annotations .eth-doc-viewer__body {
934
+ grid-template-columns: minmax(0, 1fr);
935
+ }
936
+
937
+ .eth-doc-viewer--with-annotations .eth-doc-viewer__content {
938
+ border-block-end: 1px solid var(--eth-color-border-subtle);
939
+ border-inline-end: 0;
940
+ }
941
+
942
+ .eth-doc-viewer__annotation-header time {
943
+ margin-inline-start: 0;
944
+ white-space: normal;
945
+ }
946
+
947
+ .eth-doc-agent-lock-panel__changes-header {
948
+ align-items: flex-start;
949
+ flex-direction: column;
950
+ gap: var(--eth-space-xs);
951
+ }
952
+
953
+ .eth-doc-agent-lock-panel__actions {
954
+ align-items: stretch;
955
+ flex-direction: column;
956
+ justify-content: flex-start;
957
+ }
958
+
959
+ .eth-doc-agent-lock-panel__actions .eth-button {
960
+ inline-size: 100%;
961
+ }
962
+ }