keepfold 0.6.4__py3-none-any.whl

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.
Files changed (148) hide show
  1. keepfold/__init__.py +1 -0
  2. keepfold/_proc.py +102 -0
  3. keepfold/access.py +154 -0
  4. keepfold/agent_eval.py +162 -0
  5. keepfold/agent_text.py +56 -0
  6. keepfold/anki.py +285 -0
  7. keepfold/app/__init__.py +5 -0
  8. keepfold/app/actions.py +690 -0
  9. keepfold/app/desktop.py +677 -0
  10. keepfold/app/exports.py +254 -0
  11. keepfold/app/hello.py +79 -0
  12. keepfold/app/launch.py +114 -0
  13. keepfold/app/news.py +60 -0
  14. keepfold/app/server.py +3142 -0
  15. keepfold/app/status.py +811 -0
  16. keepfold/app/targets.py +1374 -0
  17. keepfold/app/winpath.py +54 -0
  18. keepfold/app/wizard.py +506 -0
  19. keepfold/ask.py +475 -0
  20. keepfold/askfile.py +322 -0
  21. keepfold/assets/LICENSE-d3.txt +13 -0
  22. keepfold/assets/agent_eval.json +235 -0
  23. keepfold/assets/app/app.css +611 -0
  24. keepfold/assets/app/app.js +2712 -0
  25. keepfold/assets/app/capture.html +16 -0
  26. keepfold/assets/app/capture.js +91 -0
  27. keepfold/assets/app/index.html +149 -0
  28. keepfold/assets/brain3d.js +3730 -0
  29. keepfold/assets/chat_eval.json +454 -0
  30. keepfold/assets/d3.v7.min.js +2 -0
  31. keepfold/assets/dashboard.css +774 -0
  32. keepfold/assets/dashboard.html.tmpl +170 -0
  33. keepfold/assets/dashboard.js +4262 -0
  34. keepfold/assets/help/GUIDE.md +544 -0
  35. keepfold/assets/help/help.md +83 -0
  36. keepfold/assets/keepfold.ico +0 -0
  37. keepfold/assets/whats_new.json +162 -0
  38. keepfold/backup.py +100 -0
  39. keepfold/brainmap.py +1382 -0
  40. keepfold/browse/__init__.py +10 -0
  41. keepfold/browse/build.py +1320 -0
  42. keepfold/browse/forget.py +510 -0
  43. keepfold/browse/legacy.py +95 -0
  44. keepfold/browse/lists.py +285 -0
  45. keepfold/browse/privacy.py +391 -0
  46. keepfold/browse/selftest.py +166 -0
  47. keepfold/browse/sites.py +1068 -0
  48. keepfold/browse/sources.py +329 -0
  49. keepfold/browse/store.py +991 -0
  50. keepfold/browse/takeout.py +312 -0
  51. keepfold/browse/titles.py +127 -0
  52. keepfold/browse/vectors.py +326 -0
  53. keepfold/browse_serve.py +332 -0
  54. keepfold/catalog.py +564 -0
  55. keepfold/chat.py +1464 -0
  56. keepfold/chat_archive.py +165 -0
  57. keepfold/chat_eval.py +583 -0
  58. keepfold/chat_facts.py +721 -0
  59. keepfold/chat_import.py +1045 -0
  60. keepfold/chat_pages.py +291 -0
  61. keepfold/chat_study.py +371 -0
  62. keepfold/chats.py +669 -0
  63. keepfold/claims.py +650 -0
  64. keepfold/cli.py +3254 -0
  65. keepfold/clients.py +96 -0
  66. keepfold/cloudllm.py +135 -0
  67. keepfold/contract.py +43 -0
  68. keepfold/corrections.py +134 -0
  69. keepfold/dashboard.py +959 -0
  70. keepfold/dates.py +202 -0
  71. keepfold/delta.py +146 -0
  72. keepfold/digest.py +72 -0
  73. keepfold/doctor.py +565 -0
  74. keepfold/duplicates.py +145 -0
  75. keepfold/egress.py +68 -0
  76. keepfold/eval_history.py +109 -0
  77. keepfold/events.py +554 -0
  78. keepfold/export_context.py +109 -0
  79. keepfold/fact_harvest.py +578 -0
  80. keepfold/forget.py +720 -0
  81. keepfold/harvest.py +334 -0
  82. keepfold/home.py +714 -0
  83. keepfold/importers.py +627 -0
  84. keepfold/index.py +733 -0
  85. keepfold/know.py +40 -0
  86. keepfold/learning_eval.py +261 -0
  87. keepfold/levels.py +595 -0
  88. keepfold/life_sources.py +747 -0
  89. keepfold/lint.py +241 -0
  90. keepfold/localllm.py +699 -0
  91. keepfold/loops.py +316 -0
  92. keepfold/mcp_server.py +4464 -0
  93. keepfold/migrate.py +552 -0
  94. keepfold/more_sources.py +709 -0
  95. keepfold/packs.py +148 -0
  96. keepfold/people.py +99 -0
  97. keepfold/planner.py +819 -0
  98. keepfold/prime.py +630 -0
  99. keepfold/prime_hook.py +265 -0
  100. keepfold/profiles.py +118 -0
  101. keepfold/quarantine.py +123 -0
  102. keepfold/recall_log.py +93 -0
  103. keepfold/redteam.py +393 -0
  104. keepfold/reflect.py +164 -0
  105. keepfold/relink.py +477 -0
  106. keepfold/render.py +406 -0
  107. keepfold/review.py +1181 -0
  108. keepfold/rollups.py +412 -0
  109. keepfold/safety_net.py +571 -0
  110. keepfold/sample.py +103 -0
  111. keepfold/sample_vault/areas/programming.algorithms.md +11 -0
  112. keepfold/sample_vault/areas/programming.basics.md +11 -0
  113. keepfold/sample_vault/concepts/big-o-notation.md +13 -0
  114. keepfold/sample_vault/concepts/functions.md +13 -0
  115. keepfold/sample_vault/concepts/loops.md +14 -0
  116. keepfold/sample_vault/concepts/recursion.md +13 -0
  117. keepfold/sample_vault/domains/programming.md +10 -0
  118. keepfold/sample_vault/journal/2026-01-12.md +9 -0
  119. keepfold/sample_vault/me/goals.md +17 -0
  120. keepfold/sample_vault/me/profile.md +19 -0
  121. keepfold/sample_vault/mistakes/programming.off-by-one-loop.md +16 -0
  122. keepfold/sample_vault/notes/recursion-needs-a-base-case.md +18 -0
  123. keepfold/sample_vault/problems/fizzbuzz.md +12 -0
  124. keepfold/sample_vault/projects/text-adventure.md +15 -0
  125. keepfold/sample_vault/resources/python-tutorial.md +16 -0
  126. keepfold/semantic.py +1254 -0
  127. keepfold/session.py +764 -0
  128. keepfold/share.py +69 -0
  129. keepfold/sources.py +612 -0
  130. keepfold/sync_copies.py +83 -0
  131. keepfold/tags.py +230 -0
  132. keepfold/taint.py +301 -0
  133. keepfold/tonight.py +195 -0
  134. keepfold/topics.py +1072 -0
  135. keepfold/update.py +300 -0
  136. keepfold/vault.py +942 -0
  137. keepfold/vecstore.py +218 -0
  138. keepfold/voice.py +260 -0
  139. keepfold/voice_memos.py +280 -0
  140. keepfold/watch.py +303 -0
  141. keepfold/where.py +119 -0
  142. keepfold/xray.py +516 -0
  143. keepfold/zotero.py +303 -0
  144. keepfold-0.6.4.dist-info/METADATA +644 -0
  145. keepfold-0.6.4.dist-info/RECORD +148 -0
  146. keepfold-0.6.4.dist-info/WHEEL +4 -0
  147. keepfold-0.6.4.dist-info/entry_points.txt +6 -0
  148. keepfold-0.6.4.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,611 @@
1
+ /* The Keepfold app: Night Platform (DESIGN.md), the dashboard's tokens. Night is the default;
2
+ day is airport yellow. Flat housings, 1px rules, 2px radius, no shadows. */
3
+ :root, :root[data-theme="night"] {
4
+ --ground: #0b0b0a; --panel: #141412; --band: #1b1a17; --band-ink: #ffb000;
5
+ --rule: rgba(255, 176, 0, .16); --lit: #ffb000; --unlit: #3a2c10;
6
+ --ink: #efe7d6; --ink-2: #b9ab90; --ink-3: #958870;
7
+ --edge: rgba(255, 176, 0, .34); --scrim: rgba(0, 0, 0, .62);
8
+ --refresh: #d0607f; --ok-ink: #1D9E75; /* success ink: 5.4:1 on the panel */
9
+ color-scheme: dark;
10
+ }
11
+ @media (prefers-color-scheme: light) {
12
+ :root:not([data-theme]) {
13
+ --ground: #ebe8e1; --panel: #f8f6f1; --band: #efe7d4; --band-ink: #7a4d00;
14
+ --rule: rgba(70, 50, 10, .16); --lit: #8a5700; --unlit: #e3d6b4;
15
+ --ink: #1f1c17; --ink-2: #4d473c; --ink-3: #6b6457;
16
+ --edge: rgba(70, 50, 10, .32); --scrim: rgba(31, 28, 23, .4);
17
+ --refresh: #993556; --ok-ink: #08603f; color-scheme: light;
18
+ }
19
+ }
20
+ :root[data-theme="day"] {
21
+ --ground: #ebe8e1; --panel: #f8f6f1; --band: #efe7d4; --band-ink: #7a4d00;
22
+ --rule: rgba(70, 50, 10, .16); --lit: #8a5700; --unlit: #e3d6b4;
23
+ --ink: #1f1c17; --ink-2: #4d473c; --ink-3: #6b6457;
24
+ --edge: rgba(70, 50, 10, .32); --scrim: rgba(31, 28, 23, .4);
25
+ --refresh: #993556; --ok-ink: #08603f; color-scheme: light;
26
+ }
27
+ :root {
28
+ --dur-1: 120ms; --dur-2: 200ms; --ease-out: cubic-bezier(.2,.7,.2,1); --ease-in: cubic-bezier(.4,0,1,1);
29
+ --solid: #1D9E75; --learning: #BA7517; --hollow: var(--ink-3); --hdr: 56px;
30
+ scrollbar-color: var(--unlit) transparent; scrollbar-width: thin;
31
+ }
32
+
33
+ * { box-sizing: border-box; }
34
+ html, body { margin: 0; background: var(--ground); color: var(--ink); }
35
+ /* the scrollbar's room is always kept, so a page that grows one never moves the centred guide */
36
+ html:not(:has(body.capture)) { scrollbar-gutter: stable; }
37
+ body {
38
+ font: 400 14px/1.45 system-ui, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums;
39
+ caret-color: var(--lit); overflow-x: hidden;
40
+ }
41
+ ::selection { background: var(--lit); color: var(--ground); }
42
+ :focus-visible { outline: 2px solid var(--lit); outline-offset: 2px; }
43
+ h1, h2, h3, b, strong, th { font-weight: 600; }
44
+ h1 { font-size: 20px; margin: 28px 0 6px; }
45
+ h2 { font-size: 15px; margin: 24px 0 8px; }
46
+ h3 { font-size: 14px; margin: 14px 0 6px; }
47
+ button, input, select, textarea { font: inherit; color: inherit; }
48
+ button { cursor: pointer; }
49
+ button:disabled { cursor: not-allowed; opacity: .5; }
50
+ a { color: var(--lit); text-underline-offset: 3px; }
51
+ [hidden] { display: none !important; }
52
+ code, pre, .mono { font-family: ui-monospace, Consolas, "SF Mono", monospace; font-size: 12.5px; }
53
+ .ink-2 { color: var(--ink-2); }
54
+ .ink-3 { color: var(--ink-3); }
55
+ .small { font-size: 12.5px; }
56
+ .lede { color: var(--ink-2); margin: 0 0 18px; max-width: 760px; }
57
+ .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
58
+ clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
59
+
60
+ /* dot matrix: lit dots over the unlit cell */
61
+ .band-note .dm { vertical-align: -1px; }
62
+ .dm { display: inline-block; vertical-align: middle; flex: none; }
63
+ .dm .on { fill: var(--lit); }
64
+ .dm .off { fill: var(--unlit); }
65
+ .band .dm .on, .top .dm .on { fill: var(--band-ink); }
66
+ .ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5;
67
+ stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
68
+
69
+ /* header strip, job line and stop notice: one sticky block, so they never drift apart */
70
+ .chrome { position: sticky; top: 0; z-index: 15; }
71
+ .top {
72
+ background: var(--band); color: var(--band-ink);
73
+ display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
74
+ gap: 16px; padding: 8px 20px; min-height: var(--hdr); border-bottom: 1px solid var(--rule);
75
+ }
76
+ .brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
77
+ .greet { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
78
+ .hright { justify-self: end; display: flex; align-items: center; gap: 10px; }
79
+ .icon-btn {
80
+ display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
81
+ border: 1px solid var(--rule); background: none; border-radius: 2px; color: inherit;
82
+ }
83
+ .icon-btn:hover { border-color: var(--edge); }
84
+ .band-btn {
85
+ border: 1px solid var(--band-ink); background: none; color: var(--band-ink); border-radius: 2px;
86
+ padding: 2px 10px; font-size: 12.5px; white-space: nowrap;
87
+ }
88
+ .section-select { display: none; }
89
+
90
+ /* the progress line of a running job */
91
+ .jobline {
92
+ display: flex; align-items: center; gap: 12px;
93
+ padding: 6px 20px; background: var(--panel); border-bottom: 1px solid var(--edge);
94
+ font-size: 12.5px; min-height: 38px;
95
+ }
96
+ .job-name { font-weight: 600; white-space: nowrap; color: var(--lit); }
97
+ /* idle: no space, still a live region that announces the next job (the .sr-only pattern) */
98
+ .jobline.idle { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0;
99
+ overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
100
+ .job-line { color: var(--ink-2); min-width: 0; flex: 1; white-space: nowrap; overflow: hidden;
101
+ text-overflow: ellipsis; }
102
+ .job-time { color: var(--ink-3); white-space: nowrap; }
103
+ /* running: a thin bar slides under the line; done: a brief success tint; failed: the error tint */
104
+ .jobline { position: relative; overflow: hidden; transition: background-color .12s ease-out; }
105
+ .jobline.running::after {
106
+ content: ''; position: absolute; left: 0; bottom: 0; width: 30%; height: 2px; background: var(--lit);
107
+ animation: job-slide 1.2s ease-in-out infinite;
108
+ }
109
+ @keyframes job-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
110
+ /* a stepped job: the bar fills to its overall share (--pct, set by app.js) */
111
+ .jobline.running.determinate::after { width: 100%; animation: none; transform: scaleX(var(--f, 0));
112
+ transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
113
+ .jobline.ok { background: color-mix(in srgb, var(--ok-ink) 16%, var(--panel)); animation: job-ok 2.4s ease-out forwards; }
114
+ @keyframes job-ok { 0%, 50% { background: color-mix(in srgb, var(--ok-ink) 16%, var(--panel)); } to { background: var(--panel); } }
115
+ .jobline.bad { background: color-mix(in srgb, var(--refresh) 16%, var(--panel)); border-bottom-color: var(--refresh); }
116
+ .gone { margin: 0; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--edge); }
117
+
118
+ /* shell: the left nav and the sections */
119
+ .shell {
120
+ display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; max-width: 1440px;
121
+ margin: 0 auto; padding: 20px 24px 64px; align-items: start;
122
+ }
123
+ .side { position: sticky; top: calc(var(--hdr) + 58px); display: flex; flex-direction: column; }
124
+ /* the idle job line takes no space, so the sticky nav sits 38px higher than while a job shows */
125
+ body:has(.jobline.idle) :is(.side, .chat-side) { top: calc(var(--hdr) + 20px); }
126
+ .side-group {
127
+ display: flex; flex-direction: column;
128
+ background: var(--panel); border: 1px solid var(--rule); border-radius: 2px;
129
+ }
130
+ .side-head { margin: 0 0 4px 2px; font-size: 12px; color: var(--ink-3); }
131
+ .side-group + .side-head { margin-top: 14px; }
132
+ .side button, .side a {
133
+ border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left;
134
+ padding: 0 12px; min-height: 40px; color: var(--ink-2);
135
+ }
136
+ .side a { display: flex; align-items: center; text-decoration: none; }
137
+ .side button:last-child { border-bottom: 0; }
138
+ .side button:hover, .side a:hover { color: var(--ink); }
139
+ .side button[aria-current="page"] { background: var(--band); color: var(--band-ink); font-weight: 600;
140
+ view-transition-name: side-hl; } /* only the current item's highlight glides (app.js show) */
141
+ /* a section switch: the page swaps at once (the root's own cross-fade is off), only the highlight glides */
142
+ ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
143
+ ::view-transition-old(root) { display: none; }
144
+ ::view-transition-group(side-hl), ::view-transition-old(side-hl), ::view-transition-new(side-hl) {
145
+ animation-duration: var(--dur-2); animation-timing-function: var(--ease-out); }
146
+ /* the Review count: one small quiet badge in the nav */
147
+ .badge { display: inline-block; min-width: 18px; margin-left: 8px; padding: 0 5px; border-radius: 2px;
148
+ background: var(--unlit); color: var(--ink); font-size: 11.5px; font-weight: 600; line-height: 18px;
149
+ text-align: center; vertical-align: 1px; }
150
+ main { min-width: 0; max-width: 1080px; }
151
+ main h1:first-child { margin-top: 0; }
152
+ section:focus, section h1:focus { outline: none; } /* focused on a switch, not by the user */
153
+ section:not([hidden]) { animation: fade-in .12s ease-out; }
154
+ @keyframes fade-in { from { opacity: 0; } }
155
+ section { scroll-margin-top: calc(var(--hdr) + 48px); } /* below the sticky header and job line */
156
+
157
+ /* boards */
158
+ .board {
159
+ background: var(--panel); border: 1px solid var(--rule); border-radius: 2px; min-width: 0;
160
+ margin-bottom: 24px;
161
+ }
162
+ .band {
163
+ background: var(--band); color: var(--band-ink); display: flex; align-items: center; gap: 10px;
164
+ padding: 6px 12px; min-height: 38px; border-bottom: 1px solid var(--rule);
165
+ }
166
+ .band h2 { font-size: 13px; margin: 0; color: var(--band-ink); letter-spacing: .02em; }
167
+ .band-note { color: var(--ink-2); font-size: 12.5px; margin-left: auto; white-space: nowrap;
168
+ overflow: hidden; text-overflow: ellipsis; }
169
+ :root[data-theme="day"] .band-note { color: var(--band-ink); }
170
+ @media (prefers-color-scheme: light) { :root:not([data-theme]) .band-note { color: var(--band-ink); } }
171
+ .band h2 + .band-btn { margin-left: auto; }
172
+ .band .band-note + .band-btn { margin-left: 0; }
173
+ .brow {
174
+ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
175
+ padding: 8px 12px; border-bottom: 1px solid var(--rule); min-height: 46px;
176
+ }
177
+ .brow:last-child { border-bottom: 0; }
178
+ .brow .t { min-width: 0; }
179
+ .line1 { display: flex; gap: 8px; align-items: baseline; min-width: 0; flex-wrap: wrap; }
180
+ .line1 > .ttl { font-weight: 600; }
181
+ /* a long value (a vault path, "not downloaded", the GPU line) wraps, so its end stays readable */
182
+ .line1 > .val { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; max-width: 100%; }
183
+ .count { color: var(--ink); white-space: nowrap; } /* "9 notes": full ink in both themes */
184
+ .sub { color: var(--ink-3); font-size: 12.5px; display: block; }
185
+ /* R32a: a context pack's size switch and its "Changed since your last copy" line */
186
+ .pack-size { display: flex; gap: 6px; margin: 6px 0 2px; }
187
+ .stale-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lit);
188
+ margin-right: 6px; vertical-align: middle; }
189
+ .acts { display: flex; gap: 6px; align-items: center; justify-self: end; flex-wrap: wrap;
190
+ justify-content: flex-end; }
191
+ .foot { padding: 8px 12px; color: var(--ink-2); font-size: 12.5px; border-top: 1px solid var(--rule); }
192
+ .pad { padding: 12px 14px; }
193
+ p.pad { margin: 0; }
194
+ .report-text:empty { display: none; } /* Status's report text, shown only when Copy is blocked */
195
+ .report-text .help { margin: 0 0 6px; }
196
+
197
+ /* status rows: state | what | action */
198
+ .srow { grid-template-columns: 112px minmax(0, 1fr) auto; }
199
+ .srow .line1 { flex-wrap: nowrap; }
200
+ .srow .line1 > .ttl { flex: none; }
201
+ .state { white-space: nowrap; font-size: 13px; }
202
+ .glyph { display: inline-block; min-width: 1em; text-align: center; }
203
+ .g-ok { color: var(--solid); } .g-warn { color: var(--learning); } .g-off { color: var(--hollow); }
204
+ .g-bad { color: var(--refresh); }
205
+
206
+ /* buttons: colour changes ease (never size or layout); a press scales to .97 with a tint */
207
+ button, .btn { transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out),
208
+ color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
209
+ button:active:not(:disabled):not([aria-busy="true"]) {
210
+ transform: scale(.97); background-image: linear-gradient(var(--rule), var(--rule));
211
+ }
212
+ /* busy (a click waiting on the app): the label goes clear, keeping the width, and three dots pulse */
213
+ button[aria-busy="true"], button[aria-busy="true"] * { color: transparent !important; }
214
+ button[aria-busy="true"] { position: relative; cursor: progress; }
215
+ button[aria-busy="true"]::after {
216
+ content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px;
217
+ border-radius: 50%; background: var(--ink-3); box-shadow: -7px 0 var(--ink-3), 7px 0 var(--ink-3);
218
+ animation: busy-dots 0.9s linear infinite;
219
+ }
220
+ @keyframes busy-dots {
221
+ 0%, 100% { background: var(--ink-3); box-shadow: -7px 0 var(--lit), 7px 0 var(--ink-3); }
222
+ 33% { background: var(--lit); box-shadow: -7px 0 var(--ink-3), 7px 0 var(--ink-3); }
223
+ 66% { background: var(--ink-3); box-shadow: -7px 0 var(--ink-3), 7px 0 var(--lit); }
224
+ }
225
+ .saved { display: inline-flex; gap: 4px; align-items: center; color: var(--ok-ink); font-size: 12.5px;
226
+ font-weight: 600; margin-left: 8px; }
227
+ .saved .ico { width: 14px; height: 14px; vertical-align: 0; }
228
+
229
+ /* buttons and fields */
230
+ .btn {
231
+ display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--edge);
232
+ background: none; color: var(--ink); border-radius: 2px; padding: 4px 10px; font-size: 12.5px;
233
+ text-decoration: none; white-space: nowrap;
234
+ }
235
+ .btn:hover:not(:disabled):not([aria-busy="true"]) { border-color: var(--lit); color: var(--lit); }
236
+ .btn.lit { border-color: var(--lit); color: var(--lit); font-weight: 600; }
237
+ :where(.step:not(.current) > :not(.guide)) .btn.lit { border-color: var(--edge); color: var(--ink); font-weight: 400; }
238
+ .linkbtn {
239
+ border: 0; background: none; padding: 0; color: var(--lit); text-decoration: underline;
240
+ text-decoration-color: var(--rule); text-underline-offset: 3px; font-size: 12.5px;
241
+ min-height: 24px;
242
+ }
243
+ .linkbtn:hover { text-decoration-color: var(--lit); }
244
+ input[type="text"], input[type="number"], select, textarea {
245
+ background: var(--panel); border: 1px solid var(--edge); border-radius: 2px; padding: 6px 10px;
246
+ color: var(--ink); min-width: 0;
247
+ }
248
+ textarea { width: 100%; min-height: 84px; resize: vertical; font-family: ui-monospace, Consolas, "SF Mono", monospace; font-size: 12.5px; }
249
+ input::placeholder, textarea::placeholder { color: var(--ink-3); }
250
+ input[type="checkbox"] { accent-color: var(--lit); width: 16px; height: 16px; margin: 0; }
251
+ .check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
252
+ .field { display: grid; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
253
+ .field:last-child { border-bottom: 0; }
254
+ .field label, .field .lbl { font-weight: 600; font-size: 13px; }
255
+ .field .help { color: var(--ink-3); font-size: 12.5px; margin: 0; max-width: 78ch; }
256
+ .field .help.taken { color: var(--refresh); } /* the quick-capture key another app holds */
257
+ /* quick capture's box (capture.html): one input and a hint line */
258
+ body.capture { height: 100vh; overflow: hidden; padding: 14px 16px 10px; border: 1px solid var(--edge); }
259
+ .capture #cap { width: 100%; padding: 10px 12px; font-size: 16px; background: var(--panel);
260
+ border: 1px solid var(--rule); border-radius: 2px; outline: none; }
261
+ .capture #cap:focus { border-color: var(--lit); }
262
+ .cap-hint { margin: 8px 2px 0; font-size: 12.5px; color: var(--ink-3); overflow: hidden; }
263
+ .cap-hint.ok { color: var(--ok-ink); }
264
+ .cap-hint.bad { color: var(--refresh); }
265
+ .fields3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
266
+ .fields3 .field { border-right: 1px solid var(--rule); border-bottom: 0; }
267
+ .fields3 .field:last-child { border-right: 0; }
268
+ .inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
269
+ .inline input[type="text"] { flex: 1 1 320px; }
270
+ input[type="number"] { width: 6em; }
271
+
272
+ /* connect rows: tick | app | state */
273
+ .trow { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; }
274
+ .trow > input { margin-top: 3px; }
275
+ .trow.off .ttl { color: var(--ink-3); }
276
+ .code-tag {
277
+ display: inline-block; background: var(--band); color: var(--band-ink); font-size: 11.5px;
278
+ font-weight: 600; letter-spacing: .06em; padding: 1px 6px; border-radius: 2px; white-space: nowrap;
279
+ border: 1px solid var(--rule); text-transform: uppercase;
280
+ }
281
+ /* a connected app whose entry is out of date: the warn colour (day: a darker one, 4.8:1 on the band) */
282
+ .code-tag.warn { color: var(--learning); border-color: var(--learning); }
283
+ :root[data-theme="day"] .code-tag.warn { color: #9a5208; }
284
+ @media (prefers-color-scheme: light) { :root:not([data-theme]) .code-tag.warn { color: #9a5208; } }
285
+ details.what { grid-column: 2 / -1; margin-top: 4px; }
286
+ details.what summary { cursor: pointer; color: var(--ink-2); font-size: 12.5px; width: max-content;
287
+ padding: 3px 0; }
288
+ details.what summary:hover { color: var(--lit); }
289
+ details.what p { margin: 6px 0 4px; font-size: 12.5px; color: var(--ink-2); }
290
+ details.xray-call summary { cursor: pointer; color: var(--ink-2); font-size: 12.5px; padding: 3px 0; }
291
+ details.xray-call summary:hover { color: var(--lit); }
292
+ .brow.cut .ttl { color: var(--ink-3); }
293
+ /* R27b: X-ray's Compare two apps, two columns, stacked on a narrow window */
294
+ .xray-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
295
+ border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
296
+ .xray-col { min-width: 0; }
297
+ .xray-col + .xray-col { border-left: 1px solid var(--rule); }
298
+ @media (max-width: 640px) {
299
+ .xray-cmp { grid-template-columns: minmax(0, 1fr); }
300
+ .xray-col + .xray-col { border-left: 0; border-top: 1px solid var(--rule); }
301
+ }
302
+ pre {
303
+ margin: 6px 0 0; background: var(--ground); border: 1px solid var(--rule); border-radius: 2px;
304
+ padding: 8px 10px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
305
+ }
306
+ pre.out { max-height: 340px; margin: 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
307
+ .files { list-style: none; margin: 0; padding: 0; }
308
+ .files li { padding: 4px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px;
309
+ overflow-wrap: anywhere; }
310
+ .files li:last-child { border-bottom: 0; }
311
+
312
+ /* tables (counts) */
313
+ table { border-collapse: collapse; width: 100%; font-size: 13px; }
314
+ th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); }
315
+ thead th {
316
+ background: var(--band); color: var(--band-ink); font-size: 11.5px; letter-spacing: .06em;
317
+ text-transform: uppercase;
318
+ }
319
+ td.n, th.n { text-align: right; }
320
+ .table-scroll { overflow-x: auto; }
321
+
322
+ /* setup steps */
323
+ .step.collapsed > :not(.band) { display: none; }
324
+ .step.current { border-color: var(--edge); }
325
+ /* numbered steps: the progress line, then a marker, title and one plain line per step */
326
+ .setup-prog { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--ink-2); font-size: 12.5px; }
327
+ .setup-bar { flex: 1; max-width: 360px; height: 4px; background: var(--edge); border-radius: 2px; overflow: hidden; }
328
+ .setup-bar > span { display: block; height: 100%; width: 100%; background: var(--lit);
329
+ transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
330
+ /* a number that changed in place: the old text lies over the new one and fades out (crossFade in app.js) */
331
+ .xf-old { position: absolute; margin: 0; pointer-events: none; }
332
+ .step-mark { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
333
+ border: 1px solid var(--edge); font-size: 12px; line-height: 1; color: var(--ink-2); }
334
+ .step.current .step-mark { border: 2px solid var(--lit); color: var(--lit); font-weight: 600; }
335
+ .step-mark.done { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--ground); }
336
+ .step-t { min-width: 0; }
337
+ .step .band-note { flex: none; } /* "Done" never shrinks to "D..." on a narrow screen */
338
+ .step-t h2 { display: inline; }
339
+ .step-opt { margin-left: 8px; font-size: 12px; color: var(--ink-3); }
340
+ .step-d { margin: 0; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
341
+ :root[data-theme="day"] .step-mark, :root[data-theme="day"] .step-d { color: var(--band-ink); }
342
+ :root[data-theme="day"] .step-opt { color: var(--ink-2); }
343
+ @media (prefers-color-scheme: light) {
344
+ :root:not([data-theme]) .step-mark, :root:not([data-theme]) .step-d { color: var(--band-ink); }
345
+ :root:not([data-theme]) .step-opt { color: var(--ink-2); }
346
+ }
347
+ :root[data-theme="day"] .step-mark.done { color: var(--ground); }
348
+ @media (prefers-color-scheme: light) { :root:not([data-theme]) .step-mark.done { color: var(--ground); } }
349
+ .done-mark { color: var(--solid); font-weight: 600; }
350
+ /* day: --solid is 3.1:1 on the panel; this green is 7.1:1 there, 6.2:1 on the sand band */
351
+ :root[data-theme="day"] .done-mark { color: #08603f; }
352
+ @media (prefers-color-scheme: light) { :root:not([data-theme]) .done-mark { color: #08603f; } }
353
+ /* a section being fetched again keeps its old boards, dimmed (after a beat, so a quick answer never flickers) */
354
+ .refreshing { opacity: .55; transition: opacity .2s .3s; }
355
+ .opts { display: grid; gap: 0; }
356
+ .opt { grid-template-columns: 24px minmax(0, 1fr) auto; cursor: pointer; }
357
+ .opt input { accent-color: var(--lit); margin: 0; }
358
+ .rec { color: var(--lit); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
359
+ .token { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
360
+ .token code { background: var(--ground); border: 1px solid var(--edge); padding: 4px 8px;
361
+ border-radius: 2px; overflow-wrap: anywhere; user-select: all; }
362
+ ol.how { margin: 6px 0 0; padding-left: 20px; }
363
+ .answer { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
364
+ ol.how li { padding: 2px 0; }
365
+
366
+ /* Add your history: a source's guided panel, under its card */
367
+ .guide { display: grid; gap: 10px; padding: 4px 14px 14px; margin: 0 12px 12px;
368
+ background: var(--ground); border: 1px solid var(--edge); border-radius: 2px; }
369
+ .guide > .pad, .guide > .brow, .guide > .field { padding-left: 0; padding-right: 0; }
370
+ .guide > .field { border-bottom: 0; }
371
+ .guide .help { color: var(--ink-3); font-size: 12.5px; margin: 0; }
372
+ .gsteps { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; font-size: 12.5px;
373
+ color: var(--ink-3); }
374
+ .gsteps .on { color: var(--lit); font-weight: 600; }
375
+ .gsteps .done { color: var(--ink-2); }
376
+ .drop { display: grid; gap: 8px; justify-items: start; padding: 20px 14px; color: var(--ink-2);
377
+ background: var(--panel); border: 1px solid var(--edge); border-radius: 2px; }
378
+ .drop.over { border-color: var(--lit); color: var(--lit); }
379
+ .drop input[type="file"] { max-width: 100%; font-size: 12.5px; color: var(--ink-3); }
380
+ .drop input[type="file"]::file-selector-button {
381
+ margin-right: 10px; border: 1px solid var(--edge); background: none; color: var(--ink);
382
+ border-radius: 2px; padding: 4px 10px; font: inherit; cursor: pointer;
383
+ }
384
+ .drop input[type="file"]:hover:not(:disabled)::file-selector-button { border-color: var(--lit); color: var(--lit); }
385
+ .drop progress { width: 100%; accent-color: var(--lit); }
386
+ .gfound { margin: 0 0 4px; font-weight: 600; }
387
+ .gerr .sub { color: var(--refresh); }
388
+
389
+ /* confirm dialog, toast */
390
+ dialog.confirm {
391
+ background: var(--panel); color: var(--ink); border: 1px solid var(--edge); border-radius: 2px;
392
+ padding: 16px 18px; width: min(680px, 92vw); max-height: 80vh;
393
+ }
394
+ dialog.confirm::backdrop { background: var(--scrim); }
395
+ dialog.confirm h2 { margin: 0 0 10px; }
396
+ .ractions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
397
+ /* the welcome guide: one step at a time over the app; the band holds the count and the close
398
+ button, Setup's bar runs under it */
399
+ dialog.welcome {
400
+ background: var(--panel); color: var(--ink); border: 1px solid var(--edge); border-radius: 2px;
401
+ padding: 0; width: min(560px, calc(100vw - 32px)); max-width: none; overflow: auto;
402
+ /* held still between steps: a fixed width and top, so only its height changes */
403
+ margin: 10vh auto auto; max-height: calc(90vh - 16px); scrollbar-gutter: stable;
404
+ }
405
+ dialog.welcome::backdrop { background: var(--scrim); }
406
+ .wg-top { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 18px;
407
+ background: var(--band); color: var(--band-ink); }
408
+ .wg-count { font-size: 12.5px; font-weight: 600; }
409
+ .wg-top .icon-btn { margin-left: auto; }
410
+ .wg-top .icon-btn:hover { border-color: var(--band-ink); }
411
+ .wg-bar { max-width: none; border-radius: 0; }
412
+ dialog.welcome h2 { margin: 20px 18px 8px; font-size: 18px; }
413
+ .wg-body { padding: 0 18px; }
414
+ .wg-lead { margin: 0 0 14px; color: var(--ink-2); max-width: 64ch; }
415
+ .wg-sub { margin: 0; font-weight: 600; font-size: 13px; }
416
+ .wg-body .brow { padding-left: 0; padding-right: 0; }
417
+ .wg-body .field { padding: 4px 0 8px; border-bottom: 0; }
418
+ .wg-body > .help { color: var(--ink-3); font-size: 12.5px; margin: 10px 0 0; }
419
+ .wg-ok { margin: 0; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
420
+ .wg-ok .mono { overflow-wrap: anywhere; }
421
+ .wg-job { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
422
+ .wg-job:empty { display: none; }
423
+ .wg-job.bad { color: var(--refresh); }
424
+ .wg-tour h3 { margin: 14px 0 2px; font-size: 12.5px; color: var(--ink-3); }
425
+ .wg-tour h3:first-child { margin-top: 0; }
426
+ .wg-tour ul { list-style: none; margin: 0; padding: 0; }
427
+ .wg-tour li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: baseline;
428
+ padding: 2px 0; color: var(--ink-2); font-size: 13px; }
429
+ .wg-tour .linkbtn { justify-self: start; text-align: left; font-size: 13px; }
430
+ @media (max-width: 480px) { .wg-tour li { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; } }
431
+ .wg-nav { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 18px 14px;
432
+ border-top: 1px solid var(--rule); }
433
+ .wg-nav .linkbtn { margin-right: auto; }
434
+ .wg-nav .btn { padding: 6px 16px; font-size: 13px; }
435
+ .chg { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 10px; padding: 6px 0;
436
+ border-bottom: 1px solid var(--rule); font-size: 12.5px; }
437
+ .chg:last-child { border-bottom: 0; }
438
+ .chg .op { font-weight: 600; letter-spacing: .06em; font-size: 12px; text-transform: uppercase;
439
+ grid-row: span 3; }
440
+ .chg .f { overflow-wrap: anywhere; color: var(--ink-2); }
441
+ .chg .d { color: var(--ink-3); overflow-wrap: anywhere; }
442
+ /* the toast stays in the page (its live region with it), faded out until a message comes */
443
+ .toast {
444
+ position: fixed; left: 50%; bottom: 24px; z-index: 40; display: flex; gap: 12px; align-items: center;
445
+ background: var(--band); color: var(--band-ink); border: 1px solid var(--edge); border-radius: 2px;
446
+ padding: 8px 8px 8px 16px; font-weight: 600; max-width: 90vw;
447
+ opacity: 0; transform: translate(-50%, 0); pointer-events: none;
448
+ transition: opacity var(--dur-1) var(--ease-in); /* leaves with a fade only */
449
+ }
450
+ .toast.on { opacity: 1; pointer-events: auto; transition: none; animation: toast-in var(--dur-2) var(--ease-out); }
451
+ @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } } /* arrives: 6px up and a fade */
452
+ /* Copied: the check is drawn */
453
+ .ico.draw path { stroke-dasharray: 24; animation: draw-check var(--dur-2) var(--ease-out); }
454
+ @keyframes draw-check { from { stroke-dashoffset: 24; } }
455
+ .toast.ok { border-left: 4px solid var(--ok-ink); }
456
+ .toast.error { border-left: 4px solid var(--refresh); }
457
+ .toast-x { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0;
458
+ background: none; color: inherit; border-radius: 2px; flex: none; }
459
+ .toast-x:hover { background-image: linear-gradient(var(--rule), var(--rule)); }
460
+
461
+ /* Chat: past chats on the left, the thread on the right, the composer pinned at the bottom */
462
+ .chat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
463
+ .chat-side { position: sticky; top: calc(var(--hdr) + 58px); display: grid; gap: 8px; }
464
+ .chat-new { justify-content: center; min-height: 34px; }
465
+ .chat-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--rule);
466
+ border-radius: 2px; max-height: calc(100vh - var(--hdr) - 180px); overflow-y: auto; }
467
+ .chat-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
468
+ border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; }
469
+ .chat-item:last-child { border-bottom: 0; }
470
+ .chat-item.on { border-left-color: var(--lit); }
471
+ .chat-open { border: 0; background: none; text-align: left; padding: 7px 4px 7px 10px; min-width: 0; color: var(--ink-2); }
472
+ .chat-open:hover, .chat-item.on .chat-open { color: var(--ink); }
473
+ .chat-open .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
474
+ .chat-open .d { display: block; color: var(--ink-3); font-size: 12px; }
475
+ .chat-del { opacity: 0; border: 0; background: none; color: var(--ink-3); font-size: 12px; padding: 4px 8px; }
476
+ .chat-item:hover .chat-del, .chat-item:focus-within .chat-del { opacity: 1; }
477
+ .chat-del:hover { color: var(--refresh); }
478
+ .chat-list :focus-visible { outline-offset: -2px; } /* the list scrolls, so an outside ring would be clipped */
479
+ .chat-pick { display: none; }
480
+ .chat-main { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - var(--hdr) - 220px); }
481
+ .chat-bar { position: relative; display: flex; justify-content: flex-end; gap: 8px; }
482
+ .chat-set summary { cursor: pointer; color: var(--ink-2); font-size: 12.5px; padding: 3px 0; }
483
+ .chat-set summary:hover { color: var(--lit); }
484
+ .chat-set .set-panel { position: absolute; right: 0; top: 28px; z-index: 5; width: min(340px, 92vw);
485
+ background: var(--panel); border: 1px solid var(--edge); border-radius: 2px; }
486
+ .chat-set .check { display: flex; padding: 2px 0; }
487
+ .chat-set input[type="range"] { accent-color: var(--lit); width: 100%; }
488
+ .chat-log { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 8px 0 18px; }
489
+ .chat-empty { color: var(--ink-2); padding: 24px 0; }
490
+ /* above the oldest message the local model still gets */
491
+ .chat-mem { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11.5px; }
492
+ .chat-mem::before, .chat-mem::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
493
+ .chat-empty p { margin: 0 0 12px; }
494
+ .msg .who { color: var(--ink-3); font-size: 12px; margin-bottom: 4px; }
495
+ .msg.you { background: var(--panel); border: 1px solid var(--rule); border-radius: 2px; padding: 10px 12px; }
496
+ .msg .board { margin: 0; }
497
+ .md { overflow-wrap: anywhere; max-width: 78ch; }
498
+ .md p { margin: 0 0 8px; }
499
+ .md ul, .md ol { margin: 0 0 8px; padding-left: 22px; }
500
+ .md li { padding: 1px 0; }
501
+ .md > :last-child { margin-bottom: 0; }
502
+ .md code { background: var(--ground); border: 1px solid var(--rule); border-radius: 2px; padding: 0 4px; }
503
+ .cite { border: 1px solid var(--edge); background: none; color: var(--lit); border-radius: 2px;
504
+ font-size: 11px; line-height: 1.3; padding: 0 4px; margin: 0 1px; vertical-align: 1px; min-width: 18px; }
505
+ .cite:hover { border-color: var(--lit); }
506
+ .caret { display: inline-block; width: 8px; height: 14px; background: var(--lit); vertical-align: -2px;
507
+ margin-left: 2px; animation: caret-blink 1s steps(1) infinite; }
508
+ @keyframes caret-blink { 50% { opacity: 0; } }
509
+ .thinking { color: var(--ink-3); }
510
+ .chat-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
511
+ .chip { display: inline-flex; gap: 8px; align-items: center; max-width: 100%; border: 1px solid var(--rule);
512
+ background: var(--panel); color: var(--ink-2); border-radius: 2px; padding: 3px 8px; font-size: 12px; }
513
+ .chip:hover, .chip.flash { border-color: var(--lit); color: var(--ink); }
514
+ .chip .ct { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
515
+ .chip .tag { color: var(--ink-3); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
516
+ .chip[aria-pressed="true"] { border-color: var(--lit); color: var(--ink); }
517
+ .tag { color: var(--ink-3); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
518
+ /* the facts Keepfold computed, above the model's words */
519
+ .facts { max-width: 78ch; margin: 2px 0 10px; padding: 8px 12px; background: var(--panel);
520
+ border: 1px solid var(--rule); border-left: 2px solid var(--lit); border-radius: 2px; font-size: 13px; }
521
+ .fx-top { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 12px; }
522
+ .fx-ttl { color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
523
+ .fx-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: 4px; color: var(--ink); }
524
+ .fx-n { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
525
+ .fx-line { color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
526
+ .fx-src { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
527
+ .fx-chip { display: inline-flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
528
+ .fx-cov, .cov { color: var(--ink-3); font-size: 12px; margin: 6px 0 0; }
529
+ .cov.qflag { color: var(--learning); }
530
+ .chat-evidence { color: var(--ink-2); font-size: 12px; margin: 6px 0 0; }
531
+ .chat-evidence strong { color: var(--ink); font-weight: 600; }
532
+ .chat-conflict { margin-top: 2px; }
533
+ .chat-conflict .linkbtn { font-size: inherit; min-height: 0; }
534
+ /* the exact passage a source stands for */
535
+ .passage { max-width: 78ch; margin-top: 8px; padding: 8px 12px; background: var(--panel);
536
+ border: 1px solid var(--edge); border-radius: 2px; }
537
+ .pv-where { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 12.5px; }
538
+ .pv-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; font-size: 13px; color: var(--ink-2);
539
+ max-height: 18em; overflow-y: auto; }
540
+ .composer { position: sticky; bottom: 0; background: var(--ground); border-top: 1px solid var(--rule); padding: 10px 0 12px; }
541
+ .new-text { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; margin: 0 auto; width: max-content;
542
+ background: var(--panel); }
543
+ .msg-acts { margin-top: 6px; }
544
+ .btn.quiet { border-color: transparent; color: var(--ink-3); padding: 2px 6px; }
545
+ .btn.quiet:hover:not(:disabled):not([aria-busy="true"]) { border-color: var(--edge); color: var(--ink); }
546
+ .composer .crow { display: flex; gap: 8px; align-items: flex-end; position: relative; }
547
+ /* UX-B: the "#" list of pages, under the message box (above it, .up, when there is no room) */
548
+ .pk-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px 0;
549
+ list-style: none; width: min(480px, 100%); background: var(--panel); border: 1px solid var(--edge);
550
+ border-radius: 2px; }
551
+ .pk-list.up { top: auto; bottom: calc(100% + 4px); }
552
+ .pk-row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between;
553
+ padding: 6px 10px; min-height: 32px; cursor: pointer; font-size: 13px; color: var(--ink); }
554
+ .pk-row[aria-selected="true"] { background: var(--band); color: var(--band-ink); }
555
+ .pk-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
556
+ .pk-k { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
557
+ .sub.related { margin-top: 2px; }
558
+ .composer textarea { flex: 1; min-height: 0; resize: none; field-sizing: content; overflow-y: auto;
559
+ font: 400 14px/1.45 system-ui, "Segoe UI", sans-serif; max-height: calc(6 * 1.45em + 14px); }
560
+ .chat-send { min-height: 34px; min-width: 64px; justify-content: center; }
561
+ .composer .help { margin: 6px 0 0; color: var(--ink-3); font-size: 12.5px; }
562
+ @media (max-width: 900px) {
563
+ .chat { grid-template-columns: minmax(0, 1fr); }
564
+ .chat-side { display: none; }
565
+ .chat-pick { display: block; flex: 1; min-width: 0; }
566
+ .chat-bar { justify-content: space-between; align-items: center; }
567
+ }
568
+ @media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
569
+ /* Tonight's pulse: 24 hours of the Keepfold day from 04:00, filled by activity (0 to 3), the
570
+ current hour outlined. No motion. */
571
+ .pulse { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
572
+ .pcell { height: 22px; border-radius: 2px; border: 1px solid var(--rule); }
573
+ .pcell.l1 { background: color-mix(in srgb, var(--lit) 30%, var(--panel)); }
574
+ .pcell.l2 { background: color-mix(in srgb, var(--lit) 62%, var(--panel)); }
575
+ .pcell.l3 { background: var(--lit); }
576
+ .pcell.now { outline: 2px solid var(--ink); outline-offset: 1px; }
577
+
578
+ /* below 900 px the sidebar gives way to the header's section menu, as Chat's list does */
579
+ @media (max-width: 900px) {
580
+ .top { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 16px; }
581
+ .greet { display: none; }
582
+ .section-select { display: block; grid-row: 2; grid-column: 1 / -1; width: 100%; }
583
+ .shell { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 48px; }
584
+ .side { display: none; }
585
+ .jobline { padding: 6px 16px; flex-wrap: wrap; }
586
+ section { scroll-margin-top: 160px; } /* the two-row header and a wrapped job line */
587
+ }
588
+ @media (max-width: 760px) {
589
+ .srow { grid-template-columns: minmax(0, 1fr) auto; }
590
+ .srow .state { grid-column: 1 / -1; }
591
+ .fields3 { grid-template-columns: minmax(0, 1fr); }
592
+ .fields3 .field { border-right: 0; border-bottom: 1px solid var(--rule); }
593
+ .brow { grid-template-columns: minmax(0, 1fr); }
594
+ .brow .acts { justify-self: start; justify-content: flex-start; }
595
+ .trow, .opt { grid-template-columns: 24px minmax(0, 1fr); }
596
+ .btn { white-space: normal; text-align: left; }
597
+ .trow .acts, .opt .acts { grid-column: 2; }
598
+ }
599
+ /* reduced motion: no transforms or animation, every state change instant; busy shows a still … */
600
+ @media (prefers-reduced-motion: reduce) {
601
+ *, *::before, *::after { transition: none !important; animation: none !important; }
602
+ button:active:not(:disabled), .toast, .toast.on { transform: none; }
603
+ ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
604
+ .toast { left: 0; right: 0; margin: 0 auto; width: max-content; }
605
+ button[aria-busy="true"]::after {
606
+ content: '…'; inset: 0; left: 0; top: 0; width: auto; height: auto; margin: 0; display: grid;
607
+ place-items: center; border-radius: 0; background: none; box-shadow: none; color: var(--ink-2);
608
+ }
609
+ .jobline.running::after { width: 100%; opacity: .6; }
610
+ .jobline.ok { background: color-mix(in srgb, var(--ok-ink) 16%, var(--panel)); }
611
+ }