Repository navigation
Expand file tree
/
Copy pathapp.css
More file actions
433 lines (424 loc) · 29.6 KB
/
Copy pathapp.css
File metadata and controls
433 lines (424 loc) · 29.6 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
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&display=swap');
:root{
--bg:#14161a; --panel:#1c1f26; --panel2:#232733; --line:#333a48;
--fg:#e7eaf0; --dim:#98a1b3; --accent:#6ea8ff; --accent2:#ffcc66;
--danger:#ff6b6b; --ok:#5fd68a;
--gap:3px; --labelw:150px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--fg);font:14px/1.45 "Segoe UI",system-ui,sans-serif;
display:flex;flex-direction:column;overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{background:var(--panel2);border:1px solid var(--line);border-radius:6px;padding:5px 10px;cursor:pointer}
button:hover{background:#2c3242;border-color:#4a566b}
button.primary{background:var(--accent);color:#0b1220;border-color:transparent;font-weight:600}
button.primary:hover{background:#8dbaff}
button.ghost{background:transparent}
button.danger:hover{background:#4a2020;border-color:var(--danger)}
input,select,textarea{background:var(--panel2);border:1px solid var(--line);border-radius:6px;padding:5px 8px}
input:focus,textarea:focus,select:focus{outline:2px solid var(--accent);outline-offset:-1px}
.row{display:flex;align-items:center;gap:8px}
#boardlist [hidden]{display:none}
.sep{width:1px;height:22px;background:var(--line);margin:0 2px}
.spacer{flex:1}
small,.muted{color:var(--dim)}
/* ---------- top bar ---------- */
header{display:flex;flex-direction:column;gap:6px;padding:8px 10px;background:var(--panel);
border-bottom:1px solid var(--line);flex:none}
#title{background:transparent;border:none;font-size:17px;font-weight:600;padding:2px 4px;min-width:220px;
/* Keep the user's preferred width on roomy displays, but allow it to yield
when OS scaling or a narrower window reduces the CSS viewport. */
flex:0 1 var(--title-width,820px)}
#title:hover{background:var(--panel2)}
.title-reset-control{flex:none;margin-left:-4px;border:0;background:transparent;color:var(--dim);
padding:2px 4px;font-size:20px;line-height:20px}
.title-reset-control:hover{background:var(--line);color:var(--fg)}
.title-reset-control.is-armed{color:var(--danger)}
.title-reset-control.is-armed:hover{color:var(--danger)}
.title-divider{position:relative;align-self:stretch;flex:none;width:12px;margin:0 -2px;cursor:col-resize;
touch-action:none}
.title-divider::after{content:"";position:absolute;top:5px;bottom:5px;left:50%;width:1px;background:var(--line)}
.title-divider:hover::after,.resizing-title .title-divider::after{width:2px;background:var(--accent)}
.resizing-title,.resizing-title *{cursor:col-resize!important;user-select:none!important}
#searchbox{position:relative;width:352px}
#q{width:100%;padding-right:32px}
#btnClearSearch{position:absolute;right:4px;top:4px;width:26px;height:26px;padding:0;
border:0;background:transparent;color:var(--dim);font-size:22px;line-height:22px}
#btnClearSearch:hover{background:var(--line);color:var(--fg)}
#btnClearSearch[hidden]{display:none}
#qcount{min-width:70px;font-variant-numeric:tabular-nums}
#stat{flex:none;text-align:right;font-variant-numeric:tabular-nums}
#subboardTabs{display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:150px;overflow-x:auto;
scrollbar-width:thin;padding:1px 0}
.subboard-tab{width:210px;min-width:150px;height:32px;position:relative;display:flex;align-items:center;gap:3px;
padding:2px 3px 2px 10px;overflow:visible;background:transparent;border:1px solid var(--line);border-radius:6px}
.subboard-tab.active{background:#1d304d;border-color:var(--accent);box-shadow:inset 0 0 0 1px rgba(110,168,255,.18)}
.subboard-tab[draggable="true"]{cursor:grab}
.subboard-tab[draggable="true"]:active{cursor:grabbing}
.subboard-tab.compare-drop-over{border-color:var(--accent2);box-shadow:0 0 0 2px rgba(255,204,102,.24);background:#2a2930}
.subboard-tab.comparing{margin-bottom:24px}
.subboard-tab input{width:100%;min-width:0;border:0;background:transparent;padding:0;outline:none}
.subboard-name{min-width:0;flex:1;padding:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
text-align:left;background:transparent;border:0}
.subboard-name:hover{background:transparent}
.subboard-delete{display:grid;place-items:center;flex:none;width:20px;height:20px;padding:0;border:0;
background:transparent;color:var(--dim);font-size:17px;line-height:1}
.subboard-delete:hover,.subboard-delete[data-confirm="1"]{background:transparent;color:var(--danger)}
.subboard-delete .icon{width:14px;height:14px}
.subboard-add{flex:none;color:var(--accent);border-style:dashed}
.subboard-compare{position:absolute;z-index:2;top:calc(100% + 1px);left:-1px;width:calc(100% + 2px);
overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 10px;text-align:left;font-size:12px;
color:var(--fg);background:#171d28;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px}
.subboard-compare:hover{background:#252d3c;color:var(--accent2)}
button.icon-button{display:grid;place-items:center;width:30px;height:30px;padding:0}
button.icon-button .icon{width:16px;height:16px}
#settingsWrap{position:relative}
#settingsMenu{position:absolute;top:calc(100% + 7px);right:0;z-index:60;width:244px;
padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:8px;
box-shadow:0 12px 28px rgba(0,0,0,.36)}
#settingsMenu label{display:block;margin-bottom:5px;color:var(--dim);font-size:12px}
#settingsMenu select{width:100%}
#cursorPickerWrap{position:relative}
#btnCursorPicker>span{font-size:20px;line-height:1}
#btnCursorPicker>img{width:25px;height:25px;object-fit:contain;filter:drop-shadow(0 1px 1px #000)}
#cursorPicker{position:absolute;top:calc(100% + 7px);right:0;z-index:160;width:294px;padding:10px;
background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.42)}
#cursorPicker[hidden]{display:none}
.cursor-picker-title{margin:0 2px 8px;color:var(--dim);font-size:12px}
.cursor-options{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.cursor-option{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:7px 3px 6px;
background:transparent;border-color:transparent;color:var(--dim);font-size:11px}
.cursor-option:hover{background:#252b35;color:var(--fg)}
.cursor-option[aria-checked="true"]{background:#35445e;border-color:#6ea8ff99;color:#fff}
.cursor-option img{width:54px;height:54px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #000)}
.cursor-option span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
kbd{background:#2a3040;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;
padding:0 5px;font-size:11px;font-family:inherit;color:var(--dim)}
/* ---------- board ---------- */
main{flex:1;overflow:hidden;position:relative}
main.panning{cursor:grabbing}
#canvas{position:relative;padding:10px;display:flex;flex-direction:column;gap:14px;transform-origin:0 0;width:fit-content}
#drawingSurface{position:absolute;z-index:25;pointer-events:none;
touch-action:none}
body.draw-mode #drawingSurface{pointer-events:auto}
body.draw-mode,body.draw-mode *{cursor:none!important}
body.draw-mode #customCursor{display:none}
.draw-toolbar{position:absolute;z-index:38;right:14px;top:14px;display:flex;align-items:center;gap:4px;
padding:5px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(7,9,12,.9);
box-shadow:0 8px 28px rgba(0,0,0,.45);backdrop-filter:blur(8px)}
.draw-tool{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:8px;
color:#aeb5c1;background:transparent}
.draw-tool-icon{display:block;width:27px;height:27px;object-fit:contain;filter:invert(.72);pointer-events:none}
.draw-tool:hover .draw-tool-icon,.draw-tool[aria-pressed="true"] .draw-tool-icon{filter:invert(1)}
.draw-tool:hover{color:#fff;background:#252b35;border-color:transparent}
.draw-tool[aria-pressed="true"]{color:#fff;background:#35445e;box-shadow:inset 0 0 0 1px #6ea8ff99}
.draw-settings{display:flex;align-items:center;gap:6px;padding:0 4px}
.draw-settings[hidden]{display:none}
#drawColor{width:27px;height:27px;padding:2px;border-radius:50%;cursor:pointer}
#drawColor::-webkit-color-swatch-wrapper{padding:0}
#drawColor::-webkit-color-swatch{border:0;border-radius:50%}
#drawColor::-moz-color-swatch{border:0;border-radius:50%}
#drawWidth{width:76px;padding:0;accent-color:var(--accent)}
body.collab-readonly .draw-toolbar{pointer-events:none;opacity:.55}
#drawingToolCursor{position:fixed;z-index:1001;left:0;top:0;width:0;height:0;pointer-events:none;will-change:transform}
#drawingToolCursor img{position:absolute;left:0;bottom:0;width:36px;height:36px;object-fit:contain;
filter:invert(.95) drop-shadow(0 1px 1px #000)}
#drawingToolCursor[hidden]{display:none}
#eraserCursor{position:fixed;z-index:130;width:54px;height:54px;border:2px dashed #f3f6ff;
border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);
box-shadow:0 0 0 1px rgba(0,0,0,.72),0 0 10px rgba(0,0,0,.45)}
#eraserCursor[hidden]{display:none}
#board{position:relative;display:flex;flex-direction:column;gap:0;min-width:1500px;
border:1px solid var(--line);border-radius:8px;overflow:hidden}
.tier-actions{display:flex;align-items:center;gap:6px;margin:5px 6px 6px}
.add-tier{padding:3px 8px;font-size:12px}
.tier{display:flex;min-height:104px;background:var(--panel);}
/* The seam between two tiers carries no height of its own: linked tiers sit
flush, unlinked ones are parted by a hairline, and the toggle floats over the
boundary as an overlay that only appears on hover. */
.tier-link-slot{position:relative;z-index:4;height:0;flex:none;display:grid;place-items:center start;
background:none;border:0;border-top:1px solid var(--line)}
.tier-link-slot.linked{border-top:0}
/* The seam has no height, so the toggle's row overflows below it — lift the
button by half its height to straddle the boundary. */
.tier-link-slot .tier-link-button{margin-left:calc(var(--labelw)/2 - 14px);transform:translateY(-50%)}
.tier-link-button{display:grid;place-items:center;width:28px;height:20px;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--dim);cursor:pointer;
box-shadow:0 2px 7px rgba(0,0,0,.5);opacity:0;transition:opacity .12s ease}
.tier-link-slot:hover .tier-link-button,.tier-link-button:focus-visible{opacity:1}
.tier-link-button:hover{background:#263a59;border-color:var(--accent);color:var(--accent2)}
.tlabel{width:var(--labelw);flex:none;display:flex;flex-direction:column;align-items:center;
justify-content:center;gap:2px;padding:6px;color:#111;position:relative;cursor:grab}
.tlabel:active{cursor:grabbing}
.tier.dragging-tier,.tier-drag-hidden{display:none}
/* A bracket hugging the label column shows which tiers are linked at the same
level, instead of a persistent icon between them. */
.tier-link-bracket{position:absolute;left:-6px;width:10px;z-index:1;pointer-events:none;
border:3px solid var(--accent2);border-right:none;border-radius:7px 0 0 7px;opacity:.75}
#canvas>.tier-link-bracket{z-index:3}
.tier-placeholder{flex:none;border:2px dashed var(--accent);border-radius:6px;
background:rgba(110,168,255,.14);box-shadow:inset 0 0 28px rgba(110,168,255,.14);
animation:placeholder-pulse .72s ease-in-out infinite alternate}
.tier-drag-preview{position:fixed;top:0;left:0;z-index:120;pointer-events:none;opacity:.92;
transform-origin:top left;transform:scale(var(--tier-drag-scale,1));
border-radius:6px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.55),0 0 0 2px rgba(255,255,255,.18);
will-change:left,top}
.tier-dragging,.tier-dragging *{cursor:grabbing!important;user-select:none!important}
.tlabel .txt{width:100%;text-align:center;font-weight:700;font-size:15px;word-break:break-word;
outline:none;border-radius:4px;padding:2px}
.tlabel .txt:focus{background:rgba(255,255,255,.45)}
.tlabel .hot{display:none}
.tlabel .cnt{display:none}
.tools{position:absolute;top:2px;right:2px;display:none;gap:2px}
.tlabel:hover .tools{display:flex}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.icon{display:block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;
stroke-linecap:round;stroke-linejoin:round}
.tools button.icon-button{display:grid;place-items:center;width:28px;height:28px;padding:0;
background:rgba(20,24,28,.48);color:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.3);
border-radius:8px;box-shadow:0 2px 5px rgba(0,0,0,.18);backdrop-filter:blur(3px)}
.tools button.icon-button:hover{background:rgba(20,24,28,.78);color:#fff;border-color:rgba(255,255,255,.65);
transform:translateY(-1px)}
.tools button.icon-button:active{transform:translateY(0);box-shadow:none}
.tools button.icon-button.danger:hover{background:rgba(130,35,45,.8);border-color:#ff9a9a;color:#fff}
.tools button.icon-button:focus-visible{outline:2px solid #fff;outline-offset:1px}
.drop{flex:1;display:flex;flex-wrap:wrap;align-content:flex-start;gap:2px;padding:3px;overflow:visible;
background:#0f1115;min-height:104px}
.drop.over{background:#172239;outline:2px solid color-mix(in srgb,var(--accent) 72%,transparent);
outline-offset:-2px;box-shadow:inset 0 0 28px rgba(110,168,255,.09)}
/* ---------- pool ---------- */
#poolwrap{border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}
#poolhead{display:flex;align-items:center;gap:8px;padding:6px 10px;background:var(--panel2);
border-bottom:1px solid var(--line)}
#pool{padding:5px;background:#0f1115;min-height:116px}
/* ---------- item ---------- */
.item{position:relative;width:96px;height:96px;flex:none;cursor:grab;
background:#000;border-radius:4px;overflow:hidden;user-select:none;
border:2px solid transparent}
.item.compared{overflow:visible;z-index:20}
.item img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}
.item.missing-image{display:flex;align-items:center;justify-content:center;background:
linear-gradient(135deg,#252b36 25%,#202630 25%,#202630 50%,#252b36 50%,#252b36 75%,#202630 75%);
background-size:18px 18px}
.missing-image-mark{display:grid;place-items:center;width:34px;height:34px;border:2px dashed #8b949e;
border-radius:8px;color:#8b949e;font-size:22px;font-weight:800}
.remote-selection{position:absolute;z-index:34;inset:var(--remote-inset,0);border:2px solid var(--remote-color);
border-radius:4px;pointer-events:none;box-shadow:0 0 8px color-mix(in srgb,var(--remote-color) 58%,transparent)}
.item.sel{border-color:var(--selection-color,var(--accent2));
box-shadow:0 0 0 2px color-mix(in srgb,var(--selection-color,var(--accent2)) 35%,transparent)}
.item.dim{opacity:.18;filter:grayscale(1)}
.item.dim.sel{opacity:.6;filter:none}
.item.hit{border-color:var(--ok)}
.item.dragging{position:absolute;opacity:0;pointer-events:none}
.card-dragging,.card-dragging *{cursor:grabbing!important}
.drag-preview{position:fixed;z-index:120;pointer-events:none;margin:0;opacity:.9;
border-width:calc(2px * var(--drag-scale,1));
border-radius:calc(4px * var(--drag-scale,1));
box-shadow:0 18px 55px rgba(0,0,0,.55),0 0 0 2px rgba(255,255,255,.2);
transform:rotate(1.5deg) scale(1.025);transform-origin:center;
transition:transform .1s ease-out;will-change:left,top}
.drag-preview .cap{opacity:1;font-size:clamp(10px,calc(10px * var(--drag-scale,1)),30px);
padding:calc(2px * var(--drag-scale,1)) calc(4px * var(--drag-scale,1))}
.drag-preview[data-count]:not([data-count=""])::after{content:attr(data-count);position:absolute;
top:calc(-8px * var(--drag-scale,1));right:calc(-8px * var(--drag-scale,1));
min-width:calc(24px * var(--drag-scale,1));height:calc(24px * var(--drag-scale,1));
padding:0 calc(6px * var(--drag-scale,1));display:grid;place-items:center;border-radius:999px;
background:var(--accent);color:#08101d;font-size:clamp(11px,calc(12px * var(--drag-scale,1)),32px);
font-weight:800;line-height:1;box-shadow:0 4px 16px rgba(0,0,0,.5)}
.drop-placeholder{width:96px;height:96px;flex:none;border:2px dashed var(--accent);border-radius:4px;
background:rgba(110,168,255,.14);box-shadow:inset 0 0 22px rgba(110,168,255,.14);
animation:placeholder-pulse .72s ease-in-out infinite alternate}
@keyframes placeholder-pulse{to{background:rgba(110,168,255,.25);box-shadow:inset 0 0 28px rgba(110,168,255,.32)}}
@media (prefers-reduced-motion:reduce){.drag-preview{transform:none}
.drop-placeholder,.tier-placeholder{animation:none}}
.item .badge{position:absolute;top:0;right:0;background:rgba(0,0,0,.65);font-size:10px;
padding:0 3px;border-bottom-left-radius:4px;color:var(--accent2);display:none}
.item.hasnote .badge{display:block}
.rank-shift{position:absolute;z-index:40;display:flex;align-items:center;gap:0;white-space:nowrap;
font:700 11px/1 "Fredoka","Arial Rounded MT Bold","Comic Sans MS","Segoe UI",sans-serif;font-variant-numeric:tabular-nums;
pointer-events:none;filter:drop-shadow(0 1px 1px #000) drop-shadow(0 0 1px #000)}
.rank-shift b{font:inherit;font-size:8px;letter-spacing:-.35px;position:relative;z-index:1}
.rank-shift.horizontal b{margin-left:-4px}
.movement-arrow{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:8;
stroke-linecap:round;stroke-linejoin:round}
.movement-arrow.up{transform:none}
.movement-arrow.right{transform:rotate(90deg)}
.movement-arrow.down{transform:rotate(180deg)}
.movement-arrow.left{transform:rotate(-90deg)}
.rank-shift.up{color:#58ee34}
.rank-shift.down{color:#ef5665}
.rank-shift.left{color:#58ee34}
.rank-shift.right{color:#ef5665}
.rank-shift.vertical{left:50%;transform:translateX(-50%)}
.rank-shift.vertical.up{bottom:calc(100% - 2px)}
.rank-shift.vertical.down{top:calc(100% - 2px)}
.rank-shift.horizontal{top:50%;transform:translateY(-50%);display:none}
.item.sel .rank-shift.horizontal{display:flex}
.rank-shift.horizontal.left{right:calc(100% - 7px)}
.rank-shift.horizontal.right{left:calc(100% - 7px)}
.rank-shift.horizontal.reordered{left:calc(100% - 7px);color:var(--accent2)}
.rank-shift.horizontal.reordered b{margin-left:0;font-size:9px}
/* caption: ALWAYS in the DOM so browser Ctrl+F can find + scroll to it.
opacity:0 keeps native find working (display:none / visibility:hidden would not). */
.cap{position:absolute;left:0;right:0;bottom:0;font-size:10px;line-height:1.25;padding:1px 3px;
background:rgba(0,0,0,.72);color:#fff;opacity:0;transition:opacity .1s;
max-height:100%;overflow:hidden;word-break:break-word;pointer-events:none}
body.lab-show .cap{opacity:1}
body.lab-hover .item:hover .cap{opacity:1}
body.lab-show .cap .meta,body.lab-hover .cap .meta{display:none}
.cap .meta{color:#bbb}
/* ---------- inspector ---------- */
#insp{position:fixed;top:0;right:0;bottom:0;width:320px;background:var(--panel);
border-left:1px solid var(--line);padding:12px;display:none;flex-direction:column;gap:8px;
overflow:auto;z-index:40;box-shadow:-8px 0 24px rgba(0,0,0,.4)}
#insp.on{display:flex}
#insp img{width:100%;max-height:200px;object-fit:contain;background:#000;border-radius:6px}
#insp label{font-size:12px;color:var(--dim);display:block;margin-top:4px}
#insp input,#insp textarea{width:100%}
.image-url-field{position:relative}
#image-suggestion{display:flex;flex-direction:column;gap:4px;margin-top:4px;padding:4px;
background:var(--panel2);border:1px solid var(--accent);border-radius:6px}
#image-suggestion[hidden]{display:none}
#image-suggestion .image-suggestion-item{display:flex;align-items:center;gap:8px;padding:4px;
border-radius:4px;cursor:pointer}
#image-suggestion .image-suggestion-item:hover,#image-suggestion .image-suggestion-item.active{background:var(--line)}
#image-suggestion img{width:44px;height:44px;min-height:0;max-height:none;flex:none;
object-fit:contain;border-radius:4px;background:#000}
#image-suggestion span{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
#image-suggestion small{color:var(--accent)}
#image-suggestion code{overflow:hidden;color:var(--dim);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
/* ---------- dialogs ---------- */
dialog{background:var(--panel);color:var(--fg);border:1px solid var(--line);border-radius:10px;
padding:0;width:min(760px,94vw);max-height:88vh}
dialog::backdrop{background:rgba(0,0,0,.6)}
dialog h3{margin:0;padding:12px 14px;border-bottom:1px solid var(--line);font-size:15px}
.dbody{padding:14px;display:flex;flex-direction:column;gap:10px;overflow:auto;max-height:66vh}
.dfoot{padding:10px 14px;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:flex-end}
textarea{width:100%;min-height:120px;font-family:Consolas,monospace;font-size:12px;resize:vertical}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:0 14px}
.tabs button{border:none;border-radius:6px 6px 0 0;background:transparent;color:var(--dim);padding:8px 12px}
.tabs button.on{background:var(--panel2);color:var(--fg)}
.tabpane{display:none;flex-direction:column;gap:10px}
.tabpane.on{display:flex}
#log{font-family:Consolas,monospace;font-size:12px;white-space:pre-wrap;color:var(--dim);
max-height:150px;overflow:auto;background:#0f1115;border-radius:6px;padding:8px}
#log[hidden]{display:none}
.note{background:#1a2333;border-left:3px solid var(--accent);padding:8px 10px;border-radius:0 6px 6px 0;font-size:12.5px}
.import-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.import-section{border:1px solid var(--line);border-radius:8px;padding:10px;background:rgba(255,255,255,.015)}
.import-section-title{font-size:12px;font-weight:700;margin-bottom:7px;color:var(--fg)}
.import-caption{font-size:11.5px;line-height:1.35}
.folder-import{display:flex;align-items:center;justify-content:space-between;gap:14px}
.folder-import .import-section-title{margin-bottom:2px}
#gameSources{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#gameSources .row{margin:0!important}
.catalog-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.catalog-controls input{flex:1;min-width:200px}
.catalog-types{display:flex;gap:4px;flex-wrap:wrap}
.catalog-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;align-content:start;min-height:200px}
.catalog-entry{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;text-align:center;
background:var(--panel2);border:2px solid transparent;border-radius:8px}
.catalog-entry:hover{border-color:var(--line)}
.catalog-entry.chosen{border-color:var(--accent);background:#16243a}
.catalog-entry.present{opacity:.55}
.catalog-entry img{width:72px;height:72px;object-fit:contain;border-radius:4px}
.catalog-name{font-size:12px;line-height:1.2;color:var(--fg);overflow-wrap:anywhere}
.catalog-entry small{font-size:10.5px;color:var(--dim);text-transform:capitalize}
.catalog-status{margin-right:auto;align-self:center;font-size:12px}
.import-options{border-top:1px solid var(--line);padding-top:8px;color:var(--dim);font-size:12px}
.import-options summary{cursor:pointer;user-select:none}
.option-list{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;padding-top:10px}
.option-list .row{gap:6px}
.export-primary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;
border:1px solid #58a6ff66;background:#16243a;border-radius:9px;padding:14px}
.export-title{font-weight:700;margin-bottom:3px}
.export-resolution{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--dim)}
.export-actions{display:flex;gap:6px;flex-wrap:wrap}
.export-status{font-size:12px;color:var(--dim);background:#0f1115;border-radius:6px;padding:8px}
.export-status[hidden],.export-output[hidden]{display:none}
.export-output{min-height:180px}
@media(max-width:620px){.import-url-row{grid-template-columns:1fr}.folder-import{align-items:flex-start;flex-direction:column}.option-list{grid-template-columns:1fr}}
@media(max-width:620px){.export-primary{grid-template-columns:1fr}.export-resolution{justify-content:space-between}}
a{color:var(--accent)}
.runtime-status{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border:1px solid var(--line);
border-radius:999px;color:var(--muted);font-size:11px;white-space:nowrap}
.runtime-status i{width:7px;height:7px;border-radius:50%;background:#8b949e;box-shadow:0 0 0 2px #8b949e22}
.runtime-status.online{color:var(--ok);border-color:#3fb95055}
.runtime-status.online i{background:var(--ok);box-shadow:0 0 0 2px #3fb95033}
.runtime-status.offline{color:var(--accent2);border-color:#f0883e55}
.runtime-status.offline i{background:var(--accent2);box-shadow:0 0 0 2px #f0883e33}
.coop-button{border-color:#58a6ff88;background:#172a45;color:#b9d8ff}
.coop-presence{display:flex;align-items:center;gap:3px}
.coop-presence[hidden]{display:none}
.coop-presence-dot{width:11px;height:11px;border:2px solid #111;border-radius:50%;background:var(--member-color);
box-shadow:0 0 0 1px var(--member-color)}
.coop-presence-dot.offline{opacity:.35}
.coop-presence button{padding:3px 7px;border:0;background:transparent;color:var(--dim);font:700 11px Consolas,monospace}
.coop-start-actions,.coop-room-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.coop-start-actions input{width:130px;text-transform:uppercase;font:700 15px Consolas,monospace;letter-spacing:1px}
.coop-room-line{justify-content:space-between;margin:0}
.coop-room-line strong{font:800 17px Consolas,monospace;letter-spacing:1.5px;color:var(--accent2)}
.coop-error{margin-top:10px;padding:8px 10px;border-left:3px solid var(--danger);background:#351c22;color:#ffb3bc}
.coop-members{display:grid;gap:6px;margin:14px 0}
.coop-member{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--panel2)}
.coop-member i{width:11px;height:11px;border-radius:50%;background:var(--member-color)}
.coop-member span{flex:1}.coop-member b{font-size:10px;color:var(--accent2);text-transform:uppercase}.coop-member small{color:var(--dim)}
.coop-connection{position:fixed;z-index:145;top:10px;left:50%;transform:translateX(-50%);padding:8px 14px;
border:1px solid #f0883e88;border-radius:999px;background:#261b10ed;color:#ffc27a;font-size:12px;font-weight:700}
.coop-connection[hidden]{display:none}
body.collab-readonly #canvas{pointer-events:none;filter:saturate(.65)}
body.collab-readonly #btnImport,body.collab-readonly #btnResetBoard,body.collab-readonly #btnAddImgs,
body.collab-readonly #btnSortPool,body.collab-readonly #title,body.collab-readonly #subboardTabs{pointer-events:none;opacity:.55}
#coopCursors{position:fixed;inset:0;z-index:140;pointer-events:none;overflow:hidden}
.remote-cursor{position:fixed;display:flex;align-items:flex-start;will-change:left,top;transition:left 35ms linear,top 35ms linear;
filter:drop-shadow(0 2px 2px #000)}
.remote-cursor b{width:0;height:0;border-top:15px solid var(--remote-color);border-right:10px solid transparent;
transform:rotate(-18deg);transform-origin:top left}
.remote-cursor span{margin:11px 0 0 -2px;padding:2px 5px;border-radius:4px;background:var(--remote-color);color:#07101b;
font-size:10px;font-weight:800;white-space:nowrap}
.remote-cursor.custom img{display:block;width:32px;height:32px;object-fit:contain;
transform:rotate(0deg) scale(1);transform-origin:top left;
transition:transform 85ms cubic-bezier(.2,.9,.3,1);
filter:drop-shadow(.6px 0 0 var(--remote-color)) drop-shadow(-.6px 0 0 var(--remote-color))
drop-shadow(0 .6px 0 var(--remote-color)) drop-shadow(0 -.6px 0 var(--remote-color))
drop-shadow(.6px .6px 0 var(--remote-color)) drop-shadow(-.6px -.6px 0 var(--remote-color))
drop-shadow(.6px -.6px 0 var(--remote-color)) drop-shadow(-.6px .6px 0 var(--remote-color)) drop-shadow(0 2px 2px #000)}
.remote-cursor.custom.clicking img{transform:rotate(3deg) scale(.9)}
.remote-cursor.custom span{margin:25px 0 0 -4px}
.remote-cursor.custom.drawing-tool img{transform:translateY(-100%);filter:invert(.95) drop-shadow(0 1px 1px #000)}
.remote-cursor.custom.drawing-tool.clicking img{transform:translateY(-100%) rotate(3deg) scale(.9)}
body.custom-cursor,body.custom-cursor *{cursor:none!important}
#customCursor{position:fixed;z-index:1000;left:0;top:0;width:0;height:0;pointer-events:none;will-change:transform}
#customCursor[hidden]{display:none}
#customCursor img{position:absolute;left:calc(-1 * var(--cursor-hotspot-x));top:calc(-1 * var(--cursor-hotspot-y));
width:var(--cursor-size);height:var(--cursor-size);object-fit:contain;
transform:rotate(0deg) scale(1);transform-origin:top left;
transition:transform 85ms cubic-bezier(.2,.9,.3,1);filter:drop-shadow(0 3px 2px rgba(0,0,0,.65))}
#customCursor.clicking img{transform:rotate(3deg) scale(.9)}
@media (prefers-reduced-motion:reduce){#customCursor img,.remote-cursor.custom img{transition:none}}
#toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:#000d;
border:1px solid var(--line);padding:8px 14px;border-radius:8px;z-index:99;display:none}
#drophint{position:fixed;inset:0;background:rgba(20,30,50,.85);z-index:90;display:none;
align-items:center;justify-content:center;font-size:22px;border:4px dashed var(--accent)}
#drophint.on{display:flex}
/* High Windows display scaling produces a narrower CSS viewport even on a
physically large monitor. Preserve every primary control instead of letting
a saved title width push the right side of the toolbar off screen. */
@media(max-width:900px){
#stat{display:none}
#searchbox{width:auto;min-width:220px;flex:1 1 352px}
}
@media(max-width:700px){
#title{min-width:140px}
#subboardTabs{min-width:120px}
#runtimeStatus{width:12px;padding:0;border:0;gap:0;overflow:hidden;font-size:0}
#runtimeStatus i{flex:none}
#qcount{display:none}
}
@media(max-width:600px){
header>.row:first-child{flex-wrap:wrap}
#title{flex:1 1 220px}
#subboardTabs{order:2;flex:1 1 100%;min-width:0}
header>.row:nth-child(2){flex-wrap:wrap}
#searchbox{min-width:180px}
}