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
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
/* Field coverage (FieldCoverage.tsx, #235). Design tokens only, in its own file rather than index.css so
   it stays out of a parallel edit. Light-default with a dark-mode block; two radii; one categorical
   palette scoped to the five source classes, keyed to the legend. */
.field-coverage.fc {
  --fc-bg: var(--bg);
  --fc-surface: var(--surface);
  --fc-surface-2: var(--surface-2);
  --fc-ink: var(--ink);
  --fc-ink-muted: var(--ink-muted);
  --fc-hairline: var(--hairline);
  --fc-r-card: var(--r-card);
  --fc-r-ctrl: var(--r-ctrl);
  color: var(--fc-ink);
  max-width: 1320px;
}

/* The five source hues. Each class sets --fc-hue (the saturated fill and the dot) and derives --fc-hue-soft
   (the faint track behind an empty or partial meter). Chips, swatches, meters, and section strips all read
   these two, so the whole encoding stays one hue per source. */
.fc .fc-src-pathology_extraction {
  --fc-hue: #0f8a6a;
}
.fc .fc-src-clinical_join {
  --fc-hue: #2f6db0;
}
.fc .fc-src-registry_join {
  --fc-hue: #6d5aa6;
}
.fc .fc-src-local_research {
  --fc-hue: #b0851f;
}
.fc .fc-src-none {
  --fc-hue: #8a95a3;
}
.fc [class*="fc-src-"] {
  --fc-hue-soft: color-mix(in srgb, var(--fc-hue) 16%, var(--fc-surface));
}

@media (prefers-color-scheme: dark) {
  .fc .fc-src-pathology_extraction {
    --fc-hue: #35c99b;
  }
  .fc .fc-src-clinical_join {
    --fc-hue: #5a9ae0;
  }
  .fc .fc-src-registry_join {
    --fc-hue: #a99ae0;
  }
  .fc .fc-src-local_research {
    --fc-hue: #e0a93b;
  }
  .fc .fc-src-none {
    --fc-hue: #8b97a8;
  }
}

/* --- Header --- */
.fc .fc-head {
  margin-bottom: 20px;
}
.fc .fc-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-ink-muted);
}
.fc h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.fc .fc-lede {
  margin: 0;
  max-width: 78ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fc-ink-muted);
}

.fc .fc-banner {
  margin-bottom: 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--fc-ink-muted);
  background: var(--fc-surface-2);
  border: 1px solid var(--fc-hairline);
  border-radius: var(--fc-r-ctrl);
}

/* --- Deep-navy summary + legend band (block tokens; dark in both themes) --- */
.fc .fc-band {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
  padding: 22px;
  background: var(--block-bg);
  border: 1px solid var(--block-hairline);
  border-radius: var(--fc-r-card);
  color: var(--block-ink);
}

.fc .fc-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.fc .fc-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fc .fc-metric-value {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--block-ink);
  font-variant-numeric: tabular-nums;
}
.fc .fc-metric-primary .fc-metric-value {
  color: var(--block-accent);
}
.fc .fc-metric-label {
  font-size: 12px;
  color: var(--block-ink-muted);
}

.fc .fc-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--block-hairline);
}
.fc .fc-legend-title {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--block-ink-muted);
}
.fc .fc-legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fc .fc-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fc .fc-swatch {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--fc-hue);
}
.fc .fc-legend-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.fc .fc-legend-name {
  font-size: 13px;
  color: var(--block-ink);
}
.fc .fc-legend-count {
  margin-left: 4px;
  font-size: 12px;
  color: var(--block-ink-muted);
  font-variant-numeric: tabular-nums;
}
.fc .fc-legend-blurb {
  font-size: 11.5px;
  color: var(--block-ink-muted);
}
/* On the navy band the meter track is a translucent white rule, so the saturated fill still reads. */
.fc .fc-band .fc-meter {
  flex: none;
  width: 46px;
  background: rgba(255, 255, 255, 0.16);
}
.fc .fc-band .fc-meter-none {
  background: transparent;
}

/* --- Sections --- */
.fc .fc-sections {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.fc .fc-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fc-hairline);
}
.fc .fc-section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fc-ink);
}
.fc .fc-section-count {
  font-size: 12px;
  color: var(--fc-ink-muted);
  font-variant-numeric: tabular-nums;
}
/* The section's source composition as one thin bar, pushed to the right of the header. */
.fc .fc-strip {
  display: flex;
  flex: 0 1 180px;
  margin-left: auto;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--fc-surface-2);
}
.fc .fc-strip-seg {
  height: 100%;
  background: var(--fc-hue);
}

.fc .fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

/* --- Field chip: hue = source, saturated meter extent = confirmed fill --- */
.fc .fc-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--fc-hue) 6%, var(--fc-surface));
  border: 1px solid var(--fc-hairline);
  border-radius: var(--fc-r-ctrl);
}
.fc .fc-chip-top {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.fc .fc-chip-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 3px;
  background: var(--fc-hue);
}
.fc .fc-chip-label {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--fc-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc .fc-chip-pct {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--fc-ink);
  font-variant-numeric: tabular-nums;
}

/* The meter: track in the faint source tint, fill in the saturated source hue. An empty fill (0%) leaves
   the bare track, so a covered-but-empty field reads apart from a populated one. */
.fc .fc-meter {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--fc-hue-soft);
}
.fc .fc-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--fc-hue);
}
/* Source only: no live measure, so a dashed rule in the source hue rather than a filled track. */
.fc .fc-meter-none {
  background: transparent;
  border-radius: 0;
  border-bottom: 2px dashed color-mix(in srgb, var(--fc-hue) 55%, transparent);
  height: 8px;
}

@media (max-width: 640px) {
  .fc .fc-strip {
    display: none;
  }
  .fc .fc-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Selectable legend (opens the extracted-dictionary panel); lives in the dark band --- */
.fc .fc-legend-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 7px;
  margin: -5px -7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.fc .fc-legend-btn:disabled {
  cursor: default;
}
.fc .fc-legend-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.06);
}
.fc .fc-legend-btn.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: color-mix(in srgb, var(--fc-hue) 60%, transparent);
}
.fc .fc-legend-btn:focus-visible {
  outline: 2px solid var(--block-accent);
  outline-offset: 1px;
}
.fc .fc-legend-sampled {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fc-hue) 72%, white);
}

/* --- Extracted-dictionary panel (on the light page; uses fc tokens, not the band's block tokens) --- */
.fc .fc-extract {
  margin: 18px 0 6px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-hairline);
  border-left: 3px solid var(--fc-hue);
  border-radius: var(--fc-r-card);
  overflow: hidden;
}
.fc .fc-extract-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 18px 12px;
}
.fc .fc-extract-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fc-hue) 70%, var(--fc-ink-muted));
}
.fc .fc-extract-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
  color: var(--fc-ink);
}
.fc .fc-extract-sub {
  margin: 0;
  max-width: 74ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fc-ink-muted);
}
.fc .fc-extract-close {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--fc-hairline);
  border-radius: var(--fc-r-ctrl);
  background: none;
  color: var(--fc-ink-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fc .fc-extract-close:hover {
  color: var(--fc-ink);
  border-color: var(--fc-hue);
}
.fc .fc-extract-scroll {
  overflow-x: auto;
  padding: 0 18px 18px;
}
.fc .fc-extract-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
}
.fc .fc-extract-table th,
.fc .fc-extract-table td {
  padding: 7px 11px;
  text-align: left;
  border-bottom: 1px solid var(--fc-hairline);
  white-space: nowrap;
}
.fc .fc-extract-table thead th {
  position: sticky;
  top: 0;
  font-weight: 600;
  color: var(--fc-ink-muted);
  background: var(--fc-surface-2);
  border-bottom: 1.5px solid var(--fc-hairline);
}
.fc .fc-extract-case,
.fc .fc-extract-case-h {
  position: sticky;
  left: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fc-ink);
  background: var(--fc-surface);
}
.fc .fc-extract-case-h {
  background: var(--fc-surface-2);
}
.fc .fc-extract-cell {
  color: var(--fc-ink);
}
.fc .fc-extract-absent {
  color: var(--fc-ink-muted);
  font-style: italic;
}
.fc .fc-extract-table tbody tr:hover td,
.fc .fc-extract-table tbody tr:hover th {
  background: color-mix(in srgb, var(--fc-hue) 7%, var(--fc-surface));
}