-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
457 lines (427 loc) · 24.7 KB
/
style.css
File metadata and controls
457 lines (427 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
/* Theme tokens. These :root defaults == the Tufte theme so first paint is correct
before JS runs; applyThemeColors() in src/main.js overrides them on <html> when a
non-default theme is active. See src/themes.js for the full set. */
:root {
--bg: #fffff8;
--surface: #f4f1e8;
--fg: #111111;
--heading: #333333;
--label: #444444;
--faint: #999999;
--muted: #888888;
--grid: #cccccc;
--rule: #555555;
--border: #e0ddd4;
--accent: #2b6cb0;
--today: #c0392b;
--danger: #c0392b;
--dep: #97a0ac;
--dep-hl: #5f7488;
--hist-line: #d6d2c6;
--font-serif: "ET Book", Palatino, "Palatino Linotype", Georgia, serif;
--font-mono: "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
body { font-family: var(--font-serif);
color: var(--fg); display: flex; flex-direction: column; }
#chart-container { flex: 1; overflow: auto; padding: 0; }
#chart-container svg { display: block; }
/* Editor panel */
#editor-panel { position: fixed; bottom: 0; left: 0; right: 0;
height: 0; background: var(--surface); border-top: 1px solid var(--border);
display: flex; flex-direction: column; transition: height 0.25s ease;
z-index: 100; }
#editor-panel.open { height: 40vh; }
#panel-resizer { height: 5px; cursor: ns-resize; background: transparent;
flex-shrink: 0; position: relative; }
#panel-resizer::after { content: ''; position: absolute; left: 50%;
top: 1px; transform: translateX(-50%); width: 40px; height: 3px;
background: var(--grid); border-radius: 2px; }
#panel-resizer:hover::after { background: var(--muted); }
#panel-header { display: flex; align-items: center; justify-content: space-between;
padding: 4px 12px 7px; background: var(--surface); border-bottom: 1px solid var(--border);
flex-shrink: 0; font-size: 13px; }
/* Status strip below the bar — only shown for errors / transient info, hidden when valid. */
#status-msg {
flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; color: var(--heading);
padding: 4px 12px; background: var(--surface); border-bottom: 1px solid var(--border);
}
#status-msg.error { color: var(--danger); }
#status-msg.hidden { display: none; }
#close-btn { background: none; border: none; cursor: pointer; font-size: 16px;
color: var(--muted); padding: 0 4px; line-height: 1; }
#close-btn:hover { color: var(--heading); }
#editor-wrap { flex: 1; overflow: hidden; }
/* CodeMirror overrides — base text/cursor follow the theme so dark themes stay legible */
.CodeMirror { height: 100%; font-family: var(--font-mono);
font-size: 13px; line-height: 1.5; background: var(--surface); color: var(--fg); }
.CodeMirror-cursor { border-left-color: var(--fg); }
.CodeMirror-gutters { background: var(--surface); border-right: 1px solid var(--border); }
.CodeMirror-linenumber { color: var(--faint); }
.cm-s-default .cm-string { color: #4a8aaa; }
.cm-s-default .cm-number { color: #b08a5a; }
.cm-s-default .cm-atom { color: #b08a5a; }
.cm-s-default .cm-property { color: var(--fg); }
.CodeMirror-lint-marker-error { cursor: pointer; }
/* Tooltip */
#tooltip { position: fixed; z-index: 200; pointer-events: none;
background: var(--bg); border: 1px solid var(--border); border-radius: 3px;
padding: 8px 12px; max-width: 340px; font-size: 13px; line-height: 1.45;
color: var(--heading); box-shadow: 0 2px 8px rgba(0,0,0,0.1);
font-family: var(--font-serif);
opacity: 0; transition: opacity 0.15s ease; }
#tooltip.visible { opacity: 1; }
#tooltip p { margin: 0 0 6px; }
#tooltip p:last-child { margin-bottom: 0; }
#tooltip strong { font-weight: 600; }
#tooltip em { font-style: italic; }
#tooltip code { font-family: var(--font-mono); font-size: 12px;
background: var(--surface); padding: 1px 4px; border-radius: 2px; }
#tooltip ul, #tooltip ol { margin: 4px 0 4px 18px; }
#tooltip li { margin-bottom: 2px; }
/* Compact / page mode — chart scaled to fit an 8.5in page width */
body.compact-mode #chart-container { background: var(--surface); padding: 18px; }
.compact-svg { box-shadow: 0 1px 8px rgba(0,0,0,0.18); }
@media print {
#editor-panel, #panel-resizer { display: none !important; }
html, body { overflow: visible !important; height: auto !important; background: #fff !important; }
#chart-container { overflow: visible !important; padding: 0 !important; background: #fff !important; }
.compact-svg { width: 7.5in !important; height: auto !important; box-shadow: none !important; }
@page { size: letter portrait; margin: 0.4in; }
}
/* ─── Direct-manipulation editing ─────────────────────────────── */
#chart-container svg rect[cursor] { touch-action: none; }
/* Floating date label shown while dragging */
#drag-tip {
position: fixed; z-index: 300; pointer-events: none; display: none;
background: var(--fg); color: var(--bg); padding: 2px 7px; border-radius: 3px;
font-family: var(--font-mono); font-size: 12px;
}
/* Modal editor */
#modal-overlay {
position: fixed; inset: 0; z-index: 400; background: rgba(40,40,36,0.35);
display: flex; align-items: center; justify-content: center;
}
#modal {
background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
box-shadow: 0 8px 40px rgba(0,0,0,0.25); width: 440px; max-width: 92vw;
max-height: 88vh; overflow: auto; padding: 18px 20px;
font-family: var(--font-serif); color: var(--fg);
}
.modal-title { font-size: 18px; margin-bottom: 12px; }
.modal-body { display: flex; flex-direction: column; gap: 10px; }
.modal-field { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--label); }
.modal-field > span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.modal-group { border: 1px solid var(--border); border-radius: 4px; padding: 6px 10px 8px; }
.modal-group legend { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 4px; }
.modal-radio { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 4px 0; flex-wrap: wrap; }
#modal input[type="text"], #modal input[type="url"], #modal input[type="date"],
#modal input[type="number"], #modal select, #modal textarea {
font-family: var(--font-mono); font-size: 12px;
border: 1px solid var(--border); border-radius: 3px; padding: 4px 6px; background: var(--bg); color: var(--fg);
}
#modal textarea { resize: vertical; width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-actions button {
font-family: var(--font-mono); font-size: 12px; cursor: pointer;
border: 1px solid var(--border); border-radius: 3px; padding: 5px 14px; background: var(--surface); color: var(--heading);
}
.modal-actions button[data-act="save"] { background: var(--dep-hl); color: var(--bg); border-color: var(--dep-hl); }
.modal-actions button:hover { filter: brightness(0.97); }
/* Cluster editor: paired rows, colour swatches, change-event rows, delete */
.modal-row2 { display: flex; gap: 10px; }
.modal-row2 > .modal-field { flex: 1; min-width: 0; }
.sw-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.sw {
width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--border); cursor: pointer; padding: 0;
box-shadow: 0 1px 1px rgba(0,0,0,0.12);
}
.sw:hover { outline: 2px solid var(--dep-hl); outline-offset: 1px; }
.sw-none { background: var(--bg); color: var(--muted); font-size: 12px; line-height: 18px; text-align: center; }
.grow-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.grow-row .g-date { flex: 1 1 auto; }
.grow-row .g-to { width: 7em; }
.grow-row .g-arrow { color: var(--muted); }
.grow-row .g-del {
border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
border-radius: 3px; width: 22px; height: 22px; line-height: 1; flex: none; font-family: var(--font-mono);
}
.grow-row .g-del:hover { color: var(--danger); border-color: var(--danger); }
.modal-del-row { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modal-del {
font-family: var(--font-mono); font-size: 12px; cursor: pointer;
border: 1px solid var(--danger); color: var(--danger); background: transparent; border-radius: 3px; padding: 5px 12px;
}
.modal-del:hover { background: var(--danger); color: var(--bg); }
.c-readout { font-family: var(--font-mono); font-size: 11px; color: var(--heading); margin-top: 6px; }
.c-readout .c-tl { color: var(--muted); }
.c-tasks-wrap { margin-top: 12px; }
.c-tasks-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; }
.c-tasks { display: flex; flex-wrap: wrap; gap: 5px; }
.c-task {
font-family: var(--font-mono); font-size: 11px; cursor: pointer;
border: 1px solid var(--border); background: var(--surface); color: var(--fg); border-radius: 3px; padding: 3px 8px;
}
.c-task:hover { border-color: var(--dep-hl); }
.c-tasks-empty { font-size: 12px; color: var(--faint); }
/* Dependency multi-select with fuzzy search */
.deps-picker { display: flex; flex-direction: column; gap: 5px; }
.deps-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.deps-chips:empty { display: none; }
.deps-chip {
display: inline-flex; align-items: center; gap: 4px;
font-family: var(--font-mono); font-size: 11px;
border: 1px solid var(--dep-hl); background: var(--surface); color: var(--fg);
border-radius: 3px; padding: 2px 4px 2px 8px;
}
.deps-chip-x {
border: none; background: none; cursor: pointer; color: var(--muted);
font-family: var(--font-mono); font-size: 13px; line-height: 1; padding: 0 2px;
}
.deps-chip-x:hover { color: var(--danger); }
.deps-input-wrap { position: relative; }
.deps-input-wrap input { width: 100%; box-sizing: border-box; }
.deps-menu {
display: none; position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 10;
background: var(--bg); border: 1px solid var(--border); border-radius: 3px;
box-shadow: 0 4px 16px rgba(0,0,0,0.18); max-height: 200px; overflow: auto;
}
.deps-menu.open { display: block; }
.deps-opt {
font-family: var(--font-mono); font-size: 12px; color: var(--fg);
padding: 4px 8px; cursor: pointer;
}
.deps-opt.active, .deps-opt:hover { background: var(--surface); }
.deps-empty { font-size: 12px; color: var(--faint); }
/* Lane right-click menu */
.ctx-menu {
position: fixed; z-index: 500; background: var(--bg); border: 1px solid var(--border);
border-radius: 5px; box-shadow: 0 6px 24px rgba(0,0,0,0.22); padding: 5px;
font-family: var(--font-mono); min-width: 150px;
}
.ctx-menu .ctx-label {
font-size: 10.5px; color: var(--faint); padding: 3px 8px 5px; max-width: 240px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.ctx-menu button {
display: block; width: 100%; text-align: left; font-family: inherit; font-size: 12px;
border: none; background: transparent; color: var(--fg); border-radius: 3px; padding: 5px 8px; cursor: pointer;
}
.ctx-menu button:hover:not(:disabled) { background: rgba(127,127,127,0.12); }
.ctx-menu button[data-act="del"] { color: var(--danger); }
.ctx-menu button:disabled { color: var(--faint); cursor: default; }
/* ── History / plans toolbar ───────────────────────────────────── */
#hist-tools { display: inline-flex; gap: 4px; }
.bar-right { display: inline-flex; align-items: center; gap: 6px; }
#hist-tools button, #help-btn {
font-family: var(--font-mono); font-size: 13px; line-height: 1;
color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
height: 24px; padding: 0 7px; cursor: pointer; box-sizing: border-box;
display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
/* History / Plans carry a text label next to the icon. */
#hist-tools button.labeled { padding: 0 9px; font-size: 12px; }
#hist-tools button:hover:not(:disabled), #help-btn:hover { filter: brightness(0.97); border-color: var(--dep-hl); }
#hist-tools button:disabled { opacity: 0.35; cursor: default; }
/* ── History visualizer ────────────────────────────────────────── */
#viz-modal {
background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
box-shadow: 0 8px 40px rgba(0,0,0,0.25); width: 760px; max-width: 94vw;
max-height: 86vh; display: flex; flex-direction: column; padding: 14px 16px;
font-family: var(--font-serif); color: var(--fg);
}
.viz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.viz-head-right { display: flex; align-items: baseline; gap: 12px; }
.viz-title { font-size: 17px; }
.viz-hint { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }
.viz-hint b { color: var(--muted); }
#viz-squash {
font-family: var(--font-mono); font-size: 11px; cursor: pointer; white-space: nowrap;
border: 1px solid var(--border); background: var(--surface); color: var(--muted);
border-radius: 3px; padding: 3px 9px;
}
#viz-squash:hover { border-color: var(--danger); color: var(--danger); }
#viz-scroll { overflow: auto; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.viz-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--heading); }
/* Hovering either the node or its label highlights both (shared full-width row group). */
.viz-node:hover rect { fill: rgba(127, 127, 127, 0.12); }
.viz-node:hover circle { stroke: var(--fg); stroke-width: 2.5; }
.viz-node:hover .viz-label { fill: var(--fg); font-weight: 700; }
#viz-menu {
position: fixed; z-index: 500; background: var(--bg); border: 1px solid var(--border);
border-radius: 5px; box-shadow: 0 6px 24px rgba(0,0,0,0.22); padding: 5px;
font-family: var(--font-mono); min-width: 150px;
}
.viz-menu-label {
font-size: 10.5px; color: var(--faint); padding: 3px 8px 5px; max-width: 240px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
#viz-menu button {
display: block; width: 100%; text-align: left; font-family: inherit; font-size: 12px;
border: none; background: transparent; color: var(--danger); border-radius: 3px; padding: 5px 8px; cursor: pointer;
}
#viz-menu button:hover:not(:disabled) { background: rgba(192, 57, 43, 0.12); }
#viz-menu button:disabled { color: var(--faint); cursor: default; }
/* ── Help modal ────────────────────────────────────────────────── */
.help-section { margin-bottom: 14px; }
.help-section h3 {
font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
margin: 0 0 6px; font-weight: 600;
}
.help-table { width: 100%; border-collapse: collapse; }
.help-table td { padding: 3px 0; font-size: 13px; color: var(--heading); vertical-align: top; }
.help-table td.help-keys { width: 190px; white-space: nowrap; color: var(--muted); padding-right: 14px; }
.help-table kbd {
display: inline-block; font-family: var(--font-mono); font-size: 11px; line-height: 1.4;
min-width: 14px; text-align: center; color: var(--heading); background: var(--surface);
border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 3px; padding: 1px 5px; margin: 0 1px;
}
.help-note { font-size: 11px; color: var(--faint); margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
/* ── Workstreams show/hide list ────────────────────────────────── */
#ws-list { display: flex; flex-direction: column; gap: 2px; max-height: 48vh; overflow: auto; }
.ws-empty { color: var(--faint); font-size: 13px; padding: 8px; }
.ws-row {
display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 4px;
cursor: pointer; font-size: 14px; color: var(--fg); user-select: none;
}
.ws-row.sel { background: rgba(127, 127, 127, 0.12); }
.ws-row .ws-check { font-size: 15px; color: var(--dep-hl); width: 16px; text-align: center; }
.ws-row .ws-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-row .ws-count { font-size: 11px; color: var(--faint); font-family: var(--font-mono); white-space: nowrap; }
.ws-row.off .ws-name { color: var(--faint); text-decoration: line-through; }
.ws-row.off .ws-check { color: var(--faint); }
/* ── Plans manager ─────────────────────────────────────────────── */
.plans-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow: auto; }
.plan-empty { color: var(--faint); font-size: 13px; padding: 8px; }
.plan-row {
display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 4px;
padding: 8px 10px; background: var(--surface);
}
.plan-row.current { border-color: var(--dep-hl); }
.plan-main { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.plan-name {
font-family: var(--font-serif) !important; font-size: 15px !important;
border: none !important; background: transparent !important; padding: 0 !important; color: var(--fg);
}
.plan-meta { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }
.plan-uuid { color: var(--accent); }
.plan-note { width: 100%; font-size: 12px; min-height: 2.2em; }
.plan-acts { display: flex; flex-direction: column; gap: 5px; }
.plan-acts button {
font-family: var(--font-mono); font-size: 11px; cursor: pointer;
border: 1px solid var(--border); border-radius: 3px; padding: 3px 8px; background: var(--surface); color: var(--heading);
}
.plan-acts button:disabled { opacity: 0.4; cursor: default; }
/* ── Dependency lines ──────────────────────────────────────────── */
.dep-edge { transition: opacity 0.12s ease; pointer-events: none; } /* never block bars */
.dep-edge.dep-dim { opacity: 0.12; }
.dep-edge.dep-on { stroke-width: 1.5; opacity: 1; }
.dep-hit { pointer-events: stroke; cursor: help; }
/* mode: "violations" → only the red (violating) lines; forward lines hidden */
.dep-layer.mode-violations .dep-edge:not(.dep-back) { display: none; }
/* mode: "off" → all hidden, except the hovered chain (marked .dep-on) is revealed */
.dep-layer.mode-off .dep-edge, .dep-layer.mode-off .dep-hit { display: none; }
.dep-layer.mode-off .dep-edge.dep-on { display: inline; opacity: 1; }
/* ── History node hover tooltip (diff vs parent) — fixed dark overlay ─ */
#viz-tip {
position: fixed; z-index: 600; display: none; pointer-events: none;
background: #2b2b28; color: #f4f1e8; border-radius: 5px; box-shadow: 0 6px 24px rgba(0,0,0,0.3);
padding: 8px 10px; max-width: 340px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
}
#viz-tip .vt-h { font-weight: 700; margin-bottom: 4px; }
#viz-tip .vt-note { color: #bdbcae; }
#viz-tip .vt-diff div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#viz-tip .vt-add { color: #8fd19e; }
#viz-tip .vt-del { color: #e8a0a0; }
#viz-tip .vt-chg { color: #e8cf8f; }
.viz-detach { fill: #b06; }
/* ── Toasts — fixed dark overlay ───────────────────────────────── */
#toast-host {
position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
z-index: 700; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
background: #2b2b28; color: #f4f1e8; border-radius: 6px; box-shadow: 0 6px 28px rgba(0,0,0,0.32);
padding: 10px 16px; font-family: var(--font-serif); font-size: 14px; max-width: 70vw;
opacity: 0; transform: translateY(10px); transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.in { opacity: 1; transform: translateY(0); }
/* ── Theme picker (palette button + popover) ───────────────────── */
/* ── Editor-bar controls (deps button, toggles, theme button) ──────── */
.bar-btn {
font-family: var(--font-mono); font-size: 12px; color: var(--heading);
background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
height: 24px; padding: 0 8px; cursor: pointer; box-sizing: border-box; white-space: nowrap;
margin-right: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.14); line-height: 1;
display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.bar-btn:hover { color: var(--fg); border-color: var(--dep-hl); }
.bar-btn:active { box-shadow: inset 0 1px 2px rgba(0,0,0,0.18); }
#deps-btn { width: 126px; justify-content: flex-start; gap: 6px; }
#theme-btn { padding: 0 7px; }
/* Inline icons: glyph-sized, centered, currentColor so they follow the theme. */
.ic { width: 15px; height: 15px; display: block; flex: none; }
.ic-rot90 { transform: rotate(90deg); }
.bar-toggle {
font-family: var(--font-mono); font-size: 12px; color: var(--heading);
cursor: pointer; user-select: none; margin-right: 8px; height: 24px;
display: inline-flex; align-items: center; gap: 5px;
}
/* Custom checkbox so it follows the theme instead of the browser default. */
.bar-check {
appearance: none; -webkit-appearance: none; margin: 0;
width: 14px; height: 14px; flex: none; cursor: pointer; position: relative;
border: 1px solid var(--border); border-radius: 3px; background: var(--bg);
box-shadow: 0 1px 1px rgba(0,0,0,0.12); transition: background 0.12s ease, border-color 0.12s ease;
}
.bar-check:hover { border-color: var(--dep-hl); }
.bar-check:checked { background: var(--dep-hl); border-color: var(--dep-hl); }
.bar-check:checked::after {
content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 7px;
border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.bar-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Popover is positioned by JS (anchored to the button, opening upward). */
#theme-popover {
position: fixed; right: 12px; bottom: 60px; z-index: 150; width: 282px;
background: var(--surface); color: var(--fg); border: 1px solid var(--border);
border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); padding: 12px 14px;
font-family: var(--font-serif); font-size: 13px; max-height: 80vh; overflow: auto;
}
#theme-popover[hidden] { display: none; }
.tp-title { font-size: 15px; margin-bottom: 8px; }
.tp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.tp-row > span { color: var(--muted); font-size: 12px; }
.tp-row select { flex: 1; max-width: 172px; font-family: var(--font-mono); font-size: 12px;
background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: 3px; padding: 3px 4px; }
.tp-active { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin: 6px 0 10px; }
.tp-section { margin-bottom: 12px; }
.tp-sec-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 7px; }
.tp-check { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--heading); cursor: pointer; user-select: none; margin: 6px 0; }
#theme-popover .bar-btn { width: 100%; margin: 0 0 8px; justify-content: flex-start; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tp-actions button, .tp-file {
font-family: var(--font-mono); font-size: 11px; cursor: pointer;
border: 1px solid var(--border); border-radius: 3px; padding: 4px 9px;
background: var(--bg); color: var(--fg);
}
.tp-actions button:hover, .tp-file:hover { border-color: var(--dep-hl); }
#theme-import-area textarea {
width: 100%; height: 92px; resize: vertical; font-family: var(--font-mono); font-size: 11px;
background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: 3px; padding: 6px; margin: 4px 0;
}
.tp-msg { font-family: var(--font-mono); font-size: 11px; min-height: 1.2em; }
.tp-note { font-size: 11px; color: var(--faint); margin-top: 8px; line-height: 1.4; border-top: 1px solid var(--border); padding-top: 8px; }
@media print { #theme-btn, #theme-popover { display: none !important; } }
/* ── Fast custom tooltips (replace slow native title= ones) ────────── */
#ui-tip {
position: fixed; z-index: 800; pointer-events: none;
background: var(--fg); color: var(--bg);
font-family: var(--font-mono); font-size: 11px; line-height: 1.35;
padding: 5px 9px; border-radius: 4px; width: max-content; max-width: 260px; white-space: normal;
box-shadow: 0 2px 10px rgba(0,0,0,0.25);
opacity: 0; transition: opacity 0.1s ease;
}
#ui-tip.visible { opacity: 1; }
@media print { #ui-tip { display: none !important; } }