dsh-reading-inbox 0.2.1 → 0.4.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/web/style.css CHANGED
@@ -1,739 +1,865 @@
1
- :root {
2
- color-scheme: light dark;
3
- --bg: #f5f6f8;
4
- --panel: #ffffff;
5
- --panel-2: #f0f2f5;
6
- --panel-3: #e9ecf0;
7
- --border: #e1e5ea;
8
- --text: #17191c;
9
- --muted: #6a7280;
10
- --accent: #2563eb;
11
- --accent-soft: #e8efff;
12
- --accent-text: #1d4ed8;
13
- --tag: #edf1f6;
14
- --shadow: 0 1px 2px rgba(16, 24, 40, .06);
15
- --radius: 12px;
16
- }
17
-
18
- @media (prefers-color-scheme: dark) {
19
- :root {
20
- --bg: #101113;
21
- --panel: #181a1d;
22
- --panel-2: #202326;
23
- --panel-3: #2a2e33;
24
- --border: #2a2f35;
25
- --text: #e8eaed;
26
- --muted: #9aa1ab;
27
- --accent: #7aa2ff;
28
- --accent-soft: #1b2a44;
29
- --accent-text: #93b4ff;
30
- --tag: #23272c;
31
- --shadow: none;
32
- }
33
- }
34
-
35
- * { box-sizing: border-box; }
36
-
37
- html, body {
38
- height: 100%;
39
- margin: 0;
40
- }
41
-
42
- body {
43
- background: var(--bg);
44
- color: var(--text);
45
- font-family: var(--dsw-font-family, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
46
- font-size: 14px;
47
- -webkit-font-smoothing: antialiased;
48
- }
49
-
50
- button, input { font: inherit; color: inherit; }
51
-
52
- button { cursor: pointer; }
53
-
54
- .app {
55
- height: 100dvh;
56
- display: flex;
57
- flex-direction: column;
58
- }
59
-
60
- .topbar {
61
- display: flex;
62
- align-items: center;
63
- gap: 18px;
64
- padding: 12px 18px;
65
- background: var(--panel);
66
- border-bottom: 1px solid var(--border);
67
- flex-wrap: wrap;
68
- }
69
-
70
- .brand {
71
- display: flex;
72
- align-items: center;
73
- gap: 10px;
74
- min-width: 230px;
75
- }
76
-
77
- .brand-icon {
78
- width: 38px;
79
- height: 38px;
80
- display: grid;
81
- place-items: center;
82
- border-radius: 11px;
83
- background: var(--accent-soft);
84
- font-size: 20px;
85
- }
86
-
87
- .brand-copy h1 {
88
- margin: 0;
89
- font-size: 16px;
90
- line-height: 1.2;
91
- letter-spacing: .01em;
92
- }
93
-
94
- .brand-copy p {
95
- margin: 3px 0 0;
96
- font-size: 12px;
97
- color: var(--muted);
98
- white-space: nowrap;
99
- }
100
-
101
- .clip-form {
102
- display: flex;
103
- align-items: center;
104
- gap: 8px;
105
- flex: 1;
106
- min-width: 320px;
107
- }
108
-
109
- .clip-inputs {
110
- display: flex;
111
- gap: 8px;
112
- flex: 1;
113
- min-width: 0;
114
- }
115
-
116
- input[type="url"], input[type="text"], input[type="search"] {
117
- height: 36px;
118
- border: 1px solid var(--border);
119
- border-radius: 9px;
120
- background: var(--bg);
121
- padding: 0 11px;
122
- outline: none;
123
- min-width: 0;
124
- transition: border-color .15s, box-shadow .15s, background .15s;
125
- }
126
-
127
- #clip-url { flex: 1.6; }
128
- input[type="text"] { flex: 1; }
129
-
130
- input:focus {
131
- border-color: var(--accent);
132
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
133
- background: var(--panel);
134
- }
135
-
136
- input::placeholder { color: var(--muted); }
137
-
138
- button.primary {
139
- height: 36px;
140
- padding: 0 16px;
141
- border: 1px solid transparent;
142
- border-radius: 9px;
143
- background: var(--accent);
144
- color: #fff;
145
- font-weight: 600;
146
- white-space: nowrap;
147
- }
148
-
149
- button.primary:hover { filter: brightness(1.06); }
150
- button.primary:disabled { opacity: .55; cursor: default; }
151
-
152
- .layout {
153
- flex: 1;
154
- min-height: 0;
155
- display: grid;
156
- grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
157
- }
158
-
159
- .list-pane {
160
- min-height: 0;
161
- display: flex;
162
- flex-direction: column;
163
- background: var(--panel);
164
- border-right: 1px solid var(--border);
165
- }
166
-
167
- .list-head {
168
- padding: 12px;
169
- border-bottom: 1px solid var(--border);
170
- display: flex;
171
- flex-direction: column;
172
- gap: 9px;
173
- }
174
-
175
- .list-head input[type="search"] { width: 100%; }
176
-
177
- .tabs {
178
- display: flex;
179
- gap: 4px;
180
- flex-wrap: wrap;
181
- }
182
-
183
- .tab {
184
- border: 1px solid transparent;
185
- background: transparent;
186
- color: var(--muted);
187
- border-radius: 8px;
188
- padding: 5px 9px;
189
- font-size: 12px;
190
- }
191
-
192
- .tab:hover { background: var(--panel-2); color: var(--text); }
193
-
194
- .tab.active {
195
- background: var(--accent-soft);
196
- color: var(--accent-text);
197
- font-weight: 600;
198
- }
199
-
200
- .tab span {
201
- display: inline-block;
202
- min-width: 16px;
203
- margin-left: 2px;
204
- opacity: .8;
205
- font-variant-numeric: tabular-nums;
206
- }
207
-
208
- .tag-filter {
209
- display: flex;
210
- align-items: center;
211
- gap: 6px;
212
- font-size: 12px;
213
- color: var(--muted);
214
- background: var(--panel-2);
215
- border-radius: 8px;
216
- padding: 5px 8px;
217
- }
218
-
219
- .tag-filter[hidden] { display: none; }
220
-
221
- .tag-filter span { color: var(--text); font-weight: 600; }
222
-
223
- .tag-filter button {
224
- margin-left: auto;
225
- border: 0;
226
- background: transparent;
227
- color: var(--accent-text);
228
- font-size: 12px;
229
- padding: 0;
230
- }
231
-
232
- .list {
233
- flex: 1;
234
- min-height: 0;
235
- overflow: auto;
236
- padding: 8px;
237
- display: flex;
238
- flex-direction: column;
239
- gap: 5px;
240
- }
241
-
242
- .item {
243
- padding: 10px 11px;
244
- border: 1px solid transparent;
245
- border-radius: 11px;
246
- cursor: pointer;
247
- outline: none;
248
- transition: background .12s, border-color .12s;
249
- }
250
-
251
- .item:hover { background: var(--panel-2); }
252
-
253
- .item.selected {
254
- background: var(--accent-soft);
255
- border-color: color-mix(in srgb, var(--accent) 35%, transparent);
256
- }
257
-
258
- .item:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
259
-
260
- .item-top {
261
- display: flex;
262
- align-items: center;
263
- justify-content: space-between;
264
- gap: 8px;
265
- font-size: 11px;
266
- color: var(--muted);
267
- }
268
-
269
- .item-top .site {
270
- overflow: hidden;
271
- text-overflow: ellipsis;
272
- white-space: nowrap;
273
- }
274
-
275
- .item h3 {
276
- margin: 4px 0;
277
- font-size: 14px;
278
- line-height: 1.4;
279
- font-weight: 600;
280
- }
281
-
282
- .item .excerpt {
283
- margin: 0;
284
- font-size: 12px;
285
- line-height: 1.5;
286
- color: var(--muted);
287
- display: -webkit-box;
288
- -webkit-line-clamp: 2;
289
- -webkit-box-orient: vertical;
290
- overflow: hidden;
291
- }
292
-
293
- .item-bottom {
294
- display: flex;
295
- align-items: center;
296
- gap: 6px;
297
- margin-top: 7px;
298
- font-size: 11px;
299
- color: var(--muted);
300
- flex-wrap: wrap;
301
- }
302
-
303
- .status-dot {
304
- width: 6px;
305
- height: 6px;
306
- border-radius: 50%;
307
- background: var(--muted);
308
- flex: none;
309
- }
310
-
311
- .status-dot.unread { background: var(--accent); }
312
- .status-dot.reading { background: #d97706; }
313
- .status-dot.read { background: #059669; }
314
- .status-dot.archived { background: var(--muted); }
315
-
316
- .tag {
317
- display: inline-flex;
318
- align-items: center;
319
- border: 0;
320
- background: var(--tag);
321
- color: var(--muted);
322
- border-radius: 999px;
323
- padding: 1px 7px;
324
- font-size: 11px;
325
- line-height: 1.6;
326
- }
327
-
328
- .tag:hover { color: var(--text); background: var(--panel-3); }
329
-
330
- .detail-pane {
331
- min-width: 0;
332
- min-height: 0;
333
- overflow: auto;
334
- background: var(--bg);
335
- }
336
-
337
- .empty-state {
338
- height: 100%;
339
- min-height: 320px;
340
- display: flex;
341
- flex-direction: column;
342
- align-items: center;
343
- justify-content: center;
344
- text-align: center;
345
- color: var(--muted);
346
- padding: 40px;
347
- }
348
-
349
- .empty-icon { font-size: 40px; opacity: .75; }
350
- .empty-state h2 { margin: 12px 0 4px; font-size: 17px; color: var(--text); }
351
- .empty-state p { margin: 0; font-size: 13px; }
352
-
353
- .detail-head {
354
- padding: 22px 30px 16px;
355
- background: var(--panel);
356
- border-bottom: 1px solid var(--border);
357
- }
358
-
359
- .detail-meta {
360
- display: flex;
361
- gap: 8px;
362
- flex-wrap: wrap;
363
- font-size: 12px;
364
- color: var(--muted);
365
- }
366
-
367
- .detail-head h2 {
368
- margin: 7px 0 8px;
369
- font-size: 23px;
370
- line-height: 1.3;
371
- letter-spacing: -.01em;
372
- }
373
-
374
- .detail-sub {
375
- display: flex;
376
- align-items: center;
377
- gap: 10px;
378
- flex-wrap: wrap;
379
- font-size: 12px;
380
- color: var(--muted);
381
- }
382
-
383
- .detail-sub a { color: var(--accent-text); text-decoration: none; }
384
- .detail-sub a:hover { text-decoration: underline; }
385
-
386
- .actions {
387
- display: flex;
388
- gap: 6px;
389
- flex-wrap: wrap;
390
- margin: 13px 0 9px;
391
- }
392
-
393
- .button {
394
- display: inline-flex;
395
- align-items: center;
396
- height: 30px;
397
- padding: 0 10px;
398
- border: 1px solid var(--border);
399
- border-radius: 8px;
400
- background: var(--panel);
401
- color: var(--text);
402
- font-size: 12px;
403
- text-decoration: none;
404
- }
405
-
406
- .button:hover { background: var(--panel-2); }
407
- .button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
408
- .button.ghost:hover { background: var(--panel-2); color: var(--text); }
409
-
410
- .detail-tags {
411
- display: flex;
412
- align-items: center;
413
- gap: 6px;
414
- row-gap: 6px;
415
- flex-wrap: wrap;
416
- margin-top: 8px;
417
- }
418
-
419
- .detail-tags input {
420
- height: 28px;
421
- flex: 1 1 150px;
422
- width: auto;
423
- min-width: 120px;
424
- max-width: 230px;
425
- font-size: 12px;
426
- }
427
-
428
- .detail-tags .button { flex: none; }
429
-
430
- .detail-head h2 { overflow-wrap: anywhere; }
431
-
432
- .article {
433
- max-width: 780px;
434
- margin: 0 auto;
435
- padding: 26px 30px 90px;
436
- font-size: 15px;
437
- line-height: 1.78;
438
- overflow-wrap: break-word;
439
- }
440
-
441
- .article > :first-child { margin-top: 0; }
442
-
443
- .article h1, .article h2, .article h3, .article h4 {
444
- line-height: 1.35;
445
- margin: 1.5em 0 .6em;
446
- }
447
-
448
- .article h1 { font-size: 1.6em; }
449
- .article h2 { font-size: 1.35em; }
450
- .article h3 { font-size: 1.15em; }
451
-
452
- .article p { margin: 0 0 1em; }
453
- .article a { color: var(--accent-text); text-decoration: none; }
454
- .article a:hover { text-decoration: underline; }
455
-
456
- .article img {
457
- max-width: 100%;
458
- height: auto;
459
- border-radius: 8px;
460
- display: block;
461
- margin: 1em auto;
462
- }
463
-
464
- .article blockquote {
465
- margin: 1em 0;
466
- padding: 2px 0 2px 14px;
467
- border-left: 3px solid var(--border);
468
- color: var(--muted);
469
- }
470
-
471
- .article pre {
472
- background: var(--panel);
473
- border: 1px solid var(--border);
474
- border-radius: 10px;
475
- padding: 13px 15px;
476
- overflow: auto;
477
- font-size: 13px;
478
- line-height: 1.55;
479
- }
480
-
481
- .article code {
482
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
483
- font-size: .92em;
484
- background: var(--panel-2);
485
- border-radius: 5px;
486
- padding: 1px 5px;
487
- }
488
-
489
- .article pre code { background: transparent; padding: 0; }
490
-
491
- .article table {
492
- width: 100%;
493
- border-collapse: collapse;
494
- margin: 1em 0;
495
- font-size: 13px;
496
- display: block;
497
- overflow: auto;
498
- }
499
-
500
- .article th, .article td {
501
- border: 1px solid var(--border);
502
- padding: 6px 9px;
503
- text-align: left;
504
- vertical-align: top;
505
- }
506
-
507
- .article th { background: var(--panel-2); }
508
-
509
- .article hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
510
-
511
- .article-note {
512
- color: var(--muted);
513
- font-size: 12px;
514
- border-top: 1px solid var(--border);
515
- padding-top: 10px;
516
- }
517
-
518
- .article ul, .article ol { padding-left: 1.5em; }
519
- .article li { margin: .25em 0; }
520
-
521
- .toast {
522
- position: fixed;
523
- left: 50%;
524
- bottom: 22px;
525
- transform: translateX(-50%);
526
- background: #101214;
527
- color: #fff;
528
- border: 1px solid rgba(255, 255, 255, .12);
529
- border-radius: 9px;
530
- padding: 9px 14px;
531
- font-size: 13px;
532
- box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
533
- z-index: 50;
534
- max-width: min(90vw, 560px);
535
- }
536
-
537
- .toast.error { background: #4b1113; border-color: #7a1c20; }
538
-
539
- .skeleton {
540
- height: 84px;
541
- border-radius: 11px;
542
- background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2));
543
- background-size: 200% 100%;
544
- animation: shimmer 1.2s linear infinite;
545
- }
546
-
547
- @keyframes shimmer {
548
- from { background-position: 200% 0; }
549
- to { background-position: -200% 0; }
550
- }
551
-
552
- .list-empty {
553
- padding: 28px 14px;
554
- text-align: center;
555
- color: var(--muted);
556
- font-size: 13px;
557
- }
558
-
559
- .mobile-back { display: none; }
560
-
561
- @media (max-width: 820px) {
562
- .topbar { padding: 10px 12px; gap: 10px; }
563
- .clip-form { min-width: 100%; }
564
- .clip-inputs { flex-direction: column; }
565
- #clip-url, input[type="text"] { flex: none; width: 100%; }
566
- .layout { grid-template-columns: 1fr; }
567
- .detail-pane { display: none; }
568
- .layout.detail-open .list-pane { display: none; }
569
- .layout.detail-open .detail-pane { display: block; }
570
- .detail-head { padding: 16px; }
571
- .detail-head h2 { font-size: 20px; }
572
- .article { padding: 18px 16px 70px; font-size: 15px; }
573
- .mobile-back { display: inline-flex; }
574
- }
575
-
576
- .selection-toolbar {
577
- position: fixed;
578
- z-index: 60;
579
- display: flex;
580
- flex-direction: column;
581
- gap: 8px;
582
- width: min(390px, calc(100vw - 24px));
583
- padding: 10px;
584
- border: 1px solid var(--border);
585
- border-radius: 12px;
586
- background: var(--panel);
587
- box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
588
- }
589
-
590
- .selection-toolbar[hidden] { display: none; }
591
-
592
- .selection-quote {
593
- padding-left: 8px;
594
- border-left: 3px solid var(--accent);
595
- color: var(--muted);
596
- font-size: 12px;
597
- line-height: 1.45;
598
- max-height: 44px;
599
- overflow: hidden;
600
- }
601
-
602
- .selection-controls {
603
- display: flex;
604
- align-items: center;
605
- gap: 6px;
606
- flex-wrap: wrap;
607
- }
608
-
609
- .color-dot {
610
- display: inline-block;
611
- width: 18px;
612
- height: 18px;
613
- padding: 0;
614
- border: 2px solid transparent;
615
- border-radius: 50%;
616
- flex: none;
617
- }
618
-
619
- .color-dot.active {
620
- border-color: var(--text);
621
- box-shadow: 0 0 0 2px var(--panel);
622
- transform: scale(1.08);
623
- }
624
-
625
- .color-dot.yellow { background: #facc15; }
626
- .color-dot.green { background: #22c55e; }
627
- .color-dot.blue { background: #3b82f6; }
628
- .color-dot.red { background: #ef4444; }
629
-
630
- #selection-note {
631
- flex: 1 1 140px;
632
- min-width: 0;
633
- height: 30px;
634
- padding: 0 8px;
635
- border: 1px solid var(--border);
636
- border-radius: 8px;
637
- background: var(--panel-2);
638
- }
639
-
640
- .annotation-section { padding: 0 30px 42px; }
641
-
642
- .annotation-head {
643
- display: flex;
644
- align-items: baseline;
645
- justify-content: space-between;
646
- gap: 12px;
647
- margin-top: 8px;
648
- padding-top: 18px;
649
- border-top: 1px solid var(--border);
650
- }
651
-
652
- .annotation-head h3 { margin: 0; font-size: 15px; }
653
- .annotation-head h3 span { color: var(--muted); font-weight: 400; }
654
- .annotation-head p { margin: 0; color: var(--muted); font-size: 12px; }
655
-
656
- .annotation-empty { padding: 12px 0; color: var(--muted); font-size: 13px; }
657
-
658
- .annotation-item {
659
- margin: 10px 0;
660
- padding: 10px 12px;
661
- border: 1px solid var(--border);
662
- border-radius: 10px;
663
- background: var(--panel);
664
- }
665
-
666
- .annotation-item.stale { opacity: .72; }
667
- .annotation-item.pulse { animation: annotationPulse 1.1s ease; }
668
-
669
- .annotation-top {
670
- display: flex;
671
- align-items: center;
672
- gap: 8px;
673
- color: var(--muted);
674
- font-size: 11px;
675
- }
676
-
677
- .annotation-top .color-dot { width: 14px; height: 14px; }
678
- .annotation-spacer { flex: 1; }
679
-
680
- .annotation-item blockquote {
681
- margin: 8px 0;
682
- padding: 6px 10px;
683
- border-left: 3px solid var(--border);
684
- color: var(--text);
685
- font-size: 13px;
686
- line-height: 1.6;
687
- }
688
-
689
- .annotation-note-row { display: flex; gap: 6px; }
690
-
691
- .annotation-note {
692
- flex: 1;
693
- min-width: 0;
694
- height: 30px;
695
- padding: 0 8px;
696
- border: 1px solid var(--border);
697
- border-radius: 8px;
698
- background: var(--panel-2);
699
- }
700
-
701
- .annotation-colors { display: flex; gap: 5px; margin-top: 7px; }
702
-
703
- .button.small { height: 26px; padding: 0 8px; font-size: 12px; }
704
- .button.danger { color: #b42318; border-color: #f3c7c4; }
705
-
706
- mark.hl {
707
- padding: 0 1px;
708
- border-radius: 3px;
709
- color: inherit;
710
- cursor: pointer;
711
- }
712
-
713
- .hl-yellow { background: #fef08a; }
714
- .hl-green { background: #bbf7d0; }
715
- .hl-blue { background: #bfdbfe; }
716
- .hl-red { background: #fecaca; }
717
-
718
- @media (prefers-color-scheme: dark) {
719
- .hl-yellow { background: rgba(250, 204, 21, .34); }
720
- .hl-green { background: rgba(34, 197, 94, .30); }
721
- .hl-blue { background: rgba(59, 130, 246, .32); }
722
- .hl-red { background: rgba(239, 68, 68, .32); }
723
- }
724
-
725
- @keyframes annotationPulse {
726
- 0%, 100% { box-shadow: 0 0 0 0 transparent; }
727
- 35% { box-shadow: 0 0 0 3px var(--accent-soft); }
728
- }
729
-
730
- @media (max-width: 820px) {
731
- .annotation-section { padding: 0 16px 70px; }
732
- .annotation-head { flex-direction: column; align-items: flex-start; gap: 4px; }
733
- .selection-toolbar { width: calc(100vw - 24px); }
734
- }
735
-
736
- mark.hl.pulse {
737
- outline: 2px solid var(--accent);
738
- outline-offset: 1px;
739
- }
1
+ :root {
2
+ color-scheme: light dark;
3
+ --bg: #f5f6f8;
4
+ --panel: #ffffff;
5
+ --panel-2: #f0f2f5;
6
+ --panel-3: #e9ecf0;
7
+ --border: #e1e5ea;
8
+ --text: #17191c;
9
+ --muted: #6a7280;
10
+ --accent: #2563eb;
11
+ --accent-soft: #e8efff;
12
+ --accent-text: #1d4ed8;
13
+ --tag: #edf1f6;
14
+ --shadow: 0 1px 2px rgba(16, 24, 40, .06);
15
+ --radius: 12px;
16
+ }
17
+
18
+ @media (prefers-color-scheme: dark) {
19
+ :root {
20
+ --bg: #101113;
21
+ --panel: #181a1d;
22
+ --panel-2: #202326;
23
+ --panel-3: #2a2e33;
24
+ --border: #2a2f35;
25
+ --text: #e8eaed;
26
+ --muted: #9aa1ab;
27
+ --accent: #7aa2ff;
28
+ --accent-soft: #1b2a44;
29
+ --accent-text: #93b4ff;
30
+ --tag: #23272c;
31
+ --shadow: none;
32
+ }
33
+ }
34
+
35
+ * { box-sizing: border-box; }
36
+
37
+ html, body {
38
+ height: 100%;
39
+ margin: 0;
40
+ }
41
+
42
+ body {
43
+ background: var(--bg);
44
+ color: var(--text);
45
+ font-family: var(--dsw-font-family, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
46
+ font-size: 14px;
47
+ -webkit-font-smoothing: antialiased;
48
+ }
49
+
50
+ button, input { font: inherit; color: inherit; }
51
+
52
+ button { cursor: pointer; }
53
+
54
+ .app {
55
+ height: 100dvh;
56
+ display: flex;
57
+ flex-direction: column;
58
+ }
59
+
60
+ .topbar {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 18px;
64
+ padding: 12px 18px;
65
+ background: var(--panel);
66
+ border-bottom: 1px solid var(--border);
67
+ flex-wrap: wrap;
68
+ }
69
+
70
+ .brand {
71
+ display: flex;
72
+ align-items: center;
73
+ gap: 10px;
74
+ min-width: 230px;
75
+ }
76
+
77
+ .brand-icon {
78
+ width: 38px;
79
+ height: 38px;
80
+ display: grid;
81
+ place-items: center;
82
+ border-radius: 11px;
83
+ background: var(--accent-soft);
84
+ font-size: 20px;
85
+ }
86
+
87
+ .brand-copy h1 {
88
+ margin: 0;
89
+ font-size: 16px;
90
+ line-height: 1.2;
91
+ letter-spacing: .01em;
92
+ }
93
+
94
+ .brand-copy p {
95
+ margin: 3px 0 0;
96
+ font-size: 12px;
97
+ color: var(--muted);
98
+ white-space: nowrap;
99
+ }
100
+
101
+ .clip-form {
102
+ display: flex;
103
+ align-items: center;
104
+ gap: 8px;
105
+ flex: 1;
106
+ min-width: 320px;
107
+ }
108
+
109
+ .clip-inputs {
110
+ display: flex;
111
+ gap: 8px;
112
+ flex: 1;
113
+ min-width: 0;
114
+ }
115
+
116
+ input[type="url"], input[type="text"], input[type="search"] {
117
+ height: 36px;
118
+ border: 1px solid var(--border);
119
+ border-radius: 9px;
120
+ background: var(--bg);
121
+ padding: 0 11px;
122
+ outline: none;
123
+ min-width: 0;
124
+ transition: border-color .15s, box-shadow .15s, background .15s;
125
+ }
126
+
127
+ #clip-url { flex: 1.6; }
128
+ input[type="text"] { flex: 1; }
129
+
130
+ input:focus {
131
+ border-color: var(--accent);
132
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
133
+ background: var(--panel);
134
+ }
135
+
136
+ input::placeholder { color: var(--muted); }
137
+
138
+ button.primary {
139
+ height: 36px;
140
+ padding: 0 16px;
141
+ border: 1px solid transparent;
142
+ border-radius: 9px;
143
+ background: var(--accent);
144
+ color: #fff;
145
+ font-weight: 600;
146
+ white-space: nowrap;
147
+ }
148
+
149
+ button.primary:hover { filter: brightness(1.06); }
150
+ button.primary:disabled { opacity: .55; cursor: default; }
151
+
152
+ .layout {
153
+ flex: 1;
154
+ min-height: 0;
155
+ display: grid;
156
+ grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
157
+ }
158
+
159
+ .list-pane {
160
+ min-height: 0;
161
+ display: flex;
162
+ flex-direction: column;
163
+ background: var(--panel);
164
+ border-right: 1px solid var(--border);
165
+ }
166
+
167
+ .list-head {
168
+ padding: 12px;
169
+ border-bottom: 1px solid var(--border);
170
+ display: flex;
171
+ flex-direction: column;
172
+ gap: 9px;
173
+ }
174
+
175
+ .list-head input[type="search"] { width: 100%; }
176
+
177
+ .tabs {
178
+ display: flex;
179
+ gap: 4px;
180
+ flex-wrap: wrap;
181
+ }
182
+
183
+ .tab {
184
+ border: 1px solid transparent;
185
+ background: transparent;
186
+ color: var(--muted);
187
+ border-radius: 8px;
188
+ padding: 5px 9px;
189
+ font-size: 12px;
190
+ }
191
+
192
+ .tab:hover { background: var(--panel-2); color: var(--text); }
193
+
194
+ .tab.active {
195
+ background: var(--accent-soft);
196
+ color: var(--accent-text);
197
+ font-weight: 600;
198
+ }
199
+
200
+ .tab span {
201
+ display: inline-block;
202
+ min-width: 16px;
203
+ margin-left: 2px;
204
+ opacity: .8;
205
+ font-variant-numeric: tabular-nums;
206
+ }
207
+
208
+ .tag-filter {
209
+ display: flex;
210
+ align-items: center;
211
+ gap: 6px;
212
+ font-size: 12px;
213
+ color: var(--muted);
214
+ background: var(--panel-2);
215
+ border-radius: 8px;
216
+ padding: 5px 8px;
217
+ }
218
+
219
+ .tag-filter[hidden] { display: none; }
220
+
221
+ .tag-filter span { color: var(--text); font-weight: 600; }
222
+
223
+ .tag-filter button {
224
+ margin-left: auto;
225
+ border: 0;
226
+ background: transparent;
227
+ color: var(--accent-text);
228
+ font-size: 12px;
229
+ padding: 0;
230
+ }
231
+
232
+ .list {
233
+ flex: 1;
234
+ min-height: 0;
235
+ overflow: auto;
236
+ padding: 8px;
237
+ display: flex;
238
+ flex-direction: column;
239
+ gap: 5px;
240
+ }
241
+
242
+ .item {
243
+ padding: 10px 11px;
244
+ border: 1px solid transparent;
245
+ border-radius: 11px;
246
+ cursor: pointer;
247
+ outline: none;
248
+ transition: background .12s, border-color .12s;
249
+ }
250
+
251
+ .item:hover { background: var(--panel-2); }
252
+
253
+ .item.selected {
254
+ background: var(--accent-soft);
255
+ border-color: color-mix(in srgb, var(--accent) 35%, transparent);
256
+ }
257
+
258
+ .item:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
259
+
260
+ .item-top {
261
+ display: flex;
262
+ align-items: center;
263
+ justify-content: space-between;
264
+ gap: 8px;
265
+ font-size: 11px;
266
+ color: var(--muted);
267
+ }
268
+
269
+ .item-top .site {
270
+ overflow: hidden;
271
+ text-overflow: ellipsis;
272
+ white-space: nowrap;
273
+ }
274
+
275
+ .item h3 {
276
+ margin: 4px 0;
277
+ font-size: 14px;
278
+ line-height: 1.4;
279
+ font-weight: 600;
280
+ }
281
+
282
+ .item .excerpt {
283
+ margin: 0;
284
+ font-size: 12px;
285
+ line-height: 1.5;
286
+ color: var(--muted);
287
+ display: -webkit-box;
288
+ -webkit-line-clamp: 2;
289
+ -webkit-box-orient: vertical;
290
+ overflow: hidden;
291
+ }
292
+
293
+ .item-bottom {
294
+ display: flex;
295
+ align-items: center;
296
+ gap: 6px;
297
+ margin-top: 7px;
298
+ font-size: 11px;
299
+ color: var(--muted);
300
+ flex-wrap: wrap;
301
+ }
302
+
303
+ .status-dot {
304
+ width: 6px;
305
+ height: 6px;
306
+ border-radius: 50%;
307
+ background: var(--muted);
308
+ flex: none;
309
+ }
310
+
311
+ .status-dot.unread { background: var(--accent); }
312
+ .status-dot.reading { background: #d97706; }
313
+ .status-dot.read { background: #059669; }
314
+ .status-dot.archived { background: var(--muted); }
315
+
316
+ .tag {
317
+ display: inline-flex;
318
+ align-items: center;
319
+ border: 0;
320
+ background: var(--tag);
321
+ color: var(--muted);
322
+ border-radius: 999px;
323
+ padding: 1px 7px;
324
+ font-size: 11px;
325
+ line-height: 1.6;
326
+ }
327
+
328
+ .tag:hover { color: var(--text); background: var(--panel-3); }
329
+
330
+ .detail-pane {
331
+ min-width: 0;
332
+ min-height: 0;
333
+ overflow: auto;
334
+ background: var(--bg);
335
+ }
336
+
337
+ .empty-state {
338
+ height: 100%;
339
+ min-height: 320px;
340
+ display: flex;
341
+ flex-direction: column;
342
+ align-items: center;
343
+ justify-content: center;
344
+ text-align: center;
345
+ color: var(--muted);
346
+ padding: 40px;
347
+ }
348
+
349
+ .empty-icon { font-size: 40px; opacity: .75; }
350
+ .empty-state h2 { margin: 12px 0 4px; font-size: 17px; color: var(--text); }
351
+ .empty-state p { margin: 0; font-size: 13px; }
352
+
353
+ .detail-head {
354
+ padding: 22px 30px 16px;
355
+ background: var(--panel);
356
+ border-bottom: 1px solid var(--border);
357
+ }
358
+
359
+ .detail-meta {
360
+ display: flex;
361
+ gap: 8px;
362
+ flex-wrap: wrap;
363
+ font-size: 12px;
364
+ color: var(--muted);
365
+ }
366
+
367
+ .detail-head h2 {
368
+ margin: 7px 0 8px;
369
+ font-size: 23px;
370
+ line-height: 1.3;
371
+ letter-spacing: -.01em;
372
+ }
373
+
374
+ .detail-sub {
375
+ display: flex;
376
+ align-items: center;
377
+ gap: 10px;
378
+ flex-wrap: wrap;
379
+ font-size: 12px;
380
+ color: var(--muted);
381
+ }
382
+
383
+ .detail-sub a { color: var(--accent-text); text-decoration: none; }
384
+ .detail-sub a:hover { text-decoration: underline; }
385
+
386
+ .actions {
387
+ display: flex;
388
+ gap: 6px;
389
+ flex-wrap: wrap;
390
+ margin: 13px 0 9px;
391
+ }
392
+
393
+ .button {
394
+ display: inline-flex;
395
+ align-items: center;
396
+ height: 30px;
397
+ padding: 0 10px;
398
+ border: 1px solid var(--border);
399
+ border-radius: 8px;
400
+ background: var(--panel);
401
+ color: var(--text);
402
+ font-size: 12px;
403
+ text-decoration: none;
404
+ }
405
+
406
+ .button:hover { background: var(--panel-2); }
407
+ .button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
408
+ .button.ghost:hover { background: var(--panel-2); color: var(--text); }
409
+
410
+ .detail-tags {
411
+ display: flex;
412
+ align-items: center;
413
+ gap: 6px;
414
+ row-gap: 6px;
415
+ flex-wrap: wrap;
416
+ margin-top: 8px;
417
+ }
418
+
419
+ .detail-tags input {
420
+ height: 28px;
421
+ flex: 1 1 150px;
422
+ width: auto;
423
+ min-width: 120px;
424
+ max-width: 230px;
425
+ font-size: 12px;
426
+ }
427
+
428
+ .detail-tags .button { flex: none; }
429
+
430
+ .detail-head h2 { overflow-wrap: anywhere; }
431
+
432
+ .article {
433
+ max-width: 780px;
434
+ margin: 0 auto;
435
+ padding: 26px 30px 90px;
436
+ font-size: 15px;
437
+ line-height: 1.78;
438
+ overflow-wrap: break-word;
439
+ }
440
+
441
+ .article > :first-child { margin-top: 0; }
442
+
443
+ .article h1, .article h2, .article h3, .article h4 {
444
+ line-height: 1.35;
445
+ margin: 1.5em 0 .6em;
446
+ }
447
+
448
+ .article h1 { font-size: 1.6em; }
449
+ .article h2 { font-size: 1.35em; }
450
+ .article h3 { font-size: 1.15em; }
451
+
452
+ .article p { margin: 0 0 1em; }
453
+ .article a { color: var(--accent-text); text-decoration: none; }
454
+ .article a:hover { text-decoration: underline; }
455
+
456
+ .article img {
457
+ max-width: 100%;
458
+ height: auto;
459
+ border-radius: 8px;
460
+ display: block;
461
+ margin: 1em auto;
462
+ }
463
+
464
+ .article blockquote {
465
+ margin: 1em 0;
466
+ padding: 2px 0 2px 14px;
467
+ border-left: 3px solid var(--border);
468
+ color: var(--muted);
469
+ }
470
+
471
+ .article pre {
472
+ background: var(--panel);
473
+ border: 1px solid var(--border);
474
+ border-radius: 10px;
475
+ padding: 13px 15px;
476
+ overflow: auto;
477
+ font-size: 13px;
478
+ line-height: 1.55;
479
+ }
480
+
481
+ .article code {
482
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
483
+ font-size: .92em;
484
+ background: var(--panel-2);
485
+ border-radius: 5px;
486
+ padding: 1px 5px;
487
+ }
488
+
489
+ .article pre code { background: transparent; padding: 0; }
490
+
491
+ .article table {
492
+ width: 100%;
493
+ border-collapse: collapse;
494
+ margin: 1em 0;
495
+ font-size: 13px;
496
+ display: block;
497
+ overflow: auto;
498
+ }
499
+
500
+ .article th, .article td {
501
+ border: 1px solid var(--border);
502
+ padding: 6px 9px;
503
+ text-align: left;
504
+ vertical-align: top;
505
+ }
506
+
507
+ .article th { background: var(--panel-2); }
508
+
509
+ .article hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
510
+
511
+ .article-note {
512
+ color: var(--muted);
513
+ font-size: 12px;
514
+ border-top: 1px solid var(--border);
515
+ padding-top: 10px;
516
+ }
517
+
518
+ .article ul, .article ol { padding-left: 1.5em; }
519
+ .article li { margin: .25em 0; }
520
+
521
+ .toast {
522
+ position: fixed;
523
+ left: 50%;
524
+ bottom: 22px;
525
+ transform: translateX(-50%);
526
+ background: #101214;
527
+ color: #fff;
528
+ border: 1px solid rgba(255, 255, 255, .12);
529
+ border-radius: 9px;
530
+ padding: 9px 14px;
531
+ font-size: 13px;
532
+ box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
533
+ z-index: 50;
534
+ max-width: min(90vw, 560px);
535
+ }
536
+
537
+ .toast.error { background: #4b1113; border-color: #7a1c20; }
538
+
539
+ .skeleton {
540
+ height: 84px;
541
+ border-radius: 11px;
542
+ background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2));
543
+ background-size: 200% 100%;
544
+ animation: shimmer 1.2s linear infinite;
545
+ }
546
+
547
+ @keyframes shimmer {
548
+ from { background-position: 200% 0; }
549
+ to { background-position: -200% 0; }
550
+ }
551
+
552
+ .list-empty {
553
+ padding: 28px 14px;
554
+ text-align: center;
555
+ color: var(--muted);
556
+ font-size: 13px;
557
+ }
558
+
559
+ .mobile-back { display: none; }
560
+
561
+ @media (max-width: 820px) {
562
+ .topbar { padding: 10px 12px; gap: 10px; }
563
+ .clip-form { min-width: 100%; }
564
+ .clip-inputs { flex-direction: column; }
565
+ #clip-url, input[type="text"] { flex: none; width: 100%; }
566
+ .layout { grid-template-columns: 1fr; }
567
+ .detail-pane { display: none; }
568
+ .layout.detail-open .list-pane { display: none; }
569
+ .layout.detail-open .detail-pane { display: block; }
570
+ .detail-head { padding: 16px; }
571
+ .detail-head h2 { font-size: 20px; }
572
+ .article { padding: 18px 16px 70px; font-size: 15px; }
573
+ .mobile-back { display: inline-flex; }
574
+ }
575
+
576
+ .selection-toolbar {
577
+ position: fixed;
578
+ z-index: 60;
579
+ display: flex;
580
+ flex-direction: column;
581
+ gap: 8px;
582
+ width: min(390px, calc(100vw - 24px));
583
+ padding: 10px;
584
+ border: 1px solid var(--border);
585
+ border-radius: 12px;
586
+ background: var(--panel);
587
+ box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
588
+ }
589
+
590
+ .selection-toolbar[hidden] { display: none; }
591
+
592
+ .selection-quote {
593
+ padding-left: 8px;
594
+ border-left: 3px solid var(--accent);
595
+ color: var(--muted);
596
+ font-size: 12px;
597
+ line-height: 1.45;
598
+ max-height: 44px;
599
+ overflow: hidden;
600
+ }
601
+
602
+ .selection-controls {
603
+ display: flex;
604
+ align-items: center;
605
+ gap: 6px;
606
+ flex-wrap: wrap;
607
+ }
608
+
609
+ .color-dot {
610
+ display: inline-block;
611
+ width: 18px;
612
+ height: 18px;
613
+ padding: 0;
614
+ border: 2px solid transparent;
615
+ border-radius: 50%;
616
+ flex: none;
617
+ }
618
+
619
+ .color-dot.active {
620
+ border-color: var(--text);
621
+ box-shadow: 0 0 0 2px var(--panel);
622
+ transform: scale(1.08);
623
+ }
624
+
625
+ .color-dot.yellow { background: #facc15; }
626
+ .color-dot.green { background: #22c55e; }
627
+ .color-dot.blue { background: #3b82f6; }
628
+ .color-dot.red { background: #ef4444; }
629
+
630
+ #selection-note {
631
+ flex: 1 1 140px;
632
+ min-width: 0;
633
+ height: 30px;
634
+ padding: 0 8px;
635
+ border: 1px solid var(--border);
636
+ border-radius: 8px;
637
+ background: var(--panel-2);
638
+ }
639
+
640
+ .annotation-section { padding: 0 30px 42px; }
641
+
642
+ .annotation-head {
643
+ display: flex;
644
+ align-items: baseline;
645
+ justify-content: space-between;
646
+ gap: 12px;
647
+ margin-top: 8px;
648
+ padding-top: 18px;
649
+ border-top: 1px solid var(--border);
650
+ }
651
+
652
+ .annotation-head h3 { margin: 0; font-size: 15px; }
653
+ .annotation-head h3 span { color: var(--muted); font-weight: 400; }
654
+ .annotation-head p { margin: 0; color: var(--muted); font-size: 12px; }
655
+
656
+ .annotation-empty { padding: 12px 0; color: var(--muted); font-size: 13px; }
657
+
658
+ .annotation-item {
659
+ margin: 10px 0;
660
+ padding: 10px 12px;
661
+ border: 1px solid var(--border);
662
+ border-radius: 10px;
663
+ background: var(--panel);
664
+ }
665
+
666
+ .annotation-item.stale { opacity: .72; }
667
+ .annotation-item.pulse { animation: annotationPulse 1.1s ease; }
668
+
669
+ .annotation-top {
670
+ display: flex;
671
+ align-items: center;
672
+ gap: 8px;
673
+ color: var(--muted);
674
+ font-size: 11px;
675
+ }
676
+
677
+ .annotation-top .color-dot { width: 14px; height: 14px; }
678
+ .annotation-spacer { flex: 1; }
679
+
680
+ .annotation-item blockquote {
681
+ margin: 8px 0;
682
+ padding: 6px 10px;
683
+ border-left: 3px solid var(--border);
684
+ color: var(--text);
685
+ font-size: 13px;
686
+ line-height: 1.6;
687
+ }
688
+
689
+ .annotation-note-row { display: flex; gap: 6px; }
690
+
691
+ .annotation-note {
692
+ flex: 1;
693
+ min-width: 0;
694
+ height: 30px;
695
+ padding: 0 8px;
696
+ border: 1px solid var(--border);
697
+ border-radius: 8px;
698
+ background: var(--panel-2);
699
+ }
700
+
701
+ .annotation-colors { display: flex; gap: 5px; margin-top: 7px; }
702
+
703
+ .button.small { height: 26px; padding: 0 8px; font-size: 12px; }
704
+ .button.danger { color: #b42318; border-color: #f3c7c4; }
705
+
706
+ mark.hl {
707
+ padding: 0 1px;
708
+ border-radius: 3px;
709
+ color: inherit;
710
+ cursor: pointer;
711
+ }
712
+
713
+ .hl-yellow { background: #fef08a; }
714
+ .hl-green { background: #bbf7d0; }
715
+ .hl-blue { background: #bfdbfe; }
716
+ .hl-red { background: #fecaca; }
717
+
718
+ @media (prefers-color-scheme: dark) {
719
+ .hl-yellow { background: rgba(250, 204, 21, .34); }
720
+ .hl-green { background: rgba(34, 197, 94, .30); }
721
+ .hl-blue { background: rgba(59, 130, 246, .32); }
722
+ .hl-red { background: rgba(239, 68, 68, .32); }
723
+ }
724
+
725
+ @keyframes annotationPulse {
726
+ 0%, 100% { box-shadow: 0 0 0 0 transparent; }
727
+ 35% { box-shadow: 0 0 0 3px var(--accent-soft); }
728
+ }
729
+
730
+ @media (max-width: 820px) {
731
+ .annotation-section { padding: 0 16px 70px; }
732
+ .annotation-head { flex-direction: column; align-items: flex-start; gap: 4px; }
733
+ .selection-toolbar { width: calc(100vw - 24px); }
734
+ }
735
+
736
+ mark.hl.pulse {
737
+ outline: 2px solid var(--accent);
738
+ outline-offset: 1px;
739
+ }
740
+
741
+ .views-bar {
742
+ display: flex;
743
+ align-items: center;
744
+ gap: 6px;
745
+ margin-top: 8px;
746
+ flex-wrap: wrap;
747
+ }
748
+
749
+ .views {
750
+ display: flex;
751
+ gap: 5px;
752
+ flex-wrap: wrap;
753
+ flex: 1;
754
+ min-width: 0;
755
+ }
756
+
757
+ .view-chip {
758
+ display: inline-flex;
759
+ align-items: center;
760
+ gap: 3px;
761
+ max-width: 100%;
762
+ padding: 2px 8px;
763
+ border: 1px solid var(--border);
764
+ border-radius: 999px;
765
+ background: var(--panel-2);
766
+ color: var(--muted);
767
+ font-size: 11px;
768
+ line-height: 1.8;
769
+ }
770
+
771
+ .view-chip:hover { color: var(--text); background: var(--panel-3); }
772
+
773
+ .view-chip .view-name {
774
+ border: 0;
775
+ background: transparent;
776
+ color: inherit;
777
+ padding: 0;
778
+ font-size: inherit;
779
+ overflow: hidden;
780
+ text-overflow: ellipsis;
781
+ white-space: nowrap;
782
+ max-width: 180px;
783
+ }
784
+
785
+ .view-chip .view-remove {
786
+ border: 0;
787
+ background: transparent;
788
+ color: var(--muted);
789
+ padding: 0;
790
+ font-size: 13px;
791
+ line-height: 1;
792
+ }
793
+
794
+ .view-save {
795
+ border: 0;
796
+ background: transparent;
797
+ color: var(--accent-text);
798
+ padding: 2px 4px;
799
+ font-size: 12px;
800
+ white-space: nowrap;
801
+ }
802
+
803
+ .view-form { display: flex; gap: 6px; margin-top: 6px; }
804
+ .view-form[hidden] { display: none; }
805
+
806
+ .view-form input {
807
+ flex: 1;
808
+ min-width: 0;
809
+ height: 30px;
810
+ padding: 0 8px;
811
+ border: 1px solid var(--border);
812
+ border-radius: 8px;
813
+ background: var(--panel-2);
814
+ }
815
+
816
+ .text-panel {
817
+ padding: 12px 18px;
818
+ background: var(--panel);
819
+ border-bottom: 1px solid var(--border);
820
+ }
821
+
822
+ .text-panel[hidden] { display: none; }
823
+
824
+ .text-form {
825
+ display: flex;
826
+ flex-direction: column;
827
+ gap: 8px;
828
+ max-width: 980px;
829
+ }
830
+
831
+ .text-form-row {
832
+ display: flex;
833
+ gap: 8px;
834
+ flex-wrap: wrap;
835
+ }
836
+
837
+ .text-form-row input {
838
+ flex: 1 1 220px;
839
+ min-width: 0;
840
+ height: 30px;
841
+ padding: 0 8px;
842
+ border: 1px solid var(--border);
843
+ border-radius: 8px;
844
+ background: var(--panel-2);
845
+ }
846
+
847
+ .text-form textarea {
848
+ width: 100%;
849
+ min-height: 140px;
850
+ resize: vertical;
851
+ padding: 9px;
852
+ border: 1px solid var(--border);
853
+ border-radius: 8px;
854
+ background: var(--panel-2);
855
+ color: var(--text);
856
+ font: inherit;
857
+ line-height: 1.5;
858
+ }
859
+
860
+ .text-form-actions { display: flex; gap: 6px; }
861
+
862
+ @media (max-width: 820px) {
863
+ .text-panel { padding: 10px 12px; }
864
+ .text-form-row input { flex-basis: 100%; }
865
+ }