File size: 26,223 Bytes
31226fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/*
 * MHRN OBSERVATIONAL CONSOLE — shell-level rules
 * Extracted from the inline <style> block in index.html.
 * These are structural display rules for the tab-content shell and
 * legacy tab navigation visibility.
 */

.tab-content { display: none; }
.tab-content.active { display: block; }
.overview-subpanel { display: none; }
.overview-subpanel.active { display: block; }

/* The three-area navigation is the visible shell; legacy tab buttons remain routing targets. */
.tab-nav { display: none !important; }

/* Utility: hide elements that are toggled by JS.
   JS toggles .is-hidden instead of setting element.style.display directly. */
.is-hidden { display: none !important; }

/* Clickable cursor for elements that were previously styled inline */
.is-clickable { cursor: pointer; }

/* File tree: unknown states */
.fm-state-empty { color: var(--amber); opacity: .7; }
.fm-state-absent { color: var(--ink-4); opacity: .5; }
.fm-state-stale { color: var(--crimson); opacity: .7; }
.fm-state-loading { color: var(--ink-4); }

/* File tree: DATA/EVID source badges */
.fm-source-badge { display: inline-block; padding: 1px 5px; border-radius: 3px; font: 700 .48rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.fm-source-data { background: var(--moss-wash); color: var(--moss); }
.fm-source-docs { background: var(--indigo-wash); color: var(--indigo); }

/* Provenance side panel */
.fm-provenance-panel { width: 320px; border-left: 1px solid var(--rule); background: var(--paper-2); overflow-y: auto; flex-shrink: 0; }
.fm-provenance-panel > header { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.fm-provenance-panel > header h3 { margin: 0; font-size: .78rem; flex: 1; }
.fm-provenance-panel > header .icon-btn { width: 24px; height: 24px; min-height: 24px; padding: 0; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; }
.fm-provenance-panel > header .icon-btn:hover { color: var(--ink); }
.fm-prov-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; padding: 8px 10px; font-size: .66rem; }
.fm-prov-dl dt { color: var(--ink-4); font-weight: 600; white-space: nowrap; }
.fm-prov-dl dd { margin: 0; color: var(--ink-2); display: flex; align-items: center; gap: 4px; overflow: hidden; }
.fm-prov-dl dd code { font-size: .6rem; overflow: hidden; text-overflow: ellipsis; }
.fm-copy-btn { background: none; border: none; cursor: pointer; padding: 0 2px; font-size: .7rem; color: var(--ink-3); flex-shrink: 0; }
.fm-copy-btn:hover { color: var(--accent); }

/* File tree: keyboard focus and selection */
.fm-tree-focused { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-xs); }
.fm-tree-selected { background: var(--accent-wash); outline: 1px solid var(--accent); outline-offset: -1px; border-radius: var(--r-xs); }

/* Folder viewer (non-popup tab viewer) */
.fm-folder-viewer-header { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.fm-folder-viewer-header strong { font-size: .8rem; font-family: var(--font-mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-folder-viewer-header .fm-folder-count { color: var(--ink-4); font-size: .6rem; font-family: var(--font-mono); }
.fm-viewer-mode-btn { width: 24px; height: 24px; min-height: 24px; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-xs); background: var(--paper-2); color: var(--ink-3); cursor: pointer; font-size: .7rem; display: grid; place-items: center; flex-shrink: 0; }
.fm-viewer-mode-btn:hover { background: var(--paper-3); color: var(--ink); }
/* Detail (list) view */
.fm-folder-list { display: flex; flex-direction: column; gap: 1px; }
.fm-folder-list .fm-folder-item { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-xs); cursor: pointer; font-size: .78rem; }
.fm-folder-list .fm-folder-item:hover { background: var(--paper-3); }
.fm-folder-list .fm-folder-item .fm-folder-icon { flex-shrink: 0; font-size: .85rem; }
.fm-folder-list .fm-folder-item .fm-file-size { margin-left: auto; color: var(--ink-4); font-size: .62rem; font-family: var(--font-mono); }
.fm-folder-up { color: var(--ink-3); font-style: italic; }
/* Grid view */
.fm-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; padding: 8px; }
.fm-folder-grid .fm-folder-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper-2); cursor: pointer; text-align: center; }
.fm-folder-grid .fm-folder-item:hover { background: var(--paper-3); border-color: var(--rule-2); }
.fm-folder-grid .fm-folder-icon { font-size: 1.6rem; }
.fm-folder-grid .fm-folder-name { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fm-folder-grid .fm-file-size { font-size: .55rem; color: var(--ink-4); font-family: var(--font-mono); }

/* Sidebar header: title left, actions right */
.fm-sidebar-header { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.fm-sidebar-title { font-size: .78rem; font-weight: 600; }
.fm-sidebar-actions { margin-left: auto; display: flex; gap: 4px; }
.fm-sidebar-action-btn { width: 24px; height: 24px; min-height: 24px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink-3); cursor: pointer; font-size: .7rem; display: grid; place-items: center; }
.fm-sidebar-action-btn:hover { background: var(--paper-3); color: var(--ink); }

/* Search bar: limit width */
.fm-search-bar { display: flex; align-items: center; gap: 4px; max-width: 200px; }
.fm-search-bar input { flex: 1; min-width: 80px; padding: 3px 6px; border: 1px solid var(--rule); border-radius: var(--r-xs); background: var(--paper-2); color: var(--ink); font-size: .7rem; }

/* Recent files: compact inline list under sidebar header */
.fm-recent { padding: 4px 8px; border-bottom: 1px solid var(--rule); background: var(--paper-2); max-height: 120px; overflow-y: auto; }
.fm-recent-list { display: flex; flex-direction: column; gap: 2px; }
.fm-recent-list .fm-recent-item { display: flex; align-items: center; gap: 6px; padding: 2px 4px; font-size: .68rem; border-radius: var(--r-xs); cursor: pointer; }
.fm-recent-list .fm-recent-item:hover { background: var(--paper-3); }
.fm-recent-list .fm-recent-item .fm-recent-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.fm-recent-list .fm-recent-item .fm-recent-source { color: var(--ink-4); font-size: .55rem; font-family: var(--font-mono); flex-shrink: 0; }

/* Popup toggle checkbox */
.fm-popup-toggle { display: inline-flex; align-items: center; gap: 3px; font-size: .62rem; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.fm-popup-toggle input { width: 14px; height: 14px; cursor: pointer; }

/* File viewer: global dialog */
.fm-viewer-dialog { width: min(90vw, 1100px); height: min(85vh, 800px); padding: 0; border: 1px solid var(--rule-3); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-float); overflow: hidden; }
.fm-viewer-dialog::backdrop { background: color-mix(in srgb, var(--ink) 46%, transparent); backdrop-filter: blur(3px); }
.fm-viewer-dialog-frame { display: flex; flex-direction: row; height: 100%; }
.fm-viewer-dialog-frame > .fm-viewer-dialog-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fm-viewer-dialog-main > header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: var(--paper-3); }
.fm-viewer-dialog-main > header h2 { margin: 0; font-size: .9rem; flex: 1; }
.fm-viewer-dialog-main > header .icon-btn { width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink-3); cursor: pointer; font-size: .9rem; }
.fm-viewer-dialog-main > header .icon-btn:hover { background: var(--paper-4); color: var(--ink); }
.fm-viewer-content { flex: 1 1 auto; overflow-y: auto; padding: 12px; min-height: 0; height: 0; }

/* Tab viewer (non-popup): fixed height with permanent scrollbar */
.fm-layout .fm-viewer { flex: 1; overflow-y: auto; padding: 12px; min-height: 400px; max-height: calc(100vh - 300px); }
.fm-layout .fm-viewer::-webkit-scrollbar { width: 8px; }
.fm-layout .fm-viewer::-webkit-scrollbar-track { background: var(--paper-3); }
.fm-layout .fm-viewer::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 4px; }

/* File tree: full-row click areas, no toggle arrow */
.fm-tree-item { padding: 0; cursor: pointer; border-radius: var(--r-xs); list-style: none; }
.fm-tree-item:hover { background: var(--paper-3); }
.fm-tree-dir { padding: 4px 6px; font-size: .78rem; font-weight: 600; user-select: none; }
.fm-tree-dir:hover { background: var(--paper-3); }
.fm-tree-dir.fm-dir-expanded { background: var(--accent-wash); }
.fm-dir-label { display: inline; }
.fm-tree-file { padding: 4px 6px 4px 22px; font-size: .78rem; display: flex; align-items: center; gap: 4px; }
.fm-tree-file:hover { background: var(--accent-wash); }
.fm-file-size { margin-left: auto; color: var(--ink-4); font-size: .62rem; font-family: var(--font-mono); white-space: nowrap; }
.fm-dir-toggle, .fm-dir-toggle-expanded { display: none; }
.fm-tree-list { padding-left: 0; margin: 0; list-style: none; }
.fm-tree-list .fm-tree-list { padding-left: 16px; }

/* TOC panel (Outline) */
.fm-toc-panel { width: 220px; border-left: 1px solid var(--rule); background: var(--paper-2); overflow-y: auto; flex-shrink: 0; font-size: .7rem; }
.fm-toc-panel > header { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--paper-2); }
.fm-toc-panel > header .icon-btn { width: 22px; height: 22px; min-height: 22px; padding: 0; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; margin-left: auto; }
.fm-toc-panel > header .icon-btn:hover { color: var(--ink); }
.fm-toc-panel ul { list-style: none; padding: 6px 0; margin: 0; }
.fm-toc-panel li { padding: 2px 8px; }
.fm-toc-panel li.fm-toc-h2 { padding-left: 20px; }
.fm-toc-panel li.fm-toc-h3 { padding-left: 32px; }
.fm-toc-panel a { color: var(--ink-3); text-decoration: none; display: block; padding: 2px 4px; border-radius: var(--r-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-toc-panel a:hover { background: var(--paper-3); color: var(--ink); }
.fm-toc-panel a.fm-toc-active { color: var(--accent); font-weight: 600; background: var(--accent-wash); }

/* File viewer: icon buttons */
.file-renderer-actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.file-renderer-icon-btn { width: 28px; height: 28px; min-height: 28px; padding: 0; border: 1px solid transparent; border-radius: var(--r-xs); background: transparent; color: var(--ink-3); cursor: pointer; font-size: .8rem; display: grid; place-items: center; }
.file-renderer-icon-btn:hover { background: var(--paper-3); border-color: var(--rule); color: var(--ink); }
.file-renderer-icon-btn[title="Schliessen"] { margin-left: auto; }

/* File viewer: error text colour */
.fm-error-text { color: var(--crimson); }

/* File viewer: empty recent padding (was inline style="padding:12px") */
.fm-empty-recent { padding: 12px; }

/* File viewer: active toggle state */
.fm-toggle-active { opacity: 1; color: var(--accent); }

/* File viewer: directory toggle expansion (replaces inline transform) */
.fm-dir-toggle { display: inline-block; transition: transform 0.15s; }
.fm-dir-toggle-expanded { transform: rotate(90deg); }

/* BibTeX: row highlight (was inline outline) */
.bibtex-row-highlighted {
  outline: 2px solid var(--amber);
  outline-offset: -1px;
}

/* Learning studio: AI proposal pre (was inline style) */
.learning-ai-proposal {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 18rem;
}

/* Population bar fill: width and colour set via data-* attributes */
.population-bar-fill { width: 0; background: transparent; }

/* Structural proposal: confidence (was inline --conf) */
.proposal-conf { }

/* Wesen: self-body opacity (was inline style="opacity:...") */
.wesen-self-body { opacity: 1; }

/* Wesen: empirical fill (was inline --empirical-fill) */
.wesen-empirical-row { }

/* ========================================================== */
/* NEW API INTEGRATION MODULES — shared layout rules          */
/* ========================================================== */

/* Generic card section used by all new modules */
.card { background: var(--paper-2); border-radius: var(--r-lg); padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--rule); }
.card > header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.card > header h2 { margin: 0; font-size: 1.1rem; color: var(--ink); font-family: var(--font-display); }
.card > header p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--ink-3); opacity: 1; }

/* Maturity state badges */
.maturity-state { padding: 0.2rem 0.5rem; border-radius: var(--r-sm); font-size: 0.75rem; font-weight: 600; white-space: nowrap; font-family: var(--font-mono); }
.maturity-state.pending { background: var(--amber-wash); color: var(--amber); }
.maturity-state.passed { background: var(--moss-wash); color: var(--moss); }
.maturity-state.stale { background: var(--paper-3); color: var(--ink-4); }

/* Cognition module */
.cognition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.cognition-section { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 0.75rem; }
.cognition-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); font-family: var(--font-display); }
.cognition-detail { font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); }
.cognition-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; margin: 0; }
.cognition-detail dt { font-weight: 600; color: var(--ink-3); }
.cognition-detail dd { margin: 0; color: var(--ink-2); }
.cognition-memory-controls { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.cognition-memory-controls label { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; color: var(--ink-2); }
.cognition-memory-stats { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--ink-2); }
.cognition-world-model-stats { display: flex; gap: 1rem; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--ink-2); }
.cognition-prediction-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; color: var(--ink-2); }
.cognition-prediction-table th { color: var(--ink-4); font-family: var(--font-mono); font-size: 0.72rem; }
.cognition-prediction-table th, .cognition-prediction-table td { padding: 0.25rem 0.4rem; border-bottom: 1px solid var(--rule); text-align: left; }

/* Gateway monitor module */
.gateway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.gateway-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); font-family: var(--font-display); }
.gateway-list { display: flex; flex-direction: column; gap: 0.5rem; }
.gateway-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 0.6rem; border-left: 3px solid var(--ink-4); }
.gateway-card.gateway-passed { border-left-color: var(--moss); }
.gateway-card.gateway-stale { border-left-color: var(--ink-4); }
.gateway-card.gateway-pending { border-left-color: var(--amber); }
.gateway-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.gateway-card-body { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.8rem; color: var(--ink-3); }

/* Docs browser module */
.docs-toolbar { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.docs-search-input { flex: 1; padding: 0.4rem 0.6rem; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--paper-2); color: var(--ink); }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1rem; }
.docs-section { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 0.75rem; overflow: auto; max-height: 400px; }
.docs-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); font-family: var(--font-display); }
.docs-tree-item { display: flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0; font-size: 0.85rem; color: var(--ink-2); }
.docs-tree-item:hover { background: var(--paper-3); }
.docs-tree-open { margin-left: auto; padding: 0.1rem 0.4rem; font-size: 0.75rem; cursor: pointer; border: none; background: var(--accent-wash); color: var(--accent); border-radius: var(--r-xs); }
.docs-statistics dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; margin: 0; font-size: 0.85rem; }
.docs-statistics dt { font-weight: 600; color: var(--ink-3); }
.docs-statistics dd { margin: 0; color: var(--ink-2); }
.docs-content-pre { white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; max-height: 350px; overflow: auto; color: var(--ink-2); }
.docs-search-results { list-style: none; padding: 0; margin: 0; }
.docs-search-results li { padding: 0.3rem 0; border-bottom: 1px solid var(--rule); font-size: 0.85rem; color: var(--ink-2); }

/* Research docs module */
.research-docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.research-docs-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); font-family: var(--font-display); }
.research-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 350px; overflow: auto; }
.research-item { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0.4rem 0.6rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; color: var(--ink-2); }
.research-item strong { font-size: 0.9rem; color: var(--ink); }
.research-item small { color: var(--ink-4); }
.research-item-open, .research-report-open, .research-ai-report-open { align-self: flex-start; padding: 0.1rem 0.4rem; font-size: 0.75rem; cursor: pointer; border: none; background: var(--accent-wash); color: var(--accent); border-radius: var(--r-xs); }
.research-doc-viewer { margin-top: 1rem; background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 0.75rem; }
.research-doc-viewer header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.research-doc-viewer-content { white-space: pre-wrap; word-break: break-word; font-size: 0.85rem; max-height: 400px; overflow: auto; color: var(--ink-2); }

/* AI report tools module */
.ai-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.ai-report-section { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 0.75rem; }
.ai-report-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); font-family: var(--font-display); }
.ai-report-section form { display: flex; flex-direction: column; gap: 0.5rem; }
.ai-report-section label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; color: var(--ink-3); }
.ai-report-wide { grid-column: 1 / -1; }
.ai-report-section input, .ai-report-section select, .ai-report-section textarea { padding: 0.4rem; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--paper-2); color: var(--ink); font-size: 0.85rem; }
.ai-report-result { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-2); }
.ai-report-success { background: var(--moss-wash); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0.4rem; display: flex; flex-direction: column; gap: 0.15rem; color: var(--ink-2); }

/* Learning prep module */
.learning-prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.learning-prep-section { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 0.75rem; }
.learning-prep-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); font-family: var(--font-display); }
.learning-prep-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; margin: 0; font-size: 0.85rem; }
.learning-prep-detail dt { font-weight: 600; color: var(--ink-3); }
.learning-prep-detail dd { margin: 0; color: var(--ink-2); }
.learning-prep-section form { display: flex; flex-direction: column; gap: 0.5rem; }
.learning-prep-section label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; color: var(--ink-3); }
.learning-prep-section input, .learning-prep-section select { padding: 0.4rem; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--paper-2); color: var(--ink); font-size: 0.85rem; }
.learning-prep-result { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-2); }
.learning-prep-success { background: var(--moss-wash); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0.4rem; color: var(--ink-2); }

/* Structural inspector module */
.structural-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.structural-section { background: rgba(0,0,0,0.2); border-radius: 6px; padding: 0.75rem; }
.structural-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.heatmap-grid { display: grid; gap: 2px; }
.heatmap-cell { background: rgba(122,171,255,calc(var(--intensity, 0) / 100 * 0.8)); border-radius: 2px; aspect-ratio: 1; }
.heatmap-legend { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.75rem; }
.heatmap-gradient { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(to right, transparent, rgba(122,171,255,0.8)); }
.structural-history-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.structural-history-table th, .structural-history-table td { padding: 0.25rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; }
.structural-config dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; margin: 0; font-size: 0.85rem; }
.structural-config dt { font-weight: 600; opacity: 0.8; }
.structural-config dd { margin: 0; }

/* System info module */
.system-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.system-info-section { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 0.75rem; display: flex; flex-direction: column; }
.system-info-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink); font-family: var(--font-display); }
.system-info-detail { max-height: 280px; overflow-y: auto; overflow-x: hidden; }
.system-info-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; margin: 0; font-size: 0.82rem; }
.system-info-detail dt { font-weight: 600; color: var(--ink-3); word-break: break-word; }
.system-info-detail dd { margin: 0; color: var(--ink-2); word-break: break-word; overflow-wrap: anywhere; }
.system-info-detail .si-more { grid-column: 1 / -1; text-align: center; padding-top: 0.3rem; }
.system-info-detail .si-toggle { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.78rem; font-family: var(--font-mono); padding: 0.2rem 0; }
.system-info-detail .si-toggle:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.release-info { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--ink-2); }
.release-info strong { color: var(--ink); }
.release-info code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-2); }
.release-info pre { white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow-y: auto; font-size: 0.78rem; color: var(--ink-3); background: var(--paper-3); padding: 0.4rem 0.5rem; border-radius: var(--r-sm); border: 1px solid var(--rule); }
.snapshots-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; color: var(--ink-2); }
.snapshots-table th { color: var(--ink-4); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.snapshots-table th, .snapshots-table td { padding: 0.25rem 0.4rem; border-bottom: 1px solid var(--rule); text-align: left; word-break: break-all; }
.snapshots-table tr:hover td { background: var(--accent-wash); }

/* Workspace kicker */
.workspace-kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-family: var(--font-mono); }


/* Global EN/DE language switch. English is the scientific UI default. */
.mhrn-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
}
.mhrn-language-switch-label {
  padding: 0 6px;
  font: 700 .55rem/1 var(--font-mono);
  letter-spacing: .08em;
  color: var(--ink-4);
}
.mhrn-language-switch button {
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font: 700 .62rem/1 var(--font-mono);
  cursor: pointer;
}
.mhrn-language-switch button:hover { background: var(--paper-3); color: var(--ink); }
.mhrn-language-switch button.active {
  background: var(--ink);
  color: var(--paper);
}
.publication-language-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: .72rem;
}
.publication-language-notice strong { display: block; margin-bottom: 3px; }

body[data-ui-language="en"] .project-subtitle { display: none; }
body[data-ui-language="de"] .project-title { display: none; }