File size: 37,568 Bytes
bcec462
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
:root {
  color-scheme: dark;
  --ground: #151412;
  --surface: #1d1b18;
  --raised: #23211d;
  --active: #2c2a25;
  --border: #34312b;
  --rule: #2a2823;
  --control: #4a463e;
  --text: #ece6d9;
  --muted: #a8a194;
  --faint: #8a8479;
  --accent: #ece6d9;
  --accent-soft: #3a3732;
  --accent-2: #cfc8ba;
  --primary: #ece6d9;
  --primary-hover: #fffaf0;
  --primary-ink: #151412;
  --positive: #6cc58a;
  --negative: #ff5d50;
  --warning: #f0a35a;
  --pill-positive-bg: #1e2b22; --pill-positive-ink: #8fd6a3;
  --pill-negative-bg: #34201d; --pill-negative-ink: #ff8a7f;
  --pill-warning-bg: #33271b; --pill-warning-ink: #f3b97a;
  --pill-neutral-bg: #2c2a25; --pill-neutral-ink: #ddd6c8;
  --notice-border: #5a4628;
  --overlay: rgba(0, 0, 0, 0.55);
  --edge: inset 0 1px 0 rgba(255, 250, 235, 0.05);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --fs-title: 22px; --fs-section: 16px; --fs-kpi: 28px; --fs-body: 14px; --fs-small: 13px; --fs-path: 13px;

  --sidebar-width: 228px;
  --sheet-inset: 8px;
  --radius-sheet: 16px;
  --radius-card: 12px;
  --radius-control: 8px;
  --pad: 32px;
  --gap: 24px;
  --card-pad: 24px;
  --control-height: 32px;
  --row-height: 48px;
  --nav-row: 32px;
  --t-hover: 150ms;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #eeeae2; --surface: #f8f6f1; --raised: #f3f0e9; --active: #e8e3d8;
  --border: #ddd6c8; --rule: #e9e4d9; --control: #c6bdab;
  --text: #16161a; --muted: #55524b; --faint: #77736a;
  --accent: #16161a; --accent-soft: #d9d3c6; --accent-2: #3a3832;
  --primary: #16161a; --primary-hover: #2c2c33; --primary-ink: #f8f6f1;
  --positive: #15803d; --negative: #c8322b; --warning: #b45309;
  --pill-positive-bg: #dcefdc; --pill-positive-ink: #14532d;
  --pill-negative-bg: #f6dcd6; --pill-negative-ink: #8f1d17;
  --pill-warning-bg: #f6e6cc; --pill-warning-ink: #8a3f0c;
  --pill-neutral-bg: #e8e3d8; --pill-neutral-ink: #3a3832;
  --notice-border: #e3b77a;
  --overlay: rgba(22, 22, 26, 0.3);
  --edge: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: var(--fs-body)/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
table, .num, .kpi-value { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: var(--mono); font-size: 0.92em; }
h1, h2, h3 { text-wrap: balance; }
button, a, input, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 8px 14px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); transition: top 150ms ease; }
.skip-link:focus { top: 16px; }
.dialog { overscroll-behavior: contain; }
.sheet { position: relative; z-index: 1; }
.sheet .kpis { background: color-mix(in srgb, var(--raised) 60%, transparent); }
#results { view-transition-name: results; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(results) { animation: vt-out 160ms ease both; }
::view-transition-new(results) { animation: vt-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

.app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 2px; padding: 0 12px 16px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px; font-weight: 600; flex: none; }
.brand svg { width: 18px; height: 18px; color: var(--accent); }
.sidebar nav { display: grid; gap: 2px; margin-top: 8px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: var(--nav-row); padding: 0 8px; border: 0; border-radius: var(--radius-control); background: none; color: var(--muted); text-decoration: none; cursor: pointer; text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.nav-item svg { width: 16px; height: 16px; flex: none; }
.nav-item:hover { background: var(--raised); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 500; }
.nav-item .count { margin-left: auto; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar .bottom { margin-top: auto; display: grid; gap: 2px; }
.sidebar .close { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; padding: 0 var(--sheet-inset) var(--sheet-inset) 0; }
.topbar { height: 48px; display: flex; align-items: center; gap: 8px; flex: none; }
.topbar .mobile-brand { display: none; }
.scope { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; max-width: 720px; }
.scope .repo { flex: 1; min-width: 0; height: var(--control-height); padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); font-family: var(--mono); font-size: var(--fs-path); }
.scope .repo::placeholder { color: var(--faint); }
.repo-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.repo-wrap .repo { padding-right: 30px; }
.repo-wrap .clear-repo { position: absolute; right: 4px; top: 50%; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 400 18px/1 var(--font); cursor: pointer; transform: translateY(-50%); }
.repo-wrap .clear-repo:hover { color: var(--text); background: var(--raised); }
.repo-wrap .repo:placeholder-shown ~ .clear-repo { display: none; }

.sheet { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); padding: 28px var(--pad) 48px; box-shadow: var(--edge); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-height); padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--border); background: var(--raised); color: var(--text); font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color var(--t-hover) ease; }
.btn:hover { background: var(--active); border-color: var(--control); }
.btn:disabled { cursor: default; opacity: 0.6; }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--raised); }
.btn.small { height: 28px; padding: 0 10px; font-size: var(--fs-small); }
.btn svg { width: 16px; height: 16px; }
.menu-toggle { display: none; width: var(--control-height); padding: 0; }

.input { height: var(--control-height); padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
.input::placeholder { color: var(--faint); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field .hint, .hint { color: var(--muted); font-size: var(--fs-small); line-height: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.switch { appearance: none; flex: none; width: 32px; height: 20px; margin: 0; border-radius: 999px; background: var(--control); position: relative; cursor: pointer; transition: background-color 200ms ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 200ms ease; }
.switch:checked { background: var(--accent); }
.switch:checked::after { background: var(--ground); }
.switch:checked::after { transform: translateX(12px); }

.hero-options .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-options .input { width: 100%; }

.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.title-row h1 { font-size: var(--fs-title); line-height: 28px; font-weight: 600; letter-spacing: -0.4px; overflow-wrap: anywhere; }
.title-row .sub { margin-top: 4px; color: var(--muted); }
.stamp { color: var(--muted); font-size: var(--fs-small); white-space: nowrap; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 24px; border-radius: var(--radius-card); background: var(--pill-warning-bg); color: var(--pill-warning-ink); border: 1px solid var(--notice-border); }
.notice.error { background: var(--pill-negative-bg); color: var(--pill-negative-ink); border-color: transparent; }

.history { margin-bottom: 28px; }
.history-bar { display: flex; gap: 2px; height: 10px; }
.history-bar span { border-radius: 2px; min-width: 4px; }
.seg-train { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.seg-window { background: var(--accent-soft); }
.seg-after { background: var(--active); }
.history-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.history-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 8px; }
.history-legend .key { width: 10px; height: 10px; border-radius: 2px; margin-top: 5px; }
.history-legend b { font-weight: 500; }
.history-legend span.when { grid-column: 2; color: var(--muted); font-size: var(--fs-small); line-height: 16px; }

.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: 40px; }
.kpi { padding: 16px var(--card-pad); min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi-label { color: var(--muted); }
.kpi-value { margin-top: 6px; font-size: var(--fs-kpi); line-height: 34px; font-weight: 500; letter-spacing: -0.6px; }
.kpi-value small { font-size: var(--fs-body); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi .delta { margin-top: 4px; font-size: var(--fs-small); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .delta.mono { font-size: var(--fs-small); }

.section + .section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-section); line-height: 24px; font-weight: 600; letter-spacing: -0.2px; }
.section-head .meta { color: var(--muted); margin-top: 2px; max-width: 72ch; }
.filters { display: flex; align-items: center; gap: 12px; }
.filters .input { width: 240px; }
.filters .count { color: var(--muted); font-size: var(--fs-small); white-space: nowrap; }
.foot { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); line-height: 18px; max-width: 96ch; }

.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 36px; padding: 0 12px; text-align: left; font-weight: 400; font-size: var(--fs-small); color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th.n, td.n { text-align: right; }
th .sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; cursor: pointer; }
th .sort:hover { color: var(--text); }
th .sort::after { content: ""; width: 8px; }
th[aria-sort="ascending"] .sort, th[aria-sort="descending"] .sort { color: var(--text); }
th[aria-sort="ascending"] .sort::after { content: "↑"; }
th[aria-sort="descending"] .sort::after { content: "↓"; }
td .path { font-family: var(--mono); font-size: var(--fs-path); line-height: 20px; overflow-wrap: anywhere; }
td.rank { width: 40px; color: var(--muted); }
td.empty-cell { padding: 32px 0; text-align: center; color: var(--muted); }

.reasons { display: grid; grid-template-columns: 148px 64px 64px 72px; column-gap: 12px; row-gap: 2px; margin-top: 8px; font-size: var(--fs-small); line-height: 18px; color: var(--muted); }
.reasons li { display: contents; }
.reasons .v { color: var(--text); font-weight: 500; text-align: right; }
.reasons .imp { text-align: right; }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.pill.pos { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill.neg { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill.warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }

.score { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.meter { width: 72px; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; flex: none; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.trend { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.trend svg { flex: none; }
.trend-delta { font-size: var(--fs-small); min-width: 52px; text-align: right; }
.muted { color: var(--muted); }
.up { color: var(--negative); }
.down { color: var(--positive); }

.bars { display: grid; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 56px; align-items: center; gap: 16px; min-height: 32px; }
.bar-row .track { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar-row .num { text-align: right; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; }

.cycles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.cycle-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 24px; align-items: center; padding: 20px 24px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-card); }
.cycle-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.cycle-head h3 { font-size: var(--fs-body); font-weight: 600; }
.ring-track { fill: none; stroke: var(--border); stroke-width: 2; }
.ring-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 10; opacity: 0.8; animation: ring-flow 1.6s linear infinite; }
@keyframes ring-flow { to { stroke-dashoffset: -32; } }
.ring-dot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.ring-node circle { fill: var(--surface); stroke: var(--negative); stroke-width: 1.5; transition: fill 150ms ease, stroke-width 150ms ease; }
.ring-node text { fill: var(--text); font: 600 11px var(--font); text-anchor: middle; }
.ring-node.on circle { fill: var(--pill-negative-bg); stroke-width: 2.5; }
.cycle-files { display: grid; gap: 2px; }
.cycle-files li { display: flex; gap: 10px; padding: 4px 8px; border-radius: 6px; font-family: var(--mono); font-size: var(--fs-path); overflow-wrap: anywhere; transition: background-color 150ms ease; }
.cycle-files li b { min-width: 18px; color: var(--muted); font: 500 12px/20px var(--font); text-align: right; }
.cycle-files li.on { background: var(--active); }

#progressPanel { max-width: 640px; }
.steps { display: grid; border: 1px solid var(--border); border-radius: var(--radius-card); }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; }
.steps li + li { border-top: 1px solid var(--rule); }
.steps .state { width: 16px; flex: none; color: var(--muted); }
.steps li.done { color: var(--muted); }
.steps li.active { font-weight: 500; }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--active); border-top-color: var(--accent); animation: spin 0.8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.start { display: grid; gap: 40px; }
.start h2 { font-size: var(--fs-section); line-height: 24px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 12px; }
.start-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.start-top > p { color: var(--muted); font-size: 15px; line-height: 24px; max-width: 64ch; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px 24px; }
.sample-card h3 { font-size: var(--fs-body); line-height: 20px; font-weight: 600; }
.sample-card p { margin: 6px 0 16px; color: var(--muted); }
.repo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.repo-card { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; }
.repo-card:hover { border-color: var(--control); background: var(--active); }
.repo-card .name { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.repo-card .what { color: var(--muted); }
.repo-card .meta-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; color: var(--muted); font-size: var(--fs-small); }
.repo-card .use { color: var(--text); font-weight: 500; }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.how .n { color: var(--accent); font-family: var(--mono); font-size: var(--fs-small); }
.how h3 { margin-top: 8px; font-size: var(--fs-body); line-height: 20px; font-weight: 600; }
.how p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 20px; }

.inline-form { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.inline-form .input { width: 160px; }
.inline-form .check { align-items: center; height: var(--control-height); }
.status-text { color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.headline { font-size: var(--fs-section); line-height: 24px; margin-bottom: 16px; }
.unscored { margin-top: 20px; }
.unscored h3 { font-size: var(--fs-body); font-weight: 500; margin-bottom: 4px; }
.unscored li { padding: 6px 0; color: var(--muted); }
.unscored code { color: var(--text); }

.dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--overlay); }
.dialog { width: min(640px, 100%); max-height: min(80svh, 720px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16); }
.dialog header { position: sticky; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dialog h2 { font-size: var(--fs-section); line-height: 24px; font-weight: 600; }
.dialog .path { font-family: var(--mono); font-size: var(--fs-path); color: var(--muted); overflow-wrap: anywhere; }
.dialog .body { padding: 20px 24px 24px; }
.dialog .summary { margin-bottom: 16px; }
.suggestion { padding: 14px 0; border-top: 1px solid var(--rule); }
.suggestion .head { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.suggestion p { margin-top: 6px; color: var(--muted); }
.error-text { color: var(--negative); }

.intro { position: relative; height: 0; }
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#city { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter 1.2s ease; }
#city.blurred { filter: blur(3px); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.45) 100%); }
.scan-log, .focus-card { position: absolute; z-index: 2; transition: opacity 600ms ease, transform 600ms ease; }
.scan-log { left: clamp(16px, 6vw, 96px); bottom: clamp(40px, 10vh, 110px); max-width: min(620px, calc(100vw - 32px)); }
.scan-log .kicker, .focus-card .kicker { margin-bottom: 8px; color: var(--negative); font: 500 13px var(--mono); }
.scan-log h2 { font: 400 clamp(30px, 3.4vw, 46px)/1.08 "Permanent Marker", cursive; transform: rotate(-1deg); transform-origin: left; }
.scan-log ul { margin-top: 16px; display: grid; gap: 6px; }
.scan-log li { display: flex; justify-content: space-between; gap: 24px; max-width: 440px; font-family: var(--mono); font-size: var(--fs-path); color: var(--muted); }
.scan-log li span:last-child { color: var(--positive); }
.scan-log.out, .focus-card.out { opacity: 0; transform: translateY(12px); pointer-events: none; }
.focus-card { left: clamp(16px, 6vw, 96px); bottom: clamp(40px, 10vh, 110px); max-width: min(620px, calc(100vw - 32px)); opacity: 0; transform: translateY(12px); pointer-events: none; }
.focus-card.in { opacity: 1; transform: none; }
.focus-card.in.out { opacity: 0; transform: translateY(12px); }
.focus-card .path { font: 700 clamp(20px, 2.4vw, 30px)/1.3 var(--mono); overflow-wrap: anywhere; }
.focus-card .lead { margin-top: 10px; color: var(--muted); font-size: 16px; }
#app { position: relative; z-index: 1; }
.sheet { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.app.rise { animation: rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rise { from { transform: translateY(100vh); } to { transform: none; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.locked #app { display: none; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--control); background: var(--raised); color: var(--text); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease, background-color 150ms ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--active); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
}
@media (max-width: 1100px) {
  .start-top { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi + .kpi { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-left: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .repo-cards { grid-template-columns: minmax(0, 1fr); }
  :root { --pad: 16px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0; z-index: 40; width: 100%; height: 100%; padding: 0 16px 16px; background: var(--surface); transform: translateX(-100%); visibility: hidden; transition: transform 200ms ease, visibility 0s 200ms; }
  .sidebar.open { transform: none; visibility: visible; transition: transform 200ms ease; }
  .sidebar .brand { justify-content: space-between; padding-right: 0; }
  .sidebar .close { display: inline-flex; }
  .main { padding: 0; }
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .topbar .mobile-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-right: auto; }
  .topbar .mobile-brand svg { width: 18px; height: 18px; color: var(--accent); }
  .menu-toggle { display: inline-flex; }
  .scope { order: 3; flex-basis: 100%; max-width: none; }
  .sheet { border-radius: 0; border-width: 1px 0 0; padding-top: 20px; }
  .title-row { flex-wrap: wrap; align-items: flex-start; }
  .history-legend { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cycle-card { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cycle-files { justify-self: stretch; }
  .filters { width: 100%; }
  .kpi .delta { white-space: normal; overflow-wrap: anywhere; }
  .filters .input { flex: 1; width: auto; min-width: 0; }
}
@media (max-width: 640px) {
  .reasons { grid-template-columns: minmax(0, 1fr) 48px 56px 64px; column-gap: 8px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  #riskTable thead { display: none; }
  #riskTable tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "rank file file" ". band score" ". trend ask"; gap: 8px 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  #riskTable tbody tr:last-child { border-bottom: 0; }
  #riskTable td { padding: 0; border: 0; }
  #riskTable td.rank { grid-area: rank; width: auto; }
  #riskTable td.file { grid-area: file; }
  #riskTable td.band { grid-area: band; }
  #riskTable td.score-cell { grid-area: score; }
  #riskTable td.trend-cell { grid-area: trend; }
  #riskTable td.ask { grid-area: ask; text-align: right; }
  #riskTable td.empty-cell { grid-column: 1 / -1; padding: 24px 0; }
  .bar-row { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 48px; gap: 10px; }
  .meter { width: 48px; }
  .inline-form .input { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } .ring-flow { animation: none !important; } .ring-dot { display: none; } .spinner { animation-duration: 2s !important; } }
.sound-toggle { position: fixed; right: 20px; top: 20px; z-index: 46; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--f-ink); background: var(--f-bubble); color: var(--f-ink); cursor: pointer; transition: transform 150ms ease; }
.sound-toggle:hover { transform: rotate(-6deg) scale(1.05); }
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle .off, .sound-toggle.muted .on { display: none; }
.sound-toggle.muted .off { display: block; }
body:not(.locked) .sound-toggle { display: none; }
:root { --paper-tex-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.93 0 0 0 0 0.9 0 0 0 0 0.84 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.16 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="light"] body { background-image: var(--paper-tex); }
:root:not([data-theme="light"]) body { background-image: var(--paper-tex-dark); }
:root { --f-paper: #151412; --f-ink: #ece6d9; --f-body: #bfb8aa; --f-soft: #a8a194; --f-bubble: #1f1d19; --f-red: #ff5d50; --f-tape: rgba(120, 108, 80, 0.6); --f-input: #24221e; --f-line: rgba(236, 230, 217, 0.3); --f-ghost: rgba(236, 230, 217, 0.3); --f-vig: rgba(0, 0, 0, 0.4); --f-shadow: rgba(0, 0, 0, 0.45); --f-tex: var(--paper-tex-dark); }
:root[data-theme="light"] { --f-paper: #eeeae2; --f-ink: #16161a; --f-body: #34353b; --f-soft: #4a4a52; --f-bubble: #f7f4ee; --f-red: #c8322b; --f-tape: rgba(214, 203, 160, 0.75); --f-input: #fffdf8; --f-line: rgba(22, 22, 26, 0.35); --f-ghost: rgba(22, 22, 26, 0.32); --f-vig: rgba(120, 100, 70, 0.14); --f-shadow: rgba(60, 50, 30, 0.2); --f-tex: var(--paper-tex); }
:root[data-theme="light"] .stage::after { background: radial-gradient(ellipse at center, transparent 50%, rgba(120, 100, 70, 0.16) 100%); }
:root[data-theme="light"] .sheet { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.title-row h1 { font: 400 30px/1.2 "Permanent Marker", cursive; letter-spacing: 0.01em; }
.section-head h2 { font: 400 21px/1.35 "Permanent Marker", cursive; letter-spacing: 0.01em; }
.front { position: fixed; inset: 0; z-index: 5; color: var(--f-ink); }
.front::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 40%, transparent 40%, var(--f-vig) 100%), var(--f-tex), var(--f-paper); }
.front.diving::before { opacity: 0; transition: opacity 700ms ease 1150ms; }
.front.gone { visibility: hidden; }
.front.out { opacity: 0; visibility: hidden; transition: opacity 600ms ease, visibility 0s 600ms; }
#fig, #rush, #trail { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#rush, #trail { pointer-events: none; overflow: visible; }
.front.diving #fig { transform-origin: var(--hx) var(--hy); transform: scale(7); opacity: 0; transition: transform 1600ms cubic-bezier(0.55, 0, 0.85, 0.35), opacity 600ms ease 1000ms; }
.front-ui { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--f-soft) transparent; transition: opacity 300ms ease, transform 300ms ease; }
.front.diving .front-ui, .front.diving #trail { opacity: 0; transform: scale(0.97); pointer-events: none; transition: opacity 300ms ease, transform 300ms ease; }
.front-copy { position: absolute; left: 7vw; top: 12vh; width: min(620px, 46vw); }
.front-title { margin: 0; font: 400 clamp(44px, 5.1vw, 82px)/1.02 "Permanent Marker", cursive; letter-spacing: 0.01em; transform: rotate(-1.5deg); transform-origin: left; text-wrap: balance; }
.front-title .under { position: relative; white-space: nowrap; }
.front-title .under svg { position: absolute; left: -4%; bottom: -0.12em; width: 108%; height: 0.38em; overflow: visible; }
.front-title .under path { fill: none; stroke: var(--f-red); stroke-width: 3; stroke-linecap: round; }
.front-sub { max-width: 44ch; margin: 22px 0 0; color: var(--f-soft); font: 400 14px/22px var(--mono); }
.bubble { position: absolute; left: 6vw; top: 49vh; width: min(600px, 46vw); padding: 34px 48px 30px; isolation: isolate; color: var(--f-ink); }
.bubble > svg.cloud { position: absolute; inset: -18px -22px; width: calc(100% + 44px); height: calc(100% + 36px); overflow: visible; z-index: -1; }
.ask { margin: 0 0 14px; font: 700 26px/1 Caveat, cursive; transform: rotate(-1deg); }
.line { position: relative; display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 2px dashed var(--f-line); }
.line:focus-within { border-bottom-style: solid; border-bottom-color: var(--f-ink); }
.prompt { color: var(--f-soft); font: 400 15px var(--mono); white-space: nowrap; }
.line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--f-ink); font: 500 16px var(--mono); caret-color: var(--f-red); }
.line input::placeholder { color: var(--f-ghost); }
.line .clear-repo { flex: none; align-self: center; padding: 0 2px; border: 0; background: none; color: var(--f-soft); font: 700 28px/0.8 Caveat, cursive; cursor: pointer; transition: color 150ms ease, transform 150ms ease; }
.line .clear-repo:hover, .line .clear-repo:focus-visible { color: var(--f-red); transform: rotate(10deg) scale(1.15); }
.line input:placeholder-shown ~ .clear-repo { display: none; }
.line .strike { display: none; position: absolute; left: 165px; width: calc(100% - 171px); top: 1px; height: 22px; overflow: visible; pointer-events: none; }
.line .strike path { fill: none; stroke: var(--f-red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.line.struck .strike { display: block; }
.line.struck .strike path { animation: ink-draw 420ms ease forwards; }
.line.struck input { color: var(--f-soft); }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
.intro-error { margin: 10px 0 0; color: var(--f-red); font: 700 22px/1.15 Caveat, cursive; transform: rotate(-1deg); }
.intro-error .err-more { padding: 0; border: 0; background: none; color: var(--f-ink); font: inherit; text-decoration: underline wavy var(--f-red); text-underline-offset: 4px; cursor: pointer; }
.intro-error .err-rest { display: block; max-height: 8.5em; margin-top: 6px; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; color: var(--f-soft); font-size: 19px; line-height: 1.2; scrollbar-width: thin; }
.intro-error .err-rest[hidden] { display: none; }
.bubble-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.tries { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; color: var(--f-soft); font: 500 21px/1.2 Caveat, cursive; }
.tries button { position: relative; padding: 2px 4px; border: 0; background: none; color: var(--f-ink); font: inherit; cursor: pointer; }
.tries button svg { position: absolute; inset: -8px -10px; width: calc(100% + 20px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.tries button path { fill: none; stroke: var(--f-red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 420ms ease; }
.tries button:hover path, .tries button:focus-visible path { stroke-dashoffset: 0; }
.rubber-stamp { flex: none; padding: 10px 18px 9px; border: 3px solid var(--f-red); border-radius: 7px; outline: 2px solid var(--f-red); outline-offset: 3px; background: none; color: var(--f-red); font: 700 19px/1 var(--mono); letter-spacing: 0.2em; transform: rotate(-7deg); cursor: pointer; filter: url(#inked); transition: transform 150ms ease; }
.rubber-stamp:hover { transform: rotate(-7deg) scale(1.05); }
.rubber-stamp:focus-visible { outline-color: var(--f-ink); }
.rubber-stamp.thump { animation: thump 260ms cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes thump { from { transform: rotate(-11deg) scale(1.35); opacity: 0.4; } to { transform: rotate(-7deg) scale(1); opacity: 1; } }
.static-note { margin: 12px 0 0; color: var(--f-soft); font: 500 19px/1.2 Caveat, cursive; }
.hero-links { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--f-soft); font: 500 20px Caveat, cursive; }
.hero-links a { color: var(--f-ink); }
.opt-toggle { padding: 0; border: 0; background: none; color: var(--f-ink); font: inherit; cursor: pointer; }
.opt-toggle:hover, .hero-links a:hover { text-decoration: underline wavy var(--f-red); text-underline-offset: 4px; }
.hero-options { position: absolute; left: calc(100% + 34px); top: -6px; width: 320px; display: grid; gap: 14px; padding: 24px 20px 18px; background: var(--f-bubble); color: var(--f-ink); text-align: left; transform: rotate(1.5deg); box-shadow: 0 12px 28px var(--f-shadow); }
.hero-options::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: var(--f-tape); }
.hero-options .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-options .input { width: 100%; background: var(--f-input); border-color: var(--control); color: var(--f-ink); }
.hero-options .hint { color: var(--f-soft); }
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .front-copy { left: 18px; right: 118px; top: 18px; width: auto; }
  .front-title { font-size: clamp(30px, 8.4vw, 48px); }
  .front-sub { display: none; }
  .bubble { left: 12px; right: 12px; top: auto; bottom: 14px; width: auto; padding: 26px 26px 20px; }
  .prompt { display: none; }
  .line .strike { left: 0; width: 100%; }
  .bubble-row { flex-wrap: wrap; }
  .hero-options { left: 0; right: 0; top: auto; bottom: calc(100% + 30px); width: auto; transform: rotate(0.6deg); }
}
@media (prefers-reduced-motion: reduce) { .front.diving #fig, .front.diving::before { transition: none; } .stamp.thump { animation: none; } }
.theme-flip { position: fixed; right: 70px; top: 20px; z-index: 46; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--f-ink); background: var(--f-bubble); color: var(--f-ink); cursor: pointer; transition: transform 150ms ease; }
.theme-flip:hover { transform: rotate(8deg) scale(1.05); }
.theme-flip svg { width: 18px; height: 18px; }
.theme-flip .sun, :root:not([data-theme="light"]) .theme-flip .moon { display: none; }
:root:not([data-theme="light"]) .theme-flip .sun { display: block; }
body:not(.locked) .theme-flip { display: none; }