.engineering-editorial [data-ed-budget-ready='true'] > .lesson-budget-track,
.engineering-editorial [data-ed-react-ready='true'] > .lesson-sequence { display: none; }

.engineering-editorial .ed-budget-meter { margin: 30px 0 12px; }
.engineering-editorial .ed-budget-ruler { position: relative; height: 32px; font: 9px/1.5 var(--spine-mono); color: #707976; }
.engineering-editorial .ed-budget-tick { position: absolute; left: var(--ed-tick); transform: translateX(-50%); white-space: nowrap; }
.engineering-editorial .ed-budget-tick:first-child { transform: none; }
.engineering-editorial .ed-budget-tick:last-child { transform: translateX(-100%); }
.engineering-editorial .ed-budget-capacity { color: var(--ed-ink, #252b2b); font-weight: 600; }
.engineering-editorial .ed-budget-plot { height: 58px; position: relative; background: var(--ed-surface, #f4f6f5); border-top: 1px solid var(--ed-line, #d9dedb); border-bottom: 1px solid var(--ed-line, #d9dedb); }
.engineering-editorial .ed-budget-excess { position: absolute; inset: 0 0 0 66.6667%; background: color-mix(in srgb, var(--ed-rose, #e5c9c4) 26%, white); }
.engineering-editorial .ed-budget-boundary { position: absolute; left: 66.6667%; top: -10px; bottom: -7px; width: 1px; background: var(--ed-signal, #47675f); z-index: 2; }
.engineering-editorial .ed-budget-segment { position: absolute; top: 10px; bottom: 10px; border-right: 2px solid #fff; transition: width 240ms ease, left 240ms ease; }
.engineering-editorial .ed-budget-segment[data-empty='true'] { border: 0; }
.engineering-editorial .ed-budget-blue { background: var(--ed-blue, #c6dfea); }
.engineering-editorial .ed-budget-green { background: var(--ed-green, #cddbcf); }
.engineering-editorial .ed-budget-yellow { background: var(--ed-ochre, #e3d8b8); }
.engineering-editorial .ed-budget-rose { background: var(--ed-rose, #e5c9c4); }
.engineering-editorial .ed-budget-lilac { background: #dcd5e6; }
.engineering-editorial .ed-budget-gray { background: repeating-linear-gradient(135deg, #e3e7e4 0px, #e3e7e4 4px, #aeb9b2 4px, #aeb9b2 5px); }
.engineering-editorial .ed-budget-zones { display: grid; grid-template-columns: 2fr 1fr; padding-top: 14px; gap: 8px; font: 9px/1.6 var(--spine-mono); color: #747d78; }
.engineering-editorial .ed-budget-zones > span:last-child { padding-left: 4px; }
.engineering-editorial .ed-budget-meter[data-overflow='true'] .ed-budget-zones > span:last-child { color: #80554c; }

.engineering-editorial .ed-react-trace { margin-top: 28px; position: relative; }
.engineering-editorial .ed-react-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ed-line, #d9dedb); padding-bottom: 12px; font: 11px/1.5 var(--spine-mono); color: #69766f; }
.engineering-editorial .ed-react-lanes > span { padding-left: 14px; }
.engineering-editorial .ed-react-turns { list-style: none; padding: 0; margin: 0; background: linear-gradient(to right, transparent calc(33.3333% - .5px), #d9dedb80 calc(33.3333% - .5px), #d9dedb80 calc(33.3333% + .5px), transparent calc(33.3333% + .5px), transparent calc(66.6667% - .5px), #d9dedb80 calc(66.6667% - .5px), #d9dedb80 calc(66.6667% + .5px), transparent calc(66.6667% + .5px)); }
.engineering-editorial .ed-react-turn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 22px 0; }
.engineering-editorial .ed-react-turn[data-actor='user'] .ed-react-message { grid-column: 1; }
.engineering-editorial .ed-react-turn[data-actor='agent'] .ed-react-message { grid-column: 2; }
.engineering-editorial .ed-react-turn[data-actor='tool'] .ed-react-message { grid-column: 3; }
.engineering-editorial .ed-react-message { position: relative; min-width: 0; padding: 14px 18px; border-top: 2px solid var(--ed-line, #d9dedb); background: #fff; }
.engineering-editorial .ed-react-turn[data-state='current'] .ed-react-message { border-color: var(--ed-signal, #47675f); background: var(--ed-surface, #f4f6f5); }
.engineering-editorial .ed-react-turn[data-state='complete'] .ed-react-message { border-color: var(--ed-green, #cddbcf); }
.engineering-editorial .ed-react-route { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; font: 9px/1.6 var(--spine-mono); color: #63716a; }
.engineering-editorial .ed-react-status { color: #7b847f; }
.engineering-editorial .ed-react-heading { font: 500 13px/1.5 var(--spine-mono); color: var(--ed-ink, #252b2b); }
.engineering-editorial .ed-react-operation { margin-top: 12px; font-size: 11px; line-height: 1.7; color: #47554d; }
.engineering-editorial .ed-react-result { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--ed-line, #d9dedb); font-size: 11px; line-height: 1.65; color: #64746a; white-space: pre-line; }
.engineering-editorial .ed-react-result-label { display: block; margin-bottom: 5px; font: 9px/1.5 var(--spine-mono); color: #77847c; }
.engineering-editorial .ed-react-turn[data-actor='tool'] .ed-react-message { border-top-color: #c2ad80; }
.engineering-editorial .ed-react-turn[data-actor='tool'][data-state='current'] .ed-react-message { background: color-mix(in srgb, var(--ed-ochre, #e3d8b8) 30%, white); }
.engineering-editorial .ed-react-turn[data-state='upcoming'] .ed-react-message { color: #78817b; }
.engineering-editorial .ed-react-packet { position: absolute; top: -3px; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ed-signal, #47675f); pointer-events: none; }

.engineering-editorial [data-ed-pattern-ready='true'] [data-pattern-lines] path { animation: none; stroke-dasharray: none; stroke: #cbd3ce; stroke-width: 1.3; }
.engineering-editorial [data-ed-pattern-ready='true'] [data-pattern-lines] path[data-ed-edge-state='visited'] { stroke: #92a89a; stroke-width: 2; }
.engineering-editorial [data-ed-pattern-ready='true'] [data-pattern-lines] path[data-ed-edge-state='current'] { stroke: var(--ed-signal, #47675f); stroke-width: 2.4; }
.engineering-editorial .ed-graph-packets { pointer-events: none; fill: var(--ed-signal, #47675f); }
.engineering-editorial .ed-graph-traversal { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 20px; font: 11px/1.65 var(--spine-mono); color: var(--ed-signal, #47675f); }
.engineering-editorial .ed-graph-marker { display: inline-block; width: 24px; flex: 0 0 24px; height: 2px; position: relative; background: currentColor; align-self: center; }
.engineering-editorial .ed-graph-marker::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }

@media (max-width: 600px) {
    .engineering-editorial .ed-budget-ruler { font-size: 8px; }
    .engineering-editorial .ed-budget-capacity { top: -9px; max-width: 80px; white-space: normal; text-align: center; }
    .engineering-editorial .ed-budget-zones { font-size: 8px; }
    .engineering-editorial .ed-react-lanes { display: none; }
    .engineering-editorial .ed-react-turns { background: none; padding-left: 12px; border-left: 1px solid var(--ed-line, #d9dedb); }
    .engineering-editorial .ed-react-turn { display: block; padding: 12px 0; }
    .engineering-editorial .ed-react-message { padding: 14px; }
    .engineering-editorial .ed-react-route { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .engineering-editorial .ed-budget-segment { transition: none; }
    .engineering-editorial .ed-graph-packets,
    .engineering-editorial .ed-react-packet { display: none; }
}
