:root{--paper:#edebe3;--card:#f8f6ef;--ink:#151814;--muted:#686b65;--line:#c9c8bf;--teal:#1f6253;--teal-soft:#dceae4;--lime:#dff36a;--rust:#a65038;--rust-soft:#f2ded6;--graphite:#17221f;font-family:Inter,Arial,system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-width:320px;margin:0;overflow-x:hidden;background:var(--paper)}button,select{font:inherit;color:inherit}button{cursor:pointer}.skip-link{position:fixed;z-index:99;top:8px;left:8px;padding:10px 13px;background:var(--ink);color:#fff;transform:translateY(-160%)}.skip-link:focus{transform:none}.eyebrow{margin:0;color:var(--teal);font:850 9px ui-monospace,monospace;letter-spacing:.14em}.memory-header{position:sticky;z-index:20;top:0;min-height:68px;padding:0 clamp(18px,3.5vw,54px);display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line);background:#edebe3ed;backdrop-filter:blur(18px)}.memory-header .nerva-logo{color:inherit;text-decoration:none}.memory-header nav{display:flex;align-self:stretch}.memory-header nav a{padding:0 14px;display:grid;place-items:center;border-bottom:2px solid transparent;color:var(--muted);font-size:10px;font-weight:750;text-decoration:none}.memory-header nav a.active{border-bottom-color:var(--teal);color:var(--ink)}.library-link{margin-left:auto;color:var(--teal);font-size:9px;font-weight:850;text-decoration:none}.library-link span{margin-left:9px}main{width:min(1540px,calc(100% - clamp(32px,7vw,110px)));margin:auto}.memory-hero{min-height:470px;padding:clamp(70px,9vw,125px) 0 64px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.65fr);align-items:end;gap:clamp(50px,9vw,150px);border-bottom:1px solid var(--ink)}.memory-hero h1{margin:18px 0 0;font-size:clamp(58px,7.5vw,112px);font-weight:470;line-height:.86;letter-spacing:-.065em}.memory-hero h1 em{color:transparent;font-style:normal;-webkit-text-stroke:1.2px var(--ink)}.hero-copy>p{margin:0;color:var(--muted);font-size:clamp(15px,1.25vw,19px);line-height:1.65}.hero-proof{margin-top:30px;display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line)}.hero-proof span{padding:15px 10px;border-right:1px solid var(--line);color:var(--muted);font-size:8px;line-height:1.35;text-transform:uppercase}.hero-proof span:last-child{border:0}.hero-proof b{display:block;margin-bottom:4px;color:var(--ink);font:500 23px Georgia,serif}.portfolio-memory{padding:55px 0 70px}.section-title{min-height:72px;display:flex;align-items:end;justify-content:space-between;gap:24px}.section-title h2{margin:8px 0 0;font-size:clamp(27px,3.2vw,47px);font-weight:520;letter-spacing:-.045em}.section-title>span{padding:8px 10px;border:1px solid var(--line);color:var(--muted);font:780 7px ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase}.memory-projects{margin-top:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.memory-project{min-width:0;padding:0;display:grid;grid-template-rows:230px auto auto;border:1px solid var(--line);background:var(--card);text-align:left;transition:.2s}.memory-project:hover,.memory-project.selected{border-color:var(--ink);transform:translateY(-3px);box-shadow:0 20px 45px #1e261f14}.memory-project.selected{box-shadow:inset 0 -4px var(--teal),0 20px 45px #1e261f14}.project-image{position:relative;overflow:hidden;background:#d9d8d0}.project-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,#10221caa)}.project-image img{width:100%;height:100%;object-fit:cover;filter:saturate(.72) contrast(1.03);transition:.4s}.memory-project:hover img{transform:scale(1.025);filter:saturate(.9)}.project-image>i,.project-image>em{position:absolute;z-index:1;bottom:14px;color:#fff;font-style:normal}.project-image>i{left:16px;font:500 32px Georgia,serif}.project-image>em{right:16px;padding:5px 7px;border:1px solid #ffffff88;font:750 7px ui-monospace,monospace;letter-spacing:.08em}.project-card-body{min-height:132px;padding:18px 18px 12px;display:block}.project-card-body small,.project-card-body b,.project-card-body>span{display:block}.project-card-body small{color:var(--teal);font:800 7px ui-monospace,monospace;text-transform:uppercase}.project-card-body b{margin-top:10px;font-size:20px;letter-spacing:-.03em}.project-card-body>span{margin-top:9px;color:var(--muted);font-size:10px;line-height:1.45}.project-card-proof{padding:13px 18px;display:grid;grid-template-columns:auto auto 1fr;align-items:end;gap:22px;border-top:1px solid var(--line)}.project-card-proof>span b,.project-card-proof>span small{display:block}.project-card-proof>span b{font-size:14px}.project-card-proof>span small{margin-top:2px;color:var(--muted);font-size:7px}.project-card-proof>i{justify-self:end;color:var(--teal);font-size:8px;font-style:normal;font-weight:850}.graph-stage{margin-bottom:70px;border:1px solid var(--ink);background:var(--card)}.graph-stage-header{min-height:170px;padding:30px;display:flex;align-items:end;justify-content:space-between;gap:35px;border-bottom:1px solid var(--ink)}.graph-stage-header h2{margin:8px 0 0;font-size:clamp(34px,4.2vw,64px);font-weight:520;letter-spacing:-.055em}.graph-stage-header>div:first-child>p:last-child{max-width:720px;margin:14px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.graph-controls{display:flex;align-items:end;gap:8px}.graph-controls label{display:grid;gap:6px;color:var(--muted);font:800 7px ui-monospace,monospace;text-transform:uppercase}.graph-controls select,.graph-controls button{min-height:42px;padding:0 13px;border:1px solid var(--line);background:#fff;font-size:9px}.graph-controls button{border-color:var(--graphite);background:var(--graphite);color:#fff;font-weight:800}.graph-controls button span{margin-left:20px;color:var(--lime)}.graph-summary{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);background:#fff}.graph-summary>div{min-width:0;padding:17px 20px;border-right:1px solid var(--line)}.graph-summary>div:last-child{border:0}.graph-summary span,.graph-summary strong,.graph-summary small{display:block}.graph-summary span{color:var(--muted);font:800 7px ui-monospace,monospace;letter-spacing:.08em}.graph-summary strong{margin:6px 0 3px;overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.graph-summary small{overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.graph-summary .warning{background:#fbf3ef}.graph-summary .warning span,.graph-summary .warning strong{color:var(--rust)}.graph-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:550px}.causal-canvas{position:relative;min-width:0;padding:24px 25px 32px;overflow:hidden;background:linear-gradient(#65746e0b 1px,transparent 1px),linear-gradient(90deg,#65746e0b 1px,transparent 1px),#f8f9f5;background-size:27px 27px}.graph-legend{display:flex;gap:17px;color:var(--muted);font-size:7px;font-weight:750;text-transform:uppercase}.graph-legend span{display:flex;align-items:center;gap:6px}.graph-legend i{width:7px;height:7px;border-radius:50%}.graph-legend .verified{background:var(--teal)}.graph-legend .gap{background:var(--rust)}.graph-legend .locked{background:var(--graphite)}.causal-graph{min-height:465px;padding:45px 0 20px;display:flex;align-items:center;overflow-x:auto;scrollbar-width:thin}.causal-step{display:flex;align-items:center;animation:arrive .45s both;animation-delay:calc(var(--step)*.08s)}.causal-node{position:relative;flex:0 0 190px;width:190px;min-height:245px;padding:14px;display:flex;flex-direction:column;border:1px solid var(--line);border-top:4px solid var(--teal);background:#fff;text-align:left;transition:.18s}.causal-node:hover,.causal-node.selected{transform:translateY(-5px);border-color:var(--teal);box-shadow:0 18px 35px #1a251f1a}.causal-step.gap .causal-node{border-top-color:var(--rust);background:#fff8f5}.causal-step.gap .causal-node:hover,.causal-step.gap .causal-node.selected{border-color:var(--rust)}.causal-step.locked .causal-node{border-top-color:var(--graphite);background:var(--graphite);color:#fff}.causal-node>span{display:flex;align-items:center;justify-content:space-between}.causal-node>span i{font:500 23px Georgia,serif;font-style:normal}.causal-node>span em{color:var(--muted);font:750 7px ui-monospace,monospace;font-style:normal}.causal-step.locked .causal-node>span em{color:#a9b8b2}.causal-node>small{margin-top:23px;color:var(--teal);font:850 7px ui-monospace,monospace;text-transform:uppercase}.causal-step.gap .causal-node>small{color:var(--rust)}.causal-step.locked .causal-node>small{color:var(--lime)}.causal-node>b{margin-top:7px;font-size:13px;line-height:1.25}.causal-node>p{margin:9px 0 17px;color:var(--muted);font-size:9px;line-height:1.55}.causal-step.locked .causal-node>p{color:#b9c5c0}.causal-node>footer{margin-top:auto;padding-top:9px;display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid var(--line)}.causal-step.locked .causal-node>footer{border-color:#ffffff24}.causal-node code{overflow:hidden;color:var(--muted);font-size:6.5px;text-overflow:ellipsis}.causal-step.locked .causal-node code{color:#a7b8b1}.causal-node footer strong{color:var(--teal);font-size:5.8px;white-space:nowrap}.causal-step.gap .causal-node footer strong{color:var(--rust)}.causal-step.locked .causal-node footer strong{color:var(--lime)}.causal-edge{flex:0 0 74px;display:grid;place-items:center;color:var(--muted)}.causal-edge span{font:750 5.8px ui-monospace,monospace;text-transform:uppercase}.causal-edge i{font-size:24px;font-style:normal;font-weight:300}.graph-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:11px;pointer-events:none}.node-inspector{padding:28px 24px;background:var(--graphite);color:#eff5f2}.node-inspector .eyebrow{color:var(--lime)}.inspector-kind{display:inline-block;margin-top:32px;padding:6px 8px;border:1px solid #ffffff33;color:#b9c9c3;font:800 7px ui-monospace,monospace;text-transform:uppercase}.node-inspector h3{margin:14px 0 11px;font-size:27px;font-weight:520;line-height:1.08;letter-spacing:-.035em}.node-inspector>p:not(.eyebrow){margin:0;color:#b5c1bd;font-size:10px;line-height:1.65}.node-inspector dl{margin:28px 0 0}.node-inspector dl div{padding:11px 0;border-top:1px solid #ffffff1c}.node-inspector dt{color:#82938d;font:800 7px ui-monospace,monospace;text-transform:uppercase}.node-inspector dd{margin:5px 0 0;overflow-wrap:anywhere;font-size:9px}.node-inspector button{width:100%;min-height:43px;margin-top:25px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border:1px solid #ffffff55;background:transparent;color:#fff;font-size:8px;font-weight:800}.node-inspector button span{color:var(--lime)}.node-inspector button:disabled{opacity:.35}.library-lineage{margin-bottom:70px;padding:35px;border:1px solid var(--line);background:var(--card)}.lineage-table-wrap{margin-top:25px;overflow:auto;border-top:1px solid var(--ink)}table{width:100%;border-collapse:collapse;min-width:860px}th{padding:10px 12px;color:var(--muted);font:800 7px ui-monospace,monospace;text-align:left;text-transform:uppercase}td{padding:15px 12px;border-top:1px solid var(--line);font-size:9px}tbody tr{cursor:pointer;transition:.15s}tbody tr:hover,tbody tr.selected{background:var(--teal-soft)}td:first-child{min-width:250px}.table-node-kind{display:block;margin-bottom:4px;color:var(--teal);font:800 6.5px ui-monospace,monospace;text-transform:uppercase}td b{font-size:10px}.row-integrity{display:inline-flex;align-items:center;gap:6px;color:var(--teal);font-size:7px;font-weight:800;text-transform:uppercase}.row-integrity i{width:6px;height:6px;border-radius:50%;background:var(--teal)}.row-integrity.referenced{color:#8b6b39}.row-integrity.referenced i{background:#c29245}.library-lineage>footer{padding-top:15px;display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);color:var(--muted);font-size:8px}.library-lineage>footer i{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:var(--teal)}.memory-lesson{margin-bottom:110px;padding:clamp(42px,6vw,80px);display:grid;grid-template-columns:220px 1fr;gap:clamp(35px,7vw,110px);background:var(--graphite);color:#fff}.memory-lesson .eyebrow{color:var(--lime)}.memory-lesson h2{margin:0;max-width:900px;font-size:clamp(38px,5vw,70px);font-weight:450;line-height:.98;letter-spacing:-.055em}.memory-lesson div p{max-width:780px;margin:28px 0 0;color:#b6c3be;font-size:12px;line-height:1.75}.notice{position:fixed;z-index:50;right:20px;bottom:20px;max-width:min(380px,calc(100% - 40px));padding:13px 15px;background:var(--graphite);color:#fff;font-size:10px;transform:translateY(160%);transition:.22s}.notice.show{transform:none}.notice.error{background:#8b3f30}@keyframes arrive{from{opacity:0;transform:translateY(12px)}}
@media(max-width:1150px){.memory-project{grid-template-rows:180px auto auto}.graph-workspace{grid-template-columns:1fr}.node-inspector{min-height:320px}.graph-summary{grid-template-columns:1fr 1fr}.graph-summary>div:nth-child(2){border-right:0}.graph-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:850px){.memory-header{gap:15px}.memory-header nav a{padding:0 8px}.memory-header nav a:first-child{display:none}.memory-hero{grid-template-columns:1fr;min-height:0;gap:42px}.memory-projects{grid-template-columns:1fr}.memory-project{grid-template-columns:180px 1fr;grid-template-rows:auto auto}.project-image{grid-row:1/3;min-height:220px}.project-card-proof{align-self:end}.graph-stage-header{display:block}.graph-controls{margin-top:25px}.memory-lesson{grid-template-columns:1fr}}
@media(max-width:620px){.memory-header{min-height:60px;padding:0 12px}.memory-header nav a{font-size:8px;padding:0 6px}.memory-header nav a:nth-child(-n+2){display:none}.library-link{font-size:0}.library-link span{font-size:15px}.nerva-logo-wordmark{display:none}main{width:calc(100% - 24px)}.memory-hero{padding:58px 0 45px}.memory-hero h1{font-size:clamp(51px,16vw,76px)}.hero-copy>p{font-size:14px}.hero-proof span{padding:12px 5px;font-size:6.5px}.hero-proof b{font-size:19px}.portfolio-memory{padding:40px 0 48px}.section-title{display:block}.section-title>span{display:inline-block;margin-top:15px}.memory-project{grid-template-columns:112px 1fr;grid-template-rows:auto auto;min-height:188px}.project-image{min-height:188px}.project-image>i{left:10px;font-size:23px}.project-image>em{right:auto;left:10px;bottom:48px}.project-card-body{min-height:112px;padding:14px}.project-card-body small{font-size:6px}.project-card-body b{font-size:16px}.project-card-proof{padding:10px 14px;gap:12px}.project-card-proof>i{display:none}.graph-stage{margin-inline:-1px}.graph-stage-header{min-height:0;padding:22px 17px}.graph-stage-header h2{font-size:38px}.graph-controls{display:grid;grid-template-columns:1fr}.graph-controls label{width:100%}.graph-controls select,.graph-controls button{width:100%}.graph-summary{grid-template-columns:1fr 1fr}.graph-summary>div{padding:13px}.graph-summary strong{font-size:12px}.graph-summary small{font-size:6.5px}.causal-canvas{padding:18px 14px 25px}.graph-legend{flex-wrap:wrap}.causal-graph{min-height:0;padding:30px 0;display:grid;overflow:visible}.causal-step{display:grid;grid-template-columns:1fr}.causal-node{width:100%;min-height:0}.causal-edge{height:58px;display:flex;flex-direction:column;justify-content:center}.causal-edge i{transform:rotate(90deg)}.node-inspector{padding:24px 18px}.library-lineage{padding:24px 16px}.lineage-table-wrap{margin-right:-16px}.library-lineage>footer{flex-direction:column}.memory-lesson{margin-bottom:70px;padding:38px 22px}.memory-lesson h2{font-size:38px}}

/* Temporal knowledge graph: the x-axis controls graph state; Sigma owns this canvas. */
.history-fallback{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.graph-workspace{grid-template-columns:minmax(0,1fr) 360px;min-height:760px}
.causal-canvas{display:grid;grid-template-rows:auto auto minmax(480px,1fr) auto;gap:0;padding:0;overflow:hidden;background:radial-gradient(circle at 50% 44%,#eff5f0 0,#f8f9f5 38%,#eef0ea 100%)}
.graph-topline{position:relative;z-index:4;min-height:52px;padding:16px 21px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #d8ddd7;background:#f8f9f5df;backdrop-filter:blur(12px)}
.graph-delta{color:var(--teal);font:850 7px ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase}
.graph-delta.critical,.frame-kicker.critical{color:#c7352c}
.temporal-callout{position:absolute;z-index:3;top:70px;left:22px;max-width:min(520px,62%);pointer-events:none}
.temporal-callout span,.temporal-callout strong{display:block}.temporal-callout span{color:var(--teal);font:850 7px ui-monospace,monospace;letter-spacing:.1em}.temporal-callout strong{margin-top:7px;color:#273630;font-size:11px;line-height:1.45}
.frame-kicker.critical+strong{color:#9f2f27}
.causal-graph{position:relative!important;min-height:550px!important;height:100%!important;padding:0!important;display:block!important;overflow:hidden!important;touch-action:none;background:transparent}
.causal-graph.oracle-alert:after{content:"RISK ENTERED PROJECT MEMORY";position:absolute;z-index:8;top:18px;right:18px;padding:8px 10px;border:1px solid #d43e32;background:#fff3ef;color:#b52f26;font:850 7px ui-monospace,monospace;letter-spacing:.11em;pointer-events:none;animation:oraclePulse .7s ease-in-out 2}
.causal-graph canvas{cursor:grab}.causal-graph canvas:active{cursor:grabbing}
.graph-empty{z-index:5}.graph-empty[hidden]{display:none}.graph-zoom{position:absolute;z-index:6;right:18px;bottom:122px;display:grid;border:1px solid #cbd2cc;background:#fff;box-shadow:0 10px 30px #1d2a2417}
.graph-zoom button{width:34px;height:34px;border:0;border-bottom:1px solid #d8ddd7;background:#fff;color:#37463f;font-size:16px}.graph-zoom button:last-child{border:0}.graph-zoom button:hover{background:var(--teal-soft)}
.temporal-axis{position:relative;z-index:5;min-height:108px;padding:17px 22px 22px;border-top:1px solid #bfc9c2;background:#f8f9f5f2;backdrop-filter:blur(12px)}
.axis-labels{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;color:var(--muted);font:850 7px ui-monospace,monospace;letter-spacing:.08em}.axis-labels strong{max-width:420px;overflow:hidden;color:var(--teal);font-size:8px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.axis-labels output{justify-self:end;color:var(--ink);font-size:10px}
.temporal-actions{margin-top:13px;display:flex;justify-content:center;gap:6px}.temporal-actions button{min-height:34px;padding:0 12px;border:1px solid #c6cec8;background:#fff;color:#415048;font:800 7px ui-monospace,monospace;letter-spacing:.04em;text-transform:uppercase}.temporal-actions button:hover:not(:disabled){border-color:var(--teal);color:var(--teal)}.temporal-actions button:disabled{cursor:default;opacity:.35}.temporal-actions #next-episode{border-color:var(--graphite);background:var(--graphite);color:#fff}.temporal-actions #jump-risk{border-color:#cf7b65;color:#9f3e2d}
.temporal-axis input[type=range]{position:relative;z-index:4;width:100%;height:24px;margin:12px 0 0;appearance:none;background:transparent;cursor:ew-resize}
.temporal-axis input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(90deg,var(--teal),#bbc5be)}
.temporal-axis input[type=range]::-webkit-slider-thumb{width:18px;height:18px;margin-top:-8px;appearance:none;border:4px solid #fff;border-radius:50%;background:var(--teal);box-shadow:0 0 0 1px var(--teal),0 3px 12px #18332a33}
.temporal-axis input[type=range]::-moz-range-track{height:2px;background:#bbc5be}.temporal-axis input[type=range]::-moz-range-progress{height:2px;background:var(--teal)}.temporal-axis input[type=range]::-moz-range-thumb{width:12px;height:12px;border:4px solid #fff;border-radius:50%;background:var(--teal)}
.timeline-ticks{position:relative;height:30px;margin:0 8px}.timeline-ticks button{position:absolute;left:calc(var(--tick)/var(--total)*100%);top:0;width:1px;height:26px;padding:0;border:0;background:transparent;color:#809087;font:750 6px ui-monospace,monospace;transform:translateX(-50%)}.timeline-ticks button i{display:block;width:1px;height:6px;background:#aebbb4}.timeline-ticks button span{position:absolute;top:10px;left:50%;white-space:nowrap;transform:translateX(-50%)}.timeline-ticks button.active i{height:10px;background:var(--teal)}.timeline-ticks button.active span{color:var(--teal)}
.inspector-handle{display:none}.node-inspector{min-height:760px}.node-inspector h3{font-size:30px}.graph-summary .warning{background:#f8eae4}.graph-summary .warning strong{letter-spacing:.03em}

@media (max-width: 960px){.graph-workspace{grid-template-columns:1fr}.node-inspector{min-height:0}.causal-canvas{min-height:700px}.causal-graph{min-height:525px!important}}
@media (max-width: 700px){body{padding-bottom:92px}.graph-stage-header{display:grid}.graph-controls{width:100%;grid-template-columns:1fr 1fr}.graph-controls label,.graph-controls button{width:100%}.graph-workspace{min-height:0}.causal-canvas{min-height:680px;grid-template-rows:auto auto minmax(400px,1fr) auto}.causal-graph{min-height:410px!important}.graph-topline{align-items:flex-start}.graph-delta{max-width:130px;text-align:right}.temporal-callout{top:82px;left:15px;max-width:74%}.temporal-callout strong{font-size:9px}.graph-zoom{right:11px;bottom:205px}.temporal-axis{padding:14px 12px 18px}.axis-labels{grid-template-columns:1fr auto}.axis-labels strong{grid-column:1/-1;grid-row:2;text-align:left}.axis-labels output{grid-column:2;grid-row:1}.temporal-actions{position:sticky;bottom:0;z-index:8;display:grid;grid-template-columns:1fr 1fr}.temporal-actions button{min-height:44px;padding-inline:7px}.timeline-ticks button span{display:none}.node-inspector{position:fixed;z-index:40;right:0;bottom:0;left:0;min-height:0;max-height:78dvh;padding:0 20px 28px;overflow-y:auto;border-top:1px solid #ffffff44;box-shadow:0 -20px 55px #07100dcc;transform:translateY(calc(100% - 96px));transition:transform .28s ease}.node-inspector.open{transform:translateY(38%)}.node-inspector.open.expanded{transform:translateY(0)}.inspector-handle{position:sticky;z-index:2;top:0;width:100%;min-height:56px;padding:0;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid #ffffff22;background:var(--graphite);color:#d9e5df;font:800 8px ui-monospace,monospace;letter-spacing:.09em;text-transform:uppercase}.inspector-handle:before{content:"";position:absolute;top:7px;left:calc(50% - 22px);width:44px;height:3px;border-radius:3px;background:#ffffff55}.inspector-handle i{color:var(--lime);font-style:normal}.node-inspector>.eyebrow{margin-top:18px}}
@media (max-height: 520px) and (orientation: landscape){.causal-canvas{min-height:500px;grid-template-rows:auto auto 350px auto}.causal-graph{min-height:350px!important}}
@media (prefers-reduced-motion: reduce){.causal-graph canvas{scroll-behavior:auto}.temporal-axis input[type=range]::-webkit-slider-thumb{box-shadow:0 0 0 1px var(--teal)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.graph-empty-card{grid-column:1/-1;margin:0;padding:70px 30px;border:1px dashed var(--line);color:var(--muted);text-align:center}.package-memory-table{margin-top:25px;overflow:auto;border:1px solid var(--line);background:#fff}.package-memory-table table{min-width:1050px}.package-memory-table tbody tr{cursor:default}.package-memory-table td:first-child{min-width:190px}.lineage-subhead{margin-top:38px;padding-top:22px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--ink)}.lineage-subhead>span{color:var(--muted);font:800 7px ui-monospace,monospace;text-transform:uppercase}@media(max-width:620px){.lineage-subhead{display:block}.lineage-subhead>span{display:block;margin-top:8px}}
@media (max-width: 700px){body{overflow-x: hidden}}@media (max-height: 520px) and (orientation: landscape){body{overflow-x: hidden}}@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto!important}}
.timeline-ticks button.risk i{width:3px;height:12px;background:#d43e32}.timeline-ticks button.risk span{color:#a92f27;font-weight:900}.timeline-ticks button.risk.active i{height:18px;box-shadow:0 0 0 5px #d43e3222}
.timeline-ticks button.episode-start i{width:2px;height:9px;background:#71877d}
@keyframes oraclePulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.035)}}
@media (prefers-reduced-motion: reduce){.causal-graph.oracle-alert:after{animation:none}}

/* Completed Memory Builder archive groups. */
.archive-program-heading{grid-column:1/-1;margin-top:4px;padding:15px 0 12px;display:flex;align-items:end;justify-content:space-between;gap:24px;border-top:1px solid var(--ink);border-bottom:1px solid var(--line)}
.archive-program-heading.active{margin-top:32px}
.archive-program-heading div small,.archive-program-heading div b{display:block}.archive-program-heading div small{color:var(--teal);font:850 7px ui-monospace,monospace;letter-spacing:.1em}.archive-program-heading div b{margin-top:5px;font:500 21px Georgia,serif}.archive-program-heading>span{max-width:560px;color:var(--muted);font-size:9px;line-height:1.5;text-align:right}
@media(max-width:620px){.archive-program-heading{display:block}.archive-program-heading>span{display:block;margin-top:8px;text-align:left}}

/* Project orientation: calendar months form the x-axis and phases form stable branches. */
.memory-view-switch{display:flex}.memory-view-switch button{border-color:var(--line);background:#fff;color:var(--muted)}.memory-view-switch button+button{margin-left:-1px}.memory-view-switch button[aria-pressed=true]{position:relative;border-color:var(--graphite);background:var(--graphite);color:#fff}.graph-controls select:disabled{opacity:.45}.phase-overview[hidden],.causal-graph[hidden],.graph-zoom[hidden]{display:none!important}
.phase-overview{position:relative;min-width:0;min-height:550px;overflow:hidden;background:linear-gradient(180deg,#f8f9f5 0,#f2f5f0 100%)}
.phase-map-summary{min-height:118px;padding:68px 22px 14px 58%;display:grid;grid-template-columns:auto 1fr;align-content:end;gap:4px 15px;border-bottom:1px solid #d8ddd7;color:var(--muted);font:800 7px ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase}.phase-map-summary span{color:var(--teal)}.phase-map-summary b{color:var(--ink);font-size:8px}.phase-map-summary em{grid-column:1/-1;font-style:normal;font-weight:600;letter-spacing:0;text-transform:none}
.phase-map-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-color:#80958c #dde3de;scrollbar-width:thin}.phase-map{--phase-label:190px;width:max(100%,calc(var(--phase-label) + var(--months)*74px));min-width:calc(var(--phase-label) + var(--months)*74px);display:grid;grid-template-columns:var(--phase-label) repeat(var(--months),minmax(74px,1fr));grid-auto-rows:minmax(68px,auto);align-items:stretch}
.phase-map-corner,.phase-lane-label{position:sticky;z-index:7;left:0;padding:0 14px;display:flex;align-items:center;background:#eef2ed;border-right:1px solid #bfcac3}.phase-map-corner{z-index:9;display:grid;align-content:center;border-bottom:1px solid #bfcac3;color:var(--teal);font:850 7px ui-monospace,monospace;letter-spacing:.08em}.phase-map-corner b{margin-top:4px;color:var(--muted);font-size:6px}.phase-month-heading{padding:12px 4px 8px;display:grid;place-content:center;border-right:1px solid #dde3de;border-bottom:1px solid #cbd4ce;color:#6d7c75;text-align:center}.phase-month-heading b{font:500 15px Georgia,serif}.phase-month-heading span{margin-top:2px;font:750 6px ui-monospace,monospace}.phase-month-heading.current{background:#e4eee9;color:var(--teal)}
.phase-lane-label{gap:8px;border-bottom:1px solid #d2dad4}.phase-lane-label:after{content:"";position:absolute;right:-13px;width:13px;height:1px;background:#71887e}.phase-lane-label>i{width:9px;height:9px;flex:0 0 auto;border:2px solid #eef2ed;border-radius:50%;background:var(--teal);box-shadow:0 0 0 1px var(--teal)}.phase-lane-label>span{color:#87958e;font:750 6px ui-monospace,monospace}.phase-lane-label>b{overflow:hidden;font-size:9px;line-height:1.2;text-overflow:ellipsis}.phase-month-cell{position:relative;min-width:74px;padding:14px 5px;display:flex;align-items:center;justify-content:center;align-content:center;flex-wrap:wrap;gap:5px;border-right:1px solid #e1e6e2;border-bottom:1px solid #d8dfda}.phase-month-cell.on-branch:before{content:"";position:absolute;z-index:0;right:0;left:0;top:50%;height:1px;background:#71887e}.phase-month-cell.current-month{background:#dceae455}
.phase-episode{position:relative;z-index:2;width:19px;height:19px;padding:0;display:grid;place-items:center;border:3px solid #f4f6f2;border-radius:50%;background:var(--teal);box-shadow:0 0 0 1px #2a6759;color:#fff}.phase-episode:before{content:"";position:absolute;z-index:-1;top:calc(50% + 8px);left:50%;width:1px;height:12px;background:#71887e}.phase-episode i{width:5px;height:5px;border-radius:50%;background:#eaff9a}.phase-episode b{position:absolute;top:-8px;right:-8px;min-width:14px;height:14px;padding:0 3px;display:grid;place-items:center;border-radius:8px;background:var(--graphite);color:#fff;font:800 6px ui-monospace,monospace}.phase-episode.risk{width:23px;height:23px;background:#d43e32;box-shadow:0 0 0 1px #a62f27}.phase-episode.risk i{background:#fff}.phase-episode.current{box-shadow:0 0 0 2px #f4f6f2,0 0 0 4px var(--lime)}.phase-episode:after{content:attr(data-label);position:absolute;z-index:20;bottom:calc(100% + 9px);left:50%;width:max-content;max-width:220px;padding:7px 8px;border:1px solid #22332c;background:var(--graphite);color:#fff;font:700 7px ui-monospace,monospace;line-height:1.35;text-align:left;transform:translate(-50%,5px);opacity:0;pointer-events:none;transition:.15s}.phase-episode:hover:after,.phase-episode:focus-visible:after{transform:translate(-50%,0);opacity:1}
@media(max-width:960px){.phase-map-summary{padding-left:48%}}
@media(max-width:700px){.memory-view-switch{grid-column:1/-1}.memory-view-switch button{width:50%!important}.phase-overview{min-height:480px}.phase-map-summary{min-height:126px;padding:76px 12px 10px;display:block}.phase-map-summary b,.phase-map-summary em{display:block;margin-top:4px}.phase-map{--phase-label:132px;width:max(100%,calc(var(--phase-label) + var(--months)*62px));min-width:calc(var(--phase-label) + var(--months)*62px);grid-template-columns:var(--phase-label) repeat(var(--months),minmax(62px,1fr));grid-auto-rows:minmax(62px,auto)}.phase-lane-label{padding-inline:8px;gap:5px}.phase-lane-label>b{font-size:7px}.phase-month-cell{min-width:62px;padding-inline:3px}.phase-episode:after{display:none}}

/* Fitted project-vision network: no horizontal matrix or disappearing context. */
.phase-overview{min-height:550px;overflow:hidden;background:#f4f6f2}.phase-network-summary{min-height:78px;padding:50px 22px 10px;display:grid;grid-template-columns:auto 1fr;align-content:end;gap:4px 18px;border-bottom:1px solid #d5ddd7;color:var(--muted);font:800 7px ui-monospace,monospace;letter-spacing:.05em;text-transform:uppercase}.phase-network-summary span{color:var(--teal)}.phase-network-summary b{color:var(--ink);font-size:9px}.phase-network-summary em{grid-column:1/-1;font-style:normal;font-weight:600;letter-spacing:0;text-transform:none}.phase-memory-network{width:100%;height:auto;display:block;overflow:visible;background:#f7f8f4}.phase-band{fill:#f7f8f4}.phase-band.alternate{fill:#edf2ee}.month-grid{stroke:#cbd5ce;stroke-width:1;vector-effect:non-scaling-stroke}.month-grid.selected{stroke:#1f6253;stroke-width:2}.month-label{fill:#68776f;font:700 9px ui-monospace,monospace}.month-label.selected{fill:#1f6253;font-weight:900}.phase-spine{stroke:#244f44;stroke-width:3;vector-effect:non-scaling-stroke}.phase-branch{stroke:#6d887d;stroke-width:2;vector-effect:non-scaling-stroke}.phase-anchor{fill:#1f6253;stroke:#f7f8f4;stroke-width:3;vector-effect:non-scaling-stroke}.phase-label{fill:#26362f;font:700 10px Inter,Arial,sans-serif}.phase-number{fill:#1f6253;font:850 7px ui-monospace,monospace}.episode-thread{fill:none;stroke:#40806f;stroke-width:2;stroke-opacity:.68;vector-effect:non-scaling-stroke}.episode-thread.risk{stroke:#d43e32;stroke-width:3}.causal-impact{fill:none;stroke:#9d4c38;stroke-width:2.5;stroke-opacity:.78;vector-effect:non-scaling-stroke}.causal-impact.missing{stroke:#d43e32;stroke-dasharray:5 4}.episode-moment{cursor:pointer}.episode-halo{fill:#f7f8f4;stroke:#2d6a5a;stroke-width:1.5;vector-effect:non-scaling-stroke}.episode-node{fill:#276c5b;stroke:#f7f8f4;stroke-width:2;vector-effect:non-scaling-stroke}.episode-moment.risk .episode-halo{fill:#f8e3dd;stroke:#c4362c}.episode-moment.risk .episode-node{fill:#d43e32}.episode-moment.current .episode-halo{fill:#dff36a;stroke:#17221f;stroke-width:2.5}.episode-count{fill:#fff;font:850 7px ui-monospace,monospace;pointer-events:none}.episode-caption{fill:#303f38;font:750 8px Inter,Arial,sans-serif;paint-order:stroke;stroke:#f7f8f4;stroke-width:4;stroke-linejoin:round;pointer-events:none}.episode-moment.risk .episode-caption{fill:#a52e27}.episode-moment:focus{outline:none}.episode-moment:focus .episode-halo{stroke:#17221f;stroke-width:3}.episode-moment:hover .episode-node{fill:#dff36a;stroke:#17221f}.episode-moment.risk:hover .episode-node{fill:#ff6a58}.episode-moment:hover .episode-caption{font-weight:900}
@media(min-width:701px){.node-inspector{position:sticky;top:68px;align-self:start;min-height:min(760px,calc(100vh - 68px));max-height:calc(100vh - 68px);overflow-y:auto}}
@media(max-width:700px){.phase-overview{min-height:440px}.phase-network-summary{min-height:92px;padding:56px 12px 9px;display:block}.phase-network-summary b,.phase-network-summary em{display:block;margin-top:4px}.phase-memory-network{min-height:420px}.month-label{font-size:8px}.phase-label{font-size:9px}.episode-caption{font-size:7px}}

/* Persistent archive doorway and a primary story action in the evidence inspector. */
#completed-project-archive{scroll-margin-top:82px}
.memory-header nav a[href="#completed-project-archive"] span{min-width:18px;margin-left:5px;padding:2px 4px;border-radius:9px;background:#dfe8e2;color:var(--teal);font:850 7px ui-monospace,monospace;text-align:center}
.node-inspector #focus-selected-story{border-color:var(--lime);background:#203b32;color:#fff}
.node-inspector #focus-selected-story:disabled{border-color:#ffffff33;background:transparent}
