/* Long-form evidence walkthrough, using the paper's figure colors. */
#idea > .opening-demo { max-width: 1440px; margin-top: 44px; }
.opening-demo { --od-teal:#008f87; --od-blue:#347fb9; --od-ochre:#b58a17; --od-border:#d8e3e8; border-radius:12px; box-shadow:0 4px 24px #19374606; }
.opening-demo button { font:inherit; cursor:pointer; }
.opening-demo button:disabled { opacity:.3; cursor:default; }
.opening-demo button:focus-visible, .opening-demo summary:focus-visible, .opening-demo pre:focus-visible { outline:2px solid #008f87; outline-offset:3px; }
.opening-demo .od-header { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:25px 28px 21px; background:#f4f9f8; }
.opening-demo .od-header h2 { font-size:30px; line-height:1.15; font-weight:650; letter-spacing:-.025em; margin:9px 0 0; color:#193746; }
.od-eyebrow { font:500 10px/1.5 'IBM Plex Mono',monospace; color:#00847d; letter-spacing:.06em; }
.od-walkthrough-badge { font:500 12px/1.4 'IBM Plex Mono',monospace; text-align:right; color:#367b81; white-space:nowrap; }
.od-walkthrough-badge > span { display:block; font:14px/1.5 'Source Sans 3',sans-serif; color:#6c8491; margin-top:4px; }
.od-task { display:flex; align-items:baseline; gap:18px; padding:17px 28px; border-block:1px solid var(--od-border); background:#fff; }
.od-task > span { font:500 10px/1.6 'IBM Plex Mono',monospace; color:#5c7d8a; white-space:nowrap; }
.od-task p { margin:0; font-size:17px; line-height:1.5; color:#294e60; }
.od-toolbar { display:flex; align-items:center; gap:17px; padding:19px 28px 10px; background:#fff; }
.od-play { display:flex; align-items:center; justify-content:center; gap:9px; min-width:103px; height:40px; padding:0 16px; background:#007f78; color:#fff; border:1px solid #007f78; border-radius:5px; font-weight:600!important; font-size:15px!important; }
.od-play svg { width:14px; height:14px; }
.od-play:hover { background:#006d66; }
.od-now { display:flex; align-items:baseline; gap:13px; min-width:0; }
#odCount { font:10px/1.5 'IBM Plex Mono',monospace; color:#6a8795; white-space:nowrap; }
#odCurrentTitle { font-size:17px; font-weight:600; line-height:1.3; color:#254c5d; }
.od-countdown { margin-left:auto; white-space:nowrap; font:11px/1.5 'IBM Plex Mono',monospace; color:#5f8290; min-width:95px; text-align:right; }
.opening-demo[data-playing=true] .od-countdown { color:#00847c; }
.od-controls { display:flex; gap:6px; margin-left:auto; }
.od-controls button { width:34px; height:34px; display:grid; place-items:center; padding:0; border:1px solid #cfdee5; background:#fff; color:#537786; border-radius:5px; font-size:12px; }
.od-controls svg { width:16px; height:16px; }
.od-controls button:hover:not(:disabled) { color:#007e75; background:#edf8f4; border-color:#97c3bc; }
.od-timeline-scroll { overflow-x:auto; overflow-y:hidden; padding:11px 41px 18px; background:#fff; scrollbar-width:thin; scrollbar-color:#bdd4d8 transparent; }
.od-timeline { position:relative; height:31px; min-width:550px; }
.od-rail { position:absolute; left:0; top:13px; right:0; height:4px; background:#e1e9ed; border-radius:5px; overflow:hidden; }
.od-progress-fill { height:100%; background:#008f87; width:0; }
.od-markers { position:absolute; inset:0; pointer-events:none; }
.od-marker { position:absolute; left:var(--position); top:0; transform:translateX(-50%); width:30px; height:30px; display:grid; place-items:center; border:0; background:transparent; padding:0; pointer-events:auto; }
.od-marker > span { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; background:white; border:1px solid #b7ccd5; color:#6c8793; font:9px/1 'IBM Plex Mono',monospace; transition:background .2s,border-color .2s,color .2s; }
.od-marker.is-complete > span { background:#e0f1ec; border-color:#98c9bd; color:#20857c; }
.od-marker.is-active > span { background:#007f78; color:#fff; border-color:#007f78; box-shadow:0 0 0 4px #e4f3ee; }
.od-marker:hover > span { border-color:#007f78; color:#007f78; background:#e8f5f0; }
.od-marker > em { display:none; }
#odScrubber { position:absolute; margin:0; inset:0; width:100%; height:30px; appearance:none; -webkit-appearance:none; background:transparent; cursor:pointer; }
#odScrubber::-webkit-slider-runnable-track { height:4px; background:transparent; }
#odScrubber::-moz-range-track { height:4px; background:transparent; }
#odScrubber::-webkit-slider-thumb { -webkit-appearance:none; width:0; height:0; border:0; opacity:0; }
#odScrubber::-moz-range-thumb { width:0; height:0; border:0; opacity:0; }
#odScrubber:focus-visible { outline:2px solid #008f87; outline-offset:4px; }
.od-main { display:grid; grid-template-columns:1.15fr 1fr; border-block:1px solid var(--od-border); }
.od-observation { padding:20px 22px 22px; min-width:0; background:#f9fbfc; }
.od-workspace { padding:20px 24px 22px; border-left:1px solid var(--od-border); min-width:0; background:#fff; }
.od-panel-head { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:12px; }
.od-panel-head h3 { margin:0; font-size:17px; font-weight:650; color:#254c5c; }
.od-panel-head > span { color:#708b99; font:9px/1.5 'IBM Plex Mono',monospace; letter-spacing:.035em; text-align:right; }
#odReplay { display:inline-flex; gap:5px; align-items:center; white-space:nowrap; padding:6px 8px; border:1px solid #cbdfe4; border-radius:5px; color:#477381; background:white; font-size:12px; }
#odReplay svg { width:13px; height:13px; }
#odReplay:hover { background:#eaf6f2; border-color:#7bb8a9; color:#007c73; }
#odPhase { color:#00847d; }
.opening-demo[data-phase=compute] #odPhase { color:#347fb9; }
.opening-demo[data-phase=act] #odPhase { color:#aa7f13; }
.od-scene { width:100%; border-radius:9px; border:1px solid #d7e5e8; background:#f1f7f8; overflow:hidden; }
.od-scene > svg { display:block; width:100%; height:auto; }
.od-insight { margin:9px 0 17px; color:#66818d; font-size:12px; line-height:1.5; min-height:36px; padding:0 3px; }
.od-evidence { padding:15px 14px 10px; border:1px solid #c9dfe7; border-radius:8px; background:#fff; }
.od-evidence-head { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:9px; }
.od-evidence-head .od-eyebrow { color:#367fa9; font-size:9px; }
.od-evidence-head h4 { margin:4px 0 0; color:#31576a; font-size:16px; line-height:1.3; font-weight:600; }
.od-evidence-head button { border:1px solid #d4e1e8; border-radius:5px; background:white; color:#568298; font-size:19px; line-height:1; width:28px; height:28px; padding:0; flex-shrink:0; }
.od-evidence-head button:hover { border-color:#5c9bb6; color:#216f91; }
.od-evidence-art { display:block; width:100%; padding:0; background:#fff; border:0; cursor:zoom-in!important; text-align:left; min-height:120px; }
.od-evidence-art svg { display:block; width:100%; height:auto; }
.od-evidence-art:hover { filter:brightness(.985); }
#odEvidenceCaption { font-size:11px; line-height:1.5; margin:8px 0 0; color:#788f9b; }
.od-intent { padding:14px 0 18px; }
.od-intent p { font-size:18px; line-height:1.5; margin:7px 0 0; min-height:54px; color:#2c4a5a; }
.od-code-card { border:1px solid #d1dfe5; border-radius:7px; background:#f7f9fb; overflow:hidden; }
.od-code-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 13px; border-bottom:1px solid #dce6eb; background:#f0f5f8; color:#6d8796; font:9px/1.5 'IBM Plex Mono',monospace; }
.od-code-head button { display:inline-flex; align-items:center; gap:5px; font:12px/1.5 'Source Sans 3',sans-serif; padding:2px 0 2px 5px; border:0; background:transparent; color:#547d91; }
.od-code-head button svg { width:13px; height:13px; }
.od-code-head button:hover { color:#00847b; }
.od-code-card pre { margin:0; padding:16px 12px 18px 4px; height:334px; overflow:auto; scrollbar-color:#bbd2dc transparent; scrollbar-width:thin; }
.od-code-card code { display:block; position:relative; isolation:isolate; color:#2a4b5d; font:12px/1.8 'IBM Plex Mono',monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.od-code-focus { position:absolute; z-index:0; pointer-events:none; left:-4px; right:0; top:0; height:0; border-left:3px solid #008f87; border-radius:0 4px 4px 0; background:linear-gradient(90deg,#d9eee7,#e8f4ee); box-shadow:inset 0 1px #008f8714,inset 0 -1px #008f8714; will-change:transform,height; }
.od-code-line { display:grid; position:relative; z-index:1; grid-template-columns:22px minmax(0,1fr); gap:10px; }
.od-code-line > span:last-child { min-width:0; }
.od-code-line { border-left:2px solid transparent; margin-left:-4px; padding-left:2px; }
.od-code-line.is-executing .od-line-number { color:#00877f; }
.od-execution { display:flex; align-items:center; gap:8px; border-top:1px solid #dae6e8; padding:9px 13px; font-size:12px; line-height:1.4; color:#4d7886; background:#f2f7f8; min-height:38px; }
.od-execution i { width:6px; height:6px; border-radius:50%; background:#b58a17; flex-shrink:0; }
.opening-demo[data-evidence-ready=true] .od-execution i { background:#008f87; }
.od-line-number { font-size:10px; color:#a0b2bd; text-align:right; user-select:none; padding-top:1px; }
.od-feedback { padding:18px 0 17px; border-bottom:1px solid #e1e9ed; }
#odFeedback { margin-top:8px; border-left:2px solid #62aaa1; padding:9px 12px; background:#f1f8f5; border-radius:0 5px 5px 0; }
#odFeedback p { font:12px/1.7 'IBM Plex Mono',monospace; color:#3f6d68; margin:0; overflow-wrap:anywhere; }
#odFeedback p + p { margin-top:4px; }
#odFeedback.is-pending { background:#f5f7f8; border-color:#c8d7de; }
#odFeedback.is-pending p { color:#5f7d89; }
#odFeedback .od-awaiting { font-family:'Source Sans 3',sans-serif; font-size:12px; color:#8298a2; }
.opening-demo[data-step="1"] #odFeedback { background:#fcf5e6; border-color:#c69e4b; }
.opening-demo[data-step="1"] #odFeedback p { color:#8b7139; }
.od-persistent { padding:14px 24px 15px; background:#f8fbfa; border-bottom:1px solid #d8e3e8; }
.od-state-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 20px; align-items:center; }
.od-state-heading > div:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
#odBindingCount { color:#6f8b95; font:11px/1.4 'IBM Plex Mono',monospace; }
.od-state-key { display:flex; gap:12px; color:#7f959d; font-size:11px; }
.od-state-key > span:before { content:''; display:inline-block; width:5px; height:5px; border-radius:50%; background:currentColor; margin-right:4px; vertical-align:middle; }
.od-state-key .is-new { color:#008f87; }.od-state-key .is-updated { color:#b58a17; }.od-state-key .is-reused { color:#347fb9; }
.od-state-explanation { color:#738b95; margin:5px 0 12px; font-size:12px; line-height:1.5; }
#odMemory { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
#odMemory code { border:1px solid #d5e4e9; background:#f5f9fa; color:#51798b; border-radius:4px; padding:3px 7px; font:10px/1.5 'IBM Plex Mono',monospace; }
#odMemory code.is-new { color:#00786f; background:#e1f3eb; border-color:#7ebaaa; }
#odMemory code.is-updated { color:#977314; background:#fbf4e2; border-color:#d5bc7a; }
#odMemory code.is-reused { color:#3476a0; background:#eaf3f9; border-color:#adcde1; }
.od-empty-state { color:#91a4ac; font-size:12px; }
.od-preloaded { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; margin:13px 0 0; color:#8b9da5; font-size:10px; line-height:1.6; }
.od-preloaded > span { margin-right:3px; }
.od-preloaded code { font:9px/1.5 'IBM Plex Mono',monospace; color:#79939e; }
.od-setup { margin-top:17px; color:#738d9b; font-size:12px; line-height:1.6; }
.od-setup summary { cursor:pointer; width:fit-content; color:#648595; }
.od-setup p { margin:10px 0 0; max-height:200px; overflow:auto; white-space:pre-line; }
.opening-demo .od-footer { display:flex; gap:20px; align-items:center; justify-content:space-between; min-height:0; margin:0; padding:14px 24px; background:#f7fafb; color:#7b909b; font-size:12px; line-height:1.6; }
.od-footer a { white-space:nowrap; color:#00847d!important; font-size:13px; }
.od-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
#odEvidenceDialog { width:900px; max-width:calc(100vw - 32px); padding:0; border:1px solid #b9d1dc; border-radius:10px; background:#fff; color:#193746; max-height:90vh; overflow:auto; }
#odEvidenceDialog::backdrop { background:#19374655; backdrop-filter:blur(3px); }
#odEvidenceDialog header { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:18px 22px; background:#f4f8fa; border-bottom:1px solid #dce7ec; }
#odEvidenceDialog header strong { font-size:20px; font-weight:600; }
#odEvidenceDialog header button { display:grid; place-items:center; padding:6px; border:1px solid #cbdfe6; border-radius:4px; background:white; color:#527b8f; }
#odEvidenceDialog header svg { width:18px; height:18px; }
#odDialogArt { padding:25px; }
#odDialogArt svg { display:block; width:100%; height:auto; }
#odDialogCaption { margin:0; padding:0 25px 25px; color:#758e9b; font-size:14px; }
@media(max-width:1100px){
  .opening-demo .od-header h2 { font-size:27px; }
  .od-now { display:block; }
  #odCount { display:block; margin-bottom:3px; }
  .od-toolbar { gap:13px; }
  .od-main { grid-template-columns:1.05fr 1fr; }
  .od-observation { padding:18px; }
  .od-workspace { padding:18px; }
  .od-code-card code { font-size:11px; }
  .od-code-card pre { height:330px; }
  .od-task p { font-size:16px; }
  .od-intent p { font-size:17px; }
}
@media(max-width:760px){
  .opening-demo .od-header { padding:21px 18px; gap:15px; align-items:flex-start; }
  .opening-demo .od-header h2 { font-size:26px; max-width:350px; }
  .od-walkthrough-badge { font-size:10px; padding-top:4px; }
  .od-walkthrough-badge > span { display:none; }
  .od-task { display:block; padding:15px 18px; }
  .od-task p { margin-top:5px; font-size:15px; }
  .od-toolbar { display:grid; grid-template-columns:auto 1fr; padding:16px 18px 8px; gap:13px 10px; }
  .od-play { grid-column:1; grid-row:1; width:103px; }
  .od-controls { grid-column:2; grid-row:1; justify-content:flex-end; }
  .od-now { grid-column:1/-1; grid-row:2; display:flex; gap:9px; align-items:baseline; padding-right:0; }
  #odCount { margin:0; }
  #odCurrentTitle { font-size:15px; }
  .od-countdown { grid-column:1/-1; grid-row:3; text-align:left; margin:0; font-size:10px; }
  .od-timeline-scroll { padding:9px 30px 16px; }
  .od-main { grid-template-columns:1fr; }
  .od-workspace { border-left:0; border-top:1px solid #d8e3e8; padding:19px; }
  .od-observation { padding:19px; }
  .od-panel-head h3 { font-size:16px; }
  .od-persistent { padding:18px; }
  .od-state-heading > div:first-child { gap:7px; }
  .od-panel-head > span { font-size:8px; }
  .od-insight { min-height:0; }
  .od-code-card code { font-size:11px; }
  .od-code-card pre { height:auto; max-height:390px; min-height:220px; }
  .od-intent p { min-height:0; }
  .opening-demo .od-footer { display:block; padding:15px 19px; }
  .od-footer a { display:block; margin:7px 0 0; }
  #odEvidenceDialog header { padding:14px; }
  #odEvidenceDialog header strong { font-size:17px; }
  #odDialogArt { padding:12px; }
}
@media(prefers-reduced-motion:reduce){.opening-demo *, .opening-demo *::before, .opening-demo *::after { animation:none!important; transition:none!important; }}
