privacy-redact 0.1.0 → 1.0.2

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/style.css ADDED
@@ -0,0 +1,748 @@
1
+ /* Blend tokens from docs/STYLE.md. Crimson Pro and IBM Plex Sans are SIL OFL and shipped locally. */
2
+ @font-face {
3
+ font-family: "Crimson Pro";
4
+ font-style: normal;
5
+ font-weight: 300;
6
+ font-display: swap;
7
+ src: url("./fonts/crimson-pro-300.woff2") format("woff2");
8
+ }
9
+ @font-face {
10
+ font-family: "IBM Plex Sans";
11
+ font-style: normal;
12
+ font-weight: 300;
13
+ font-display: swap;
14
+ src: url("./fonts/ibm-plex-sans-300.woff2") format("woff2");
15
+ }
16
+ @font-face {
17
+ font-family: "IBM Plex Sans";
18
+ font-style: normal;
19
+ font-weight: 400;
20
+ font-display: swap;
21
+ src: url("./fonts/ibm-plex-sans-400.woff2") format("woff2");
22
+ }
23
+
24
+ :root {
25
+ color-scheme: light;
26
+ --canvas: #fafaf9;
27
+ --surface: #f5f5f4;
28
+ --surface-raised: #ffffff;
29
+ --surface-sunken: #f0f0ef;
30
+ --on-surface: #292524;
31
+ --on-surface-muted: #78716c;
32
+ --on-surface-subtle: #a8a29e;
33
+ --accent: #57534e;
34
+ --accent-hover: #44403c;
35
+ --good: #3f6212;
36
+ --warn: #92400e;
37
+ --bad: #9f1239;
38
+ --shadow-sm: 0 1px 2px rgba(41, 37, 36, 0.06), 0 1px 3px rgba(41, 37, 36, 0.04);
39
+ --shadow-md: 0 8px 24px rgba(41, 37, 36, 0.06), 0 2px 6px rgba(41, 37, 36, 0.04);
40
+ --shadow-lg: 0 16px 40px rgba(41, 37, 36, 0.1);
41
+ --glow: 0 0 0 4px rgba(87, 83, 78, 0.16);
42
+ --ease: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
43
+ --font-display: "Crimson Pro", "Iowan Old Style", Palatino, Georgia, serif;
44
+ --font-ui: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
45
+ --radius-sm: 6px;
46
+ --radius-md: 8px;
47
+ --radius-lg: 12px;
48
+ }
49
+
50
+ @media (prefers-color-scheme: dark) {
51
+ :root {
52
+ color-scheme: dark;
53
+ --canvas: #1c1917;
54
+ --surface: #292524;
55
+ --surface-raised: #322f2c;
56
+ --surface-sunken: #1c1917;
57
+ --on-surface: #e7e5e4;
58
+ --on-surface-muted: #a8a29e;
59
+ --on-surface-subtle: #78716c;
60
+ --accent: #d6d3d1;
61
+ --accent-hover: #e7e5e4;
62
+ --good: #c5ddb8;
63
+ --warn: #f0d0a0;
64
+ --bad: #f3b4bc;
65
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
66
+ --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
67
+ --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
68
+ --glow: 0 0 0 4px rgba(214, 211, 209, 0.22);
69
+ }
70
+ }
71
+
72
+ * { box-sizing: border-box; }
73
+ [hidden] { display: none !important; }
74
+ html, body { margin: 0; min-height: 100%; }
75
+ body {
76
+ background: var(--canvas);
77
+ color: var(--on-surface);
78
+ font-family: var(--font-ui);
79
+ font-size: 15px;
80
+ font-weight: 300;
81
+ line-height: 1.7;
82
+ -webkit-font-smoothing: antialiased;
83
+ display: flex;
84
+ flex-direction: column;
85
+ min-height: 100vh;
86
+ }
87
+ b, strong { font-weight: 400; }
88
+ a { color: var(--on-surface); text-underline-offset: 0.15em; }
89
+ kbd {
90
+ font-family: var(--font-ui);
91
+ font-size: 13px;
92
+ font-weight: 400;
93
+ line-height: 1.45;
94
+ padding: 2px 6px;
95
+ border: 0;
96
+ border-radius: var(--radius-sm);
97
+ background: var(--surface-sunken);
98
+ color: var(--on-surface);
99
+ box-shadow: var(--shadow-sm);
100
+ }
101
+
102
+ .bg-glow {
103
+ position: fixed;
104
+ inset: 0;
105
+ pointer-events: none;
106
+ z-index: 0;
107
+ background: radial-gradient(55% 42% at 12% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
108
+ }
109
+
110
+ .topbar, .foot, main {
111
+ width: 100%;
112
+ max-width: 900px;
113
+ margin-left: auto;
114
+ margin-right: auto;
115
+ padding-left: 1.5rem;
116
+ padding-right: 1.5rem;
117
+ }
118
+ .topbar {
119
+ position: relative;
120
+ z-index: 2;
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: space-between;
124
+ padding-top: 1.5rem;
125
+ padding-bottom: 1rem;
126
+ }
127
+ .brand {
128
+ display: inline-flex;
129
+ align-items: center;
130
+ gap: 0.75rem;
131
+ color: var(--on-surface);
132
+ text-decoration: none;
133
+ font-family: var(--font-display);
134
+ font-weight: 300;
135
+ font-size: 1.25rem;
136
+ line-height: 1.4;
137
+ letter-spacing: -0.02em;
138
+ }
139
+ .brand b { font-weight: 300; color: inherit; }
140
+ .top-right { display: flex; align-items: center; gap: 0.75rem; }
141
+ .pill {
142
+ display: inline-flex;
143
+ align-items: center;
144
+ gap: 0.5rem;
145
+ font-size: 13px;
146
+ font-weight: 400;
147
+ line-height: 1.45;
148
+ color: var(--on-surface-muted);
149
+ background: var(--surface);
150
+ padding: 8px;
151
+ border-radius: var(--radius-sm);
152
+ }
153
+ .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 18%, transparent); }
154
+
155
+ main { position: relative; z-index: 1; flex: 1; padding-top: 2rem; padding-bottom: 4rem; }
156
+
157
+ .btn {
158
+ font-family: var(--font-ui);
159
+ font-weight: 400;
160
+ font-size: 15px;
161
+ line-height: 1.5;
162
+ color: var(--on-surface);
163
+ background: var(--surface);
164
+ border: 0;
165
+ border-radius: var(--radius-md);
166
+ padding: 12px;
167
+ cursor: pointer;
168
+ box-shadow: var(--shadow-sm);
169
+ transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
170
+ }
171
+ .btn:hover { background: var(--surface-raised); transform: translateY(-1px); box-shadow: var(--shadow-md); }
172
+ .btn:active { transform: translateY(0); }
173
+ .btn.ghost { background: var(--surface); }
174
+ .btn.sm { padding: 8px 12px; font-size: 13px; line-height: 1.45; border-radius: var(--radius-sm); }
175
+ .btn.wide, .btn.big { width: 100%; }
176
+ .btn.primary { background: var(--accent); color: var(--surface-raised); }
177
+ .btn.primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-lg); }
178
+ .btn:disabled { opacity: 0.5; cursor: progress; transform: none; }
179
+ .btn:focus-visible,
180
+ .chip:focus-visible,
181
+ .dropzone:focus-visible,
182
+ .seg button:focus-visible,
183
+ .fmt select:focus-visible,
184
+ .slider input:focus-visible,
185
+ .faq summary:focus-visible,
186
+ .transcript-toggle:focus-visible,
187
+ .transcript-redact:focus-visible,
188
+ .cat:focus-visible {
189
+ outline: none;
190
+ box-shadow: var(--glow);
191
+ }
192
+
193
+ #landing { text-align: center; }
194
+ privacy-redact-review { display: block; text-align: center; }
195
+ .hero h1 {
196
+ font-family: var(--font-display);
197
+ font-weight: 300;
198
+ font-size: 2.5rem;
199
+ line-height: 1.2;
200
+ letter-spacing: -0.02em;
201
+ margin: 0 0 1rem;
202
+ }
203
+ .grad { color: var(--headline-accent, inherit); }
204
+ .eyebrow {
205
+ margin: 0 0 0.75rem;
206
+ font-family: var(--font-ui);
207
+ font-size: 13px;
208
+ font-weight: 400;
209
+ letter-spacing: 0.06em;
210
+ text-transform: uppercase;
211
+ color: var(--accent);
212
+ }
213
+ .lede {
214
+ color: var(--on-surface-muted);
215
+ font-size: 15px;
216
+ font-weight: 300;
217
+ line-height: 1.7;
218
+ max-width: 38rem;
219
+ margin: 0 auto 2rem;
220
+ }
221
+
222
+ .dropzone {
223
+ display: block;
224
+ cursor: pointer;
225
+ border: 0;
226
+ border-radius: var(--radius-lg);
227
+ padding: 3rem 1.5rem;
228
+ background: var(--surface);
229
+ box-shadow: var(--shadow-sm);
230
+ transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
231
+ }
232
+ .dropzone:hover, .dropzone.over {
233
+ background: var(--surface-raised);
234
+ transform: translateY(-2px);
235
+ box-shadow: var(--shadow-md);
236
+ }
237
+ .dz-icon {
238
+ width: 64px;
239
+ height: 64px;
240
+ margin: 0 auto 1rem;
241
+ display: grid;
242
+ place-items: center;
243
+ border-radius: var(--radius-lg);
244
+ color: var(--on-surface);
245
+ background: var(--surface-raised);
246
+ box-shadow: var(--shadow-sm);
247
+ }
248
+ .dz-title {
249
+ font-family: var(--font-display);
250
+ font-size: 1.25rem;
251
+ font-weight: 300;
252
+ line-height: 1.4;
253
+ letter-spacing: -0.02em;
254
+ }
255
+ .dz-sub { color: var(--on-surface-muted); margin-top: 0.5rem; font-size: 14px; line-height: 1.6; }
256
+ .dz-formats { color: var(--on-surface-muted); font-size: 13px; font-weight: 400; margin-top: 1rem; letter-spacing: 0.04em; }
257
+ .settings-cue { margin-top: 1rem; }
258
+ .try-row { display: grid; gap: 0.75rem; justify-items: center; margin-top: 1.5rem; }
259
+ .try-label { color: var(--on-surface-muted); font-size: 14px; line-height: 1.6; }
260
+ .error {
261
+ margin: 1rem auto 0;
262
+ max-width: 38rem;
263
+ color: var(--bad);
264
+ background: color-mix(in srgb, var(--bad) 10%, var(--surface));
265
+ padding: 12px;
266
+ border-radius: var(--radius-md);
267
+ font-size: 14px;
268
+ line-height: 1.6;
269
+ }
270
+
271
+ .steps { display: flex; align-items: stretch; justify-content: center; gap: 0.75rem; margin: 3rem 0 2rem; flex-wrap: wrap; }
272
+ .step {
273
+ display: flex;
274
+ flex-direction: column;
275
+ align-items: center;
276
+ gap: 0.25rem;
277
+ padding: 1.5rem;
278
+ min-width: 160px;
279
+ border-radius: var(--radius-lg);
280
+ background: var(--surface-raised);
281
+ box-shadow: var(--shadow-md);
282
+ }
283
+ .step b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; letter-spacing: -0.02em; }
284
+ .step span:last-child { color: var(--on-surface-muted); font-size: 14px; line-height: 1.6; }
285
+ .step .n {
286
+ width: 28px;
287
+ height: 28px;
288
+ border-radius: 50%;
289
+ display: grid;
290
+ place-items: center;
291
+ background: var(--accent);
292
+ color: var(--surface-raised);
293
+ font-weight: 400;
294
+ font-size: 13px;
295
+ margin-bottom: 0.25rem;
296
+ }
297
+ .step-arrow { align-self: center; color: var(--on-surface-subtle); font-size: 1.25rem; }
298
+ .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; text-align: left; }
299
+ .feat {
300
+ background: var(--surface-raised);
301
+ border-radius: var(--radius-lg);
302
+ padding: 2rem;
303
+ box-shadow: var(--shadow-md);
304
+ transition: transform var(--ease), box-shadow var(--ease);
305
+ }
306
+ .feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
307
+ .feat h3 {
308
+ margin: 0 0 0.5rem;
309
+ font-family: var(--font-display);
310
+ font-size: 1.25rem;
311
+ font-weight: 300;
312
+ line-height: 1.4;
313
+ letter-spacing: -0.02em;
314
+ }
315
+ .feat p { margin: 0; color: var(--on-surface-muted); font-size: 14px; line-height: 1.6; }
316
+
317
+ #settings { text-align: left; }
318
+ .settings-wrap { width: min(100%, 36rem); margin: 0 auto; display: grid; gap: 1.5rem; }
319
+ #settings h1 {
320
+ font-family: var(--font-display);
321
+ font-weight: 300;
322
+ font-size: 1.875rem;
323
+ line-height: 1.3;
324
+ letter-spacing: -0.02em;
325
+ margin: 0;
326
+ }
327
+ #settings .lede { margin: 0; max-width: none; text-align: left; }
328
+ #settings .card-head { align-items: flex-start; flex-wrap: wrap; }
329
+ .settings-presets { display: flex; gap: 0.5rem; flex-wrap: wrap; }
330
+ .prefs-group {
331
+ padding: 0.75rem 0.25rem 0.15rem;
332
+ font-size: 13px;
333
+ font-weight: 400;
334
+ line-height: 1.45;
335
+ color: var(--on-surface-muted);
336
+ }
337
+ .settings-note { text-align: left; margin-top: 1rem; }
338
+ .settings-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
339
+ #scan-scope { text-align: left; margin: 0 0 0.75rem; }
340
+ #scan-card.done #scan-scope:not([hidden]) { margin-bottom: 0; }
341
+
342
+ #workspace {
343
+ display: grid;
344
+ grid-template-columns: minmax(0, 1fr) 320px;
345
+ gap: 1.5rem;
346
+ align-items: start;
347
+ text-align: left;
348
+ }
349
+ .stage-col { position: sticky; top: 1rem; min-width: 0; }
350
+ .stage {
351
+ display: grid;
352
+ place-items: center;
353
+ background: repeating-conic-gradient(var(--surface) 0% 25%, var(--surface-sunken) 0% 50%) 50% / 24px 24px;
354
+ border-radius: var(--radius-lg);
355
+ padding: 1rem;
356
+ min-height: 240px;
357
+ overflow: hidden;
358
+ box-shadow: var(--shadow-sm);
359
+ }
360
+ .frame { position: relative; display: inline-block; line-height: 0; box-shadow: var(--shadow-md); border-radius: var(--radius-sm); overflow: hidden; }
361
+ #preview { display: block; max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; }
362
+ .overlay { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
363
+ .box { position: absolute; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--ease), box-shadow var(--ease); }
364
+ .box.on { border: 2px solid #fafaf9; box-shadow: 0 0 0 1px #292524; }
365
+ .box.off { border: 2px dashed var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
366
+ .box.face { border-radius: 50%; }
367
+ .box:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
368
+ .box .tag {
369
+ position: absolute;
370
+ left: -2px;
371
+ top: -24px;
372
+ line-height: 1.45;
373
+ font-family: var(--font-ui);
374
+ font-size: 13px;
375
+ font-weight: 400;
376
+ padding: 4px 8px;
377
+ border-radius: var(--radius-sm);
378
+ background: var(--surface-raised);
379
+ color: var(--on-surface);
380
+ box-shadow: var(--shadow-sm);
381
+ white-space: nowrap;
382
+ opacity: 0;
383
+ pointer-events: none;
384
+ transition: opacity var(--ease);
385
+ }
386
+ .box:hover .tag { opacity: 1; }
387
+ .box.off .tag { color: var(--warn); }
388
+ .box .x {
389
+ position: absolute;
390
+ right: -9px;
391
+ top: -9px;
392
+ width: 20px;
393
+ height: 20px;
394
+ line-height: 18px;
395
+ text-align: center;
396
+ border-radius: 50%;
397
+ background: var(--bad);
398
+ color: var(--canvas);
399
+ font-size: 13px;
400
+ font-weight: 400;
401
+ opacity: 0;
402
+ }
403
+ .box.manual:hover .x { opacity: 1; }
404
+ .box.draft { border: 2px dashed var(--on-surface); background: color-mix(in srgb, var(--on-surface) 12%, transparent); pointer-events: none; }
405
+ .frame.peeking .overlay { opacity: 0; }
406
+
407
+ .scanfx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
408
+ .scanfx i {
409
+ position: absolute;
410
+ left: 0;
411
+ right: 0;
412
+ height: 90px;
413
+ top: -90px;
414
+ background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 28%, transparent));
415
+ animation: scan 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
416
+ }
417
+ @keyframes scan { to { top: 100%; } }
418
+
419
+ .stage-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 0 0; }
420
+ .hint { flex: 1 1 14rem; min-width: min(100%, 14rem); color: var(--on-surface-muted); font-size: 14px; line-height: 1.6; }
421
+ .pagenav { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; color: var(--on-surface-muted); }
422
+
423
+ .panel { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
424
+ .card {
425
+ background: var(--surface-raised);
426
+ border-radius: var(--radius-lg);
427
+ padding: 2rem;
428
+ box-shadow: var(--shadow-md);
429
+ min-width: 0;
430
+ }
431
+ .card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; gap: 0.75rem; min-width: 0; }
432
+ .card h2 {
433
+ margin: 0;
434
+ font-family: var(--font-display);
435
+ font-size: 1.25rem;
436
+ font-weight: 300;
437
+ line-height: 1.4;
438
+ letter-spacing: -0.02em;
439
+ color: var(--on-surface);
440
+ }
441
+ .count-badge {
442
+ font-size: 13px;
443
+ font-weight: 400;
444
+ line-height: 1.45;
445
+ color: var(--on-surface-muted);
446
+ background: var(--surface);
447
+ padding: 8px;
448
+ border-radius: var(--radius-sm);
449
+ }
450
+ .count-badge:empty { display: none; }
451
+ .tag {
452
+ font-size: 13px;
453
+ font-weight: 400;
454
+ line-height: 1.45;
455
+ padding: 8px;
456
+ border-radius: var(--radius-sm);
457
+ color: var(--on-surface-muted);
458
+ background: var(--surface);
459
+ }
460
+ .tag.ok { color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--surface)); }
461
+ .tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
462
+
463
+ .scan-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; font-size: 14px; line-height: 1.6; }
464
+ .scan-steps li { display: flex; align-items: center; gap: 0.75rem; color: var(--on-surface-muted); }
465
+ .scan-steps li .ic { width: 18px; height: 18px; display: grid; place-items: center; font-size: 13px; }
466
+ .scan-steps li.run { color: var(--on-surface); }
467
+ .scan-steps li.run .ic { border: 2px solid var(--surface-sunken); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
468
+ .scan-steps li.done { color: var(--on-surface); }
469
+ .scan-steps li.done .ic { color: var(--good); }
470
+ .scan-steps li .r { margin-left: auto; color: var(--on-surface-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
471
+ @keyframes spin { to { transform: rotate(360deg); } }
472
+ .bar { height: 4px; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
473
+ .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--ease); }
474
+ #scan-card.done .bar { display: none; }
475
+ #scan-card.done .scan-steps { margin-bottom: 0; }
476
+ #scan-card.done .scan-steps li:not(.done) { display: none; }
477
+
478
+ .transcript-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; min-width: 0; max-width: 100%; }
479
+ .transcript-actions {
480
+ display: flex;
481
+ align-items: center;
482
+ flex-wrap: wrap;
483
+ gap: 0.5rem;
484
+ margin-left: auto;
485
+ min-width: 0;
486
+ max-width: 100%;
487
+ }
488
+ .transcript-actions > * { flex: none; max-width: 100%; }
489
+ .transcript-redact {
490
+ font-family: var(--font-ui);
491
+ font-size: 13px;
492
+ font-weight: 400;
493
+ line-height: 1.45;
494
+ color: var(--on-surface-muted);
495
+ background: var(--surface);
496
+ border: 0;
497
+ border-radius: var(--radius-sm);
498
+ padding: 8px 12px;
499
+ cursor: pointer;
500
+ box-shadow: var(--shadow-sm);
501
+ }
502
+ .transcript-redact.on { color: var(--on-surface); background: var(--surface-sunken); }
503
+ #transcript-empty:not([hidden]) + #transcript-text:not([hidden]) { margin-top: 0.75rem; }
504
+ .transcript-toggle {
505
+ flex: 1 1 auto;
506
+ display: flex;
507
+ align-items: center;
508
+ gap: 0.75rem;
509
+ min-width: 0;
510
+ max-width: 100%;
511
+ margin: 0;
512
+ padding: 0;
513
+ border: 0;
514
+ background: transparent;
515
+ box-shadow: none;
516
+ cursor: pointer;
517
+ text-align: left;
518
+ font-family: var(--font-display);
519
+ font-size: 1.25rem;
520
+ font-weight: 300;
521
+ line-height: 1.4;
522
+ letter-spacing: -0.02em;
523
+ color: var(--on-surface);
524
+ }
525
+ .transcript-toggle:hover { background: transparent; transform: none; box-shadow: none; }
526
+ .transcript-toggle #transcript-label { min-width: 0; overflow-wrap: anywhere; }
527
+ .twist {
528
+ width: 0.45rem;
529
+ height: 0.45rem;
530
+ border-right: 1.5px solid var(--on-surface-muted);
531
+ border-bottom: 1.5px solid var(--on-surface-muted);
532
+ transform: rotate(-45deg);
533
+ transition: transform var(--ease);
534
+ flex: none;
535
+ }
536
+ .transcript.open .twist { transform: rotate(45deg); }
537
+ #transcript-panel { margin-top: 1rem; }
538
+ #transcript-empty { text-align: left; }
539
+ #transcript-text {
540
+ margin: 0;
541
+ max-height: 16rem;
542
+ overflow: auto;
543
+ padding: 1rem;
544
+ background: var(--surface-sunken);
545
+ border-radius: var(--radius-md);
546
+ font-family: var(--font-ui);
547
+ font-size: 14px;
548
+ font-weight: 300;
549
+ line-height: 1.6;
550
+ white-space: pre-wrap;
551
+ overflow-wrap: anywhere;
552
+ user-select: text;
553
+ color: var(--on-surface);
554
+ }
555
+
556
+ .cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
557
+ .cat {
558
+ display: flex;
559
+ align-items: center;
560
+ gap: 0.75rem;
561
+ padding: 0.5rem 0.25rem;
562
+ border-radius: var(--radius-md);
563
+ cursor: pointer;
564
+ user-select: none;
565
+ transition: background var(--ease);
566
+ }
567
+ .cat:hover { background: var(--surface); }
568
+ .cat .ic { width: 24px; text-align: center; }
569
+ .cat .lbl { flex: 1; font-size: 15px; font-weight: 400; line-height: 1.5; }
570
+ .cat .n {
571
+ min-width: 22px;
572
+ text-align: center;
573
+ font-size: 13px;
574
+ font-weight: 400;
575
+ color: var(--on-surface-muted);
576
+ background: var(--surface);
577
+ border-radius: var(--radius-sm);
578
+ padding: 2px 8px;
579
+ }
580
+ .cat.has .n { color: var(--on-surface); background: var(--surface-sunken); }
581
+ .cat.none { opacity: 0.55; }
582
+ .switch { width: 34px; height: 20px; border-radius: 99px; background: var(--surface-sunken); position: relative; transition: background var(--ease); flex: none; }
583
+ .switch::after {
584
+ content: "";
585
+ position: absolute;
586
+ top: 2px;
587
+ left: 2px;
588
+ width: 16px;
589
+ height: 16px;
590
+ border-radius: 50%;
591
+ background: var(--surface-raised);
592
+ box-shadow: var(--shadow-sm);
593
+ transition: transform var(--ease);
594
+ }
595
+ .cat.enabled .switch { background: var(--accent); }
596
+ .cat.enabled .switch::after { transform: translateX(14px); }
597
+
598
+ .seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-sunken); border-radius: var(--radius-md); padding: 4px; gap: 4px; }
599
+ .seg button {
600
+ font-family: var(--font-ui);
601
+ font-weight: 400;
602
+ font-size: 13px;
603
+ line-height: 1.45;
604
+ color: var(--on-surface-muted);
605
+ background: transparent;
606
+ border: 0;
607
+ padding: 8px;
608
+ border-radius: var(--radius-sm);
609
+ cursor: pointer;
610
+ transition: background var(--ease), color var(--ease), box-shadow var(--ease);
611
+ }
612
+ .seg button.on { background: var(--surface-raised); color: var(--on-surface); box-shadow: var(--shadow-sm); }
613
+ .slider { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; font-size: 14px; line-height: 1.6; color: var(--on-surface-muted); }
614
+ .slider input { flex: 1; accent-color: var(--accent); }
615
+
616
+ .meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 14px; line-height: 1.6; }
617
+ .meta li { display: flex; gap: 0.75rem; align-items: baseline; }
618
+ .meta .k { color: var(--on-surface-muted); flex: none; }
619
+ .meta .v { margin-left: auto; text-align: right; word-break: break-word; }
620
+ .meta .v.high { color: var(--bad); }
621
+ .meta .v.med { color: var(--warn); }
622
+ .meta .empty { color: var(--on-surface-muted); }
623
+
624
+ .export { position: sticky; bottom: 1rem; display: grid; gap: 0.75rem; }
625
+ .row { display: flex; gap: 0.75rem; }
626
+ .fmt { display: flex; align-items: center; gap: 0.75rem; color: var(--on-surface-muted); font-size: 15px; font-weight: 400; width: 100%; }
627
+ .fmt select {
628
+ flex: 1;
629
+ font-family: var(--font-ui);
630
+ font-size: 15px;
631
+ font-weight: 300;
632
+ line-height: 1.7;
633
+ color: var(--on-surface);
634
+ background: var(--surface);
635
+ border: 0;
636
+ border-radius: var(--radius-md);
637
+ padding: 12px;
638
+ box-shadow: var(--shadow-sm);
639
+ transition: background var(--ease), box-shadow var(--ease);
640
+ }
641
+ .fmt select:hover, .fmt select:focus { background: var(--surface-raised); }
642
+ .save-note {
643
+ font-size: 14px;
644
+ line-height: 1.6;
645
+ color: var(--good);
646
+ background: color-mix(in srgb, var(--good) 12%, var(--surface));
647
+ border-radius: var(--radius-md);
648
+ padding: 12px;
649
+ }
650
+ .save-note.bad { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
651
+ .fine { margin: 0; color: var(--on-surface-muted); font-size: 14px; line-height: 1.6; text-align: center; }
652
+
653
+ .toast {
654
+ position: fixed;
655
+ left: 50%;
656
+ bottom: 1.5rem;
657
+ transform: translateX(-50%);
658
+ z-index: 20;
659
+ background: var(--surface-raised);
660
+ color: var(--on-surface);
661
+ padding: 12px 1rem;
662
+ border-radius: var(--radius-lg);
663
+ box-shadow: var(--shadow-lg);
664
+ font-size: 14px;
665
+ line-height: 1.6;
666
+ max-width: min(90vw, 28rem);
667
+ }
668
+ .dragveil {
669
+ position: fixed;
670
+ inset: 0;
671
+ z-index: 30;
672
+ display: grid;
673
+ place-items: center;
674
+ background: color-mix(in srgb, var(--canvas) 82%, transparent);
675
+ backdrop-filter: blur(8px);
676
+ font-family: var(--font-display);
677
+ font-size: 1.875rem;
678
+ font-weight: 300;
679
+ letter-spacing: -0.02em;
680
+ }
681
+ .dragveil > div { padding: 2rem 3rem; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
682
+
683
+ .foot {
684
+ position: relative;
685
+ z-index: 1;
686
+ display: flex;
687
+ justify-content: space-between;
688
+ gap: 0.75rem;
689
+ flex-wrap: wrap;
690
+ padding-top: 1rem;
691
+ padding-bottom: 1.5rem;
692
+ color: var(--on-surface-muted);
693
+ font-size: 13px;
694
+ font-weight: 400;
695
+ line-height: 1.45;
696
+ }
697
+
698
+ .samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
699
+ .chip {
700
+ font-family: var(--font-ui);
701
+ font-size: 13px;
702
+ font-weight: 400;
703
+ line-height: 1.45;
704
+ color: var(--on-surface);
705
+ background: var(--surface);
706
+ border: 0;
707
+ border-radius: var(--radius-sm);
708
+ padding: 8px 12px;
709
+ cursor: pointer;
710
+ box-shadow: var(--shadow-sm);
711
+ transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
712
+ }
713
+ .chip:hover { background: var(--surface-raised); transform: translateY(-1px); box-shadow: var(--shadow-md); }
714
+ .chip:active { transform: translateY(0); }
715
+ .faq { margin: 3rem auto 0; max-width: 40rem; text-align: left; }
716
+ .faq h2 {
717
+ font-family: var(--font-display);
718
+ font-size: 1.875rem;
719
+ font-weight: 300;
720
+ line-height: 1.3;
721
+ letter-spacing: -0.02em;
722
+ margin: 0 0 1.5rem;
723
+ text-align: center;
724
+ }
725
+ .faq details {
726
+ background: var(--surface-raised);
727
+ border-radius: var(--radius-lg);
728
+ padding: 1rem 1.25rem;
729
+ margin-bottom: 0.75rem;
730
+ box-shadow: var(--shadow-sm);
731
+ }
732
+ .faq summary { cursor: pointer; font-weight: 400; font-size: 15px; line-height: 1.5; }
733
+ .faq details[open] summary { margin-bottom: 0.5rem; }
734
+ .faq p { margin: 0; color: var(--on-surface-muted); font-size: 14px; line-height: 1.6; }
735
+ noscript .error { display: block; }
736
+
737
+ @media (max-width: 760px) {
738
+ #workspace { grid-template-columns: 1fr; }
739
+ .stage-col { position: static; }
740
+ #preview { max-height: 60vh; }
741
+ .export { position: static; }
742
+ .pill { display: none; }
743
+ .step-arrow { display: none; }
744
+ .hero h1 { font-size: 1.875rem; }
745
+ }
746
+ @media (prefers-reduced-motion: reduce) {
747
+ * { animation: none !important; transition: none !important; }
748
+ }