Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
628 lines (588 loc) · 24.7 KB
/
Copy pathstyles.css
File metadata and controls
628 lines (588 loc) · 24.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
/* ============================= NEO ============================= */
/* Dark surround, white page. The writing is the interface. */
:root {
--bg: #191919;
--bg-soft: #222;
--paper: #fbfaf7;
--ink: #1c1c1c;
--accent: #c9a86a;
--muted: #8a8a8a;
--pane: #202020;
--red: #c0392b;
--body-font: Georgia, "Times New Roman", serif;
--dropcap-font: "Didot", "Bodoni 72", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
height: 100%;
background: var(--bg);
color: #ddd;
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
overflow: hidden;
-webkit-font-smoothing: antialiased;
}
#dragstrip {
position: fixed; top: 0; left: 0; right: 0; height: 28px;
-webkit-app-region: drag; z-index: 500;
}
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.soft { color: var(--muted); font-size: 12px; }
/* ========================= BOOKSHELF ========================= */
#bookshelf-view {
position: absolute; inset: 0;
overflow-y: auto;
padding: 48px 60px 80px;
}
#shelf-header {
display: flex; align-items: baseline; justify-content: space-between;
margin-bottom: 36px;
}
#shelf-header h1 {
font-size: 22px; letter-spacing: 10px; font-weight: 300; color: var(--accent);
}
.shelf-header-right { display: flex; gap: 16px; align-items: center; -webkit-app-region: no-drag; }
#author-chip { color: var(--muted); font-size: 13px; cursor: pointer; }
#author-chip:hover { color: #ddd; }
#add-shelf-btn {
background: none; border: 1px solid #3a3a3a; color: var(--muted);
border-radius: 6px; padding: 5px 12px; font-size: 12px;
}
#add-shelf-btn:hover { color: var(--accent); border-color: var(--accent); }
.shelf { margin-bottom: 44px; }
.shelf.dragging { opacity: 0.4; }
.shelf-grip {
color: #3a3a3a; font-size: 13px; margin-right: 10px; cursor: grab;
opacity: 0; transition: opacity 0.15s; user-select: none;
}
.shelf:hover .shelf-grip { opacity: 1; }
.shelf-grip:hover { color: var(--accent); }
.shelf-drop-ind {
height: 3px; margin: 14px 20px; background: var(--accent);
border-radius: 2px; box-shadow: 0 0 10px rgba(201,168,106,0.8);
}
.shelf-label {
font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
color: var(--muted); margin-bottom: 14px; cursor: text; display: inline-block;
border-bottom: 1px solid transparent; min-width: 60px;
}
.shelf-label:focus { outline: none; color: #ddd; border-bottom-color: var(--accent); }
.shelf-books {
display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end;
min-height: 150px; padding-bottom: 10px;
border-bottom: 4px solid #2e2a24;
box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.9);
}
.shelf-books.drag-over { background: rgba(201, 168, 106, 0.05); }
.book, .new-book {
width: 104px; height: 150px; border-radius: 3px 6px 6px 3px;
position: relative; cursor: pointer; flex-shrink: 0;
display: flex; flex-direction: column; justify-content: space-between;
transition: transform 0.12s ease;
}
.book:hover, .new-book:hover { transform: translateY(-5px); }
.book {
box-shadow: inset 3px 0 6px -3px rgba(0,0,0,0.45), 2px 3px 8px rgba(0,0,0,0.45);
color: #fff; padding: 16px 9px 9px;
}
.book .b-title {
flex: 1; display: flex; align-items: center; justify-content: center;
text-align: center; word-wrap: break-word; overflow: hidden;
line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.book .b-author {
font-size: 8px; text-align: center; color: rgba(255,255,255,0.8);
text-transform: uppercase; letter-spacing: 1.5px;
text-shadow: 0 1px 2px rgba(0,0,0,0.5);
padding-top: 6px;
}
/* the house cover style: crisp caps inside a thin frame */
.book.cv-serif .b-title {
font-family: Optima, Candara, Georgia, serif;
font-size: 12px; font-weight: 700;
letter-spacing: 1.2px; line-height: 1.45;
}
.book .b-tt { display: inline-block; text-align: center; }
.book .b-title .ti { font-size: 1.35em; }
.book.cv-serif::before {
content: ''; position: absolute; inset: 5px;
border: 1px solid rgba(255,255,255,0.45);
border-radius: 2px 4px 4px 2px; pointer-events: none;
}
.drop-indicator {
width: 3px; height: 140px; align-self: flex-end; margin-bottom: 5px;
background: var(--accent); border-radius: 2px; pointer-events: none;
box-shadow: 0 0 10px rgba(201,168,106,0.8); flex-shrink: 0;
}
.book .b-refresh {
position: absolute; top: 4px; right: 6px; font-size: 12px;
color: rgba(255,255,255,0.0); cursor: pointer; transition: color 0.15s;
}
.book:hover .b-refresh { color: rgba(255,255,255,0.65); }
.book .b-refresh:hover { color: #fff; }
.book .b-progress {
position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
background: rgba(0,0,0,0.12); border-radius: 0 0 6px 3px; overflow: hidden;
}
.book .b-progress > div { height: 100%; background: var(--accent); }
.new-book {
border: 1px dashed #4a4a4a; color: #4a4a4a;
align-items: center; justify-content: center; font-size: 34px; font-weight: 200;
background: rgba(255,255,255,0.02);
}
.new-book:hover { color: var(--accent); border-color: var(--accent); }
.book.dragging { opacity: 0.4; }
/* ====================== FIRST-RUN MODAL ====================== */
.modal-backdrop {
position: fixed; inset: 0; background: rgba(0,0,0,0.6);
display: flex; align-items: center; justify-content: center; z-index: 900;
}
.modal {
background: var(--bg-soft); border: 1px solid #333; border-radius: 12px;
padding: 34px 38px; width: 480px; max-height: 85vh; overflow-y: auto;
}
.modal h2 { font-weight: 400; color: var(--accent); margin-bottom: 10px; }
.modal p { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.modal label { display: block; font-size: 13px; margin-bottom: 16px; }
.modal input {
display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
background: var(--bg); border: 1px solid #3a3a3a; border-radius: 6px;
color: #eee; font-size: 14px;
}
.modal input:focus { outline: none; border-color: var(--accent); }
.fr-choices { display: flex; gap: 12px; }
#fr-sample {
background: var(--paper); color: var(--ink); border-radius: 6px;
padding: 18px 22px 14px; margin-bottom: 20px;
}
#fr-sample-text {
font-family: var(--body-font); font-size: 15px; line-height: 1.7; margin: 0;
}
#fr-sample-text::first-letter {
font-size: 3.1em; float: left; line-height: 0.8;
padding: 3px 7px 0 0; font-family: var(--dropcap-font);
}
.fr-fontrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fr-font {
background: var(--bg); border: 1px solid #3a3a3a; border-radius: 6px;
padding: 8px 13px; color: #ddd; font-size: 14px;
}
.fr-font:hover { border-color: #666; }
.fr-font.sel { border-color: var(--accent); color: var(--accent); }
.fr-font .fr-cap { font-size: 20px; margin-right: 7px; }
.fr-choice {
flex: 1; text-align: left; background: var(--bg); border: 1px solid #3a3a3a;
border-radius: 8px; padding: 14px; color: #ddd;
}
.fr-choice:hover { border-color: var(--accent); }
.fr-choice strong { display: block; margin-bottom: 6px; color: var(--accent); }
.fr-choice span { font-size: 12px; color: var(--muted); line-height: 1.4; }
/* ========================= EDITOR ========================= */
#editor-view { position: absolute; inset: 0; animation: neo-fade 0.25s ease; }
#bookshelf-view { animation: neo-fade 0.25s ease; }
@keyframes neo-fade { from { opacity: 0; } to { opacity: 1; } }
/* --- Night page: dark paper for midnight sessions --- */
body.night {
--paper: #232221;
--ink: #d6d2c6;
}
body.night .sheet, body.night #aux-paper { box-shadow: 0 4px 30px rgba(0,0,0,0.7); border: 1px solid #2e2d2b; }
body.night .chapter-head, body.night #aux-paper h2 { color: #918b7d; }
body.night #tp-subtitle { color: #a09a8c; }
body.night #tp-author { color: #918b7d; }
body.night .chapter-body p.scene-break { color: #7d7768; }
body.night .chapter-body p.ghost { color: #6f6a5e; }
body.night [contenteditable][data-ph]:empty::before,
body.night #aux-editor:empty::before,
body.night .darlings-empty { color: #5f5b52; }
body.night .chapter-head .ch-title:empty::before { color: #5f5b52; }
body.night .darling { border-color: #3a3835; }
body.night .ol-num { color: #7d7768; }
body.night .ol-chapter .ol-num { color: #918b7d; }
body.night .ol-text:focus { border-bottom-color: #4a4742; }
body.night .ol-hint { color: #5f5b52; }
/* notes pasted before paste-cleaning existed may carry their own colors */
body.night #aux-editor * { color: inherit; }
/* The scroller is a centered column barely wider than the page, so the
scrollbar lives right beside the manuscript — nowhere near the hover
zones at the window edges. */
#paper-scroll {
position: absolute; top: 0; bottom: 40px;
left: 50%; transform: translateX(-50%);
width: min(calc(760px * var(--page-zoom, 1)), 94%);
overflow-y: auto;
}
/* Search highlights — no DOM mutation, no focus theft */
::highlight(neo-search) { background: rgba(201, 168, 106, 0.35); }
::highlight(neo-search-current) { background: #c9a86a; color: #1c1c1c; }
/* Each page of the book is its own sheet of paper */
#paper {
width: calc(680px * var(--page-zoom, 1)); max-width: 92%;
margin: 40px auto 120px;
}
.sheet {
background: var(--paper); color: var(--ink);
padding: 70px 72px 90px;
box-shadow: 0 4px 30px rgba(0,0,0,0.5);
min-height: 88vh;
margin-bottom: 44px;
}
#aux-paper {
width: calc(680px * var(--page-zoom, 1)); max-width: 92%;
background: var(--paper); color: var(--ink);
margin: 40px auto 120px;
padding: 70px 72px 90px;
box-shadow: 0 4px 30px rgba(0,0,0,0.5);
min-height: 85vh;
}
/* --- Title page: a sheet of its own --- */
#title-page {
text-align: center;
display: flex; flex-direction: column; justify-content: center;
}
#tp-title {
font-family: var(--body-font); font-size: calc(34px * var(--page-zoom, 1)); font-weight: 700;
outline: none; min-height: 44px;
}
#tp-subtitle {
font-family: var(--body-font); font-size: 17px; font-style: italic;
color: #555; margin-top: 14px; outline: none; min-height: 24px;
}
#tp-author {
margin-top: 46px; font-size: 14px; letter-spacing: 3px;
text-transform: uppercase; color: #444;
}
[contenteditable][data-ph]:empty::before {
content: attr(data-ph); color: #b9b4a8; font-style: italic; font-weight: 400;
}
/* --- Chapters: each starts on a fresh sheet --- */
.chapter-head {
text-align: center; font-family: Georgia, serif;
font-size: calc(15px * var(--page-zoom, 1)); letter-spacing: 4px; text-transform: uppercase;
color: #555; margin-bottom: 44px;
user-select: none;
}
/* single-chapter works are chapterless: the heading waits for chapter two */
.chapter.solo .chapter-head { display: none; }
.chapter-head .ch-sep { margin: 0 10px; opacity: 0; transition: opacity 0.15s; }
.chapter-head:hover .ch-sep, .chapter-head.has-title .ch-sep { opacity: 0.6; }
.chapter-head .ch-title {
outline: none; user-select: text; min-width: 10px; display: inline-block;
}
.chapter-head .ch-title:empty::before {
content: 'add a title'; color: #c4beb0; font-style: italic;
letter-spacing: 1px; text-transform: none; opacity: 0;
transition: opacity 0.15s;
}
.chapter-head:hover .ch-title:empty::before { opacity: 1; }
.chapter-body {
font-family: var(--body-font);
font-size: calc(var(--editor-size, 17px) * var(--page-zoom, 1)); line-height: 1.75;
outline: none;
min-height: 60px;
}
.sheet ::selection, #aux-paper ::selection { background: rgba(201, 168, 106, 0.35); }
/* pre-wrap keeps spaces literal, so the engine's space-collapsing repair
pass (the source of duplicated characters on delete) never runs */
.chapter-body p { text-indent: 2em; margin: 0; white-space: pre-wrap; }
#aux-editor p { white-space: pre-wrap; }
.chapter-body p:first-of-type { text-indent: 0; }
/* cap-off while the caret is in the first paragraph: the rule must stop
MATCHING entirely — a matching first-letter rule, even styled to nothing,
makes the engine split the text internally, which corrupts deletes */
.chapter-body:not(.cap-off) p:first-of-type::first-letter {
font-size: 3.4em; float: left; line-height: 0.8;
padding: 4px 8px 0 0; font-family: var(--dropcap-font);
}
/* NEO's spellcheck pass: flagged words, painted like search matches */
::highlight(neo-spell) {
text-decoration: underline wavy #cf5c56;
text-decoration-skip-ink: none;
background-color: rgba(207, 92, 86, 0.12);
}
.spell-menu {
position: fixed; z-index: 300; min-width: 170px;
background: #262626; border: 1px solid #3a3a3a; border-radius: 8px;
padding: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.5);
display: flex; flex-direction: column;
}
.spell-menu button {
background: none; border: none; color: #ddd; text-align: left;
padding: 6px 10px; border-radius: 5px; font-size: 14px; cursor: pointer;
font-family: Georgia, serif;
}
.spell-menu button:hover:not(:disabled) { background: #333; }
.spell-menu button:disabled { color: #777; font-style: italic; }
.spell-menu .sm-sep { height: 1px; background: #3a3a3a; margin: 4px 0; }
/* Section breaks: Enter twice for ***, three times for a new chapter */
.chapter-body p.scene-break {
text-align: center; text-indent: 0 !important;
letter-spacing: 8px; color: #888;
margin: 1.6em 0; user-select: none;
}
.chapter-body p.scene-break + p { text-indent: 0; }
/* centered/right paragraphs drop the first-line indent; justified keep it */
.chapter-body p[style*="text-align"]:not([style*="justify"]) { text-indent: 0; }
/* Invisible anchors marking where a darling was cut from */
.darling-anchor {
display: inline-block; width: 0; height: 0; overflow: hidden;
}
/* Placeholder marks (Cmd+Shift+X) */
.ph-mark {
background: #f6e3b8; border-bottom: 2px solid var(--red);
padding: 0 3px; border-radius: 2px; cursor: pointer;
}
/* --- Aux paper (Notes / Outline / Darlings) --- */
#aux-paper h2 {
font-family: Georgia, serif; font-weight: 400; letter-spacing: 3px;
text-transform: uppercase; font-size: 14px; color: #777;
text-align: center; margin-bottom: 40px;
}
#aux-editor {
font-family: Georgia, serif; font-size: calc(var(--editor-size, 16px) * var(--page-zoom, 1)); line-height: 1.7; outline: none;
min-height: 50vh;
}
#aux-editor:empty::before { content: 'Write freely…'; color: #b9b4a8; font-style: italic; }
/* --- Structured outline tab --- */
.ol-line { display: flex; gap: 12px; align-items: baseline; padding: 3px 0; }
.ol-chapter { margin-top: 18px; }
.ol-section { margin-left: 40px; }
.ol-num {
font-family: Georgia, serif; color: #8d8778; min-width: 24px; text-align: right;
user-select: none; flex-shrink: 0;
}
.ol-chapter .ol-num { font-weight: 700; color: #6b6455; }
.ol-text {
flex: 1; outline: none; font-family: Georgia, serif; font-size: 15px;
line-height: 1.5; min-height: 20px; border-bottom: 1px dashed transparent;
}
.ol-text:focus { border-bottom-color: #d8d2c2; }
.ol-text:empty::before { color: #b9b4a8; font-style: italic; }
.ol-chapter .ol-text:empty::before { content: 'What happens in this chapter…'; }
.ol-section .ol-text:empty::before { content: 'What happens in this section…'; }
.ol-hint {
margin-top: 40px; color: #b9b4a8; font-size: 12.5px; font-style: italic;
line-height: 1.7; text-align: center;
}
/* Ghost paragraphs: outline notes waiting in the manuscript to become prose */
.chapter-body p.ghost {
color: #a9a294; font-style: italic; text-indent: 0 !important;
}
.chapter-body p.ghost::first-letter { font-size: inherit; float: none; padding: 0; }
.darling {
border: 1px solid #e3ddcf; border-left: 3px solid var(--accent);
border-radius: 4px; padding: 16px 18px; margin-bottom: 18px;
font-family: Georgia, serif; font-size: 15px; line-height: 1.6;
}
.darling .d-meta {
display: flex; justify-content: space-between; align-items: center;
margin-top: 12px; font-family: -apple-system, sans-serif;
font-size: 11px; color: #999;
}
.darling button {
background: none; border: 1px solid #ccc; border-radius: 4px;
font-size: 11px; padding: 3px 10px; color: #777;
}
.darling button:hover { border-color: var(--accent); color: var(--ink); }
.darlings-empty { text-align: center; color: #b9b4a8; font-style: italic; padding: 60px 0; }
/* --- Left nav pane --- */
#nav-hotzone { position: fixed; left: 0; top: 0; bottom: 40px; width: 18px; z-index: 60; }
#nav-pane {
position: fixed; left: 0; top: 0; bottom: 40px; width: 248px;
background: var(--pane); border-right: 1px solid #2c2c2c;
transform: translateX(-100%); transition: transform 0.18s ease;
z-index: 70; overflow-y: auto; padding: 40px 0 20px;
}
#nav-pane.open { transform: translateX(0); }
.nav-item {
padding: 9px 18px 10px; cursor: pointer;
border-left: 3px solid transparent;
}
.nav-item:hover { background: #282828; }
.nav-item.current { border-left-color: var(--accent); }
.nav-item .n-row {
display: flex; justify-content: space-between; align-items: center;
font-size: 13px; color: #aaa;
}
.nav-item:hover .n-row, .nav-item.current .n-row { color: #eee; }
.nav-item .n-words { font-size: 11px; color: #5d5d5d; }
.nav-item .n-label {
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 155px;
}
.nav-item .n-row { cursor: grab; }
.nav-item.dragging { opacity: 0.4; }
.nav-drop-ind {
height: 2px; margin: 2px 14px; background: var(--accent);
border-radius: 1px; box-shadow: 0 0 8px rgba(201,168,106,0.8);
}
.nav-item .n-flag {
width: 8px; height: 8px; border-radius: 50%; background: var(--red);
flex-shrink: 0; margin-left: 8px; display: inline-block;
}
.nav-note {
margin-top: 4px; font-size: 12px; line-height: 1.45; color: #777;
outline: none; min-height: 15px; cursor: text;
}
.nav-note:empty::before { content: 'What happens here…'; color: #4a4a4a; font-style: italic; }
.nav-note:focus { color: #ccc; }
#nav-add {
display: block; width: calc(100% - 36px); margin: 14px 18px 0;
background: none; border: 1px dashed #3a3a3a; border-radius: 6px;
color: #666; font-size: 12px; padding: 8px;
}
#nav-add:hover { color: var(--accent); border-color: var(--accent); }
/* --- Right side pane --- */
#side-hotzone { position: fixed; right: 0; top: 0; bottom: 40px; width: 18px; z-index: 60; }
#side-pane {
position: fixed; right: 0; top: 0; bottom: 40px; width: 250px;
background: var(--pane); border-left: 1px solid #2c2c2c;
transform: translateX(100%); transition: transform 0.18s ease;
z-index: 70; overflow-y: auto; padding: 36px 0 20px;
}
#side-pane.open { transform: translateX(0); }
#side-head {
display: flex; justify-content: space-between; align-items: center;
padding: 0 16px 14px; font-size: 12px; text-transform: uppercase;
letter-spacing: 2px; color: var(--muted);
}
#side-pin {
background: none; border: none; color: #555; font-size: 15px;
}
#side-pin.pinned { color: var(--accent); }
.sticky {
margin: 0 12px 12px; background: #2a2a26; border-radius: 6px;
padding: 10px 12px; font-size: 13px; line-height: 1.45; color: #ccc;
border-left: 3px solid var(--accent); cursor: pointer;
}
.sticky.unresolved { border-left-color: var(--red); }
.sticky .s-ch { font-size: 10px; color: #777; text-transform: uppercase; letter-spacing: 1px; }
.sticky textarea {
width: 100%; background: none; border: none; color: #ddd; font: inherit;
resize: vertical; min-height: 34px; outline: none;
}
.sticky .s-actions { text-align: right; }
.sticky .s-actions button {
background: none; border: none; color: #666; font-size: 11px;
}
.sticky .s-actions button:hover { color: var(--accent); }
.stickies-empty { text-align: center; color: #555; font-size: 12px; padding: 30px 14px; line-height: 1.6; }
/* --- Bottom bar --- */
#bottombar {
position: fixed; left: 0; right: 0; bottom: 0; height: 40px;
background: var(--bg); border-top: 1px solid #262626;
display: flex; align-items: center; padding: 0 14px; gap: 18px;
z-index: 80;
opacity: 0.35; transition: opacity 0.15s ease;
}
#bottombar:hover, #bottombar.attn { opacity: 1; }
#back-to-shelf {
background: none; border: none; color: var(--muted); font-size: 12px;
}
#back-to-shelf:hover { color: var(--accent); }
#tabs { display: flex; gap: 4px; flex: 1; justify-content: center; }
.tab {
padding: 5px 16px; font-size: 12px; color: var(--muted);
border-radius: 6px 6px 0 0; cursor: pointer; user-select: none;
}
.tab:hover { color: #ddd; }
.tab.active { color: var(--accent); background: #232323; }
.tab.darlings { margin-left: 18px; }
.tab.drag-over { background: var(--accent); color: var(--bg); }
#counters { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
#counters span { cursor: pointer; user-select: none; }
#counters span:hover { color: #ddd; }
#zoom-control { display: inline-flex; align-items: center; gap: 6px; }
#zoom-control button {
background: none; border: none; color: inherit; font-size: 13px;
cursor: pointer; padding: 0 2px; line-height: 1;
}
#zoom-control button:hover, #zoom-control:hover { color: #ddd; }
/* --- Find & replace bar --- */
#searchbar {
position: fixed; top: 34px; left: 50%; transform: translateX(-50%);
background: #262626; border: 1px solid #3a3a3a; border-radius: 8px;
padding: 8px 10px; display: flex; gap: 8px; align-items: center;
z-index: 300; box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
#searchbar input {
background: var(--bg); border: 1px solid #3a3a3a; border-radius: 5px;
color: #eee; font-size: 13px; padding: 6px 10px; width: 170px;
}
#searchbar input:focus { outline: none; border-color: var(--accent); }
#searchbar button {
background: none; border: 1px solid #3a3a3a; border-radius: 5px;
color: #aaa; font-size: 12px; padding: 5px 9px;
}
#searchbar button:hover { color: var(--accent); border-color: var(--accent); }
#search-count { font-size: 11px; color: var(--muted); min-width: 52px; text-align: center; }
#goal-counter.goal-met { color: var(--accent); }
#import-btn {
background: none; border: 1px solid #3a3a3a; color: var(--muted);
border-radius: 6px; padding: 5px 12px; font-size: 12px;
}
#import-btn:hover { color: var(--accent); border-color: var(--accent); }
/* --- Stats / goals modal --- */
.stats-nums { display: flex; gap: 26px; margin: 14px 0 18px; }
.stats-nums div { text-align: center; }
.stats-nums .big { font-size: 26px; color: var(--accent); font-family: Georgia, serif; }
.stats-nums .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.stats-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.stats-row input {
width: 90px; background: var(--bg); border: 1px solid #3a3a3a; border-radius: 5px;
color: #eee; padding: 6px 9px; font-size: 13px;
}
.stats-row input:focus { outline: none; border-color: var(--accent); }
.stats-row select {
background: var(--bg); border: 1px solid #3a3a3a; border-radius: 5px;
color: #eee; padding: 6px 9px; font-size: 13px;
}
.stats-row select:focus { outline: none; border-color: var(--accent); }
.stats-row button {
background: var(--accent); border: none; border-radius: 5px;
padding: 6px 14px; color: #191919; font-size: 12px;
}
#stats-chart { background: #1d1d1d; border-radius: 8px; padding: 10px; margin-top: 8px; }
/* --- Help modal grid --- */
.help-sec {
color: var(--accent); font-weight: 600; font-size: 12px;
text-transform: uppercase; letter-spacing: 1.5px;
margin: 16px 0 8px;
}
.help-grid {
display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px;
font-size: 13.5px; line-height: 1.45; color: #bbb;
}
.help-grid .hk { color: #eee; font-weight: 600; white-space: nowrap; }
/* --- Custom cover art: the image IS the cover --- */
.book.has-cover .b-title,
.book.has-cover .b-author,
.book.has-cover .b-refresh { display: none; }
.book.has-cover::before { display: none; }
/* --- Brighter interface (View menu) — the quiet default, turned up --- */
body.bright { --muted: #b4b4b4; }
body.bright #bottombar { opacity: 0.92; }
body.bright .tab { color: #b4b4b4; }
body.bright .nav-item .n-row { color: #ccc; }
body.bright .nav-item .n-words { color: #8f8f8f; }
body.bright .nav-note { color: #999; }
body.bright .shelf-grip { opacity: 0.55; }
body.bright .book .b-refresh { color: rgba(255,255,255,0.4); }
body.bright .new-book { border-color: #6a6a6a; color: #6a6a6a; }
body.bright #add-shelf-btn, body.bright #import-btn { color: #b4b4b4; border-color: #555; }
/* --- Hint toast --- */
#hint {
position: fixed; bottom: 54px; left: 50%; transform: translateX(-50%);
background: #2b2b2b; color: #bbb; font-size: 12px;
padding: 8px 18px; border-radius: 20px; z-index: 200;
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
/* the thumb only paints while the pane is actively scrolling */
.show-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); }
.show-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }
body.bright .show-scrollbar::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.18); }
body.bright .show-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); }
/* pinned notes pane: the page column shifts left to clear the pane */
#editor-view.side-pinned #paper-scroll { left: calc(50% - 125px); }