In this section
- Test Compact Parquet Companies test · companies / tests/test_202608281337_compact_parquet_companies.py lines 701–946
- Pipeline energy-data · cosmic / tools/explore/lab/pipeline.py lines 1–145
- Pilot Renewable Energy Planning Database (REPD) energy-data · cosmic / tools/explore/theme/pilot-repd.css lines 1–27
Test Compact Parquet Companies
A test in the tests folder that uses SHA-256. It writes basic zip (`write_basic_zip`) and writes full tiny candidate (`write_full_tiny_candidate`).
testcompanies / tests/test_202608281337_compact_parquet_companies.py · lines 701–946 of 946 · version 2026-08-28 13:37 (continued from section 733) · Entry point · pattern expected_readback (shared by 2 files)
- What it does
- It tests its inputs. Defines 25 functions or classes, including load, rejected, expected_schema, expected_readback, expected_contract_schema. Uses libraries __future__, importlib.util, io, json, shutil. Side effects: reads or writes files; uses storage (browser storage, DuckDB or Parquet).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- In: Parquet file tampered.parquet; Parquet file million-key-only-edges.parquet; CSV file BasicCompanyData-fixture.csv; Parquet file companies-v1.parquet; Parquet file linked.parquet; DuckDB queries. Out: JSON file projects.json; JSON file selected-companies.json.
- Downstream impact
- Used directly by 2 files: Compact Parquet Companies Candidate (companies); Compact Parquet Companies Candidate Workflow (companies).
- What it achieves
- Deterministic contracts for the relationship/report-only Companies successor. It writes `BasicCompanyData-fixture.csv`.
- Why it matters
- Run by Compact Parquet Companies Candidate and Compact Parquet Companies Candidate Workflow.
- Application
- companies · tests · test
- Uses
- __future__, importlib.util, io, json, shutil, tempfile, zipfile, contextlib
- Used by
- run by Compact Parquet Companies Candidate (workflow run), run by Compact Parquet Companies Candidate Workflow (workflow run)
- Produces
- load, rejected, expected_schema, expected_readback, expected_contract_schema, tiny_records, project_map, tree_bytes, doctor_fixture, test_relationship_report_contract_and_doctor_fail_closed, assert_dataset_contract, test_two_deterministic_relationship_parquets_and_solar_exact_subset
- Defines here
- test_verify_full_tiny_report_manifest_with_pinned_count_override, main
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- companies@1371da4d0166eef13f98fc3847c5bb1e38e8f571 tests/test_202608281337_compact_parquet_companies.py:701-946 · blob e3a199c307c2c2b34a0b9b20af2f75e67563a0cf · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem, storage · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: unknown
solar_count = audit["datasets"]["solar_company_repd_relationships"]["rows"]
distinct_companies = len({record["company_number"] for record in records})
selection = {
"basic_company_rows_scanned": len(records) + 1,
"selected_companies": len(records),
"assets_gte_10m_companies": len(records),
"energy_relevant_large_companies": len(records),
"probable_project_spvs": 0,
"companies_with_repd_candidates": distinct_companies,
"candidate_relationship_rows": relationship_count,
"btm_tag_counts": {"INDUSTRIAL_SIC_B_TO_E": len(records)},
}
report = {
"schema": "companies-house-cross-repository-relationship-report-v1",
"generation": COMPACT.GENERATION,
"resume_generation": COMPACT.RESUME_GENERATION,
"generated_at": COMPACT.FIXED_GENERATED_AT,
"deployment_state": "not-authorised",
"status": "PASS",
"basic_company_rows_scanned": selection["basic_company_rows_scanned"],
"companies_selected": len(records),
"companies_with_repd_candidates": distinct_companies,
"company_repd_candidates": relationship_count,
"solar_company_repd_relationships": solar_count,
"selection_summary": selection,
"durable_output": {
"primary_product": "CROSS_REPOSITORY_RELATIONSHIP_REPORT",
"bridge_columns_per_table": 3,
"company_master_files": 0,
"company_master_rows": 0,
"descriptive_edge_columns": 0,
"embedded_relationship_json_fields": 0,
"per_row_digest_columns": 0,
"raw_company_files": 0,
"relationship_tables": [
COMPACT.RELATIONSHIP_PARQUET.as_posix(),
COMPACT.SOLAR_PARQUET.as_posix(),
],
"row_level_provenance_columns": 0,
},
"datasets": audit["datasets"],
}
(output / COMPACT.REPORT_PATH).write_text(COMPACT.pretty_json(report), encoding="utf-8")
rest_evidence = COMPACT.LEGACY.load_rest_evidence(sources["rest"])
accounts_records = sum(
1
for line in sources["accounts"].read_text(encoding="utf-8").splitlines()
if line.strip()
)
manifest = {
"schema": "companies-house-relationship-report-candidate-v1",
"generation": COMPACT.GENERATION,
"resume_generation": COMPACT.RESUME_GENERATION,
"generated_at": COMPACT.FIXED_GENERATED_AT,
"source_commit": source_commit,
"supersedes_failed_run_id": COMPACT.SUPERSEDED_FAILED_RUN_ID,
"deployment_state": "not-authorised",
"promotion_eligible": False,
"coverage": COMPACT.BASE.COVERAGE,
"threshold_gbp": 10_000_000,
"financial_currency": "GBP",
"basic_company_rows_scanned": selection["basic_company_rows_scanned"],
"companies_selected": len(records),
"companies_with_repd_candidates": distinct_companies,
"company_repd_candidates": relationship_count,
"solar_company_repd_relationships": solar_count,
"privacy": COMPACT.BASE.PRIVACY,
"usage_context": "NON_COMMERCIAL_OPEN_SOURCE",
"source_licences": COMPACT.ENGINE.MATERIALISED_SOURCES,
"source_rights_are_distinct_from_usage_context": True,
"filing_truth_caveat": COMPACT.FILING_TRUTH_CAVEAT,
"relationship_truth_caveat": COMPACT.RELATIONSHIP_TRUTH_CAVEAT,
"publication": COMPACT.PUBLICATION,
"inputs": {
"acquisition_run_id": COMPACT.EXPECTED_ACQUISITION_RUN_ID,
"acquisition_source_commit": COMPACT.EXPECTED_ACQUISITION_SOURCE_COMMIT,
"retained_artifacts": COMPACT.RETAINED_ARTIFACTS,
"source_parent_commit": COMPACT.EXPECTED_MAIN_PARENT_COMMIT,
"companies_base_commit": COMPACT.BASE.BASE_COMMIT,
"pipelinenews_commit": COMPACT.EXPECTED_PIPELINENEWS_COMMIT,
"download_plan_sha256": COMPACT.BASE.EXPECTED_PLAN_SHA256,
"basic_archive_sha256": COMPACT.digest(sources["basic_archive"]),
"basic_validation_sha256": COMPACT.digest(sources["basic_report"]),
"accounts_latest_sha256": COMPACT.digest(sources["accounts"]),
"accounts_latest_records": accounts_records,
"repd": sources["repd_manifest"],
"repd_runtime_read": {
"repository": "Ventusltd/pipelinenews",
"commit": COMPACT.EXPECTED_PIPELINENEWS_COMMIT,
"path": "data/projects",
"mode": "read-only sparse checkout",
"foreign_repository_files_committed": False,
"foreign_data_materialised": True,
},
"optional_rest": {
"enabled": rest_evidence["enabled"],
"status": rest_evidence["status"],
"evidence_sha256": COMPACT.BASE.EXPECTED_REST_EVIDENCE_SHA256,
},
"news": {"included": False, "identity_policy": "annotation-only"},
},
"datasets": audit["datasets"],
"report": COMPACT.receipt(output / COMPACT.REPORT_PATH, output),
"evidence": evidence,
"audit": COMPACT.receipt(output / COMPACT.AUDIT_PATH, output),
"output_policy": {
"canonical_relationship_format": "PARQUET",
"aggregate_report_format": "JSON",
"duckdb_version": COMPACT.DUCKDB_VERSION,
"relationship_tables": 2,
"bridge_columns_per_table": 3,
"company_master_files": 0,
"company_master_rows": 0,
"descriptive_edge_columns": 0,
"embedded_relationship_json_fields": 0,
"logical_json_cartridges": 0,
"per_row_digest_columns": 0,
"raw_company_json_files": 0,
"raw_archives": 0,
"row_level_provenance_columns": 0,
"duplicate_corpus_builds": 0,
"maximum_file_bytes": COMPACT.MAXIMUM_FILE_BYTES,
"maximum_candidate_total_bytes": COMPACT.MAXIMUM_TOTAL_BYTES,
"exact_file_closure_enforced": True,
},
}
assert set(manifest) == COMPACT.MANIFEST_KEYS
assert set(manifest["inputs"]) == COMPACT.INPUT_KEYS
(output / COMPACT.MANIFEST_PATH).write_text(
COMPACT.pretty_json(manifest), encoding="utf-8"
)
return manifest
def test_verify_full_tiny_report_manifest_with_pinned_count_override() -> None:
records = tiny_records()
source_commit = "d" * 40
with tempfile.TemporaryDirectory(prefix="companies-relationship-verify-") as temporary:
root = Path(temporary)
with pinned_fixture_sources(root) as sources, expected_company_count(len(records)):
candidate = root / "candidate"
manifest = write_full_tiny_candidate(candidate, records, source_commit, sources)
result = COMPACT.verify(candidate, source_commit, sources["repd"])
assert result["status"] == "PASS"
assert result["basic_company_rows_scanned"] == 3
assert result["companies_selected"] == 2
assert result["companies_with_repd_candidates"] == 2
assert result["company_repd_candidates"] == 2
assert result["solar_company_repd_relationships"] == 1
assert result["candidate_files"] == 15
assert 0 < result["candidate_bytes"] < COMPACT.MAXIMUM_TOTAL_BYTES
assert len(manifest["evidence"]) == 10
assert manifest["output_policy"]["company_master_files"] == 0
assert manifest["output_policy"]["company_master_rows"] == 0
assert manifest["output_policy"]["bridge_columns_per_table"] == 3
assert manifest["output_policy"]["descriptive_edge_columns"] == 0
assert manifest["output_policy"]["embedded_relationship_json_fields"] == 0
assert manifest["output_policy"]["per_row_digest_columns"] == 0
assert manifest["output_policy"]["row_level_provenance_columns"] == 0
assert not (candidate / "companies-v1.parquet").exists()
report = json.loads((candidate / COMPACT.REPORT_PATH).read_text(encoding="utf-8"))
assert report["durable_output"] == {
"primary_product": "CROSS_REPOSITORY_RELATIONSHIP_REPORT",
"bridge_columns_per_table": 3,
"company_master_files": 0,
"company_master_rows": 0,
"descriptive_edge_columns": 0,
"embedded_relationship_json_fields": 0,
"per_row_digest_columns": 0,
"raw_company_files": 0,
"relationship_tables": [
COMPACT.RELATIONSHIP_PARQUET.as_posix(),
COMPACT.SOLAR_PARQUET.as_posix(),
],
"row_level_provenance_columns": 0,
}
assert (candidate / COMPACT.AUDIT_PATH).is_file()
original_manifest = (candidate / COMPACT.MANIFEST_PATH).read_text(
encoding="utf-8"
)
drifted = json.loads(original_manifest)
drifted["inputs"]["pipelinenews_commit"] = "e" * 40
(candidate / COMPACT.MANIFEST_PATH).write_text(
COMPACT.pretty_json(drifted), encoding="utf-8"
)
rejected(
lambda: COMPACT.verify(candidate, source_commit, sources["repd"]),
"input provenance drifted",
)
(candidate / COMPACT.MANIFEST_PATH).write_text(
original_manifest, encoding="utf-8"
)
drifted = json.loads(original_manifest)
drifted["basic_company_rows_scanned"] += 1
(candidate / COMPACT.MANIFEST_PATH).write_text(
COMPACT.pretty_json(drifted), encoding="utf-8"
)
rejected(
lambda: COMPACT.verify(candidate, source_commit, sources["repd"]),
"aggregate selection report drifted",
)
(candidate / COMPACT.MANIFEST_PATH).write_text(
original_manifest, encoding="utf-8"
)
rejected(
lambda: COMPACT.verify(
candidate, "not-a-source-commit", sources["repd"]
),
"source commit is invalid",
)
assert COMPACT.EXPECTED_SELECTED_COMPANIES == 294_904
def main() -> None:
test_relationship_report_contract_and_doctor_fail_closed()
test_two_deterministic_relationship_parquets_and_solar_exact_subset()
test_bridge_keys_and_pinned_technology_fail_closed()
test_one_million_key_only_edges_fit_the_file_cap()
test_transient_basic_csv_scan_counts_selection_and_normalized_edges()
test_exact_closure_rejects_company_master_raw_json_and_symlinks()
test_compact_byte_policy_is_a_hard_gate()
test_verify_full_tiny_report_manifest_with_pinned_count_override()
print(
json.dumps(
{
"status": "PASS",
"generation": COMPACT.GENERATION,
"resume_generation": COMPACT.RESUME_GENERATION,
"durable_product": "CROSS_REPOSITORY_RELATIONSHIP_REPORT",
"relationship_tables": 2,
"company_master_files": 0,
"embedded_relationship_json_fields": 0,
"compression": "ZSTD",
"relationship_key": list(COMPACT.RELATIONSHIP_KEY),
"network_requests": 0,
},
sort_keys=True,
)
)
if __name__ == "__main__":
main()Pipeline
A Python module in the lab folder of Cosmic. It is built from the tarjan step (`tarjan`), the layers step (`layers`) and the run step (`run`).
energy-datacosmic / tools/explore/lab/pipeline.py · lines 1–145 of 145 · pattern layers (shared by 3 files)
- What it does
- It calculates its inputs. Defines tarjan, layers, run. Uses libraries collections.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (topic 'markets-data'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Downstream impact
- Used directly by 2 files: Explore — Lab (cosmic); Test Lab (cosmic). Reached from 4 other entry points, including Extras (cosmic); Ship (cosmic); Test Extras (cosmic).
- What it achieves
- Experiment 7: pipeline inference from structure alone (Tarjan SCC condensation + longest-path layering).
- Why it matters
- Imported by Explore — Lab. Checked by Test Lab.
- Application
- cosmic · tools/explore/lab · Python module
- Uses
- Explore — Lab (import), collections
- Used by
- imported by Explore — Lab (import), imported by Test Lab (import)
- Produces
- tarjan, layers, run
- Defines here
- tarjan, layers, run
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/lab/pipeline.py:1-145 · blob 9052e4b57d879972e14b04f7abef79ec32027031 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: transform · effects: none found · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: supporting_data
"""Experiment 7: pipeline inference from structure alone (Tarjan SCC condensation + longest-path layering)."""
from collections import Counter
from common import nmi, overlay, r4
NAME = 'pipeline'
RULES = ('lab-pipeline-v1 (load edges = all resolved kinds except comment-url and navigation link; Tarjan SCC; '
'height = longest path to a leaf, depth = longest path from a top importer in the condensation; '
'p = height / (height + depth); p >= 0.67 output, p <= 0.33 ingest, else transform; isolated unknown)')
HYPOTHESIS = ('The position of a file in the load DAG (how far it is from the leaves it uses and the pages that load '
'it) predicts the rule-based ingest -> transform -> output stage, so structure can fill stage '
'"unknown" and order the pipeline view.')
ALGORITHM = ('Directed edges importer -> imported, without comment-url (not a load) and link (navigation between '
'pages, which makes cycles that are not data flow). Strongly connected components by an iterative '
'Tarjan; the condensation is a DAG; longest paths up and down by dynamic programming in topological '
'order. Leaves (height 0) are the data end, top importers the output end. Agreement with the rule '
'stage by accuracy, NMI and a confusion table, against the majority-class baseline.')
STAGES = ['ingest', 'transform', 'output', 'unknown']
def tarjan(n, out_adj):
"""Iterative Tarjan. Returns comp id per node; components numbered in reverse topological order
(a component's successors have smaller ids)."""
index = [-1] * n
low = [0] * n
onst = [False] * n
comp = [-1] * n
st = []
idx = 0
nc = 0
for s in range(n):
if index[s] != -1:
continue
work = [(s, 0)]
index[s] = low[s] = idx
idx += 1
st.append(s)
onst[s] = True
while work:
v, pi = work[-1]
if pi < len(out_adj[v]):
work[-1] = (v, pi + 1)
w = out_adj[v][pi]
if index[w] == -1:
index[w] = low[w] = idx
idx += 1
st.append(w)
onst[w] = True
work.append((w, 0))
elif onst[w]:
low[v] = min(low[v], index[w])
else:
work.pop()
if work:
u = work[-1][0]
low[u] = min(low[u], low[v])
if low[v] == index[v]:
while True:
w = st.pop()
onst[w] = False
comp[w] = nc
if w == v:
break
nc += 1
return comp, nc
def layers(n, out_adj):
comp, nc = tarjan(n, out_adj)
succ = [set() for _ in range(nc)]
for v in range(n):
for w in out_adj[v]:
if comp[v] != comp[w]:
succ[comp[v]].add(comp[w])
height = [0] * nc
for c in range(nc): # successors have smaller ids: increasing order is bottom-up
if succ[c]:
height[c] = 1 + max(height[d] for d in succ[c])
depth = [0] * nc
for c in range(nc - 1, -1, -1): # top-down
for d in succ[c]:
depth[d] = max(depth[d], depth[c] + 1)
return comp, nc, height, depth
def run(G):
kinds = {}
out_adj = [[] for _ in range(G.n)]
seen = set()
for e in G.raw.get('edges', []):
a, b, k = int(e[0]), int(e[1]), e[2]
kinds[k] = kinds.get(k, 0) + 1
if k in ('comment-url', 'link') or a == b or (a, b) in seen:
continue
seen.add((a, b))
out_adj[a].append(b)
for l in out_adj:
l.sort()
comp, nc, height, depth = layers(G.n, out_adj)
csize = Counter(comp)
deg = [len(out_adj[i]) for i in range(G.n)]
indeg = Counter(b for l in out_adj for b in l)
inferred = []
pval = []
for i in range(G.n):
h, d = height[comp[i]], depth[comp[i]]
if deg[i] == 0 and indeg[i] == 0:
inferred.append('unknown')
pval.append(-1)
continue
p = h / (h + d) if h + d else 0.5
pval.append(int(round(100 * p)))
inferred.append('output' if p >= 0.67 else 'ingest' if p <= 0.33 else 'transform')
rule = [f.get('stage', 'unknown') for f in G.files]
linked = [i for i in range(G.n) if inferred[i] != 'unknown']
known = [i for i in linked if rule[i] != 'unknown']
acc = sum(1 for i in known if inferred[i] == rule[i]) / max(1, len(known))
maj = Counter(rule[i] for i in known).most_common(1)[0] if known else ('', 0)
conf = {r: dict(Counter(inferred[i] for i in known if rule[i] == r)) for r in STAGES[:3]}
mean_p = {r: r4(sum(pval[i] for i in linked if rule[i] == r) / max(1, sum(1 for i in linked if rule[i] == r)) / 100)
for r in STAGES}
unk_fill = Counter(inferred[i] for i in linked if rule[i] == 'unknown')
big = sorted(((s, c) for c, s in csize.items() if s > 1), reverse=True)
rep = {}
for i in range(G.n):
rep.setdefault(comp[i], i)
metrics = {
'load_edges': sum(deg), 'sccs': nc, 'cyclic_sccs': len(big), 'files_in_cycles': sum(s for s, _ in big),
'largest_cycles': [[s, G.key(rep[c])] for s, c in big[:5]],
'max_height': max(height) if height else 0, 'max_depth': max(depth) if depth else 0,
'linked_files': len(linked), 'linked_with_rule_stage': len(known),
'accuracy_vs_rule_stage': r4(acc), 'majority_baseline': [maj[0], r4(maj[1] / max(1, len(known)))],
'nmi_vs_rule_stage': r4(nmi([inferred[i] for i in known], [rule[i] for i in known])),
'confusion_rule_to_inferred': conf, 'mean_position_by_rule_stage(1=top importer, 0=leaf)': mean_p,
'rule_unknown_filled_by_structure': dict(unk_fill),
}
findings = ['cycle of %d files around %s' % (s, G.ref(rep[c])) for s, c in big[:3]]
findings.append('rule stage "unknown" with a structural layer (CANDIDATE stage): %s' % dict(unk_fill))
ov = overlay(G, NAME, RULES,
cols={'h': [height[comp[i]] for i in range(G.n)], 'd': [depth[comp[i]] for i in range(G.n)],
'p': pval, 'st': [STAGES.index(s) for s in inferred],
'scc': [comp[i] if csize[comp[i]] > 1 else -1 for i in range(G.n)]},
legend={'st': STAGES}, extra={'note': 'st is a structural CANDIDATE stage; the rule stage stays authoritative'})
return ov, metrics, findingsPilot Renewable Energy Planning Database (REPD)
A style sheet in the theme folder of Cosmic covering the REPD register.
energy-datacosmic / tools/explore/theme/pilot-repd.css · lines 1–27 of 27 · Entry point
- What it does
- Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
- Downstream impact
- Used directly by 1 file: Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html).
- What it achieves
- Pilot module W06 (TURBINE-46): REPD sites panel and card.
- Why it matters
- Loaded by the Pilot page at https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html.
- Application
- cosmic · tools/explore/theme · style sheet
- Uses
- none found
- Used by
- loaded by Pilot (stylesheet)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- cosmic@51bebf892d63a617408bc5e25b270b9f893e9c03 tools/explore/theme/pilot-repd.css:1-27 · blob f6b7264a69f24761af1e35b25fcc39421382a6c1 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: supporting_data
/* Pilot module W06 (TURBINE-46): REPD sites panel and card. Every class prefixed p-repd-. */
.p-repd-wrap { display: flex; flex-direction: column; gap: 8px; max-width: 100%; box-sizing: border-box; }
.p-repd-tog { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.p-repd-tog input { width: 22px; height: 22px; margin: 0; flex: none; }
.p-repd-state { margin: 0; font-size: 13px; opacity: .85; }
.p-repd-q { width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 12px; font: inherit; font-size: 16px;
border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45); color: inherit; }
.p-repd-chips, .p-repd-tabs, .p-repd-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.p-repd-chip, .p-repd-btn { min-height: 44px; min-width: 44px; padding: 0 12px; box-sizing: border-box; font: inherit; font-size: 14px;
border-radius: 22px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4); color: inherit; cursor: pointer;
display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.p-repd-btn[hidden], .p-repd-chip[hidden] { display: none; }
.p-repd-chip[aria-pressed="true"] { background: #ffc21a; color: #111; border-color: #ffc21a; }
.p-repd-btn:focus-visible, .p-repd-chip:focus-visible, .p-repd-row:focus-visible, .p-repd-q:focus-visible { outline: 2px solid #00ffff; outline-offset: 2px; }
.p-repd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.p-repd-row { display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; align-items: center; width: 100%; min-height: 44px;
padding: 6px 10px; box-sizing: border-box; text-align: left; font: inherit; color: inherit; cursor: pointer;
background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; }
.p-repd-dot { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; border: 1px solid rgba(0,0,0,.6); }
.p-repd-name { font-size: 14px; overflow-wrap: anywhere; }
.p-repd-meta { font-size: 12px; opacity: .75; overflow-wrap: anywhere; }
.p-repd-small { margin: 0; font-size: 12px; opacity: .75; overflow-wrap: anywhere; }
.p-repd-dl { margin: 0 0 8px; display: grid; gap: 4px; }
.p-repd-dl div { display: grid; grid-template-columns: minmax(84px, 38%) 1fr; gap: 8px; }
.p-repd-dl dt { opacity: .7; font-size: 12px; overflow-wrap: anywhere; }
.p-repd-dl dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.p-repd-acts { margin: 8px 0; }