/* Knowledge evolution page: shares the platform style; only layout for the loop,
   tables, state badges and drift bars lives here. */
.evolution .evo-loop{list-style:none;margin:18px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;counter-reset:stage}
.evolution .evo-loop li{counter-increment:stage;border:1px solid var(--platform-line);border-radius:8px;padding:14px 16px;background:#fff;position:relative}
.evolution .evo-loop li::before{content:counter(stage,decimal-leading-zero);display:block;font-size:11px;letter-spacing:.12em;color:var(--platform-muted);margin-bottom:6px}
.evolution .evo-loop h3{font-size:16px;margin:0 0 6px}.evolution .evo-loop p{margin:8px 0 0;font-size:14px;line-height:1.45;color:var(--platform-muted)}
.evolution .badge[data-state]{display:inline-block;margin:2px 4px 2px 0}
.evolution .badge[data-state=implemented],.evolution .badge[data-state=supported_by_independent_methods],.evolution .badge[data-state=measuring]{border-color:#899d36;color:#4e5a10;background:#f5f8e6}
.evolution .badge[data-state=partial],.evolution .badge[data-state=supported_single_method],.evolution .badge[data-state=measuring_index],.evolution .badge[data-state=protocol_defined]{border-color:#c9b56a;color:#6b5a12;background:#fbf7e6}
.evolution .badge[data-state=refuted_by_verified_evidence],.evolution .badge[data-state=contested]{border-color:#c98a83;color:#8a2c24;background:#fbefed}
.evolution .badge[data-state=withdrawn],.evolution .badge[data-state=not_enabled],.evolution .badge[data-state=definition_open]{color:var(--platform-muted)}
.evolution .evo-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--platform-line);border-radius:8px;margin:14px 0}
.evolution .evo-table{width:100%;border-collapse:collapse;font-size:14px;min-width:560px}
.evolution .evo-table :is(th,td){text-align:start;padding:10px 12px;border-bottom:1px solid var(--platform-line);vertical-align:top}
.evolution .evo-table th{font-weight:500;color:var(--platform-muted);font-size:12px;letter-spacing:.03em}
.evolution .evo-table td.num{font-variant-numeric:tabular-nums}
.evolution .evo-table tr:last-child td{border-bottom:0}
.evolution .evo-bar{display:block;height:6px;border-radius:3px;background:#eef0ea;margin-top:6px;overflow:hidden}.evolution .evo-bar>span{display:block;height:100%;background:var(--platform-accent)}
.evolution .evo-totals{display:flex;flex-wrap:wrap;gap:10px 26px;margin:6px 0 0;color:var(--platform-muted);font-size:14px}
.evolution .evo-totals strong{color:var(--platform-ink);font-weight:500;margin-inline-end:4px}
.evolution .evo-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:0 18px}
.evolution .statement{font-size:16px;line-height:1.5;margin:10px 0}
.evolution .evo-detail{margin-top:22px}.evolution .evo-detail:focus{outline:2px solid #52661a;outline-offset:3px}
.evolution .evo-edges{list-style:none;margin:10px 0;padding:0}.evolution .evo-edges li{border-top:1px solid var(--platform-line);padding:10px 0}
.evolution .evo-edges code,.evolution .evo-detail code{font-size:12px;overflow-wrap:anywhere}
.evolution .evo-meta{font-size:13px;color:var(--platform-muted);margin:4px 0}
.evolution .evo-numbers{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0;font-size:14px}
.evolution .evo-numbers b{font-weight:500;font-variant-numeric:tabular-nums}
@media(max-width:650px){.evolution .evo-table{font-size:13px}.evolution .evo-loop li{padding:12px 14px}}
.evolution .hypergraph-canvas{border:1px solid var(--platform-line);border-radius:8px;background:radial-gradient(circle at center,#fafcf3,#f3f5ed);min-height:180px;overflow:hidden;margin:16px 0}
.evolution .hypergraph-canvas>p{padding:32px}.evolution .hypergraph-canvas svg{display:block;width:100%;height:auto;min-height:300px;max-height:650px}
.evolution .hypergraph-node,.evolution .hyperedge-point{cursor:pointer}.evolution .hypergraph-node:focus,.evolution .hyperedge-point:focus{outline:none}.evolution .hypergraph-node:focus circle,.evolution .hypergraph-node:hover circle{stroke:#18270b;stroke-width:4}.evolution .hyperedge-point:focus path{stroke:#18270b;stroke-width:4}
.evolution .hypergraph-selection{border-inline-start:3px solid var(--platform-accent);padding:8px 16px;margin:8px 0 20px;overflow-wrap:anywhere}
.evolution .graph-import-label{margin:0;font-size:13px;max-width:250px}.evolution .graph-import-label input{max-width:100%;font-size:12px}
.evolution select[multiple]{min-height:160px}.evolution #graph-status[data-error=true]{color:#9c3528}
@media(max-width:650px){.evolution .hypergraph-canvas svg{min-height:240px}.evolution #create-hypergraph .actions{gap:10px}.evolution #create-hypergraph{padding:14px}}
.evolution .activity-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}.evolution .activity-heading h2{margin-top:0}.evolution .activity-heading .button{flex:none}
.evolution .activity-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid var(--platform-line);padding:15px 0;margin:18px 0 8px;gap:16px}.evolution .activity-counts>div{display:flex;flex-direction:column;gap:3px}.evolution .activity-counts strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}.evolution .activity-counts span{font-size:13px;color:var(--platform-muted)}
.evolution .activity-readiness{display:flex;flex-wrap:wrap;gap:8px 24px;border-inline-start:3px solid var(--platform-line);padding-inline-start:14px;margin:18px 0}.evolution .activity-readiness p{margin:0;font-size:13px}
.evolution .activity-feed{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0 0;padding:0}.evolution .activity-record{padding:16px;border:1px solid var(--platform-line);border-radius:8px;min-width:0}.evolution .activity-record h3{font-size:15px;line-height:1.45;overflow-wrap:anywhere;margin:8px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.evolution .activity-record-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:var(--platform-muted)}
.evolution .activity-evidence{border-inline-start:2px solid #708747;padding-inline-start:12px;margin-block:12px}.evolution .activity-evidence p{margin:3px 0;font-size:12px}.evolution .activity-evidence code{display:block;font-size:11px;overflow-wrap:anywhere;margin:5px 0;color:var(--platform-muted)}.evolution .activity-record>.muted{font-size:13px}.evolution .activity-record .actions{margin-bottom:0}
.evolution .activity-refresh-note{font-size:12px;margin-top:-5px}.evolution .activity-more{margin-top:16px}.evolution .activity-empty{padding:22px 0}.evolution .hypergraph-editor{margin:18px 0}.evolution details>summary{cursor:pointer}.evolution #research-activity,.evolution #research-campaigns,.evolution #create-hypergraph{scroll-margin-top:90px}
.evolution .evidence-link{stroke:#acb2a0;stroke-width:1.3;stroke-dasharray:3 3}.evolution .evidence-link[data-verified=true]{stroke:#6c853f;stroke-dasharray:none}.evolution .evidence-satellite{cursor:pointer}.evolution .evidence-satellite rect{fill:#fff;stroke:#8f967f;stroke-width:1.5}.evolution .evidence-satellite[data-verified=true] rect{fill:#8caa54;stroke:#4c6928}.evolution .evidence-satellite[data-relation=refutes] rect{fill:#d2998a;stroke:#8f4432}.evolution .evidence-satellite:focus{outline:none}.evolution .evidence-satellite:is(:hover,:focus) rect{stroke-width:3}.evolution .hypergraph-selection code{display:block;overflow-wrap:anywhere;font-size:12px;margin:5px 0}
.evolution .evidence-added rect{animation:evidence-arrived 1.6s ease-out 1}@keyframes evidence-arrived{from{stroke-width:7;stroke:#bf9f36}to{stroke-width:1.5}}
@media(max-width:700px){.evolution .activity-heading{flex-direction:column;gap:8px}.evolution .activity-feed{grid-template-columns:1fr}.evolution .activity-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.evolution .activity-heading .button{width:100%;text-align:center}.evolution .activity-record{padding:13px}}
@media(prefers-reduced-motion:reduce){.evolution .evidence-added rect{animation:none}}

/* The graph is the primary spatial workspace; all records retain their provenance. */
.evolution #create-hypergraph{padding:26px;border-color:#2b3b46;background:#0b141d;color:#dce7eb;box-shadow:0 20px 60px #0002}
.evolution #create-hypergraph .muted{color:#92a7b3}.evolution #create-hypergraph a{color:#b5d9ce}.evolution #create-hypergraph h2{color:#edf5f4}
.evolution .hypergraph-heading{display:flex;align-items:center;justify-content:space-between;gap:22px}.evolution .hypergraph-heading .eyebrow{margin:0 0 7px;color:#a6bfc5;font-size:11px;letter-spacing:.15em}.evolution .hypergraph-heading h2{margin:0;font-size:30px}.evolution .hypergraph-heading>a{font-size:13px;white-space:nowrap}
.evolution .hypergraph-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0}.evolution .hypergraph-toolbar label{display:grid;gap:6px;margin:0;font-size:12px;color:#91a7b4;min-width:180px}.evolution .hypergraph-toolbar .hypergraph-search{flex:1;min-width:200px}.evolution .hypergraph-toolbar input,.evolution .hypergraph-toolbar select{margin:0;min-height:44px;border:1px solid #30414d;background:#111e29;color:#e0ecee;border-radius:8px;font-size:14px}.evolution .hypergraph-scope{display:flex;gap:8px}
.evolution #create-hypergraph button{background:#15232d;border-color:#344650;color:#d8e8ea;border-radius:8px}.evolution #create-hypergraph button:hover{background:#203541;border-color:#819f9d}.evolution #create-hypergraph button[aria-pressed=true]{background:#273a2a;border-color:#a9bd68;color:#e7f2b8}.evolution #create-hypergraph button:disabled{opacity:.4;cursor:default}.evolution #create-hypergraph :is(input,select,textarea){color-scheme:dark}.evolution #create-hypergraph :focus-visible{outline:2px solid #c5e58b;outline-offset:3px}
.evolution .hypergraph-workspace{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;align-items:stretch}.evolution .hypergraph-stage{min-width:0;border:1px solid #293b49;border-radius:12px;background:#070f18;overflow:hidden;position:relative}.evolution .hypergraph-viewbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #223441;background:#0c1721}.evolution #graph-visible-count{margin:0;font:11px ui-monospace,monospace;color:#90a8b5}.evolution .hypergraph-camera{display:flex;flex-wrap:wrap;gap:5px}.evolution .hypergraph-camera button{min-width:32px;min-height:32px;padding:4px 8px;font-size:12px;line-height:1}
.evolution .hypergraph-canvas{border:0;border-radius:0;margin:0;background:radial-gradient(ellipse at 50% 45%,#142936 0%,#0b1824 40%,#070f18 75%);height:570px;min-height:0;overflow:hidden}.evolution .hypergraph-canvas svg{display:block;width:100%;height:100%;min-height:0;max-height:none;touch-action:none;cursor:grab;user-select:none}.evolution .hypergraph-canvas svg:active{cursor:grabbing}.evolution .hypergraph-canvas>p.hypergraph-empty{margin:0;padding:170px 30px 20px;text-align:center;color:#9ab0b9}.evolution .hypergraph-empty-link{display:block;text-align:center;font-size:14px}
.evolution .hypergraph-node,.evolution .hyperedge-point,.evolution .evidence-satellite{cursor:pointer}.evolution .hypergraph-node:is(:hover,:focus) circle{stroke:#effffd;stroke-width:3}.evolution .hyperedge-point:is(:hover,:focus) path{stroke:#eef3ba;stroke-width:3}.evolution .hypergraph-help{padding:10px 16px 0;margin:0;color:#8ca2b0;font-size:11px}.evolution .hypergraph-legend{display:flex;gap:18px;flex-wrap:wrap;padding:12px 16px;color:#9fb4bf;font-size:11px}.evolution .hypergraph-legend span{display:flex;align-items:center;gap:6px}.evolution .hypergraph-legend i{display:inline-block;width:7px;height:7px;background:#a5e6d2}.evolution .hypergraph-legend .legend-node{border-radius:100%}.evolution .hypergraph-legend .legend-hyperedge{background:#b1c774;transform:rotate(45deg)}.evolution .hypergraph-legend .legend-evidence{background:#baa9ef;border-radius:1px}
.evolution .hypergraph-selection{margin:0;border:1px solid #2b3e49;border-radius:12px;padding:20px;background:#0e1b25;font-size:13px;line-height:1.6;color:#a6bfc8;min-height:180px;max-height:700px;overflow:auto}.evolution .hypergraph-selection .statement{color:#edf5f2;font-size:16px}.evolution .hypergraph-selection .evo-meta{color:#849eac;font-size:11px;line-height:1.6}.evolution .hypergraph-selection button{width:100%;margin-top:15px}.evolution .hypergraph-selection h3{color:#d7eae6;font-size:18px;margin:0 0 16px}
.evolution .evidence-link{stroke:#9a8bbc;stroke-opacity:.42}.evolution .evidence-link[data-verified=true]{stroke:#c7dd91;stroke-opacity:.7}.evolution .evidence-satellite rect{fill:#b9a4ed;stroke:#2e263b}.evolution .evidence-satellite[data-verified=true] rect{fill:#cadd93;stroke:#60713c}.evolution .evidence-satellite[data-relation=refutes] rect{fill:#dfa397;stroke:#713e42}.evolution .hypergraph-editor{padding-top:15px;border-top:1px solid #293e48}.evolution .hypergraph-editor summary{color:#c5d9d6}
@media(max-width:1100px){.evolution .hypergraph-workspace{grid-template-columns:minmax(0,1fr)}.evolution .hypergraph-selection{max-height:240px;min-height:80px}.evolution .hypergraph-selection button{width:auto}.evolution .hypergraph-canvas{height:520px}}
@media(max-width:650px){.evolution #create-hypergraph{padding:14px}.evolution .hypergraph-heading{align-items:start;flex-direction:column;gap:12px}.evolution .hypergraph-heading h2{font-size:25px}.evolution .hypergraph-toolbar label{flex:1;min-width:145px}.evolution .hypergraph-scope{flex-wrap:wrap;width:100%}.evolution .hypergraph-scope button{flex:1;font-size:12px}.evolution .hypergraph-canvas{height:380px}.evolution .hypergraph-camera{gap:4px}.evolution .hypergraph-camera button{min-width:34px;min-height:36px}.evolution .hypergraph-help{line-height:1.6}}

/* Page-scoped dark shell: this stylesheet is loaded only by Knowledge Evolution. */
:root{--platform-accent:#c6db87;--platform-line:#2d3c47;--platform-ink:#dce7eb;--platform-muted:#9cafbb;color-scheme:dark}
body{background:#080f16;color:var(--platform-ink)}
.evolution>header h1{color:#e3edf0}.evolution .platform-nav{background:#0b151e}.evolution .platform-nav a{color:#b5c5ce}.evolution .platform-nav a[aria-current]{color:#d2e69a}
.evolution :is(.platform-card,.card,.panel),.evolution .evo-loop li{background:#101b25;border-color:var(--platform-line)}
.evolution a{color:#afd7cb}.evolution :is(input,select,textarea){background:#0b1721;border-color:#344752;color:#dfebed;color-scheme:dark}
.evolution :is(button,.button){background:#152530;border-color:#38505d;color:#dcebed}.evolution :is(button,.button):hover{background:#1b3340;border-color:#8aa9a7}
.evolution .primary{background:#bfd482;border-color:#bfd482;color:#152018}.evolution .primary:hover{background:#d1e398;border-color:#d1e398}
.evolution pre{background:#0a151e;border-color:#2d414d;color:#b8ccd2}.evolution .evo-bar{background:#20323d}
.evolution .badge[data-state=implemented],.evolution .badge[data-state=supported_by_independent_methods],.evolution .badge[data-state=measuring]{border-color:#768f4d;color:#d0e5a6;background:#233522}
.evolution .badge[data-state=partial],.evolution .badge[data-state=supported_single_method],.evolution .badge[data-state=measuring_index],.evolution .badge[data-state=protocol_defined]{border-color:#8b7849;color:#e4d194;background:#302d20}
.evolution .badge[data-state=refuted_by_verified_evidence],.evolution .badge[data-state=contested]{border-color:#945b55;color:#ecb0a9;background:#342526}
.evolution .status[data-error=true],.evolution #graph-status[data-error=true]{color:#eca9a1;border-color:#b87169}

.evolution .hypergraph-hit-area{fill-opacity:0;stroke:none!important;pointer-events:all}

.evolution .evolution-views{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border:1px solid var(--platform-line);border-radius:12px;margin:24px 0 14px}
.evolution .evolution-views a{padding:14px 10px;text-align:center;border-radius:7px;text-decoration:none;font-weight:500;color:#dbe9e6;background:#14242d}
.evolution .evolution-views a:hover{background:#203a43;color:#d9efac}.evolution .evolution-entry h2{margin-top:0;font-size:21px}.evolution .evolution-entry .actions{gap:12px 24px}.evolution .evolution-entry p{margin:8px 0 18px}
.evolution #knowledge-base,.evolution #graph-discussions,.evolution #detail,.evolution #agent-access{scroll-margin-top:90px}
.evolution .discussion-panel{border-color:#3d5360}.evolution .discussion-panel:focus{outline:2px solid #c6db87;outline-offset:3px}.evolution .discussion-panel h2{margin-top:0}.evolution .discussion-context{border-inline-start:3px solid #c6db87;padding-inline-start:16px;margin:18px 0}.evolution .discussion-context:empty{display:none}
.evolution .discussion-list{list-style:none;padding:0;margin:20px 0;display:grid;gap:12px}.evolution .discussion-message{border:1px solid var(--platform-line);padding:18px;border-radius:8px;min-width:0;background:#0c1720}.evolution .discussion-meta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;font-size:12px;color:var(--platform-muted)}.evolution .discussion-meta strong{color:#d6e7df}.evolution .discussion-meta time{margin-inline-start:auto}.evolution .discussion-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.evolution .discussion-message .actions{margin-bottom:0;font-size:12px}.evolution .discussion-message .actions button{padding:6px 12px;font-size:12px}.evolution .discussion-empty{padding:16px 0}
.evolution .discussion-form{border-top:1px solid var(--platform-line);padding-top:20px}.evolution .discussion-consent{display:flex;align-items:flex-start;gap:10px}.evolution .discussion-consent input{width:auto;flex:none;margin:4px 0}.evolution .discussion-reply{display:flex;gap:12px;align-items:center;overflow-wrap:anywhere;font-size:12px}.evolution .discussion-reply:empty{display:none}.evolution .discussion-panel [data-error=true]{color:#eca9a1}.evolution .discussion-panel [aria-pressed=true]{border-color:#c6db87;color:#d8edab}
@media(max-width:650px){.evolution .evolution-views{grid-template-columns:repeat(2,minmax(0,1fr))}.evolution .evolution-entry .primary{width:100%;text-align:center}.evolution .discussion-message{padding:13px}.evolution .discussion-meta time{margin-inline-start:0;width:100%}.evolution .discussion-reply{flex-wrap:wrap}}

.evolution .research-path{list-style:none;padding:0;margin:24px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.evolution .research-path li{min-width:0}.evolution .research-path a{display:grid;grid-template-columns:28px 1fr;gap:7px 10px;min-height:104px;height:100%;padding:16px;border:1px solid #31444e;border-radius:9px;text-decoration:none;background:#0b1720;box-sizing:border-box}
.evolution .research-path a:hover{background:#172d36;border-color:#9cb27b}.evolution .research-path span{grid-row:1/3;font:12px ui-monospace,monospace;color:#9bb28b;padding-top:3px}.evolution .research-path strong{color:#deebe8;font-size:15px;font-weight:500}.evolution .research-path small{color:#a6b7c0;font-size:12px;line-height:1.5}
.evolution .research-context{padding:20px;margin:22px 0;border:1px solid #42594f;border-radius:10px;background:#101f24}.evolution .research-context h3{margin-top:0}.evolution .research-provenance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.evolution .research-provenance>div{display:flex;flex-direction:column-reverse;gap:6px}.evolution .research-provenance dt{font-size:12px;line-height:1.5;color:#aabcc3}.evolution .research-provenance dd{margin:0;font:28px ui-monospace,monospace;color:#d0e6a2}.evolution .research-context .muted{font-size:12px;line-height:1.6}.evolution .research-next{font-size:15px;line-height:1.6}.evolution .research-review-needed{padding:12px 14px;border-inline-start:3px solid #e6b587;color:#f0cab0;background:#302821;border-radius:4px;font-size:14px;line-height:1.6}.evolution .research-tools{padding-top:12px;border-top:1px solid #30464c}.evolution .research-tools :is(a,button){font-size:12px}.evolution .evidence-modes button[aria-pressed=true]{border-color:#bdce8a;color:#def0af}.evolution .evidence-hint{font-size:13px;line-height:1.6}.evolution .research-context .actions{gap:10px}.evolution .research-context a{overflow-wrap:anywhere}
@media(max-width:780px){.evolution .research-path{grid-template-columns:repeat(2,minmax(0,1fr))}.evolution .research-provenance{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.evolution .research-path{grid-template-columns:1fr}.evolution .research-path a{min-height:76px}.evolution .research-context{padding:14px}.evolution .research-context .actions{flex-direction:column;align-items:stretch}.evolution .research-context .actions :is(a,button){text-align:center}}
