File size: 19,799 Bytes
7265291
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
  --ink: #18232c;
  --muted: #5e6b75;
  --line: #d6dde1;
  --line-strong: #b9c4ca;
  --soft: #f5f7f8;
  --soft-strong: #eaf0f1;
  --panel: #ffffff;
  --teal: #087d70;
  --teal-dark: #075e56;
  --teal-soft: #e1f2ef;
  --gold: #93630b;
  --gold-soft: #fff1cf;
  --red: #a33c3c;
  --red-soft: #fff0ef;
  --green: #247345;
  --green-soft: #e8f5ec;
  --blue: #35658a;
  --blue-soft: #eaf2f8;
  --page-pad: max(18px, calc((100vw - 1480px) / 2));
  color: var(--ink);
  background: var(--panel);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.5; }
button, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #9bd1ca; outline-offset: 1px; }
[hidden] { display: none !important; }

.app-header {
  min-height: 92px;
  padding: 20px var(--page-pad);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  color: white;
  background: #18232c;
  border-bottom: 4px solid var(--teal);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 27px; line-height: 1.15; font-weight: 690; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.25; font-weight: 680; }
h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 680; }
.eyebrow { margin-bottom: 5px; color: #687780; font-size: 10px; font-weight: 740; text-transform: uppercase; }
.app-header .eyebrow { color: #9ed4ce; }
.header-meta { max-width: 55%; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: #d5dee4; font-size: 12px; text-align: right; }
.header-meta strong { color: white; font-size: 13px; }

.view-tabs {
  height: 48px;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: stretch;
  gap: 28px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.tab { padding: 0 2px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-weight: 660; }
.tab:hover { color: var(--teal-dark); }
.tab.active { color: var(--ink); border-bottom-color: var(--teal); }

main { width: 100%; }
.control-band {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 74px;
  padding: 11px var(--page-pad);
  display: grid;
  grid-template-columns: minmax(210px, .85fr) minmax(370px, 1.5fr) minmax(150px, .55fr) auto;
  align-items: end;
  gap: 12px;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(24 35 44 / 8%);
}
label { min-width: 0; color: var(--muted); font-size: 10px; font-weight: 700; }
select {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  padding: 0 30px 0 10px;
  overflow: hidden;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  text-overflow: ellipsis;
}
.select-with-actions { margin-top: 4px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 6px; }
.select-with-actions select { margin-top: 0; }
.icon-button {
  width: 38px;
  height: 38px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}
.icon-button svg { width: 18px; height: 18px; stroke-width: 2.25; }
.icon-button:hover:not(:disabled) { color: var(--teal-dark); border-color: var(--teal); }
.icon-button:disabled { color: #a7b1b7; background: var(--soft); cursor: default; }
.control-status { min-width: 88px; margin: 0 0 9px; color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }

.loading, .error-state { padding: 70px var(--page-pad); color: var(--muted); text-align: center; }
.error-state { color: var(--red); }
#trajectory-content > section, #overview-view > section, .overview-heading { padding: 30px var(--page-pad); border-bottom: 1px solid var(--line); }
.summary-section, .rubric-section { background: white; }
.context-section, .round-section { background: #f8fafb; }
.section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.mono { max-width: 55%; overflow-wrap: anywhere; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-align: right; }

.metric-strip { display: grid; grid-template-columns: repeat(6, minmax(105px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-cell { min-width: 0; padding: 11px 13px; border-right: 1px solid var(--line); }
.metric-cell:first-child { padding-left: 0; }
.metric-cell:last-child { border-right: 0; }
.metric-cell span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.metric-cell strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font-size: 17px; font-variant-numeric: tabular-nums; }
.metric-cell small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.metric-cell.proxy strong { color: var(--teal-dark); }
.metric-cell.gold strong { color: var(--gold); }
.metric-cell.positive strong { color: var(--green); }
.metric-cell.negative strong { color: var(--red); }
.score-key { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.score-key strong:first-child { color: var(--teal-dark); }
.score-key strong:last-of-type { color: var(--gold); }
.score-key span { margin: 0 5px; color: var(--line-strong); }

.context-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .8fr); gap: 34px; align-items: start; }
.context-column { min-width: 0; }
.reference-column { min-width: 0; padding: 18px 20px 20px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; }
.column-heading { margin-bottom: 13px; }
.context-meta { margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.context-meta div { min-width: 0; padding: 8px 13px 8px 0; border-bottom: 1px solid var(--line); }
.context-meta dt { color: var(--muted); font-size: 9px; font-weight: 720; text-transform: uppercase; }
.context-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 630; }
.structured-text { max-width: 92ch; color: #27343e; font-size: 13px; line-height: 1.67; overflow-wrap: anywhere; }
.structured-text > :first-child { margin-top: 0; }
.structured-text > :last-child { margin-bottom: 0; }
.structured-text p { margin: 0 0 12px; }
.structured-text ol, .structured-text ul { margin: 8px 0 14px; padding-left: 24px; }
.structured-text li { margin: 7px 0; padding-left: 3px; }
.structured-text strong { color: var(--ink); font-weight: 720; }
.response-text { max-width: none; font-size: 14px; line-height: 1.72; }
.clampable { position: relative; overflow: hidden; }
.context-text.is-clamped { max-height: 325px; }
.rubric-text.is-clamped { max-height: 430px; }
.clampable.is-clamped { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.text-button { margin-top: 9px; padding: 4px 0; color: var(--teal-dark); background: transparent; border: 0; font-size: 11px; font-weight: 720; }
.text-button:hover { text-decoration: underline; }

details { margin-top: 13px; background: white; border: 1px solid var(--line); border-radius: 6px; }
summary { padding: 11px 13px; display: flex; justify-content: space-between; gap: 16px; color: #34424e; cursor: pointer; font-size: 12px; font-weight: 660; }
.trace-size { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.message-list, .details-content { margin: 0; padding: 16px; border-top: 1px solid var(--line); }
.message { padding: 12px 0; border-top: 1px solid var(--line); }
.message:first-child { padding-top: 0; border-top: 0; }
.message:last-child { padding-bottom: 0; }
.message-role { color: var(--teal-dark); font-size: 9px; font-weight: 740; text-transform: uppercase; }
.message-content { max-width: 110ch; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; }
.rubric-text { max-width: 108ch; }
.status-badge, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  color: #3d4b55;
  background: var(--soft-strong);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 740;
  text-transform: uppercase;
}
.status-badge.valid, .badge.selected { color: var(--teal-dark); background: var(--teal-soft); border-color: #abd8d2; }
.badge.tie { color: var(--gold); background: var(--gold-soft); border-color: #e6cf99; }
.badge.invalid { color: var(--red); background: var(--red-soft); border-color: #e6baba; }
.badge.improved { color: var(--green); background: var(--green-soft); border-color: #b8dcc4; }
.badge.worsened { color: var(--red); background: var(--red-soft); border-color: #e6baba; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }

.round-heading { align-items: end; }
.round-actions { display: flex; gap: 6px; }
.round-track { width: 100%; margin-bottom: 20px; display: grid; grid-template-columns: repeat(9, minmax(112px, 1fr)); overflow-x: auto; border: 1px solid var(--line-strong); background: var(--line); gap: 1px; }
.round-button { min-width: 112px; height: 82px; padding: 8px 9px; display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); background: white; border: 0; text-align: left; }
.round-button:hover { background: #f4faf8; }
.round-button.active { background: var(--teal-soft); box-shadow: inset 0 3px 0 var(--teal); }
.round-button.tie:not(.active) { box-shadow: inset 0 3px 0 var(--gold); }
.round-button-top { display: flex; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 720; text-transform: uppercase; }
.round-button-mark { color: var(--teal-dark); }
.round-button-scores { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; font-size: 11px; font-variant-numeric: tabular-nums; }
.round-button-scores span:first-child { color: var(--teal-dark); }
.round-button-scores span:last-child { color: var(--gold); }
.round-button-delta { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.round-button-delta.positive { color: var(--green); }
.round-button-delta.negative { color: var(--red); }

.feedback-band { margin-bottom: 20px; padding: 17px 20px; background: #eef5f7; border-left: 4px solid var(--blue); }
.feedback-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.feedback-heading h3 { font-size: 15px; }
.score-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.score-pill { min-width: 78px; padding: 5px 8px; background: white; border: 1px solid #c8d8e1; font-size: 9px; }
.score-pill span { display: block; color: var(--muted); text-transform: uppercase; }
.score-pill strong { display: block; margin-top: 1px; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-pill.proxy strong { color: var(--teal-dark); }
.score-pill.gold strong { color: var(--gold); }
blockquote { margin: 15px 0 0; color: #223541; font-size: 15px; line-height: 1.55; font-weight: 570; }
.feedback-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.feedback-note.fallback { color: var(--red); }

.revision-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; }
.response-pane { min-width: 0; padding: 19px 20px 22px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 6px; }
.next-pane { border-top-color: var(--blue); }
.response-pane.empty { color: var(--muted); background: var(--soft); border-top-color: var(--line-strong); }
.response-pane-heading { min-height: 45px; margin-bottom: 12px; display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.revision-arrow { display: flex; align-items: center; justify-content: center; color: var(--blue); }
.revision-arrow svg { width: 20px; height: 20px; stroke-width: 2; }
.response-scores { margin-bottom: 16px; display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.response-score { min-width: 0; padding: 7px 9px; border-right: 1px solid var(--line); }
.response-score:first-child { padding-left: 0; }
.response-score:last-child { border-right: 0; }
.response-score span { display: block; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.response-score strong { display: block; overflow-wrap: anywhere; font-size: 14px; font-variant-numeric: tabular-nums; }
.response-score.proxy strong { color: var(--teal-dark); }
.response-score.gold strong { color: var(--gold); }
.response-score.positive strong { color: var(--green); }
.response-score.negative strong { color: var(--red); }

.history-section { margin-top: 30px; padding-top: 25px; border-top: 2px solid var(--line-strong); }
.compact-heading { margin-bottom: 12px; }
.history-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); background: white; }
.history-table { width: 100%; min-width: 1000px; border-collapse: collapse; text-align: left; }
.history-table th, .history-table td { padding: 9px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.history-table tr > :last-child { border-right: 0; }
.history-table tbody tr:last-child > * { border-bottom: 0; }
.history-table thead th { color: var(--muted); background: var(--soft-strong); font-size: 9px; font-weight: 740; text-transform: uppercase; white-space: nowrap; }
.history-table tbody tr { cursor: pointer; }
.history-table tbody tr:hover { background: #f6faf9; }
.history-table tbody tr.active { background: var(--teal-soft); }
.history-table td { font-size: 11px; }
.history-table .numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-table .proxy-value { color: var(--teal-dark); font-weight: 700; }
.history-table .gold-value { color: var(--gold); font-weight: 700; }
.history-table .feedback-preview { max-width: 390px; color: #3d4b55; }
.history-table button { padding: 0; color: var(--teal-dark); background: transparent; border: 0; font-weight: 720; }

.overview-heading { background: #f8fafb; }
.overview-summary { padding: 0 var(--page-pad); display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); background: white; border-bottom: 1px solid var(--line); }
.overview-summary .metric-cell { padding-top: 17px; padding-bottom: 17px; }
.overview-band { background: white; }
.overview-band.alternate { background: #f8fafb; }
.outcome-chart { max-width: 980px; }
.outcome-bar { height: 46px; display: flex; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; }
.outcome-segment { min-width: 0; display: flex; align-items: center; justify-content: center; color: #24313a; font-size: 10px; font-weight: 730; white-space: nowrap; }
.outcome-segment.improved { background: #bfe2ca; }
.outcome-segment.unchanged { background: #dce3e6; }
.outcome-segment.worsened { background: #efc4c0; }
.outcome-legend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 11px; }
.outcome-legend strong { margin-left: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.round-chart { width: 100%; min-height: 310px; overflow-x: auto; background: white; border: 1px solid var(--line); }
.round-chart svg { width: 100%; min-width: 720px; height: 310px; display: block; }
.chart-grid { stroke: #dfe5e8; stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font-size: 10px; }
.chart-proxy { fill: none; stroke: var(--teal); stroke-width: 3; }
.chart-gold { fill: none; stroke: var(--gold); stroke-width: 3; }
.chart-dot-proxy { fill: white; stroke: var(--teal); stroke-width: 2; }
.chart-dot-gold { fill: white; stroke: var(--gold); stroke-width: 2; }
.chart-key { margin-top: 10px; display: flex; gap: 20px; color: var(--muted); font-size: 11px; }
.chart-key span::before { content: ""; width: 20px; height: 3px; margin-right: 7px; display: inline-block; vertical-align: middle; }
.proxy-key::before { background: var(--teal); }
.gold-key::before { background: var(--gold); }
.checkpoint-table { min-width: 820px; }

@media (max-width: 1120px) {
  .control-band { grid-template-columns: minmax(190px, .8fr) minmax(310px, 1.35fr) minmax(140px, .55fr) auto; }
  .metric-strip { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .metric-cell:nth-child(3) { border-right: 0; }
  .metric-cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .context-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 24px; }
}

@media (max-width: 820px) {
  .app-header { min-height: 84px; align-items: start; }
  .header-meta { display: none; }
  .control-band { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .control-band > label:nth-of-type(3) { display: none; }
  .control-status { grid-column: 1 / -1; margin: -3px 0 0; text-align: left; }
  .context-layout { grid-template-columns: 1fr; }
  .reference-column { order: -1; }
  .revision-comparison { grid-template-columns: 1fr; gap: 10px; }
  .revision-arrow { height: 28px; transform: rotate(90deg); }
  .overview-summary { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
  .overview-summary .metric-cell:nth-child(3) { border-right: 0; }
  .overview-summary .metric-cell:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  :root { --page-pad: 14px; }
  body { font-size: 13px; }
  .app-header { padding-top: 17px; padding-bottom: 17px; }
  h1 { font-size: 23px; }
  h2 { font-size: 18px; }
  .view-tabs { height: 44px; }
  .control-band { grid-template-columns: 1fr; padding-top: 9px; padding-bottom: 9px; }
  .control-band > label:first-child { display: none; }
  .control-status { grid-column: auto; }
  #trajectory-content > section, #overview-view > section, .overview-heading { padding-top: 24px; padding-bottom: 24px; }
  .section-heading { align-items: start; }
  .section-heading > .mono { display: none; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { padding: 10px 8px; border-bottom: 1px solid var(--line); }
  .metric-cell:nth-child(2n) { border-right: 0; }
  .metric-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .metric-cell:nth-child(3) { border-right: 1px solid var(--line); }
  .context-meta { grid-template-columns: 1fr; }
  .feedback-heading { display: block; }
  .score-pills { margin-top: 12px; justify-content: flex-start; }
  .feedback-band { padding: 15px 16px; }
  blockquote { font-size: 14px; }
  .response-pane { padding: 16px 15px 19px; }
  .response-pane-heading { display: block; }
  .badge-row { margin-top: 8px; justify-content: flex-start; }
  .response-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .response-score { padding-left: 7px; padding-right: 7px; }
  .round-actions { display: none; }
  .overview-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-summary .metric-cell:nth-child(2n) { border-right: 0; }
  .overview-summary .metric-cell:nth-child(3) { border-right: 1px solid var(--line); }
  .overview-summary .metric-cell { border-top: 1px solid var(--line); border-bottom: 0; }
  .overview-summary .metric-cell:first-child, .overview-summary .metric-cell:nth-child(2) { border-top: 0; }
  .outcome-segment span { display: none; }
}