/* 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)); }