.state-progress { margin:26px 0 0; color:var(--ink); }
.sp-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:12px; }
.sp-eyebrow { display:block; margin-bottom:6px; color:#5c718b; font:500 10px/1.5 ui-monospace,SFMono-Regular,monospace; letter-spacing:.12em; text-transform:uppercase; }
.state-progress h3 { margin:0; font-size:30px; font-weight:550; line-height:1.2; letter-spacing:-.04em; }
.sp-tools { display:flex; gap:3px; padding-bottom:2px; }
.sp-tools button { width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; color:#6d8097; cursor:pointer; transition:color .2s,background .2s; }
.sp-tools button:hover { color:var(--blue); background:#e9f0f9; }
.sp-tools svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.sp-toggle [data-sp-play-icon], .sp-toggle[aria-pressed="true"] [data-sp-pause-icon] { display:none; }
.sp-toggle[aria-pressed="true"] [data-sp-play-icon] { display:block; }
.sp-grid { position:relative; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:32px; align-items:center; padding:12px 24px 10px; border-block:1px solid #c5d3e3; isolation:isolate; }
.sp-case { min-width:0; margin:0; padding:0 8px; }
.sp-case-heading { display:flex; align-items:baseline; gap:8px; margin-bottom:7px; }
.sp-number { color:#71869e; font:10px/1 ui-monospace,SFMono-Regular,monospace; }
.state-progress h4 { margin:0; font-size:16px; font-weight:550; line-height:1.4; letter-spacing:-.015em; }
.sp-art { position:relative; width:100%; max-width:420px; aspect-ratio:1116/668; margin:0 auto; }
.sp-case-detail .sp-art { max-width:372px; aspect-ratio:655/391; }
.sp-art > img, .sp-svg { display:block; width:100%; height:auto; }
.sp-art > img { position:absolute; inset:0; }
.sp-art.is-ready > img { display:none; }
.sp-svg { overflow:visible; }
.sp-case figcaption { margin:6px 0 0; color:#6c8098; text-align:center; font-size:11px; line-height:1.5; }
.sp-part { transform-box:fill-box; transform-origin:center; transition:transform .6s cubic-bezier(.18,1.2,.3,1),filter .5s,opacity .35s; outline:none; }
.sp-part.is-focused { transform:translateY(-7px) scale(1.035); filter:drop-shadow(0 8px 9px #40627b38); }
.sp-frame-23 .sp-part.is-focused { transform:translateY(-5px) scale(1.045); }
.sp-frame-23 [data-sp-part="state-i"], .sp-frame-23 [data-sp-part="neighborhood-i"] { transform-box:view-box; transform-origin:192.11px 113.344px; }
.sp-frame-23 [data-sp-part="state-j"], .sp-frame-23 [data-sp-part="neighborhood-j"] { transform-box:view-box; transform-origin:417.918px 271.71px; }
.sp-svg.has-focus .sp-part:not(.is-focused) { opacity:.78; }
.sp-part:focus-visible { outline:1.5px solid #6094b8; outline-offset:4px; }
.sp-part[data-sp-part="node"] { cursor:pointer; }
.sp-node-origin-halo { transform-box:fill-box; transform-origin:center; animation:sp-node-emission 2.4s ease-out infinite; pointer-events:none; }
.sp-bracket-laser, .sp-focus-beacon, .sp-arrow-pulse { pointer-events:none; }
.sp-link { position:absolute; z-index:2; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; opacity:.8; transition:opacity .35s; }
.sp-link-hit { fill:none; stroke:transparent; stroke-width:18; pointer-events:stroke; cursor:pointer; }
.sp-link-line { fill:none; stroke:#86a5bb; stroke-width:1.35; transition:stroke .4s,stroke-width .4s,filter .4s; }
.sp-link marker { overflow:visible; }
.sp-link marker path { fill:none; stroke:#7898b1; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; transform-box:view-box; transform-origin:7px 4.5px; transition:transform .4s,stroke .4s,stroke-width .4s; }
.sp-link-flow { fill:none; stroke:#477fac; stroke-width:1.8; stroke-linecap:round; stroke-dasharray:2 9; animation:sp-link-flow 1.3s linear infinite; transition:stroke-width .4s; }
.sp-link-source { fill:#7e9eb6; transition:r .4s; }
.sp-link-packet { opacity:0; transform-box:view-box; transform-origin:0 0; }
.sp-link-packet circle:first-child { fill:#91bccb; fill-opacity:.2; }
.sp-link-packet circle:last-child { fill:#6c9fac; stroke:var(--paper); stroke-width:1; }
.state-progress[data-sp-node-focus="true"] .sp-link { opacity:1; }
.state-progress[data-sp-node-focus="true"] .sp-case-detail h4 { color:#2a649e; }
.state-progress[data-sp-node-focus="true"] .sp-frame-26 [data-sp-part="node"] { transform:translateY(-9px) scale(1.085); filter:drop-shadow(0 9px 10px #40627b40); }
.state-progress[data-sp-node-focus="true"] .sp-frame-23 [data-sp-part="state-i"], .state-progress[data-sp-node-focus="true"] .sp-frame-23 [data-sp-part="neighborhood-i"] { transform:translateY(-7px) scale(1.085); filter:drop-shadow(0 8px 8px #40627b32); }
.state-progress[data-sp-node-focus="true"] .sp-frame-26 [data-source="2-1"] { stroke:#5f96ad; stroke-opacity:.9; }
.state-progress[data-sp-node-focus="true"] .sp-frame-23 [data-source="7"] { stroke:#477fac; stroke-opacity:1; }
.state-progress[data-sp-node-focus="true"] .sp-link-line { stroke:#578dad; stroke-width:2.2; filter:drop-shadow(0 0 3px #8bb6cd55); }
.state-progress[data-sp-node-focus="true"] .sp-link marker path { transform:scale(1.25); stroke:#578dad; stroke-width:1.8; }
.state-progress[data-sp-node-focus="true"] .sp-link-flow { stroke-width:2.8; }
.state-progress[data-sp-node-focus="true"] .sp-link-source { r:3.5px; }
.sp-retrieval { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:18px; padding:8px 8px 0; }
.sp-retrieval-copy { display:flex; align-items:center; gap:12px; min-width:0; }
.sp-retrieval-copy p { margin:0; color:#74879e; font-size:10px; line-height:1.7; }
.sp-retrieval-copy strong { color:#526b87; font-weight:400; }
.sp-formula { position:relative; display:flex; align-items:center; justify-self:center; min-height:32px; padding:0 4px 3px; color:#405b79; }
.sp-formula math { font-size:16px; }
.sp-formula::after { content:""; position:absolute; inset:auto 4px 1px; height:1px; background:linear-gradient(90deg,transparent,#91bacb 25%,#417eb0 75%,transparent); transform-origin:left center; opacity:0; animation:sp-equation-scan 5s ease-in-out infinite; pointer-events:none; }
.sp-equation-cost { animation:sp-equation-cost 5s ease-in-out infinite; }
.sp-equation-output { animation:sp-equation-output 5s ease-in-out infinite; }
.sp-paper { justify-self:end; color:#71869e; font-size:10px; }
.sp-paper:hover { color:var(--blue); }
.sp-flow { animation:sp-arrow-flow 1s linear infinite; }
.sp-flow-reverse { animation-direction:reverse; }
.sp-trajectory-flow { --sp-dash-end:-22; animation-duration:1.2s; }
.sp-connection-flow { --sp-dash-end:-48; animation-duration:1.25s; }
.sp-arrow-head { transform-box:fill-box; transform-origin:center; animation:sp-head-breathe 2s ease-in-out infinite; }
.sp-bracket-laser { fill:none; stroke:#6ab4ce; stroke-width:7; stroke-linecap:round; stroke-dasharray:17 83; filter:drop-shadow(0 0 3px #7cbdd1b3); animation:sp-laser-flow 2.8s linear infinite; animation-delay:var(--sp-delay,0s); }
.sp-focus-beacon { transform-box:fill-box; transform-origin:center; animation:sp-focus-lock 2.8s ease-in-out infinite; }
.sp-ripple { transform-box:fill-box; transform-origin:center; animation:sp-ripple 2.8s ease-out infinite; animation-delay:var(--sp-delay,0s); pointer-events:none; }
.sp-breathing-circle { transform-box:fill-box; transform-origin:center; animation:sp-circle-breathe 2.8s ease-in-out infinite; animation-delay:var(--sp-delay,0s); }
.sp-neighborhood-dash, .sp-neighborhood-orbit { animation:sp-neighborhood-dash 1.8s linear infinite; }
.sp-neighborhood-dash { stroke-opacity:.86; }
.state-progress[data-sp-intro="waiting"] .sp-art,
.state-progress[data-sp-intro="waiting"] .sp-link,
.state-progress[data-sp-intro="waiting"] .sp-retrieval { opacity:0; }
.state-progress[data-sp-intro="playing"] .sp-part { transition:none; }
.state-progress:not([data-sp-running="true"]) .sp-svg *, .state-progress:not([data-sp-running="true"]) .sp-link-flow { animation-play-state:paused; }
.state-progress[data-sp-formula-running="false"] .sp-formula::after, .state-progress[data-sp-formula-running="false"] .sp-formula * { animation-play-state:paused; }
.state-progress[data-sp-reduced="true"] .sp-svg * { animation:none!important; }
.state-progress[data-sp-reduced="true"] .sp-formula::after, .state-progress[data-sp-reduced="true"] .sp-formula * { animation:none!important; }
.state-progress[data-sp-reduced="true"] .sp-ripple { display:none; }
.state-progress[data-sp-reduced="true"] .sp-link-packet { display:none; }
.state-progress button:focus-visible, .sp-paper:focus-visible { outline:2px solid #3f7cbd; outline-offset:4px; }
@keyframes sp-arrow-flow { to { stroke-dashoffset:var(--sp-dash-end,-24); } }
@keyframes sp-link-flow { to { stroke-dashoffset:-22; } }
@keyframes sp-laser-flow { from { stroke-dashoffset:100; opacity:.1; } 22%,82% { opacity:.95; } to { stroke-dashoffset:0; opacity:.1; } }
@keyframes sp-focus-lock { 0%,100% { opacity:.2; transform:scale(1.2); } 56%,76% { opacity:.95; transform:scale(.85); } }
@keyframes sp-head-breathe { 0%,100% { opacity:.72; } 50% { opacity:1; } }
@keyframes sp-circle-breathe { 0%,100% { opacity:.8; } 50% { opacity:1; } }
@keyframes sp-ripple { 0% { opacity:0; transform:scale(.98); } 14% { opacity:.55; } 90%,100% { opacity:0; transform:scale(1.28); } }
@keyframes sp-neighborhood-dash { to { stroke-dashoffset:-12; } }
@keyframes sp-node-emission { 0%,100% { opacity:0; transform:scale(.75); } 18% { opacity:.65; } 85% { opacity:0; transform:scale(1.3); } }
@keyframes sp-equation-scan { 0%,12% { opacity:0; transform:scaleX(0); } 24% { opacity:.65; transform:scaleX(.3); } 65% { opacity:.65; transform:scaleX(1); } 78%,100% { opacity:0; transform:scaleX(1); } }
@keyframes sp-equation-cost { 0%,12%,52%,100% { color:#405b79; } 24%,38% { color:#2f6fd5; } }
@keyframes sp-equation-output { 0%,40%,84%,100% { color:#405b79; } 54%,68% { color:#2f6fd5; } }
@media(max-width:1000px) {
  .sp-grid { gap:30px; padding-inline:8px; }
  .sp-case { padding-inline:4px; }
  .sp-retrieval { gap:16px; padding-inline:4px; }
}
@media(max-width:760px) {
  .sp-grid { grid-template-columns:minmax(0,1fr); gap:22px; padding:12px 0; }
  .sp-case { padding-inline:6px; }
  .sp-art { max-width:340px; }
  .sp-case-detail .sp-art { max-width:310px; }
  .sp-retrieval { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; }
  .sp-formula { grid-column:1/-1; grid-row:2; justify-content:center; }
}
@media(max-width:600px) {
  .state-progress { margin-top:22px; }
  .state-progress h3 { font-size:26px; }
  .sp-heading { gap:10px; margin-bottom:12px; }
  .sp-heading h3 { max-width:260px; }
  .sp-eyebrow { font-size:9px; }
  .sp-tools { flex:none; }
}
@media(prefers-reduced-motion:reduce) {
  .state-progress * { animation:none!important; transition:none!important; }
  .sp-formula::after { animation:none!important; }
  .sp-ripple { display:none; }
  .sp-part.is-focused, .sp-frame-23 .sp-part.is-focused,
  .state-progress[data-sp-node-focus="true"] .sp-part.is-focused { transform:none; }
}
