.engineering-editorial-v3 { --e3-visual-width:min(1400px, calc(100vw - 300px)); }
.engineering-editorial-v3 .e3-approved-visual {
    display:block;
    /* Embeds use the editorial spread, not the narrower prose column. */
    width:var(--e3-visual-width);
    max-width:none;
    position:relative;
    border:0;
    margin:28px calc((100% - var(--e3-visual-width)) / 2) 40px;
    background:transparent;
}
.engineering-editorial-v3 .e3-approved-visual.has-article-surface { border-radius:6px; box-shadow:0 12px 32px #0000001c, 0 2px 8px #0000000d; }
.engineering-editorial-v3 .e3-approved-visual[data-article-visual="terminal"] { --e3-visual-width:min(1080px, calc(100vw - 300px)); }
.engineering-editorial-v3 .ev-spread > .e3-approved-visual { grid-column:1 / -1; min-width:0; }
.engineering-editorial-v3 .ed-passage > .e3-approved-visual { grid-column:1 / -1; min-width:0; }
.engineering-editorial-v3 .e3-approved-visual:is([data-article-visual="shots"], [data-article-visual="roles"], [data-article-visual="prompt"], [data-article-visual="validation"], [data-article-visual="cot"], [data-article-visual="zero-cot"], [data-article-visual="least"]) {
    --e3-visual-width:min(940px, calc(100vw - 300px));
}
.engineering-editorial-v3 .e3-tree-pair {
    --e3-tree-width:min(1800px, calc(100vw - 300px));
    width:var(--e3-tree-width);
    margin-inline:calc((100% - var(--e3-tree-width)) / 2);
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:28px;
    align-items:start;
}
.engineering-editorial-v3 .e3-tree-pair > .e3-approved-visual { width:100%; margin-inline:0; }
@media (max-width:1250px) {
    .engineering-editorial-v3 { --e3-visual-width:calc(100vw - 64px); }
    .engineering-editorial-v3 .e3-approved-visual[data-article-visual="terminal"] { --e3-visual-width:min(1080px, calc(100vw - 64px)); }
    .engineering-editorial-v3 .e3-approved-visual:is([data-article-visual="shots"], [data-article-visual="roles"], [data-article-visual="prompt"], [data-article-visual="validation"], [data-article-visual="cot"], [data-article-visual="zero-cot"], [data-article-visual="least"]) { --e3-visual-width:min(940px, calc(100vw - 64px)); }
    .engineering-editorial-v3 .e3-tree-pair { --e3-tree-width:calc(100vw - 64px); }
}
@media (max-width:800px) {
    .engineering-editorial-v3 { --e3-visual-width:calc(100vw - 40px); }
    .engineering-editorial-v3 .e3-approved-visual[data-article-visual="terminal"] { --e3-visual-width:calc(100vw - 40px); }
    .engineering-editorial-v3 .e3-approved-visual:is([data-article-visual="shots"], [data-article-visual="roles"], [data-article-visual="prompt"], [data-article-visual="validation"], [data-article-visual="cot"], [data-article-visual="zero-cot"], [data-article-visual="least"]) { --e3-visual-width:calc(100vw - 40px); }
    .engineering-editorial-v3 .e3-tree-pair { --e3-tree-width:var(--ed-width); grid-template-columns:minmax(0, 1fr); gap:0; }
}
.e3-recursion-notes { box-sizing:border-box; max-width:740px; margin:36px auto; padding:32px; text-align:left; background:#fff; border:1px solid #e9e9e9; border-radius:4px; box-shadow:0 3px 20px #00000009; }
@media (max-width:600px) { .e3-recursion-notes { padding:24px 18px; } }
.e3-recursion-notes h4 { font-size:22px; margin:0 0 18px; }
.e3-recursion-notes p { font:400 16px/1.8 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; margin:16px 0; color:inherit; }
.e3-recursion-notes .term { font:inherit; border:0; background:none; padding:0; }
.e3-original-recursion { display:block; width:100%; border:0; background:white; margin:24px 0; }
.e3-recursion-notes .e3-recursion-credit { font-size:12px; color:#777; }
.e3-recursion-credit a { color:inherit; }
.engineering-editorial-v3 [data-demo="correction"] .spine-concept-node {
    background:#fff; border:1px solid #dedede; color:#002142;
    box-shadow:0 2px 6px #00214208; transition:border-color 180ms ease;
}
.engineering-editorial-v3 [data-demo="correction"] .spine-concept-node.has-arrived { border-color:var(--arrival-color); box-shadow:inset 0 0 0 1px var(--arrival-color), 0 2px 6px #00214208; }
.engineering-editorial-v3 [data-demo="correction"] .spine-concept-node[aria-pressed="true"] { outline:none; }
.engineering-editorial-v3 [data-demo="correction"] .spine-edge { stroke:#d8dce0; stroke-width:1.3; }
.engineering-editorial-v3 [data-demo="correction"] .correction-signal { stroke-width:2; stroke-dasharray:14 100; stroke-linecap:round; animation:none; }

.engineering-editorial-v3 [data-demo="hermes"] { color:#002142; }
.engineering-editorial-v3 [data-demo="hermes"] .spine-session-flow { position:relative; gap:18px; }
.engineering-editorial-v3 [data-demo="hermes"] .spine-session-arrow { visibility:hidden; }
.engineering-editorial-v3 [data-demo="hermes"] :is(.spine-session-event,.spine-saved-skill,.spine-session-outcome) { position:relative; background:#fff; border:1px solid #e5e5e5; border-radius:4px; color:#002142; }
.engineering-editorial-v3 [data-demo="hermes"] .spine-session-event { margin-bottom:24px; }
.engineering-editorial-v3 [data-demo="hermes"] .has-arrived { border-color:var(--arrival-color); box-shadow:inset 0 0 0 1px var(--arrival-color); }
.engineering-editorial-v3 [data-demo="hermes"] .spine-viz-title { display:table; font:400 26px/1.3 "Editorial STK",Georgia,serif; color:#333; background:#eaf6ff; padding:0 3px; }
.engineering-editorial-v3 .hermes-connectors { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.hermes-connectors path { fill:none; stroke:#e5e5e5; stroke-width:1.2; }
.hermes-connectors .hermes-beam { stroke-width:2.2; stroke-linecap:round; stroke-dasharray:14 100; }
.engineering-editorial-v3 [data-demo="evolution"] { --spine-blue:#e3f2ff; --spine-yellow:#faf4dd; --spine-green:#e7f2ec; --spine-rose:#fde9e7; --spine-gray:#f0efed; }
.engineering-editorial-v3 [data-demo="evolution"] .tone-blue { background:#e3f2ff; }
.engineering-editorial-v3 [data-demo="evolution"] .tone-yellow { background:#faf4dd; }
.engineering-editorial-v3 [data-demo="evolution"] .tone-green { background:#e7f2ec; }
.engineering-editorial-v3 [data-demo="evolution"] .spine-pane-label { color:#626c70; }
.engineering-editorial-v3 :is([data-demo="graph"] .spine-route-node, [data-lesson="patterns"] .lesson-pattern-graph button) { background:#fff; color:#002142; border:1px solid #e5e5e5; box-shadow:none; outline:none; }
.engineering-editorial-v3 :is([data-demo="graph"] .spine-route-node, [data-lesson="patterns"] .lesson-pattern-graph button).has-arrived { border-color:var(--arrival-color); box-shadow:inset 0 0 0 1px var(--arrival-color); }
.engineering-editorial-v3 :is([data-demo="graph"], [data-lesson="patterns"]) path.is-active { stroke:#e5e5e5; stroke-width:1.3; stroke-dasharray:none; animation:none; }
.engineering-editorial-v3 :is([data-demo="graph"], [data-lesson="patterns"]) path.editorial-edge-signal { fill:none; stroke-width:2.2; stroke-linecap:round; stroke-dasharray:14 100; animation:none; }
.engineering-editorial-v3 [data-demo="graph"] .spine-graph-state > .tone-blue { background:#e3f2ff; }

.engineering-editorial-v3 .dspy-source-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; width:100%; max-width:640px; margin:24px auto 32px; }
.engineering-editorial-v3 .dspy-source-pair .spine-evidence-figure { width:100%; max-width:none; margin:0; }
.engineering-editorial-v3 .dspy-source-pair img { width:100%; height:auto; display:block; }
.engineering-editorial-v3 .dspy-source-pair figcaption { font:11px/1.5 Menlo,monospace; margin-top:8px; }
.engineering-editorial-v3 .pareto-frontier-line { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.pareto-frontier-line polyline { fill:none; stroke:#91adba; stroke-width:1.5; stroke-dasharray:4 4; vector-effect:non-scaling-stroke; }
.engineering-editorial-v3 .lesson-scatter button { z-index:1; }
.engineering-editorial-v3 .pareto-axis-end { position:absolute; font:9px Menlo,monospace; color:#738080; }
.pareto-axis-end.x { right:0; bottom:-20px; }.pareto-axis-end.y { left:-35px; top:-5px; }
@media(max-width:650px) {
    .engineering-editorial-v3 [data-demo="hermes"] .spine-session-flow { gap:24px; }
    .engineering-editorial-v3 .dspy-source-pair { gap:10px; }
}
.engineering-editorial-v3 .e3-visual-fit > iframe.e3-approved-visual {
    position:absolute; top:0; left:0; margin:0; transform-origin:top left;
}
.engineering-editorial-v3 .e3-visual-fit:has(> iframe[data-article-visual="terminal"]) { --e3-visual-width:min(1080px, calc(100vw - 300px)); }
.engineering-editorial-v3 .e3-visual-fit:has(> iframe:is([data-article-visual="shots"], [data-article-visual="roles"], [data-article-visual="prompt"], [data-article-visual="validation"], [data-article-visual="cot"], [data-article-visual="zero-cot"], [data-article-visual="least"])) { --e3-visual-width:min(940px, calc(100vw - 300px)); }
@media (max-width:1250px) {
    .engineering-editorial-v3 .e3-visual-fit:has(> iframe) { --e3-visual-width:calc(100vw - 64px) !important; }
}
@media (max-width:800px) {
    .engineering-editorial-v3 .e3-visual-fit:has(> iframe) { --e3-visual-width:calc(100vw - 40px) !important; }
}
.engineering-editorial-v3 .e3-visual-fit:has(> iframe[data-article-visual="loop-cycle"]) { --e3-visual-width:min(1000px, calc(100vw - 64px)); }
.engineering-editorial-v3 .e3-editorial-plot { width:min(1000px,calc(100vw - 64px)); max-width:none; margin:40px 0; position:relative; left:50%; transform:translateX(-50%); padding:0; background:none; border:0; }
.engineering-editorial-v3 .e3-editorial-plot .e3-visual-fit { --e3-visual-width:100%; width:100% !important; max-width:100%; left:0; transform:none; margin:16px 0 0; }
.engineering-editorial-v3 .e3-plot-title { margin:0 0 16px; font:400 28px/1.3 "Editorial STK",Georgia,serif; color:#333; }
.engineering-editorial-v3 .e3-plot-title span { background:#eaf6ff; padding:0 3px; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.engineering-editorial-v3 .e3-plot-caption { display:block; color:#727572; font:italic 15px/1.6 Georgia,serif; min-height:48px; margin:8px 0 0; }
.engineering-editorial-v3 .e3-plot-prose blockquote { border:0; padding:0; margin:24px 0; }
.engineering-editorial-v3 .e3-plot-prose cite,.engineering-editorial-v3 .e3-plot-source { display:block; font:11px/1.6 Menlo,monospace; color:#727572; }
.engineering-editorial-v3 .e3-plot-source { margin-top:10px; }
@media (max-width:800px) {
    .engineering-editorial-v3 .e3-editorial-plot { width:calc(100vw - 40px); }
    .engineering-editorial-v3 .e3-visual-fit:has(> iframe[data-article-visual="loop-cycle"]) { --e3-visual-width:calc(100vw - 40px); }
}
