File size: 13,059 Bytes
548b2a6
 
 
 
 
 
 
 
 
 
 
c10b0c0
 
 
f7a133f
 
548b2a6
 
 
 
 
 
f7a133f
548b2a6
f7a133f
548b2a6
 
 
 
 
 
c10b0c0
548b2a6
 
 
c10b0c0
 
 
 
 
12ea280
c10b0c0
548b2a6
 
 
 
c10b0c0
548b2a6
c10b0c0
548b2a6
c10b0c0
 
548b2a6
 
 
 
c10b0c0
548b2a6
 
 
f7a133f
548b2a6
 
 
c10b0c0
f7a133f
548b2a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c10b0c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12ea280
c10b0c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12ea280
c10b0c0
 
 
 
 
 
 
 
12ea280
 
c10b0c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
    --bg: #0f1117;
    --panel: #171a21;
    --panel-2: #1e222c;
    --border: #2a2f3a;
    --text: #e6e9ef;
    --muted: #9aa4b2;
    --accent: #c084fc;          /* violet — PhantomWiki accent */
    --accent-dim: #2c1b3d;
    --gold: #fbbf24;
    --blue: #38bdf8;
    --green: #34d399;
    --red: #fb7185;
    --orange: #fb923c;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; height: 100%;
    background: var(--bg); color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.app-sidebar { width: 330px; min-width: 330px; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; padding: 18px 16px; }
.app-sidebar header h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.controls { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.view-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.view-toggle button { flex: 1; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.12s; }
.view-toggle button:hover { color: var(--text); border-color: #3a4150; }
.view-toggle button.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.view-toggle button.run-c1.active { background: #30212a; color: #fda4af; border-color: #fb7185; }
.view-toggle button.run-c2.active { background: #172e35; color: #67e8f9; border-color: #22d3ee; }
.view-toggle button.run-c6.active { background: #1d2d27; color: #6ee7b7; border-color: #34d399; }
.view-toggle button.run-naive.active { background: #34251b; color: #fdba74; border-color: #fb923c; }
.view-toggle button.run-e2e.active { background: #252344; color: #a5b4fc; border-color: #818cf8; }
.view-toggle button.run-e2e-rawtext.active { background: #3b1725; color: #fda4af; border-color: #fb7185; }
.view-toggle button.compare-tab.active { background: #30213c; color: #e879f9; border-color: #d946ef; }
.search-box { display: flex; flex-direction: column; gap: 8px; }
input[type="text"], select, button { font-family: inherit; font-size: 13px; }
input[type="text"], select { width: 100%; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; outline: none; }
input[type="text"]:focus, select:focus { border-color: var(--accent); }
select:disabled { opacity: 0.66; cursor: not-allowed; }
select option { background: var(--panel-2); color: var(--text); }
#docSelect, #questionSelect, #runQidSelect, #compareQidSelect { max-width: 100%; text-overflow: ellipsis; }
.set-select { font-weight: 600; }
.scope-note { margin-top: 8px; padding: 8px 10px; border: 1px solid #4c3b69; border-radius: 8px; background: #241b32; color: #d8b4fe; font-size: 11px; line-height: 1.45; }
.scope-note code { color: #e9d5ff; font-size: 10px; }
#facetFilters { display: flex; flex-direction: column; gap: 8px; }
.nav-controls { display: flex; align-items: center; gap: 8px; }
.nav-controls button { flex: 1; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; cursor: pointer; transition: all 0.12s; }
.nav-controls button:hover { border-color: var(--accent); color: var(--accent); }
#corpusCounter, #evalCounter, #runCounter, #compareCounter { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; min-width: 64px; text-align: center; }
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.6; }
.sidebar-footer a { color: var(--blue); text-decoration: none; }
.sidebar-footer a:hover { text-decoration: underline; }

/* Main */
.app-main { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; }
#loading { color: var(--muted); padding: 40px; text-align: center; }
.loading-inline { color: var(--muted); padding: 40px; text-align: center; }

/* Corpus */
#corpusView { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.doc-meta-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.doc-meta-card h2 { margin: 0; font-size: 19px; word-break: break-word; }
.doc-content { flex: 1; min-height: 320px; overflow: auto; background: #12151c; border: 1px solid var(--border); border-radius: 12px; padding: 20px 26px; line-height: 1.6; }
.doc-content h1 { font-size: 22px; margin-top: 0; }
.doc-content h2 { font-size: 16px; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-top: 20px; }
.doc-content p { margin: 6px 0; }

/* Eval */
#evalView { flex: 1; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; max-width: 1000px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.badge.id { color: var(--accent); border-color: var(--accent); }
.badge.set { color: var(--blue); border-color: var(--blue); }
.badge.diff { color: var(--gold); border-color: var(--gold); }
.card h2 { margin: 0 0 18px; font-size: 20px; line-height: 1.45; }
.answer-banner { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.answer-banner .lbl { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.answer-banner .empty-answer { color: var(--muted); font-style: italic; }
.answer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ans-chip { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); }
a.ans-chip { color: var(--blue); cursor: pointer; text-decoration: none; }
a.ans-chip:hover { border-color: var(--blue); }

.field { margin-bottom: 14px; }
.field .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px; }
.field .val { line-height: 1.7; }
.prolog-code { display: block; white-space: pre-wrap; font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: #d8b4fe; }
.template-txt { font-style: italic; color: var(--muted); }
.empty { color: var(--muted); padding: 40px; text-align: center; }
.muted { color: var(--muted); font-size: 12px; }

/* Full runs */
#runView, #compareView { width: 100%; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 12px; margin-bottom: 16px; }
.score-card, .compare-score { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.score-card.correct { border-color: #2f6f59; }
.score-card.coverage { border-color: #315f79; }
.score-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.score-value { margin-top: 5px; font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.score-pct { margin-top: 2px; color: var(--muted); font-size: 12px; }
.run-card, .compare-question { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; }
.run-card { max-width: 1180px; }
.run-card.run-c1 { border-top: 3px solid #fb7185; }
.run-card.run-c2 { border-top: 3px solid #22d3ee; }
.run-card.run-c6 { border-top: 3px solid #34d399; }
.run-card.run-naive { border-top: 3px solid #fb923c; }
.run-card.run-e2e { border-top: 3px solid #818cf8; }
.run-card.run-e2e-rawtext { border-top: 3px solid #fb7185; }
.run-card h2, .compare-question h2 { margin: 0 0 18px; font-size: 20px; line-height: 1.45; }
.status-badge { display: inline-flex; align-items: center; border: 1px solid; border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.status-badge.correct { color: var(--green); border-color: #27765b; background: #142c25; }
.status-badge.incorrect { color: var(--red); border-color: #854153; background: #321d25; }
.status-badge.missing { color: var(--orange); border-color: #87512e; background: #332318; }
.text-block { max-width: 100%; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.55; background: #11141a; border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; color: #d8dee9; }
.text-block.prediction { border-left: 3px solid var(--accent); }
.answer-code { display: block; white-space: pre-wrap; word-break: break-word; color: #bfdbfe; font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }
.missing-panel { padding: 11px 12px; border: 1px solid #87512e; border-radius: 8px; background: #332318; color: #fdba74; }
.judge-summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr); gap: 0 18px; margin-bottom: 14px; }
.judge-summary details { grid-column: 1 / -1; }
.ops-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ops-grid .field { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; }
details > summary { cursor: pointer; color: #c4b5fd; font-weight: 600; padding: 7px 0; }
.events-details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.events-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.event-row { border: 1px solid var(--border); border-radius: 8px; background: #12151c; overflow: hidden; }
.event-row.error, .event-row.truncated { border-color: #87512e; }
.event-heading { padding: 7px 10px; background: var(--panel-2); color: #cbd5e1; font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; }
.event-part { padding: 8px 10px; border-top: 1px solid var(--border); }
.event-part .lbl { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.event-part pre { margin: 0; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.45; color: #cbd5e1; }

/* Compare */
.compare-score-grid { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 10px; margin-bottom: 16px; }
.compare-score.run-c1 { border-top: 3px solid #fb7185; }
.compare-score.run-c2 { border-top: 3px solid #22d3ee; }
.compare-score.run-c6 { border-top: 3px solid #34d399; }
.compare-score.run-naive { border-top: 3px solid #fb923c; }
.compare-score.run-e2e { border-top: 3px solid #818cf8; }
.compare-score.run-e2e-rawtext { border-top: 3px solid #fb7185; }
.compare-question { margin-bottom: 16px; max-width: none; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.compare-run-card { min-width: 0; padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.compare-run-card.run-c1 { border-left: 3px solid #fb7185; }
.compare-run-card.run-c2 { border-left: 3px solid #22d3ee; }
.compare-run-card.run-c6 { border-left: 3px solid #34d399; }
.compare-run-card.run-naive { border-left: 3px solid #fb923c; }
.compare-run-card.run-e2e { border-left: 3px solid #818cf8; }
.compare-run-card.run-e2e-rawtext { border-left: 3px solid #fb7185; }
.status-badge.partial { color: #fbbf24; border-color: #a16207; background: #2b2110; }
.compare-run-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.compare-run-head h3 { margin: 0; font-size: 16px; }
.compare-run-card .ops-grid { grid-template-columns: 1fr; }
.lazy-events { margin-top: 8px; }

@media (max-width: 1180px) {
    .compare-score-grid { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
    .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .app-shell { display: block; height: auto; overflow: visible; }
    .app-sidebar { width: 100%; min-width: 0; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
    .app-main { padding: 18px 14px; }
    .ops-grid, .judge-summary, .compare-score-grid { grid-template-columns: 1fr; }
}