@things-factory/figure-viewer 10.1.175 → 10.1.176

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.
@@ -16,7 +16,7 @@ import { css } from 'lit'
16
16
  * what they titled): a title at the body token and semibold, everything else at the small token, and a hint at the
17
17
  * micro one. Sections are 16 px above their title and 12 px below their last line.
18
18
  * div[inline-field] a short label and its one field on one line
19
- * div[field] a label above a full-width field
19
+ * div[field] a label and its field on one line; what else the field holds stands under the field
20
20
  * div[form] short labels beside their fields, the fields starting on one line
21
21
  * div[vector-row] a title, then X · Y · Z in one row of cells with the axis inside (`div[triple]` of
22
22
  * `div[cell]`) -- three values read together, as vector tools lay them out
@@ -28,19 +28,29 @@ import { css } from 'lit'
28
28
  */
29
29
  export const SidePanelStyles = css`
30
30
  :host {
31
- --figure-control-height: 30px;
31
+ /*
32
+ * A field's measure (user 2026-10-17: 「공간 낭비가 심하다 … 둔한 라운드와 여백」): 26px high, a 4px corner, and the
33
+ * label's column. Labels and fields share a line, so a group reads as a list to scan, not a form to fill.
34
+ */
35
+ --figure-control-height: 26px;
36
+ --figure-control-radius: 4px;
37
+ --figure-label-width: 72px;
32
38
  font-size: var(--ui-t-small, 11.5px);
33
39
  color: var(--md-sys-color-on-surface);
34
40
  }
35
41
  /* The side is a stack of sections, each a titled group. */
42
+ /*
43
+ * Tight inside a group, loose between groups: rows 6px apart, so a group reads as one thing; groups parted by their
44
+ * line and 16px, so the eye knows where the next one starts (user 2026-10-17: no tension and release).
45
+ */
36
46
  section {
37
47
  display: grid;
38
- gap: 8px;
39
- padding: 16px 12px 12px;
40
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
48
+ gap: 6px;
49
+ padding: 16px 12px;
50
+ border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
41
51
  }
42
52
  section > h3 {
43
- margin: 0;
53
+ margin: 0 0 4px;
44
54
  }
45
55
  section div[field] + div[field],
46
56
  section div[inline-field] + div[inline-field],
@@ -69,9 +79,24 @@ export const SidePanelStyles = css`
69
79
  font-size: inherit;
70
80
  color: var(--md-sys-color-on-surface-variant);
71
81
  }
82
+ /* The label on the left, its field on the right; a hint or a second row under the field, in the field's column. */
72
83
  div[field] {
73
84
  display: grid;
74
- gap: 2px;
85
+ grid-template-columns: var(--figure-label-width) minmax(0, 1fr);
86
+ align-items: center;
87
+ gap: 4px 8px;
88
+ }
89
+ div[field] > * {
90
+ grid-column: 2;
91
+ }
92
+ div[field] > label {
93
+ grid-column: 1;
94
+ overflow-wrap: anywhere;
95
+ }
96
+ /* A field with no label -- an action and its note -- and a checkbox with its words take the whole line. */
97
+ div[field]:not(:has(> label:not([toggle]))) > *,
98
+ div[field] > label[toggle] {
99
+ grid-column: 1 / -1;
75
100
  }
76
101
  div[field] + div[field],
77
102
  div[field] + div[form],
@@ -79,15 +104,15 @@ export const SidePanelStyles = css`
79
104
  div[vector-row] + div[vector-row],
80
105
  div[vector-row] + div[field],
81
106
  div[field] + div[vector-row] {
82
- margin-top: 5px;
107
+ margin-top: 6px;
83
108
  }
84
109
  div[form],
85
110
  div[inline-field],
86
111
  div[vector-row] {
87
112
  display: grid;
88
- grid-template-columns: 64px minmax(0, 1fr);
113
+ grid-template-columns: var(--figure-label-width) minmax(0, 1fr);
89
114
  align-items: center;
90
- gap: 5px 7px;
115
+ gap: 6px 8px;
91
116
  }
92
117
  div[form] > span,
93
118
  div[inline-field] > label,
@@ -118,14 +143,15 @@ export const SidePanelStyles = css`
118
143
  flex-wrap: wrap;
119
144
  gap: 4px;
120
145
  }
146
+ /* Words, no box: a row of tools reads as a row of words, each lit under the hand. */
121
147
  div[tools] button {
122
148
  height: var(--figure-control-height);
123
- padding: 0 10px;
149
+ padding: 0 6px;
124
150
  font: inherit;
125
151
  color: var(--md-sys-color-on-surface);
126
- background: var(--md-sys-color-surface-container-lowest);
127
- border: 1px solid var(--md-sys-color-outline-variant);
128
- border-radius: 6px;
152
+ background: none;
153
+ border: none;
154
+ border-radius: var(--figure-control-radius);
129
155
  cursor: pointer;
130
156
  }
131
157
  div[tools] button:hover:not(:disabled) {
@@ -148,18 +174,28 @@ export const SidePanelStyles = css`
148
174
  grid-template-columns: repeat(3, minmax(0, 1fr));
149
175
  gap: 4px;
150
176
  }
177
+ /*
178
+ * A field is a line, not a box: its value over one thin rule, the rule darkening under the hand and turning the
179
+ * primary colour, twice as thick, with the focus. Boxed fields made the panel a stack of boxes (user 2026-10-17:
180
+ * 「박스형 input … 난립을 완화하라 … 언더라인형의 도입」); a faint fill was tried first and still read as grey blocks.
181
+ */
151
182
  input,
152
183
  select {
153
184
  width: 100%;
154
185
  min-width: 0;
155
186
  min-height: var(--figure-control-height);
156
187
  box-sizing: border-box;
157
- padding: 4px 7px;
188
+ padding: 2px 2px;
158
189
  font: inherit;
159
190
  color: var(--md-sys-color-on-surface);
160
- background-color: var(--md-sys-color-surface-container-lowest);
161
- border: 1px solid var(--md-sys-color-outline-variant);
162
- border-radius: 6px;
191
+ background: transparent;
192
+ border: 0;
193
+ border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
194
+ border-radius: 0;
195
+ }
196
+ input:hover:not(:disabled):not(:focus),
197
+ select:hover:not(:disabled):not(:focus) {
198
+ border-bottom-color: var(--md-sys-color-on-surface-variant);
163
199
  }
164
200
  /* The browser's own box and dot, in the panel's colour. */
165
201
  input[type='checkbox'],
@@ -246,8 +282,9 @@ export const SidePanelStyles = css`
246
282
  }
247
283
  input:focus,
248
284
  select:focus {
249
- outline: 2px solid var(--md-sys-color-primary);
250
- outline-offset: -1px;
285
+ outline: none;
286
+ border-bottom-color: var(--md-sys-color-primary);
287
+ box-shadow: inset 0 -1px 0 var(--md-sys-color-primary);
251
288
  }
252
289
  input:disabled,
253
290
  select:disabled {
@@ -260,15 +297,19 @@ export const SidePanelStyles = css`
260
297
  height: var(--figure-control-height);
261
298
  align-items: center;
262
299
  gap: 2px;
263
- padding-left: 6px;
264
- background-color: var(--md-sys-color-surface-container-lowest);
265
- border: 1px solid var(--md-sys-color-outline-variant);
266
- border-radius: 6px;
300
+ padding-left: 2px;
301
+ /* The same line as every field, the axis letter at its start. */
302
+ background: transparent;
303
+ border: 0;
304
+ border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
305
+ border-radius: 0;
306
+ }
307
+ div[cell]:hover:not(:focus-within) {
308
+ border-bottom-color: var(--md-sys-color-on-surface-variant);
267
309
  }
268
310
  div[cell]:focus-within {
269
- outline: 2px solid var(--md-sys-color-primary);
270
- outline-offset: -1px;
271
- border-color: transparent;
311
+ border-bottom-color: var(--md-sys-color-primary);
312
+ box-shadow: inset 0 -1px 0 var(--md-sys-color-primary);
272
313
  }
273
314
  /* A label that scrubs its field when dragged sideways (vector tools' way). */
274
315
  [scrub] {
@@ -285,7 +326,7 @@ export const SidePanelStyles = css`
285
326
  div[cell] input {
286
327
  min-height: 0;
287
328
  height: calc(var(--figure-control-height) - 2px);
288
- padding: 4px 6px 4px 2px;
329
+ padding: 2px 2px 2px 2px;
289
330
  font-family: var(--ui-mono, ui-monospace, monospace);
290
331
  text-align: right;
291
332
  background: none;
@@ -296,9 +337,9 @@ export const SidePanelStyles = css`
296
337
  outline: none;
297
338
  }
298
339
  /* An axis a rule sets: its number, read-only, on a quieter ground (ADR-0097). */
340
+ /* A number a rule sets: its line dotted and its value in grey -- read, not edited. */
299
341
  div[cell][held] {
300
- background-color: var(--md-sys-color-surface-container);
301
- border-style: dashed;
342
+ border-bottom-style: dotted;
302
343
  }
303
344
  div[cell][held] input {
304
345
  color: var(--md-sys-color-on-surface-variant);
@@ -344,8 +385,9 @@ export const SidePanelStyles = css`
344
385
  color: var(--md-sys-color-on-surface-variant);
345
386
  }
346
387
  /*
347
- * An action under its fields: as wide as its words, not a band across the panel -- four full-width grey bars read as
348
- * four walls and none of them as the one to press (user 2026-10-01). Every one carries its icon.
388
+ * An action under its fields: its icon and words in the primary colour, no box (user 2026-10-17: 「박스형 버튼의
389
+ * 난립」). It was a band across the panel once (2026-10-01), then an outlined box; the icon and the colour say it is
390
+ * pressed, and the hover lights its ground.
349
391
  */
350
392
  button[act] {
351
393
  display: inline-flex;
@@ -355,19 +397,19 @@ export const SidePanelStyles = css`
355
397
  gap: 6px;
356
398
  width: auto;
357
399
  max-width: 100%;
358
- margin-top: 4px;
359
- padding: 0 12px;
400
+ margin: 0 0 0 -6px;
401
+ padding: 0 6px;
360
402
  min-height: var(--figure-control-height);
361
403
  font: inherit;
362
404
  color: var(--md-sys-color-primary);
363
- background-color: var(--md-sys-color-surface-container-lowest);
364
- border: 1px solid var(--md-sys-color-outline-variant);
365
- border-radius: 6px;
405
+ background: none;
406
+ border: none;
407
+ border-radius: var(--figure-control-radius);
366
408
  cursor: pointer;
367
409
  }
368
410
  /*
369
- * Taking something back -- detach, clear, back to fixed, remove a row -- in one look: words in the primary colour with
370
- * no box, so the one boxed action of a group stays the one to press (user 2026-10-16).
411
+ * Taking something back -- detach, clear, back to fixed, remove a row -- in one look: words in the label grey, no box,
412
+ * a step quieter than the group's action in the primary colour (user 2026-10-16, 2026-10-17).
371
413
  */
372
414
  button[quiet] {
373
415
  display: inline-flex;
@@ -378,10 +420,10 @@ export const SidePanelStyles = css`
378
420
  padding: 0 6px;
379
421
  margin-left: -6px;
380
422
  font: inherit;
381
- color: var(--md-sys-color-primary);
423
+ color: var(--md-sys-color-on-surface-variant);
382
424
  background: none;
383
425
  border: none;
384
- border-radius: 6px;
426
+ border-radius: var(--figure-control-radius);
385
427
  cursor: pointer;
386
428
  }
387
429
  button[quiet]:hover:not(:disabled) {
@@ -397,7 +439,7 @@ export const SidePanelStyles = css`
397
439
  height: 16px;
398
440
  }
399
441
  button[act]:hover:not(:disabled) {
400
- background-color: var(--md-sys-color-primary-container);
442
+ background-color: var(--md-sys-color-surface-container);
401
443
  }
402
444
  button[act]:disabled {
403
445
  opacity: 0.5;
@@ -14,7 +14,7 @@
14
14
  * what they titled): a title at the body token and semibold, everything else at the small token, and a hint at the
15
15
  * micro one. Sections are 16 px above their title and 12 px below their last line.
16
16
  * div[inline-field] a short label and its one field on one line
17
- * div[field] a label above a full-width field
17
+ * div[field] a label and its field on one line; what else the field holds stands under the field
18
18
  * div[form] short labels beside their fields, the fields starting on one line
19
19
  * div[vector-row] a title, then X · Y · Z in one row of cells with the axis inside (`div[triple]` of
20
20
  * `div[cell]`) -- three values read together, as vector tools lay them out
@@ -15,7 +15,7 @@ import { css } from 'lit';
15
15
  * what they titled): a title at the body token and semibold, everything else at the small token, and a hint at the
16
16
  * micro one. Sections are 16 px above their title and 12 px below their last line.
17
17
  * div[inline-field] a short label and its one field on one line
18
- * div[field] a label above a full-width field
18
+ * div[field] a label and its field on one line; what else the field holds stands under the field
19
19
  * div[form] short labels beside their fields, the fields starting on one line
20
20
  * div[vector-row] a title, then X · Y · Z in one row of cells with the axis inside (`div[triple]` of
21
21
  * `div[cell]`) -- three values read together, as vector tools lay them out
@@ -27,19 +27,29 @@ import { css } from 'lit';
27
27
  */
28
28
  export const SidePanelStyles = css `
29
29
  :host {
30
- --figure-control-height: 30px;
30
+ /*
31
+ * A field's measure (user 2026-10-17: 「공간 낭비가 심하다 … 둔한 라운드와 여백」): 26px high, a 4px corner, and the
32
+ * label's column. Labels and fields share a line, so a group reads as a list to scan, not a form to fill.
33
+ */
34
+ --figure-control-height: 26px;
35
+ --figure-control-radius: 4px;
36
+ --figure-label-width: 72px;
31
37
  font-size: var(--ui-t-small, 11.5px);
32
38
  color: var(--md-sys-color-on-surface);
33
39
  }
34
40
  /* The side is a stack of sections, each a titled group. */
41
+ /*
42
+ * Tight inside a group, loose between groups: rows 6px apart, so a group reads as one thing; groups parted by their
43
+ * line and 16px, so the eye knows where the next one starts (user 2026-10-17: no tension and release).
44
+ */
35
45
  section {
36
46
  display: grid;
37
- gap: 8px;
38
- padding: 16px 12px 12px;
39
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
47
+ gap: 6px;
48
+ padding: 16px 12px;
49
+ border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
40
50
  }
41
51
  section > h3 {
42
- margin: 0;
52
+ margin: 0 0 4px;
43
53
  }
44
54
  section div[field] + div[field],
45
55
  section div[inline-field] + div[inline-field],
@@ -68,9 +78,24 @@ export const SidePanelStyles = css `
68
78
  font-size: inherit;
69
79
  color: var(--md-sys-color-on-surface-variant);
70
80
  }
81
+ /* The label on the left, its field on the right; a hint or a second row under the field, in the field's column. */
71
82
  div[field] {
72
83
  display: grid;
73
- gap: 2px;
84
+ grid-template-columns: var(--figure-label-width) minmax(0, 1fr);
85
+ align-items: center;
86
+ gap: 4px 8px;
87
+ }
88
+ div[field] > * {
89
+ grid-column: 2;
90
+ }
91
+ div[field] > label {
92
+ grid-column: 1;
93
+ overflow-wrap: anywhere;
94
+ }
95
+ /* A field with no label -- an action and its note -- and a checkbox with its words take the whole line. */
96
+ div[field]:not(:has(> label:not([toggle]))) > *,
97
+ div[field] > label[toggle] {
98
+ grid-column: 1 / -1;
74
99
  }
75
100
  div[field] + div[field],
76
101
  div[field] + div[form],
@@ -78,15 +103,15 @@ export const SidePanelStyles = css `
78
103
  div[vector-row] + div[vector-row],
79
104
  div[vector-row] + div[field],
80
105
  div[field] + div[vector-row] {
81
- margin-top: 5px;
106
+ margin-top: 6px;
82
107
  }
83
108
  div[form],
84
109
  div[inline-field],
85
110
  div[vector-row] {
86
111
  display: grid;
87
- grid-template-columns: 64px minmax(0, 1fr);
112
+ grid-template-columns: var(--figure-label-width) minmax(0, 1fr);
88
113
  align-items: center;
89
- gap: 5px 7px;
114
+ gap: 6px 8px;
90
115
  }
91
116
  div[form] > span,
92
117
  div[inline-field] > label,
@@ -117,14 +142,15 @@ export const SidePanelStyles = css `
117
142
  flex-wrap: wrap;
118
143
  gap: 4px;
119
144
  }
145
+ /* Words, no box: a row of tools reads as a row of words, each lit under the hand. */
120
146
  div[tools] button {
121
147
  height: var(--figure-control-height);
122
- padding: 0 10px;
148
+ padding: 0 6px;
123
149
  font: inherit;
124
150
  color: var(--md-sys-color-on-surface);
125
- background: var(--md-sys-color-surface-container-lowest);
126
- border: 1px solid var(--md-sys-color-outline-variant);
127
- border-radius: 6px;
151
+ background: none;
152
+ border: none;
153
+ border-radius: var(--figure-control-radius);
128
154
  cursor: pointer;
129
155
  }
130
156
  div[tools] button:hover:not(:disabled) {
@@ -147,18 +173,28 @@ export const SidePanelStyles = css `
147
173
  grid-template-columns: repeat(3, minmax(0, 1fr));
148
174
  gap: 4px;
149
175
  }
176
+ /*
177
+ * A field is a line, not a box: its value over one thin rule, the rule darkening under the hand and turning the
178
+ * primary colour, twice as thick, with the focus. Boxed fields made the panel a stack of boxes (user 2026-10-17:
179
+ * 「박스형 input … 난립을 완화하라 … 언더라인형의 도입」); a faint fill was tried first and still read as grey blocks.
180
+ */
150
181
  input,
151
182
  select {
152
183
  width: 100%;
153
184
  min-width: 0;
154
185
  min-height: var(--figure-control-height);
155
186
  box-sizing: border-box;
156
- padding: 4px 7px;
187
+ padding: 2px 2px;
157
188
  font: inherit;
158
189
  color: var(--md-sys-color-on-surface);
159
- background-color: var(--md-sys-color-surface-container-lowest);
160
- border: 1px solid var(--md-sys-color-outline-variant);
161
- border-radius: 6px;
190
+ background: transparent;
191
+ border: 0;
192
+ border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
193
+ border-radius: 0;
194
+ }
195
+ input:hover:not(:disabled):not(:focus),
196
+ select:hover:not(:disabled):not(:focus) {
197
+ border-bottom-color: var(--md-sys-color-on-surface-variant);
162
198
  }
163
199
  /* The browser's own box and dot, in the panel's colour. */
164
200
  input[type='checkbox'],
@@ -245,8 +281,9 @@ export const SidePanelStyles = css `
245
281
  }
246
282
  input:focus,
247
283
  select:focus {
248
- outline: 2px solid var(--md-sys-color-primary);
249
- outline-offset: -1px;
284
+ outline: none;
285
+ border-bottom-color: var(--md-sys-color-primary);
286
+ box-shadow: inset 0 -1px 0 var(--md-sys-color-primary);
250
287
  }
251
288
  input:disabled,
252
289
  select:disabled {
@@ -259,15 +296,19 @@ export const SidePanelStyles = css `
259
296
  height: var(--figure-control-height);
260
297
  align-items: center;
261
298
  gap: 2px;
262
- padding-left: 6px;
263
- background-color: var(--md-sys-color-surface-container-lowest);
264
- border: 1px solid var(--md-sys-color-outline-variant);
265
- border-radius: 6px;
299
+ padding-left: 2px;
300
+ /* The same line as every field, the axis letter at its start. */
301
+ background: transparent;
302
+ border: 0;
303
+ border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);
304
+ border-radius: 0;
305
+ }
306
+ div[cell]:hover:not(:focus-within) {
307
+ border-bottom-color: var(--md-sys-color-on-surface-variant);
266
308
  }
267
309
  div[cell]:focus-within {
268
- outline: 2px solid var(--md-sys-color-primary);
269
- outline-offset: -1px;
270
- border-color: transparent;
310
+ border-bottom-color: var(--md-sys-color-primary);
311
+ box-shadow: inset 0 -1px 0 var(--md-sys-color-primary);
271
312
  }
272
313
  /* A label that scrubs its field when dragged sideways (vector tools' way). */
273
314
  [scrub] {
@@ -284,7 +325,7 @@ export const SidePanelStyles = css `
284
325
  div[cell] input {
285
326
  min-height: 0;
286
327
  height: calc(var(--figure-control-height) - 2px);
287
- padding: 4px 6px 4px 2px;
328
+ padding: 2px 2px 2px 2px;
288
329
  font-family: var(--ui-mono, ui-monospace, monospace);
289
330
  text-align: right;
290
331
  background: none;
@@ -295,9 +336,9 @@ export const SidePanelStyles = css `
295
336
  outline: none;
296
337
  }
297
338
  /* An axis a rule sets: its number, read-only, on a quieter ground (ADR-0097). */
339
+ /* A number a rule sets: its line dotted and its value in grey -- read, not edited. */
298
340
  div[cell][held] {
299
- background-color: var(--md-sys-color-surface-container);
300
- border-style: dashed;
341
+ border-bottom-style: dotted;
301
342
  }
302
343
  div[cell][held] input {
303
344
  color: var(--md-sys-color-on-surface-variant);
@@ -343,8 +384,9 @@ export const SidePanelStyles = css `
343
384
  color: var(--md-sys-color-on-surface-variant);
344
385
  }
345
386
  /*
346
- * An action under its fields: as wide as its words, not a band across the panel -- four full-width grey bars read as
347
- * four walls and none of them as the one to press (user 2026-10-01). Every one carries its icon.
387
+ * An action under its fields: its icon and words in the primary colour, no box (user 2026-10-17: 「박스형 버튼의
388
+ * 난립」). It was a band across the panel once (2026-10-01), then an outlined box; the icon and the colour say it is
389
+ * pressed, and the hover lights its ground.
348
390
  */
349
391
  button[act] {
350
392
  display: inline-flex;
@@ -354,19 +396,19 @@ export const SidePanelStyles = css `
354
396
  gap: 6px;
355
397
  width: auto;
356
398
  max-width: 100%;
357
- margin-top: 4px;
358
- padding: 0 12px;
399
+ margin: 0 0 0 -6px;
400
+ padding: 0 6px;
359
401
  min-height: var(--figure-control-height);
360
402
  font: inherit;
361
403
  color: var(--md-sys-color-primary);
362
- background-color: var(--md-sys-color-surface-container-lowest);
363
- border: 1px solid var(--md-sys-color-outline-variant);
364
- border-radius: 6px;
404
+ background: none;
405
+ border: none;
406
+ border-radius: var(--figure-control-radius);
365
407
  cursor: pointer;
366
408
  }
367
409
  /*
368
- * Taking something back -- detach, clear, back to fixed, remove a row -- in one look: words in the primary colour with
369
- * no box, so the one boxed action of a group stays the one to press (user 2026-10-16).
410
+ * Taking something back -- detach, clear, back to fixed, remove a row -- in one look: words in the label grey, no box,
411
+ * a step quieter than the group's action in the primary colour (user 2026-10-16, 2026-10-17).
370
412
  */
371
413
  button[quiet] {
372
414
  display: inline-flex;
@@ -377,10 +419,10 @@ export const SidePanelStyles = css `
377
419
  padding: 0 6px;
378
420
  margin-left: -6px;
379
421
  font: inherit;
380
- color: var(--md-sys-color-primary);
422
+ color: var(--md-sys-color-on-surface-variant);
381
423
  background: none;
382
424
  border: none;
383
- border-radius: 6px;
425
+ border-radius: var(--figure-control-radius);
384
426
  cursor: pointer;
385
427
  }
386
428
  button[quiet]:hover:not(:disabled) {
@@ -396,7 +438,7 @@ export const SidePanelStyles = css `
396
438
  height: 16px;
397
439
  }
398
440
  button[act]:hover:not(:disabled) {
399
- background-color: var(--md-sys-color-primary-container);
441
+ background-color: var(--md-sys-color-surface-container);
400
442
  }
401
443
  button[act]:disabled {
402
444
  opacity: 0.5;
@@ -1 +1 @@
1
- {"version":3,"file":"side-panel-styles.js","sourceRoot":"","sources":["../client/side-panel-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8XjC,CAAA","sourcesContent":["import { css } from 'lit'\n\n/**\n * The side panel's one look, for every element that draws in the modeller's side.\n *\n * The side is drawn by several elements (the type field, the figure's properties, a part's values, fastening, places,\n * motion, material, controls, clips, the environment) and each had styled its own fields: three label styles and\n * three field heights in one column (user, 2026-09-24: \"why are the styles and layout all different?\"). They share\n * this sheet now and keep only what is theirs.\n *\n * The vocabulary:\n * section one titled group; the side is a stack of them\n * h3 a group's title\n *\n * Three sizes and two weights (user 2026-10-01, the panel checked for balance: eight sizes, and titles smaller than\n * what they titled): a title at the body token and semibold, everything else at the small token, and a hint at the\n * micro one. Sections are 16 px above their title and 12 px below their last line.\n * div[inline-field] a short label and its one field on one line\n * div[field] a label above a full-width field\n * div[form] short labels beside their fields, the fields starting on one line\n * div[vector-row] a title, then X · Y · Z in one row of cells with the axis inside (`div[triple]` of\n * `div[cell]`) -- three values read together, as vector tools lay them out\n * div[pair] two controls side by side\n * label[toggle] a checkbox and its words\n * p[hint] · small the quiet line under a field\n * button[act] an action under the fields it acts on\n * [scrub] a label dragged sideways to scrub its field\n */\nexport const SidePanelStyles = css`\n :host {\n --figure-control-height: 30px;\n font-size: var(--ui-t-small, 11.5px);\n color: var(--md-sys-color-on-surface);\n }\n /* The side is a stack of sections, each a titled group. */\n section {\n display: grid;\n gap: 8px;\n padding: 16px 12px 12px;\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n }\n section > h3 {\n margin: 0;\n }\n section div[field] + div[field],\n section div[inline-field] + div[inline-field],\n section div[vector-row] + div[vector-row] {\n margin-top: 0;\n }\n h3 {\n display: flex;\n align-items: center;\n gap: 4px;\n margin: 14px 0 6px;\n font-size: var(--ui-t-body, 13px);\n font-weight: 600;\n color: var(--md-sys-color-on-surface);\n }\n h3:first-child {\n margin-top: 0;\n }\n /* Two weights only: a bold word in a line is the title's weight, not the browser's heavier one. */\n b,\n strong {\n font-weight: 600;\n }\n label,\n div[form] > span {\n font-size: inherit;\n color: var(--md-sys-color-on-surface-variant);\n }\n div[field] {\n display: grid;\n gap: 2px;\n }\n div[field] + div[field],\n div[field] + div[form],\n div[form] + div[field],\n div[vector-row] + div[vector-row],\n div[vector-row] + div[field],\n div[field] + div[vector-row] {\n margin-top: 5px;\n }\n div[form],\n div[inline-field],\n div[vector-row] {\n display: grid;\n grid-template-columns: 64px minmax(0, 1fr);\n align-items: center;\n gap: 5px 7px;\n }\n div[form] > span,\n div[inline-field] > label,\n div[vector-row] > label {\n overflow-wrap: anywhere;\n white-space: normal;\n }\n /* A value read, not edited, beside its label: the field's size and colour, not the page's. */\n div[inline-field] > span[value] {\n font-size: inherit;\n color: var(--md-sys-color-on-surface);\n }\n /*\n * The unit is part of its label and reads in its colour. The outline grey (a line's colour) left 11.5px words at\n * 4.4:1 on the panel, under the 4.5:1 small text needs (2026-10-16).\n */\n label span[unit] {\n color: var(--md-sys-color-on-surface-variant);\n }\n div[inline-field] + div[inline-field],\n div[inline-field] + div[vector-row],\n div[vector-row] + div[inline-field] {\n margin-top: 5px;\n }\n /* A row of worded tools (align, snap; mirror copies). */\n div[tools] {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n }\n div[tools] button {\n height: var(--figure-control-height);\n padding: 0 10px;\n font: inherit;\n color: var(--md-sys-color-on-surface);\n background: var(--md-sys-color-surface-container-lowest);\n border: 1px solid var(--md-sys-color-outline-variant);\n border-radius: 6px;\n cursor: pointer;\n }\n div[tools] button:hover:not(:disabled) {\n background: var(--md-sys-color-surface-container);\n }\n div[tools] button:disabled {\n opacity: 0.45;\n cursor: default;\n }\n div[pair] {\n display: flex;\n gap: 4px;\n }\n div[pair] > * {\n flex: 1;\n min-width: 0;\n }\n div[triple] {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 4px;\n }\n input,\n select {\n width: 100%;\n min-width: 0;\n min-height: var(--figure-control-height);\n box-sizing: border-box;\n padding: 4px 7px;\n font: inherit;\n color: var(--md-sys-color-on-surface);\n background-color: var(--md-sys-color-surface-container-lowest);\n border: 1px solid var(--md-sys-color-outline-variant);\n border-radius: 6px;\n }\n /* The browser's own box and dot, in the panel's colour. */\n input[type='checkbox'],\n input[type='radio'] {\n width: auto;\n min-height: 0;\n margin: 0;\n accent-color: var(--md-sys-color-primary);\n }\n /* A fold: the panel's chevron, not the browser's triangle. */\n summary {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 6px 0;\n list-style: none;\n cursor: pointer;\n color: var(--md-sys-color-on-surface-variant);\n }\n summary::-webkit-details-marker {\n display: none;\n }\n summary::before {\n content: '';\n flex: none;\n width: 6px;\n height: 6px;\n margin: 0 2px;\n border-right: 1.5px solid currentColor;\n border-bottom: 1.5px solid currentColor;\n transform: rotate(-45deg);\n transition: transform 0.15s;\n }\n details[open] > summary::before {\n transform: rotate(45deg);\n }\n /* A thin track and a small thumb: a slider is a line to drag along, not a block (user, 2026-09-24). */\n input[type='range'] {\n -webkit-appearance: none;\n appearance: none;\n min-height: 16px;\n height: 16px;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n }\n input[type='range']::-webkit-slider-runnable-track {\n height: 3px;\n border-radius: 2px;\n background: var(--md-sys-color-outline-variant);\n }\n input[type='range']::-webkit-slider-thumb {\n -webkit-appearance: none;\n width: 12px;\n height: 12px;\n margin-top: -4.5px;\n border: none;\n border-radius: 50%;\n background: var(--md-sys-color-primary);\n }\n input[type='range']::-moz-range-track {\n height: 3px;\n border-radius: 2px;\n background: var(--md-sys-color-outline-variant);\n }\n input[type='range']::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: none;\n border-radius: 50%;\n background: var(--md-sys-color-primary);\n }\n input[type='range']:focus {\n outline: none;\n }\n input[type='range']:focus-visible::-webkit-slider-thumb {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n input[type='color'] {\n padding: 2px;\n width: 40px;\n }\n input:focus,\n select:focus {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: -1px;\n }\n input:disabled,\n select:disabled {\n opacity: 0.6;\n }\n /* A number with its axis inside the cell, on the left. */\n div[cell] {\n display: flex;\n box-sizing: border-box;\n height: var(--figure-control-height);\n align-items: center;\n gap: 2px;\n padding-left: 6px;\n background-color: var(--md-sys-color-surface-container-lowest);\n border: 1px solid var(--md-sys-color-outline-variant);\n border-radius: 6px;\n }\n div[cell]:focus-within {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: -1px;\n border-color: transparent;\n }\n /* A label that scrubs its field when dragged sideways (vector tools' way). */\n [scrub] {\n cursor: ew-resize;\n user-select: none;\n touch-action: none;\n }\n div[cell] span[axis] {\n flex: none;\n font-size: var(--ui-t-micro, 11px);\n letter-spacing: 0.02em;\n color: var(--md-sys-color-on-surface-variant);\n }\n div[cell] input {\n min-height: 0;\n height: calc(var(--figure-control-height) - 2px);\n padding: 4px 6px 4px 2px;\n font-family: var(--ui-mono, ui-monospace, monospace);\n text-align: right;\n background: none;\n border: none;\n border-radius: 0;\n }\n div[cell] input:focus {\n outline: none;\n }\n /* An axis a rule sets: its number, read-only, on a quieter ground (ADR-0097). */\n div[cell][held] {\n background-color: var(--md-sys-color-surface-container);\n border-style: dashed;\n }\n div[cell][held] input {\n color: var(--md-sys-color-on-surface-variant);\n font-style: italic;\n }\n p[held-axes] {\n margin: 2px 0 6px;\n }\n label[toggle] {\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--md-sys-color-on-surface);\n }\n /* The 「?」 beside a title: no border, it says there is more rather than asking to be pressed. */\n button[help] {\n display: inline-flex;\n align-items: center;\n padding: 0;\n margin: 0;\n /* The quiet marks beside a title -- 「?」 and the group's 「⋯」 -- in one colour. */\n color: var(--md-sys-color-on-surface-variant);\n background: none;\n border: none;\n cursor: pointer;\n }\n /* Beside a title at the size every icon beside words takes (16), the group's 「⋯」 too. */\n button[help] md-icon {\n font-size: 16px;\n width: 16px;\n height: 16px;\n }\n button[help]:hover,\n button[help][aria-expanded='true'] {\n color: var(--md-sys-color-primary);\n }\n p[hint],\n small {\n display: block;\n margin: 2px 0 4px;\n font-size: var(--ui-t-micro, 11px);\n line-height: 1.5;\n color: var(--md-sys-color-on-surface-variant);\n }\n /*\n * An action under its fields: as wide as its words, not a band across the panel -- four full-width grey bars read as\n * four walls and none of them as the one to press (user 2026-10-01). Every one carries its icon.\n */\n button[act] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n justify-self: start;\n gap: 6px;\n width: auto;\n max-width: 100%;\n margin-top: 4px;\n padding: 0 12px;\n min-height: var(--figure-control-height);\n font: inherit;\n color: var(--md-sys-color-primary);\n background-color: var(--md-sys-color-surface-container-lowest);\n border: 1px solid var(--md-sys-color-outline-variant);\n border-radius: 6px;\n cursor: pointer;\n }\n /*\n * Taking something back -- detach, clear, back to fixed, remove a row -- in one look: words in the primary colour with\n * no box, so the one boxed action of a group stays the one to press (user 2026-10-16).\n */\n button[quiet] {\n display: inline-flex;\n align-items: center;\n justify-self: start;\n gap: 4px;\n height: var(--figure-control-height);\n padding: 0 6px;\n margin-left: -6px;\n font: inherit;\n color: var(--md-sys-color-primary);\n background: none;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n }\n button[quiet]:hover:not(:disabled) {\n background-color: var(--md-sys-color-surface-container);\n }\n button[quiet]:disabled {\n opacity: 0.5;\n cursor: default;\n }\n button[quiet] md-icon {\n font-size: 16px;\n width: 16px;\n height: 16px;\n }\n button[act]:hover:not(:disabled) {\n background-color: var(--md-sys-color-primary-container);\n }\n button[act]:disabled {\n opacity: 0.5;\n cursor: default;\n }\n button[act] md-icon {\n font-size: 16px;\n width: 16px;\n height: 16px;\n }\n`\n"]}
1
+ {"version":3,"file":"side-panel-styles.js","sourceRoot":"","sources":["../client/side-panel-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwajC,CAAA","sourcesContent":["import { css } from 'lit'\n\n/**\n * The side panel's one look, for every element that draws in the modeller's side.\n *\n * The side is drawn by several elements (the type field, the figure's properties, a part's values, fastening, places,\n * motion, material, controls, clips, the environment) and each had styled its own fields: three label styles and\n * three field heights in one column (user, 2026-09-24: \"why are the styles and layout all different?\"). They share\n * this sheet now and keep only what is theirs.\n *\n * The vocabulary:\n * section one titled group; the side is a stack of them\n * h3 a group's title\n *\n * Three sizes and two weights (user 2026-10-01, the panel checked for balance: eight sizes, and titles smaller than\n * what they titled): a title at the body token and semibold, everything else at the small token, and a hint at the\n * micro one. Sections are 16 px above their title and 12 px below their last line.\n * div[inline-field] a short label and its one field on one line\n * div[field] a label and its field on one line; what else the field holds stands under the field\n * div[form] short labels beside their fields, the fields starting on one line\n * div[vector-row] a title, then X · Y · Z in one row of cells with the axis inside (`div[triple]` of\n * `div[cell]`) -- three values read together, as vector tools lay them out\n * div[pair] two controls side by side\n * label[toggle] a checkbox and its words\n * p[hint] · small the quiet line under a field\n * button[act] an action under the fields it acts on\n * [scrub] a label dragged sideways to scrub its field\n */\nexport const SidePanelStyles = css`\n :host {\n /*\n * A field's measure (user 2026-10-17: 「공간 낭비가 심하다 … 둔한 라운드와 여백」): 26px high, a 4px corner, and the\n * label's column. Labels and fields share a line, so a group reads as a list to scan, not a form to fill.\n */\n --figure-control-height: 26px;\n --figure-control-radius: 4px;\n --figure-label-width: 72px;\n font-size: var(--ui-t-small, 11.5px);\n color: var(--md-sys-color-on-surface);\n }\n /* The side is a stack of sections, each a titled group. */\n /*\n * Tight inside a group, loose between groups: rows 6px apart, so a group reads as one thing; groups parted by their\n * line and 16px, so the eye knows where the next one starts (user 2026-10-17: no tension and release).\n */\n section {\n display: grid;\n gap: 6px;\n padding: 16px 12px;\n border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);\n }\n section > h3 {\n margin: 0 0 4px;\n }\n section div[field] + div[field],\n section div[inline-field] + div[inline-field],\n section div[vector-row] + div[vector-row] {\n margin-top: 0;\n }\n h3 {\n display: flex;\n align-items: center;\n gap: 4px;\n margin: 14px 0 6px;\n font-size: var(--ui-t-body, 13px);\n font-weight: 600;\n color: var(--md-sys-color-on-surface);\n }\n h3:first-child {\n margin-top: 0;\n }\n /* Two weights only: a bold word in a line is the title's weight, not the browser's heavier one. */\n b,\n strong {\n font-weight: 600;\n }\n label,\n div[form] > span {\n font-size: inherit;\n color: var(--md-sys-color-on-surface-variant);\n }\n /* The label on the left, its field on the right; a hint or a second row under the field, in the field's column. */\n div[field] {\n display: grid;\n grid-template-columns: var(--figure-label-width) minmax(0, 1fr);\n align-items: center;\n gap: 4px 8px;\n }\n div[field] > * {\n grid-column: 2;\n }\n div[field] > label {\n grid-column: 1;\n overflow-wrap: anywhere;\n }\n /* A field with no label -- an action and its note -- and a checkbox with its words take the whole line. */\n div[field]:not(:has(> label:not([toggle]))) > *,\n div[field] > label[toggle] {\n grid-column: 1 / -1;\n }\n div[field] + div[field],\n div[field] + div[form],\n div[form] + div[field],\n div[vector-row] + div[vector-row],\n div[vector-row] + div[field],\n div[field] + div[vector-row] {\n margin-top: 6px;\n }\n div[form],\n div[inline-field],\n div[vector-row] {\n display: grid;\n grid-template-columns: var(--figure-label-width) minmax(0, 1fr);\n align-items: center;\n gap: 6px 8px;\n }\n div[form] > span,\n div[inline-field] > label,\n div[vector-row] > label {\n overflow-wrap: anywhere;\n white-space: normal;\n }\n /* A value read, not edited, beside its label: the field's size and colour, not the page's. */\n div[inline-field] > span[value] {\n font-size: inherit;\n color: var(--md-sys-color-on-surface);\n }\n /*\n * The unit is part of its label and reads in its colour. The outline grey (a line's colour) left 11.5px words at\n * 4.4:1 on the panel, under the 4.5:1 small text needs (2026-10-16).\n */\n label span[unit] {\n color: var(--md-sys-color-on-surface-variant);\n }\n div[inline-field] + div[inline-field],\n div[inline-field] + div[vector-row],\n div[vector-row] + div[inline-field] {\n margin-top: 5px;\n }\n /* A row of worded tools (align, snap; mirror copies). */\n div[tools] {\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n }\n /* Words, no box: a row of tools reads as a row of words, each lit under the hand. */\n div[tools] button {\n height: var(--figure-control-height);\n padding: 0 6px;\n font: inherit;\n color: var(--md-sys-color-on-surface);\n background: none;\n border: none;\n border-radius: var(--figure-control-radius);\n cursor: pointer;\n }\n div[tools] button:hover:not(:disabled) {\n background: var(--md-sys-color-surface-container);\n }\n div[tools] button:disabled {\n opacity: 0.45;\n cursor: default;\n }\n div[pair] {\n display: flex;\n gap: 4px;\n }\n div[pair] > * {\n flex: 1;\n min-width: 0;\n }\n div[triple] {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: 4px;\n }\n /*\n * A field is a line, not a box: its value over one thin rule, the rule darkening under the hand and turning the\n * primary colour, twice as thick, with the focus. Boxed fields made the panel a stack of boxes (user 2026-10-17:\n * 「박스형 input … 난립을 완화하라 … 언더라인형의 도입」); a faint fill was tried first and still read as grey blocks.\n */\n input,\n select {\n width: 100%;\n min-width: 0;\n min-height: var(--figure-control-height);\n box-sizing: border-box;\n padding: 2px 2px;\n font: inherit;\n color: var(--md-sys-color-on-surface);\n background: transparent;\n border: 0;\n border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);\n border-radius: 0;\n }\n input:hover:not(:disabled):not(:focus),\n select:hover:not(:disabled):not(:focus) {\n border-bottom-color: var(--md-sys-color-on-surface-variant);\n }\n /* The browser's own box and dot, in the panel's colour. */\n input[type='checkbox'],\n input[type='radio'] {\n width: auto;\n min-height: 0;\n margin: 0;\n accent-color: var(--md-sys-color-primary);\n }\n /* A fold: the panel's chevron, not the browser's triangle. */\n summary {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 6px 0;\n list-style: none;\n cursor: pointer;\n color: var(--md-sys-color-on-surface-variant);\n }\n summary::-webkit-details-marker {\n display: none;\n }\n summary::before {\n content: '';\n flex: none;\n width: 6px;\n height: 6px;\n margin: 0 2px;\n border-right: 1.5px solid currentColor;\n border-bottom: 1.5px solid currentColor;\n transform: rotate(-45deg);\n transition: transform 0.15s;\n }\n details[open] > summary::before {\n transform: rotate(45deg);\n }\n /* A thin track and a small thumb: a slider is a line to drag along, not a block (user, 2026-09-24). */\n input[type='range'] {\n -webkit-appearance: none;\n appearance: none;\n min-height: 16px;\n height: 16px;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n }\n input[type='range']::-webkit-slider-runnable-track {\n height: 3px;\n border-radius: 2px;\n background: var(--md-sys-color-outline-variant);\n }\n input[type='range']::-webkit-slider-thumb {\n -webkit-appearance: none;\n width: 12px;\n height: 12px;\n margin-top: -4.5px;\n border: none;\n border-radius: 50%;\n background: var(--md-sys-color-primary);\n }\n input[type='range']::-moz-range-track {\n height: 3px;\n border-radius: 2px;\n background: var(--md-sys-color-outline-variant);\n }\n input[type='range']::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: none;\n border-radius: 50%;\n background: var(--md-sys-color-primary);\n }\n input[type='range']:focus {\n outline: none;\n }\n input[type='range']:focus-visible::-webkit-slider-thumb {\n outline: 2px solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n input[type='color'] {\n padding: 2px;\n width: 40px;\n }\n input:focus,\n select:focus {\n outline: none;\n border-bottom-color: var(--md-sys-color-primary);\n box-shadow: inset 0 -1px 0 var(--md-sys-color-primary);\n }\n input:disabled,\n select:disabled {\n opacity: 0.6;\n }\n /* A number with its axis inside the cell, on the left. */\n div[cell] {\n display: flex;\n box-sizing: border-box;\n height: var(--figure-control-height);\n align-items: center;\n gap: 2px;\n padding-left: 2px;\n /* The same line as every field, the axis letter at its start. */\n background: transparent;\n border: 0;\n border-bottom: 1px solid var(--md-sys-color-outline-variant, #c4c7c5);\n border-radius: 0;\n }\n div[cell]:hover:not(:focus-within) {\n border-bottom-color: var(--md-sys-color-on-surface-variant);\n }\n div[cell]:focus-within {\n border-bottom-color: var(--md-sys-color-primary);\n box-shadow: inset 0 -1px 0 var(--md-sys-color-primary);\n }\n /* A label that scrubs its field when dragged sideways (vector tools' way). */\n [scrub] {\n cursor: ew-resize;\n user-select: none;\n touch-action: none;\n }\n div[cell] span[axis] {\n flex: none;\n font-size: var(--ui-t-micro, 11px);\n letter-spacing: 0.02em;\n color: var(--md-sys-color-on-surface-variant);\n }\n div[cell] input {\n min-height: 0;\n height: calc(var(--figure-control-height) - 2px);\n padding: 2px 2px 2px 2px;\n font-family: var(--ui-mono, ui-monospace, monospace);\n text-align: right;\n background: none;\n border: none;\n border-radius: 0;\n }\n div[cell] input:focus {\n outline: none;\n }\n /* An axis a rule sets: its number, read-only, on a quieter ground (ADR-0097). */\n /* A number a rule sets: its line dotted and its value in grey -- read, not edited. */\n div[cell][held] {\n border-bottom-style: dotted;\n }\n div[cell][held] input {\n color: var(--md-sys-color-on-surface-variant);\n font-style: italic;\n }\n p[held-axes] {\n margin: 2px 0 6px;\n }\n label[toggle] {\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--md-sys-color-on-surface);\n }\n /* The 「?」 beside a title: no border, it says there is more rather than asking to be pressed. */\n button[help] {\n display: inline-flex;\n align-items: center;\n padding: 0;\n margin: 0;\n /* The quiet marks beside a title -- 「?」 and the group's 「⋯」 -- in one colour. */\n color: var(--md-sys-color-on-surface-variant);\n background: none;\n border: none;\n cursor: pointer;\n }\n /* Beside a title at the size every icon beside words takes (16), the group's 「⋯」 too. */\n button[help] md-icon {\n font-size: 16px;\n width: 16px;\n height: 16px;\n }\n button[help]:hover,\n button[help][aria-expanded='true'] {\n color: var(--md-sys-color-primary);\n }\n p[hint],\n small {\n display: block;\n margin: 2px 0 4px;\n font-size: var(--ui-t-micro, 11px);\n line-height: 1.5;\n color: var(--md-sys-color-on-surface-variant);\n }\n /*\n * An action under its fields: its icon and words in the primary colour, no box (user 2026-10-17: 「박스형 버튼의\n * 난립」). It was a band across the panel once (2026-10-01), then an outlined box; the icon and the colour say it is\n * pressed, and the hover lights its ground.\n */\n button[act] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n justify-self: start;\n gap: 6px;\n width: auto;\n max-width: 100%;\n margin: 0 0 0 -6px;\n padding: 0 6px;\n min-height: var(--figure-control-height);\n font: inherit;\n color: var(--md-sys-color-primary);\n background: none;\n border: none;\n border-radius: var(--figure-control-radius);\n cursor: pointer;\n }\n /*\n * Taking something back -- detach, clear, back to fixed, remove a row -- in one look: words in the label grey, no box,\n * a step quieter than the group's action in the primary colour (user 2026-10-16, 2026-10-17).\n */\n button[quiet] {\n display: inline-flex;\n align-items: center;\n justify-self: start;\n gap: 4px;\n height: var(--figure-control-height);\n padding: 0 6px;\n margin-left: -6px;\n font: inherit;\n color: var(--md-sys-color-on-surface-variant);\n background: none;\n border: none;\n border-radius: var(--figure-control-radius);\n cursor: pointer;\n }\n button[quiet]:hover:not(:disabled) {\n background-color: var(--md-sys-color-surface-container);\n }\n button[quiet]:disabled {\n opacity: 0.5;\n cursor: default;\n }\n button[quiet] md-icon {\n font-size: 16px;\n width: 16px;\n height: 16px;\n }\n button[act]:hover:not(:disabled) {\n background-color: var(--md-sys-color-surface-container);\n }\n button[act]:disabled {\n opacity: 0.5;\n cursor: default;\n }\n button[act] md-icon {\n font-size: 16px;\n width: 16px;\n height: 16px;\n }\n`\n"]}