/* A stateful, qualitative illustration of role reassignment and prefix reuse. */
.idea-heading.idea-decoupling { display: block; max-width: none; margin-bottom: 38px; }
.idea-decoupling h2 { font-size: clamp(34px,4.4vw,62px); line-height: 1.12; letter-spacing: -.045em; }
.idea-decouple-word { display: inline-flex; align-items: center; gap: .16em; }
.decouple-icon { display: block; width: .88em; height: .88em; flex: none; }
.idea-heading.idea-decoupling > div { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; max-width: none; margin-top: 25px; }
body.content-active #why-evolve .idea-decoupling .lead { max-width: none; margin-bottom: 0; }
.role-story { margin-bottom: 64px; }
.role-story .switch-demo { margin: 0 0 42px; padding: 0; background: #fffdfaf2; border: 1px solid #d7d2cc; border-radius: 10px; }
.switch-stage { padding: 16px; }
.switch-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.switch-demo-heading .eyebrow { font-size: 10px; line-height: 12px; margin-bottom: 4px; }
.switch-demo-heading h3 { font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -.04em; margin: 0; }
.switch-controls { display: flex; align-items: center; gap: 8px; min-width: 0; }
.switch-controls label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.switch-controls select { width: 204px; height: 36px; color: var(--fg); background: #fff; border: 1px solid #bdb7b0; border-radius: 5px; font: 14px var(--display); padding: 6px 24px 6px 9px; }
.switch-playback { display: flex; gap: 6px; }
.switch-playback .button { min-height: 36px; padding: 7px 12px; font-size: 14px; }
#switch-play { min-width: 76px; }
.switch-object-key { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 18px 0; margin-bottom: 18px; border-bottom: 1px solid #e5ddd8; }
.switch-object-key > div { display: flex; align-items: center; gap: 13px; min-width: 0; }
.switch-object-key strong { display: block; font-size: 15px; font-weight: 500; }
.switch-object-key small { display: block; font-size: 13px; line-height: 1.5; color: #776c73; margin-top: 3px; }
.object-node { display: grid; place-items: center; width: 32px; height: 35px; flex: none; border: 3px double #a29a9f; border-radius: 4px; background: #3f3c43; color: #fff; font: 13px var(--mono); }
.kv-r0 { --kv-fill: #69616d; --kv-edge: #443c49; }
.kv-r1 { --kv-fill: #d95e75; --kv-edge: #b01c38; }
.kv-r2 { --kv-fill: repeating-linear-gradient(135deg,#ece7e9 0 3px,#a39aa2 3px 5px); --kv-edge: #766c77; }
.kv-sequence { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.kv-sequence i { display: block; width: var(--block-width,13px); height: var(--block-height,17px); background: var(--kv-fill); border: 1px solid var(--kv-edge); border-radius: 2px; box-shadow: inset 0 3px 0 #ffffff24,0 2px 0 var(--kv-edge); }
.kv-sequence i.is-new { background: transparent; border-style: dashed; box-shadow: none; margin-left: 4px; }
.kv-request { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.kv-request > b { font: 10px/1.2 var(--mono); font-weight: 500; }
.object-blocks, .object-pending { display: inline-flex; flex: none; }
.object-blocks { --block-width: 10px; --block-height: 18px; }
.object-pending { --block-width: 19px; --block-height: 22px; }
.switch-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; margin-bottom: 8px; }
.switch-steps button { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 5px 6px; border: 1px solid #ded9d2; border-radius: 4px; color: #68616a; font-size: 13px; line-height: 1.3; }
.switch-steps button > span { font: 11px var(--mono); opacity: .7; }
.switch-steps button[aria-current="step"] { color: #ae2032; border-color: #ca7a85; background: #fae9eb; }
.switch-steps button[aria-current="step"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #c92336; transform-origin: left; animation: stage-progress var(--stage-duration,3200ms) linear both; }
.switch-explanation { min-height: 24px; margin-bottom: 10px; }
.switch-explanation strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.switch-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.switch-panel { border: 1px solid #d6d1cb; border-radius: 6px; padding: 10px; background: #f8f6f2; min-width: 0; }
.switch-panel.ours { border-color: #cd929b; background: #fffafa; }
.switch-panel-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 24px; }
.switch-panel-label, .switch-engine-family { display: none; }
.switch-panel-header h4 { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.switch-split { flex: none; font: 13px/1.5 var(--mono); color: #655c65; }
.switch-consequences { display: flex; gap: 6px; margin: 6px 0; }
.switch-consequence { padding: 3px 8px; border: 1px solid #d5cbc8; border-radius: 4px; background: #fffdfa; }
.switch-consequence strong { display: block; font-size: 14px; font-weight: 500; line-height: 18px; }
.switch-consequence.is-cost { color: #b2132a; background: #ffedf0; border-color: #e9b2bb; }
.switch-consequence.is-benefit { color: #41363d; }
.switch-diagram { position: relative; height: 322px; container-type: inline-size; }
.switch-compute-label { position: absolute; top: 54px; left: 0; z-index: 1; background: #f8f6f2; padding-right: 7px; color: #544a52; font: 11px/1.4 var(--mono); letter-spacing: .035em; }
.ours .switch-compute-label { background: #fffafa; }
.switch-layer-divider, .switch-node-status, .switch-request-outcome, .switch-target-label { display: none; }
.switch-node-grid { position: absolute; top: 72px; left: 0; right: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; height: 66px; }
.switch-node { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: #3f3c43; color: #fff; border: 1px solid #39363e; border-radius: 5px; transition: background .6s, color .6s, border-color .6s, opacity .6s; }
.switch-node.is-decode { background: #d9d6d2; color: #343038; border-color: #a9a39d; }
.switch-node.switch-target { outline: 2px solid #8c7b81; outline-offset: 3px; }
.ours .switch-node.switch-target { outline-color: var(--red); }
.node-id { position: absolute; top: 4px; font: 11px var(--mono); opacity: .75; }
.node-phase { font: 500 22px/24px var(--display); transform: translateY(-2px); }
.kv-mini { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); flex-direction: column; gap: 2px; --block-width: 5px; --block-height: 6px; opacity: 0; }
.kv-mini > b { font-size: 8px; white-space: nowrap; }
.kv-mini .kv-sequence { gap: 2px; }
.kv-mini .kv-sequence i.is-new { margin-left: 1px; }
.node-kv { transition: opacity .5s; }
.switch-work { position: absolute; top: 2px; left: calc(41.6667% - 71px); width: 142px; z-index: 2; text-align: center; transition: opacity .4s; }
.running-chip { --block-width: 11px; --block-height: 12px; transform-origin: left; }
.queued-pair { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.queued-token { flex: none; width: 60px; flex-direction: column; gap: 3px; --block-width: 11px; --block-height: 12px; }
.queued-token[data-reroute-to="1"] { --reroute-x: calc(-33.333cqw + 36px); }
.queued-token[data-reroute-to="2"] { --reroute-x: calc(-16.667cqw - 36px); }
.switch-next-request { position: absolute; top: 0; left: 50%; transform: translate(-50%,8px); display: flex; align-items: center; flex-direction: column; gap: 6px; white-space: nowrap; opacity: 0; transition: opacity .45s, transform .45s; z-index: 2; --block-width: 17px; --block-height: 18px; }
.switch-next-request strong { color: #2d2930; font: 500 13px var(--display); }
.switch-flows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: #65545f; pointer-events: none; }
.flow-route { fill: none; stroke: currentColor; stroke-width: 1.8; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s; }
.flow-fetch, .flow-decode { stroke-dasharray: 5 5; color: #c92336; }
.switch-memory { position: absolute; top: 164px; left: 0; right: 0; height: 112px; }
.memory-label { position: absolute; top: -20px; left: 0; right: auto; text-align: left; font: 11px/1.4 var(--mono); letter-spacing: .035em; color: #544a52; }
.memory-label small { display: none; }
.memory-node-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; height: 100%; }
.node-storage { position: relative; min-width: 0; border: 1px solid #cfc6bf; border-bottom: 3px solid #bdb0a7; border-radius: 4px; background: #f3efe9; }
.node-storage.source-kv { border-color: #a58e96; border-bottom-color: #a58e96; }
.shared-memory .node-storage { background: #fffafa; }
.shared-memory .node-storage.source-kv { border-color: #c26d80; background: #fbe9ed; }
.storage-node-label { position: absolute; top: 5px; left: 0; right: 0; text-align: center; }
.storage-node-label b { display: block; font: 500 11px/1.2 var(--mono); color: #554950; }
.storage-node-label small { display: block; margin-top: 2px; font: 7px/1.2 var(--mono); letter-spacing: .04em; color: #887a80; }
.storage-empty { position: absolute; top: 58px; left: 0; right: 0; text-align: center; color: #c4b9b8; font: 14px var(--mono); }
.stored-requests { position: absolute; top: 28px; bottom: 4px; left: 0; right: 0; display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); align-items: center; }
.stored-request { position: relative; flex-direction: column; gap: 2px; padding-bottom: 2px; color: #554750; --block-width: 9px; --block-height: 9px; }
.stored-request > b { font-size: 9px; }
.stored-request .kv-sequence { transition: opacity .5s; gap: 2px; }
.restored-cache { position: absolute; top: 51px; left: 0; right: 0; display: flex; justify-content: center; opacity: 0; }
.local-access-note, .shared-access-rail { position: absolute; top: 295px; left: 0; right: 0; text-align: center; color: #85767e; font: 10px/1.4 var(--mono); }
.shared-access-rail { color: #b2132a; }
.shared-access-rail::before { content: ''; position: absolute; top: -10px; left: 8.333%; right: 8.333%; border-top: 1px dashed #c26d80; }
.shared-memory .node-storage::after { content: ''; position: absolute; top: 100%; height: 9px; left: 50%; border-left: 1px dashed #c26d80; }
.switch-cache-status { display: flex; align-items: center; gap: 7px; border-top: 1px solid #ddd5cf; padding-top: 6px; min-height: 27px; }
.cache-dot { width: 5px; height: 5px; background: #a58d94; border-radius: 50%; flex: none; }
.ours .cache-dot { background: #c92336; }
.switch-cache-status strong { font-size: 15px; line-height: 20px; font-weight: 500; }
.switch-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: #71666d; font-size: 13px; line-height: 18px; }
.switch-legend b { font-family: var(--mono); color: #3f3740; margin-right: 4px; }
.kv-line-key { display: inline-flex; align-items: center; gap: 7px; }
.kv-line-key i { width: 22px; border-top: 2px dashed #c92336; }
.pending-key { display: inline-flex; align-items: center; gap: 6px; }
.pending-key i { display: block; width: 9px; height: 12px; border: 1px dashed #b01c38; border-radius: 1px; }
.switch-scope { margin: 0 16px; border-top: 1px solid #dfd7d0; padding: 12px 0; }
.switch-scope summary { cursor: pointer; font-size: 14px; color: #645961; }
.switch-scope > div { padding-top: 10px; }
.switch-scope p { font-size: 15px; line-height: 1.65; color: #655b63; margin: 0 0 12px; }
.switch-scope a { color: #a81e32; text-decoration: underline; text-underline-offset: 3px; }
.switch-detail-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block: 18px; }
.switch-detail-systems h4 { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.switch-detail-current > .eyebrow { font-size: 11px; color: var(--red); }

.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) .switch-target { background: #d9d6d2; color: #343038; border-color: #a9a39d; }
.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) .switch-work { opacity: 0; }
.switch-demo[data-step="1"] [data-system="baseline"] .switch-target { color: #b2132a; border: 1px dashed #c3213b; outline-color: #c3213b; background: repeating-linear-gradient(135deg,#fff0f2 0 7px,#f2d3da 7px 14px); }
.switch-demo[data-step="1"] [data-system="baseline"] .switch-target::after { content: 'WAIT'; position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font: 600 10px var(--mono); }
.switch-demo[data-step="1"] .switch-node-status { opacity: 1; }
.switch-demo[data-step="1"] [data-system="baseline"] .switch-engine { color: #b2132a; font-weight: 600; }
.switch-demo[data-step="1"] [data-system="baseline"] .switch-target-label { color: #b2132a; font-weight: 600; }
.switch-demo[data-baseline="restart"][data-step="1"] [data-system="baseline"] .switch-work { opacity: 0; }
.switch-demo[data-step="1"] .ours .flow-queue { opacity: .85; }
.switch-demo[data-step="1"] .ours .queued-token { animation: reroute-queued 2.5s ease-in-out both; }
.switch-demo[data-step="1"] .ours .reroute-received { opacity: 1; animation: receive-queued 2.5s ease-in-out both; }
.switch-demo[data-step="1"] .ours .running-chip,
.switch-demo[data-baseline="sglang"][data-step="1"] [data-system="baseline"] .running-chip { animation: finish-running 2.6s ease both; }
.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) [data-system="baseline"] .source-kv,
.switch-demo[data-baseline="restart"][data-step="1"] [data-system="baseline"] .source-kv { border-color: #cd233d; background: #fff0f2; }
.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) [data-system="baseline"] .source-kv .stored-request .kv-sequence,
.switch-demo[data-baseline="restart"][data-step="1"] [data-system="baseline"] .source-kv .stored-request .kv-sequence { opacity: .16; }
.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) [data-system="baseline"] .source-kv .storage-node-label small,
.switch-demo[data-baseline="restart"][data-step="1"] [data-system="baseline"] .source-kv .storage-node-label small { visibility: hidden; }
.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) [data-system="baseline"] .source-kv .storage-node-label::after,
.switch-demo[data-baseline="restart"][data-step="1"] [data-system="baseline"] .source-kv .storage-node-label::after { content: "LOST"; position: absolute; top: 13px; left: 0; right: 0; color: #b2132a; font: 600 8px/1.2 var(--mono); }
.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) [data-system="baseline"] .source-kv .stored-request::after,
.switch-demo[data-baseline="restart"][data-step="1"] [data-system="baseline"] .source-kv .stored-request::after { content: '×'; position: absolute; top: 10px; left: 0; right: 0; text-align: center; color: #b2132a; font: 16px/16px var(--display); }
.switch-demo:is([data-step="2"],[data-step="3"]) [data-system="baseline"] .switch-cache-status,
.switch-demo[data-baseline="restart"][data-step="1"] [data-system="baseline"] .switch-cache-status { color: #b2132a; border-top-color: #dc8c9a; }
.switch-demo:is([data-step="2"],[data-step="3"]) [data-system="baseline"] .cache-dot { background: #b2132a; }
.switch-demo:is([data-step="2"],[data-step="3"],[data-step="4"]) [data-system="baseline"] .switch-target-label { color: #b2132a; font-weight: 600; }
.switch-demo:is([data-step="3"],[data-step="4"]) .switch-next-request { opacity: 1; transform: translate(-50%,0); }
.switch-demo[data-step="3"] .switch-request-outcome { opacity: 1; }
.switch-demo[data-step="3"] [data-system="baseline"] .switch-next-request .kv-sequence i:not(.is-new) { opacity: .25; }
.switch-demo[data-step="3"] .flow-incoming,
.switch-demo[data-step="3"] .flow-fetch,
.switch-demo[data-step="4"] .flow-decode { opacity: .9; }
.switch-demo[data-step="4"] .switch-next-request { opacity: 0; }
.switch-demo[data-step="4"] .decode-request { opacity: 1; }
.switch-demo[data-step="4"] .restored-cache { opacity: 1; }
.switch-demo[data-step="4"] [data-system="baseline"] [data-storage-node="1"] .storage-empty { opacity: 0; }
.switch-demo:is([data-step="3"],[data-step="4"]) .ours .switch-node[data-node="1"] .node-kv,
.switch-demo[data-step="4"] [data-system="baseline"] .switch-node[data-node="1"] .node-kv { opacity: 1; }
.switch-demo[data-step="4"] .switch-diagram .is-new { border-style: solid; background: var(--kv-fill); box-shadow: inset 0 3px 0 #ffffff24,0 2px 0 var(--kv-edge); }
.switch-demo[data-playing="true"] .flow-route { animation: kv-flow 1s linear infinite; }
.switch-demo[data-playing="false"] *, .switch-demo[data-playing="false"] *::before, .switch-demo[data-playing="false"] *::after { animation-play-state: paused !important; }
.switch-demo[data-playing="true"][data-step="2"] .switch-target .node-phase { animation: phase-flip .65s ease both; }
.switch-demo[data-playing="true"][data-step="2"] .ours .switch-target { animation: role-confirm .85s ease both; }
.switch-demo[data-playing="true"][data-step="3"] .ours .source-kv { animation: kv-read 2.8s ease both; }
.switch-demo[data-playing="true"][data-step="3"] .ours .node-kv { animation: copy-arrives 2s ease both; }
@keyframes stage-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes phase-flip { 0% { transform: translateY(-2px) rotateX(-85deg); opacity: .3; } 100% { transform: translateY(-2px) rotateX(0); opacity: 1; } }
@keyframes role-confirm { 0%,100% { box-shadow: 0 0 0 0 #c9233600; } 45% { box-shadow: 0 0 0 5px #c9233628; } }
@keyframes kv-read { 0%,100% { box-shadow: none; } 35%,65% { box-shadow: 0 0 0 3px #c9233628; } }
@keyframes copy-arrives { 0%,40% { opacity: 0; } 75%,100% { opacity: 1; } }
@keyframes kv-flow { to { stroke-dashoffset: -20; } }
@keyframes node-changing { to { transform: rotate(360deg); } }
@keyframes finish-running { 0%,45% { opacity: 1; } 100% { opacity: .18; } }
@keyframes reroute-queued {
  0%,15% { transform: translate(0,0); opacity: 1; }
  55% { transform: translate(var(--reroute-x),-25px); opacity: 1; }
  80% { transform: translate(var(--reroute-x),22px); opacity: 1; }
  95%,100% { transform: translate(var(--reroute-x),54px); opacity: 0; }
}
@keyframes receive-queued { 0%,80% { opacity: 0; } 95%,100% { opacity: 1; } }

@media (max-width:1100px) {
  .switch-node-grid, .memory-node-grid { gap: 5px; }
  .stored-request { --block-width: 7px; --block-height: 9px; }
}
@media (max-width:760px) {
  .idea-heading.idea-decoupling { margin-bottom: 30px; }
  .idea-heading.idea-decoupling > div { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .role-story { margin-bottom: 42px; }
  .switch-stage { padding: 14px 10px; }
  .switch-demo { margin-inline: -5px; }
  .switch-demo-heading { display: block; }
  .switch-demo-heading h3 { font-size: 26px; }
  .switch-controls { margin-top: 12px; flex-wrap: wrap; }
  .switch-controls select { flex: 1 1 100%; width: 100%; }
  .switch-playback { width: 100%; }
  .switch-playback .button { flex: 1; }
  .switch-steps { gap: 4px; }
  .switch-steps button { flex-direction: column; gap: 3px; font-size: 11px; min-height: 44px; padding-inline: 3px; }
  .switch-explanation { min-height: 48px; }
  .switch-explanation strong { font-size: 16px; }
  .switch-panels { grid-template-columns: 1fr; gap: 12px; }
  .switch-panel-header h4 { font-size: 20px; }
  .switch-consequences { display: grid; grid-template-columns: 1fr 1fr; }
  .switch-consequence { padding-inline: 6px; }
  .switch-consequence strong { font-size: 13px; }
  .switch-cache-status strong { font-size: 14px; }
  .switch-legend { gap: 6px 12px; font-size: 12px; }
  .switch-object-key { grid-template-columns: 1fr; }
  .switch-object-key > div { align-items: center; }
  .switch-detail-systems { grid-template-columns: 1fr; gap: 10px; }
  .switch-scope { margin-inline: 10px; }
}
@media (max-width:380px) {
  .idea-decoupling h2 { font-size: 32px; }
  .switch-node-grid, .memory-node-grid { gap: 4px; }
  .stored-request { --block-width: 5px; --block-height: 8px; }
  .stored-request > b { font-size: 8px; }
  .storage-node-label b { font-size: 10px; }
  .switch-panel-header h4 { font-size: 18px; }
  .switch-split { font-size: 12px; }
  .switch-consequence strong { font-size: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .switch-demo *, .switch-demo *::before, .switch-demo *::after { animation: none !important; transition: none !important; }
  .switch-demo[data-step="1"] .ours .queued-pair { visibility: hidden; }
  .switch-steps button[aria-current="step"]::after { transform: scaleX(1); }
}

/* Timeline version: nine nodes switch P → D and back. Evolving Infra switches in place; the existing engine relaunches each node. */
.is-timeline .switch-diagram { margin-top: -44px; }
.is-timeline .switch-node-grid, .is-timeline .memory-node-grid { grid-template-columns: repeat(9,minmax(0,1fr)); gap: 5px; }
.is-timeline .shared-access-rail::before { left: 5.556%; right: 5.556%; }
.is-timeline .node-phase { font-size: 20px; }
.is-timeline .switch-node { overflow: hidden; }
.is-timeline .switch-node.is-restarting { background: repeating-linear-gradient(135deg,#fff0f2 0 6px,#f2d3da 6px 12px); color: #b2132a; border: 1px dashed #c3213b; }
.is-timeline .restart-bar { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; border-radius: 2px; background: #f2c9d1; opacity: 0; }
.is-timeline .restart-bar i { display: block; width: var(--p,0%); height: 100%; border-radius: 2px; background: #c3213b; }
.is-timeline .switch-node.is-restarting .restart-bar { opacity: 1; }
.is-timeline .switch-node.is-switching { z-index: 1; border-color: var(--red); box-shadow: 0 0 0 2px var(--red),0 0 14px #c9233666; }
.is-timeline .switch-node.is-switching .node-phase { animation: phase-flip .5s ease both; }
.is-timeline .stored-request { --block-width: 7px; --block-height: 8px; }
.is-timeline .stored-request > b { font-size: 8px; }
.is-timeline .stored-requests { grid-template-rows: repeat(2,minmax(0,1fr)); top: 30px; bottom: 10px; }
.is-timeline .node-storage { transition: border-color .3s, background .3s, box-shadow .3s; }
.is-timeline .node-storage .stored-request { transition: opacity .35s; }
.is-timeline .node-storage.is-wiped { border-color: #cd233d; background: #fff0f2; }
.is-timeline .node-storage.is-wiped .stored-request { opacity: .15; }
.is-timeline .node-storage.is-wiped .storage-node-label small { visibility: hidden; }
.is-timeline .node-storage.is-wiped .storage-node-label::after { content: 'LOST'; position: absolute; top: 14px; left: 0; right: 0; color: #b2132a; font: 600 7px/1.2 var(--mono); }
.is-timeline .node-storage.is-refill .stored-request { opacity: .45; }
.is-timeline .node-storage.is-kept { border-color: var(--red); box-shadow: 0 0 0 2px #c9233626; }
.is-timeline .has-outage .switch-cache-status { color: #b2132a; }
.is-timeline .has-outage .cache-dot { background: #b2132a; }
.switch-scope-note { margin: 14px 0 0; color: #6f6a70; font: 12px/1.6 var(--mono); }
.switch-scope-note a { color: var(--red); }
@media (max-width:760px) {
  .is-timeline .switch-node-grid, .is-timeline .memory-node-grid { gap: 3px; }
  .is-timeline .node-phase { font-size: 16px; }
  .is-timeline .node-id { font-size: 9px; }
  .is-timeline .stored-request { --block-width: 5px; --block-height: 7px; }
  .is-timeline .kv-sequence { gap: 1px; }
  .is-timeline .stored-request > b { font-size: 7px; }
}
.is-timeline .switch-node.is-waiting { outline: 2px dashed #c3213b; outline-offset: 2px; }

/* Measured comparison under the illustration: switch time bars to scale, lost KV reuse. */
.switch-measured { margin-top: 18px; padding: 16px 18px 18px; border: 1px solid #e3d4d8; border-radius: 10px; background: #fffafa; }
.measured-title { margin: 0 0 12px; color: var(--red); font: 600 11px/1.4 var(--mono); letter-spacing: .1em; }
.measured-title span { margin-left: 10px; color: #7a7278; font-weight: 400; letter-spacing: .02em; }
.measured-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 14px 28px; align-items: start; }
.measured-label { margin: 0 0 8px; color: #4f4952; font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.measured-row { display: grid; grid-template-columns: 104px minmax(0,1fr) 150px; align-items: center; gap: 10px; margin-top: 7px; }
.measured-name { font-size: 14px; font-weight: 500; }
.measured-row.is-ours .measured-name { color: var(--red); }
.measured-bar { position: relative; height: 14px; border-radius: 3px; background: #efe9e3; overflow: hidden; }
.measured-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 4px; border-radius: 3px; background: #8a8188; transition: width 2.6s cubic-bezier(.3,.1,.3,1) .2s; }
.is-ours .measured-bar i { background: var(--red); transition-duration: .25s; }
.has-js .switch-measured:not(.is-in) .measured-bar i { width: 0; min-width: 0; }
.measured-value { font: 12px/1.3 var(--mono); color: #6f6870; white-space: nowrap; }
.measured-value b { margin-right: 6px; color: var(--fg); font: 600 17px/1 var(--display); }
.is-ours .measured-value b { color: var(--red); }
.measured-big { margin: 0; font-size: 15px; line-height: 1.35; }
.measured-big b { display: block; color: var(--red); font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.measured-def { margin: 6px 0 0; color: #7a7278; font: 11px/1.5 var(--mono); }
@media (max-width:760px) {
  .measured-grid { grid-template-columns: minmax(0,1fr); }
  .measured-row { grid-template-columns: 104px minmax(0,1fr); }
  .measured-name { font-size: 13px; white-space: nowrap; }
  .measured-value { grid-column: 2; }
  .measured-title span { display: block; margin: 2px 0 0; }
}
