File size: 13,314 Bytes
23866a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bfe91f0
23866a2
 
 
 
 
 
 
 
bfe91f0
23866a2
bfe91f0
23866a2
 
 
 
 
bfe91f0
23866a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bfe91f0
23866a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8b27dd6
 
 
 
 
 
23866a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bfe91f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1bb926a
bfe91f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
    --bg: #0f1117;
    --panel: #171a21;
    --panel-2: #1e222c;
    --border: #2a2f3a;
    --text: #e6e9ef;
    --muted: #9aa4b2;
    --accent: #00a1e0;        /* Salesforce blue */
    --accent-dim: #082e3d;
    --gold: #fbbf24;
    --blue: #38bdf8;
    --violet: #c084fc;
    --green: #34d399;
    --rose: #fb7185;
}

* { 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: 350px; min-width: 350px;
    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: 21px; 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: 18px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }

.view-toggle { display: flex; flex-wrap: wrap; gap: 6px; }
.view-toggle button {
    flex: 1 1 calc(50% - 6px); padding: 8px 7px; 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); }
.scope-note { color: var(--gold); font-size: 11px; line-height: 1.4; margin-top: 7px; }

.search-box { display: flex; flex-direction: column; gap: 8px; }
.filter-row { display: flex; gap: 6px; }
.filter-row select { flex: 1; min-width: 0; }
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 option { background: var(--panel-2); color: var(--text); }

.search-box button, .nav-controls button {
    padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text); border-radius: 8px; cursor: pointer; transition: all 0.12s;
}
.search-box button:hover, .nav-controls button:hover { border-color: var(--accent); color: var(--accent); }
.nav-controls { display: flex; align-items: center; gap: 8px; }
.nav-controls button { flex: 1; }
#corpusCounter, #evalCounter, .nav-counter { 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; min-width: 0; }
#loading { color: var(--muted); padding: 40px; text-align: center; }

#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: 14px 20px; margin-bottom: 14px; }
.doc-meta-card h2 { margin: 0 0 10px; font-size: 18px; word-break: break-word; }
.meta-grid { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.meta-pill { background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--muted); }
.meta-pill b { color: var(--text); font-weight: 600; }
.meta-pill.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.type-pill { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.type-pill.slack { color: #a78bfa; border-color: #a78bfa; }
.type-pill.documents { color: var(--blue); border-color: var(--blue); }
.type-pill.meeting_transcripts { color: var(--green); border-color: var(--green); }
.type-pill.meeting_chats { color: #2dd4bf; border-color: #2dd4bf; }
.type-pill.urls { color: var(--gold); border-color: var(--gold); }
.type-pill.prs { color: var(--rose); border-color: var(--rose); }
.doc-link { margin-left: auto; color: var(--blue); text-decoration: none; font-size: 13px; white-space: nowrap; }
.doc-link:hover { text-decoration: underline; }

/* artifact body */
.artifact-body {
    flex: 1; min-height: 200px; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 24px; line-height: 1.6;
}
.artifact-body.loading { color: var(--muted); display: flex; align-items: center; justify-content: center; }
.empty { color: var(--muted); padding: 40px; text-align: center; }

/* markdown (documents) */
.md-render h1,.md-render h2,.md-render h3,.md-render h4 { line-height: 1.3; margin: 16px 0 8px; }
.md-render h1 { font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.md-render h2 { font-size: 17px; } .md-render h3 { font-size: 15px; color: var(--muted); }
.md-render p { margin: 8px 0; } .md-render a { color: var(--blue); }
.md-render code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md-render pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-x: auto; }
.md-render table { border-collapse: collapse; margin: 12px 0; font-size: 12.5px; display: block; overflow-x: auto; }
.md-render th, .md-render td { border: 1px solid var(--border); padding: 5px 9px; text-align: left; }
.md-render th { background: var(--panel-2); font-weight: 600; }

/* preformatted transcript / chat / reviews */
.pre-text {
    white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; line-height: 1.55; background: var(--bg);
    border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto;
}

/* slack bubble */
.slack-msg { border-left: 3px solid var(--accent); padding: 6px 0 6px 14px; margin: 10px 0; }
.slack-msg .who { font-weight: 700; color: var(--text); }
.slack-msg .ts { color: var(--muted); font-size: 11px; margin-left: 8px; }
.slack-msg .txt { margin-top: 4px; white-space: pre-wrap; }
.slack-reply { margin-left: 22px; border-left: 2px solid var(--border); }
.eid-tag { color: var(--accent); font-weight: 600; }

/* pr / url blocks */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 14px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--text); word-break: break-word; }
.review-item { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 8px 0; font-size: 13px; }
.state-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); }
.state-APPROVED { color: var(--green); border-color: var(--green); }
.state-CHANGES_REQUESTED, .state-COMMENTED { color: var(--gold); border-color: var(--gold); }
.field-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 16px 0 6px; }

/* ---------- 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; align-items: center; }
.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); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.badge.product { color: var(--green); border-color: var(--green); cursor: pointer; }
.badge.product:hover { background: var(--accent-dim); }
.badge.kind-answerable { color: var(--green); border-color: var(--green); }
.badge.kind-unanswerable { color: var(--rose); border-color: var(--rose); }
.badge.qtype { color: var(--violet); border-color: var(--violet); }
.badge.computation-yes {
    color: var(--gold);
    border-color: #a16207;
    background: #2b2412;
}
.badge.computation-no { color: var(--muted); }

.card h2 { margin: 0 0 18px; font-size: 19px; line-height: 1.5; }
.answer-banner { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.answer-banner.unans { background: #2a1216; border-color: var(--rose); }
.answer-banner .lbl { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.answer-banner.unans .lbl { color: var(--rose); }
.answer-banner .val { font-size: 15px; font-weight: 600; margin-top: 4px; white-space: pre-wrap; line-height: 1.6; }
.gt-list { margin: 4px 0 0; padding-left: 18px; }
.gt-list li { margin: 3px 0; }

.field { margin-bottom: 18px; }
.field .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.field .val { line-height: 1.6; }

.cite-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cite-chip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; padding: 5px 10px; border-radius: 8px;
    background: var(--panel-2); border: 1px solid var(--accent); color: var(--accent); cursor: pointer;
}
.cite-chip:hover { background: var(--accent-dim); }
.cite-chip .ic { margin-right: 5px; }

/* ---------- Full runs + comparison ---------- */
#runView, #compareView { width: 100%; }
.scope-banner {
    color: var(--gold); border: 1px solid #755b16; background: #2b2412;
    border-radius: 9px; padding: 9px 13px; margin-bottom: 12px; font-size: 12px;
}
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-bottom: 14px; max-width: 1200px; }
.metric-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.metric-card .metric-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.metric-card .metric-value { font-size: 20px; font-weight: 750; margin-top: 4px; }
.metric-card .metric-detail { color: var(--muted); font-size: 11px; margin-top: 2px; }
.status-correct { color: var(--green) !important; border-color: var(--green) !important; }
.status-incorrect { color: var(--rose) !important; border-color: var(--rose) !important; }
.status-missing { color: var(--gold) !important; border-color: var(--gold) !important; }
.status-partial { color: #fbbf24 !important; border-color: #a16207 !important; }
.status-failure { color: var(--violet) !important; border-color: var(--violet) !important; }
.run-card { max-width: 1200px; }
.run-card h2, .compare-question h2 { margin-bottom: 12px; }
.answer-panel { background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; margin: 10px 0; }
.answer-panel .lbl { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.answer-panel .val { white-space: pre-wrap; line-height: 1.55; word-break: break-word; }
.answer-panel.gold { border-color: #755b16; }
.answer-panel.prediction { border-color: #31566a; }
.run-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.event-details { margin-top: 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); }
.event-details summary { cursor: pointer; padding: 10px 13px; color: var(--blue); font-weight: 600; }
.event-details pre { margin: 0; padding: 12px 14px; border-top: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; max-height: 680px; overflow: auto; }
.compare-question { max-width: 1200px; margin-bottom: 14px; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1400px; }
.compare-card { background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 15px; min-width: 0; }
.compare-card.correct { border-color: #237758; }
.compare-card.incorrect { border-color: #713744; }
.compare-card.missing { border-color: #755b16; }
.compare-card.failure { border-color: #69427f; }
.compare-card h3 { margin: 0; font-size: 15px; }
.compare-card .compare-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 9px; }
.compare-card .prediction-text { white-space: pre-wrap; line-height: 1.5; max-height: 280px; overflow: auto; word-break: break-word; }
.muted { color: var(--muted); }

@media (max-width: 980px) {
    .app-sidebar { width: 300px; min-width: 300px; }
    .compare-grid { grid-template-columns: 1fr; }
}