.oracle { max-width: 1050px; margin: 0 auto; padding: 16px 20px 48px; }
.oracle-heading { font-size: 1rem; text-align: center; margin-bottom: 24px; }
.oracle .oracle-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.oracle-heading h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.1; margin: 12px 0; letter-spacing: -.045em; }
.oracle-heading h1 span { color: var(--tool-primary); }
.oracle-heading p { color: var(--tool-text-muted); }

.oracle-arena { --glow: #84eee0; position: relative; isolation: isolate; background: radial-gradient(120% 60% at 50% 0, #10203d 0, #080f20 60%); color: #edf4ff; border: 1px solid #2c3d59; border-radius: 22px; padding: 24px; box-shadow: 0 18px 60px #080f2026; overflow: hidden; transition: box-shadow .4s ease, border-color .4s ease; }
.oracle-arena[data-streak="3"], .oracle-arena[data-streak="4"] { border-color: #49786f; box-shadow: 0 0 0 1px #84eee033, 0 18px 60px #84eee022; }
.oracle-arena[data-streak="5"] { border-color: #ffd36b; box-shadow: 0 0 0 1px #ffd36b55, 0 0 50px #ffd36b33; }
.oracle-arena > :not(.oracle-fx) { position: relative; z-index: 1; }
.oracle-fx { position: absolute; inset: 0; z-index: 3 !important; pointer-events: none; }
.oracle-fx canvas { width: 100%; height: 100%; display: block; }
.oracle-flash { position: absolute; inset: 0; opacity: 0; }
.oracle-flash.escape { background: radial-gradient(circle at 50% 70%, #84eee055, transparent 70%); animation: oracle-flash .5s ease-out; }
.oracle-flash.caught { background: radial-gradient(circle at 50% 70%, #fc94c355, transparent 70%); animation: oracle-flash .5s ease-out; }
@keyframes oracle-flash { from { opacity: 1; } to { opacity: 0; } }
.oracle-arena.shake { animation: oracle-shake .32s cubic-bezier(.36, .07, .19, .97); }
@keyframes oracle-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.oracle-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 11px monospace; letter-spacing: .08em; color: #84eee0; flex-wrap: wrap; }
.oracle-topline > span:nth-child(2) { color: #b1c1db; margin-left: auto; }
.oracle-live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #84eee0; box-shadow: 0 0 10px #84eee0; animation: oracle-live 1.6s ease-in-out infinite; }
@keyframes oracle-live { 50% { opacity: .35; } }
.oracle-rival { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #2b2410; border: 1px solid #ffd36b66; color: #ffd36b; font-weight: 700; text-align: center; }

.oracle-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin: 22px 0 8px; }
.oracle-stats div { border-left: 1px solid #344460; padding-left: 16px; }
.oracle-stats span { display: block; font: 10px monospace; letter-spacing: .1em; color: #a9bad6; }
.oracle-stats strong { display: block; font-size: clamp(1.4rem, 4vw, 2.5rem); font-variant-numeric: tabular-nums; }
.oracle-stats div:first-child strong { color: #84eee0; text-shadow: 0 0 24px #84eee066; }
.oracle-stats .bump strong { animation: oracle-bump .35s ease-out; }
@keyframes oracle-bump { 40% { transform: scale(1.12); } }
.oracle-stats strong { transform-origin: left center; }

.oracle-brain { position: relative; background: radial-gradient(ellipse at center, #172949 0, transparent 72%); }
.oracle #network { display: block; width: 100%; height: 260px; border: 0; background: transparent; }
.oracle-phase { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font: 700 10px monospace; letter-spacing: .14em; color: #ffd36b; white-space: nowrap; }
.oracle-phase:empty { display: none; }
.oracle-layer-labels { display: flex; justify-content: space-between; font: 9px monospace; color: #a9bad6; padding: 0 4%; gap: 12px; text-align: center; }

.oracle-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 560px; margin: 18px auto 0; }
.oracle-card { perspective: 600px; text-align: center; padding: 10px 8px; border-radius: 14px; border: 1px solid #2c3d59; background: #0c1730; }
.oracle-card-label { display: block; font: 700 10px monospace; letter-spacing: .14em; color: #a9bad6; }
.oracle-card small { display: block; font: 11px monospace; color: #b1c1db; min-height: 1.4em; }
.oracle-flip { position: relative; height: 56px; display: grid; place-items: center; font-size: 2.6rem; line-height: 1; }
.oracle-flip > span { grid-area: 1 / 1; backface-visibility: hidden; transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), opacity .2s; }
.oracle-sealed { font-size: 1.6rem; filter: grayscale(1) brightness(1.6); animation: oracle-sealed 2s ease-in-out infinite; }
@keyframes oracle-sealed { 50% { opacity: .55; } }
.oracle-guess .oracle-revealed { transform: rotateY(180deg); opacity: 0; }
.oracle-guess.revealed .oracle-sealed { transform: rotateY(-180deg); opacity: 0; }
.oracle-guess.revealed .oracle-revealed { transform: rotateY(0); opacity: 1; }
.oracle-guess.hit { border-color: #fc94c3; box-shadow: 0 0 24px #fc94c333; }
.oracle-guess.miss { border-color: #405471; }
.oracle-pick.revealed .oracle-revealed { animation: oracle-pick .3s ease-out; }
@keyframes oracle-pick { from { transform: scale(1.5); } }
.oracle-pick .oracle-revealed { color: #405471; }
.oracle-versus { position: relative; display: grid; place-items: center; min-width: 120px; }
#verdict { font: 900 1.05rem/1 system-ui, sans-serif; letter-spacing: .08em; color: #5a6c8a; }
#verdict.escaped { color: #84eee0; text-shadow: 0 0 18px #84eee0aa; font-size: 1.35rem; }
#verdict.caught { color: #fc94c3; text-shadow: 0 0 18px #fc94c3aa; font-size: 1.35rem; }
#verdict.stamp { animation: oracle-stamp .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes oracle-stamp { from { transform: scale(2.6) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } }
#points-pop { position: absolute; top: -18px; font: 800 1.1rem system-ui, sans-serif; color: #ffd36b; opacity: 0; pointer-events: none; }
#points-pop.pop { animation: oracle-pop 1.1s ease-out; }
@keyframes oracle-pop { 0% { opacity: 0; transform: translateY(14px) scale(.7); } 20% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-26px); } }

.oracle-feedback { min-height: 4.2em; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; margin: 14px 0 12px; }
.oracle-feedback q { font-size: 1.1rem; font-weight: 700; color: #edf4ff; quotes: "“" "”"; }
.oracle-feedback q:empty { display: none; }
#feedback { font-size: .85rem; color: #a9bad6; }

.oracle-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.oracle-symbol { font-size: 2.5rem; line-height: 1; transition: transform .15s ease; }
.oracle-choices small { color: #b1c1db; font: 11px monospace; }
.oracle [data-choice="0"] { --node-color: #84eee0; }
.oracle [data-choice="0"] .oracle-symbol { font-size: 1.85rem; height: 2.5rem; display: grid; place-items: center; }
.oracle-flip [data-symbol="0"] { font-size: .7em; }
.oracle-memory li[data-symbol="0"] { font-size: .75rem; }
#result-title:focus { outline: none; }
.oracle [data-choice="1"] { --node-color: #c4acff; }
.oracle [data-choice="2"] { --node-color: #ffc576; }

.oracle-memory { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; font: 10px monospace; letter-spacing: .1em; color: #a9bad6; }
.oracle-memory ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.oracle-memory li { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #344460; background: #0c1730; font: 1rem system-ui, sans-serif; letter-spacing: 0; color: #405471; }
.oracle-memory li:first-child { border-color: #84eee088; }
.oracle-memory .oracle-hint { margin-left: auto; letter-spacing: 0; font: .78rem system-ui, sans-serif; color: #b1c1db; }
.oracle-history { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; padding: 10px 0; }
.oracle-history span { display: grid; place-items: center; background: #1a2740; height: 22px; border-radius: 5px; font: 700 11px system-ui, sans-serif; color: #080f20; overflow: hidden; }
.oracle-history .escaped { background: #84eee0; animation: oracle-chip .3s ease-out; }
.oracle-history .caught { background: #fc94c3; animation: oracle-chip .3s ease-out; }
@keyframes oracle-chip { from { transform: scaleY(.2); } }

.oracle-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.oracle-actions p { color: #b1c1db; font-size: .8rem; margin: 0; }
.oracle-result { text-align: center; padding: 24px 16px; margin-top: 20px; border: 1px solid #49786f; border-radius: 16px; background: linear-gradient(160deg, #112c32, #0c1730); animation: oracle-rise .5s ease-out; }
@keyframes oracle-rise { from { opacity: 0; transform: translateY(16px); } }
.oracle .oracle-result .oracle-eyebrow { color: #ffd36b; }
.oracle-result h2 { color: #84eee0; margin: 10px 0; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.oracle-result p { color: #edf4ff; }
.oracle-result-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; text-align: left; margin: 20px 0; }
.oracle-result figure { margin: 0; }
.oracle-result canvas { display: block; width: 100%; height: 160px; background: #080f20; border-radius: 10px; border: 1px solid #2c3d59; }
.oracle-result figcaption { font-size: .78rem; color: #b1c1db; margin-top: 8px; line-height: 1.5; }
.oracle-result h3 { font-size: .95rem; margin: 0 0 8px; color: #edf4ff; }
.oracle-result ul { margin: 0; padding-left: 18px; color: #d4deef; font-size: .88rem; line-height: 1.55; }
.oracle-result li + li { margin-top: 6px; }
.oracle-share { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.oracle-result textarea { display: block; width: 100%; box-sizing: border-box; min-height: 130px; background: #080f20; color: #fff; padding: 12px; margin-top: 10px; }
.oracle [hidden] { display: none !important; }
.oracle-explainer { margin-top: 24px; padding: 20px; border: 1px solid var(--tool-border); border-radius: 12px; background: var(--tool-surface); }
.oracle-explainer summary { cursor: pointer; font-weight: 700; }
.oracle-explainer p { line-height: 1.7; color: var(--tool-text-muted); }

/* Shared tool buttons use !important; these selectors out-rank them inside the arena only. */
body.tool-page .oracle-arena button:not(#dark-mode-button):not(.card-toggle) { background: #15213a !important; color: #edf4ff !important; border: 1px solid #405471 !important; border-radius: 12px !important; min-height: 44px !important; padding: 10px 18px !important; cursor: pointer; }
body.tool-page .oracle-arena button:not(#dark-mode-button):not(.card-toggle):hover { background: #243756 !important; color: #fff !important; border-color: #84eee0 !important; }
body.tool-page .oracle-arena button:not(#dark-mode-button):not(.card-toggle):focus-visible { outline: 3px solid #84eee0 !important; outline-offset: 3px !important; }
body.tool-page .oracle-arena button.primary:not(#dark-mode-button) { background: #84eee0 !important; color: #06201d !important; border-color: #84eee0 !important; }
body.tool-page .oracle-arena #sound:not(#dark-mode-button) { min-height: 30px !important; padding: 4px 12px !important; font: 11px monospace !important; letter-spacing: .06em !important; color: #b1c1db !important; border-radius: 999px !important; }
body.tool-page .oracle-arena #sound[aria-pressed="true"] { color: #84eee0 !important; border-color: #84eee066 !important; }
body.tool-page .oracle-arena .oracle-choices button:not(#dark-mode-button):not(.card-toggle) { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px !important; padding: 12px !important; min-height: 112px !important; color: var(--node-color) !important; background: linear-gradient(180deg, #15213a, #101a30) !important; border: 1px solid #2f4262 !important; border-bottom: 3px solid var(--node-color) !important; border-radius: 14px !important; touch-action: manipulation; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease !important; }
body.tool-page .oracle-arena .oracle-choices button:not(#dark-mode-button):not(.card-toggle):hover { border-color: var(--node-color) !important; box-shadow: 0 0 0 1px var(--node-color), 0 10px 30px color-mix(in srgb, var(--node-color) 25%, transparent) !important; transform: translateY(-2px) !important; }
body.tool-page .oracle-arena .oracle-choices button:not(#dark-mode-button):not(.card-toggle):active { transform: translateY(1px) scale(.97) !important; }
.oracle-choices button.pressed .oracle-symbol { animation: oracle-press .22s ease-out; }
@keyframes oracle-press { from { transform: scale(.7); } 60% { transform: scale(1.18); } }
body.tool-page .oracle-arena .oracle-choices button:hover .oracle-symbol { transform: scale(1.12); }
.oracle-choices strong { color: #edf4ff; }
body.tool-page .oracle-arena button:disabled { opacity: .45 !important; cursor: default !important; transform: none !important; box-shadow: none !important; }

@media (max-width: 600px) {
    .oracle { padding: 12px 10px 32px; }
    .oracle-arena { padding: 16px 12px; border-radius: 16px; }
    .oracle-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
    .oracle-stats div { padding-left: 6px; }
    .oracle-stats span { font-size: 7.5px; letter-spacing: 0; }
    .oracle #network { height: 200px; }
    .oracle-layer-labels { font-size: 8px; }
    .oracle-duel { gap: 8px; margin-top: 10px; }
    .oracle-versus { min-width: 92px; }
    #verdict.escaped, #verdict.caught { font-size: 1rem; }
    .oracle-flip { height: 44px; font-size: 2rem; }
    .oracle-feedback { margin: 10px 0; min-height: 3.6em; }
    .oracle-feedback q { font-size: 1rem; }
    .oracle-choices { gap: 8px; }
    body.tool-page .oracle-arena .oracle-choices button:not(#dark-mode-button):not(.card-toggle) { min-height: 92px !important; }
    .oracle-history { gap: 3px; grid-template-columns: repeat(15, 1fr); }
    .oracle-topline { font-size: 9px; row-gap: 6px; }
    .oracle-topline > span:nth-child(2) { order: 3; width: 100%; margin-left: 0; }
    body.tool-page .oracle-arena #sound:not(#dark-mode-button) { margin-left: auto; min-height: 26px !important; padding: 2px 10px !important; }
    .oracle-card-label { font-size: 8.5px; letter-spacing: .06em; }
    .oracle-memory .oracle-hint { margin-left: 0; }
    .oracle-result-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .oracle *, .oracle-arena { animation: none !important; }
    .oracle-flip > span { transition: none; }
    body.tool-page .oracle-arena button:not(#dark-mode-button):not(.card-toggle) { transition: none !important; }
    body.tool-page .oracle-arena button:not(#dark-mode-button):not(.card-toggle):hover { transform: none !important; }
}

.oracle-lab { --o: #087b70; --p: #6447c4; --s: #9a5800; --pos: #08776d; --neg: #b02f6b; --gold: #9a6c00; --gold-line: #e0a400; --ink: var(--tool-text);
    --panel: var(--tool-surface-raised); --rule: var(--tool-border);
    margin-top: 32px; padding: 28px; background: var(--tool-surface); border: 1px solid var(--tool-border); border-radius: 18px; }
.dark-mode .oracle-lab { --o: #84eee0; --p: #c4acff; --s: #ffc576; --pos: #84eee0; --neg: #fc94c3; --gold: #ffd36b; --gold-line: #ffd36b;
    --panel: #111b30; --rule: #2a3a58; background: #0b1426; border-color: #23324e; }
.oracle-lab-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.oracle-lab h2 { margin: 4px 0 12px; font-size: 1.6rem; }
.oracle-lab h3 { margin: 0; font-size: 1rem; }
.oracle-lab-heading > span { color: var(--tool-text-muted); font: 600 .75rem monospace; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; }
.oracle-lab-note { color: var(--tool-text-muted); font-size: .85rem; line-height: 1.6; }
.oracle-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 18px 0; list-style: none; counter-reset: step; }
.oracle-steps li { counter-increment: step; padding: 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel); font-size: .84rem; line-height: 1.55; color: var(--tool-text-muted); }
.oracle-steps b { display: block; color: var(--ink); font-size: .92rem; margin-bottom: 4px; }
.oracle-steps b::before { content: counter(step, decimal-leading-zero) "  "; color: var(--tool-primary); font-family: monospace; }
.oracle-steps .katex { color: var(--ink); font-size: 1.02em; }

.oracle-lab .katex { font-size: 1.12em; color: var(--ink); }
.oracle-lab .katex-display { margin: 0; padding: 2px 0; }
.oracle-tex { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.oracle-tex > .katex-display > .katex { text-align: left; }
.oracle-lab .tx-o { color: var(--o); } .oracle-lab .tx-p { color: var(--p); } .oracle-lab .tx-s { color: var(--s); }
.oracle-lab .tx-pos { color: var(--pos); } .oracle-lab .tx-neg { color: var(--neg); }
.oracle-lab .tx-gold { color: var(--gold); font-weight: 700; } .oracle-lab .tx-muted { color: var(--tool-text-muted); opacity: .7; }

.oracle-pipeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; counter-reset: stage; }
.oracle-stage { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; }
.oracle-stage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 14px 0 0 14px; background: linear-gradient(var(--o), var(--p), var(--s)); opacity: .8; }
.oracle-stage header h3 { text-align: left; }
.oracle-stage header { margin: 0; font-size: 1rem; color: inherit; text-align: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oracle-stage-n { font: 700 .75rem monospace; color: var(--tool-primary); letter-spacing: .1em; }
.oracle-shape { margin-left: auto; font: 600 .68rem monospace; letter-spacing: .06em; color: var(--tool-text-muted); padding: 3px 8px; border: 1px solid var(--rule); border-radius: 999px; }
.oracle-shape .katex { font-size: 1.05em; color: var(--tool-text-muted); }
.oracle-stage > .oracle-tex:first-of-type { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.oracle-readout { padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--rule); }
.oracle-readout:empty { display: none; }
.oracle-stage-note { margin: auto 0 0; font-size: .8rem; line-height: 1.55; color: var(--tool-text-muted); }
.oracle-stage-note .katex { font-size: 1em; color: var(--tool-text-muted); }

.oracle-tanh { padding: 6px; }
.oracle-tanh svg { display: block; width: 100%; max-height: 150px; }
.oracle-tanh .axis { stroke: var(--rule); stroke-width: 1.2; }
.oracle-tanh .guide { stroke: var(--rule); stroke-dasharray: 3 4; }
.oracle-tanh .curve { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .55; }
.oracle-tanh .tick { font: 10px monospace; fill: var(--tool-text-muted); }
.oracle-tanh g circle { stroke: var(--panel); stroke-width: 1.5; transition: cx .35s ease, cy .35s ease; }
.oracle-tanh g.pos circle { fill: var(--pos); } .oracle-tanh g.neg circle { fill: var(--neg); }
.oracle-tanh g text { font: 700 9px monospace; fill: var(--ink); text-anchor: middle; }

.oracle-bars { display: grid; gap: 6px; }
.oracle-bars span { position: relative; isolation: isolate; display: flex; align-items: center; gap: 8px; height: 26px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 6%, transparent); font: 600 12px/26px system-ui, sans-serif; padding: 0 10px; color: var(--ink); overflow: hidden; }
.oracle-bars span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--c); opacity: .5; transition: width .45s cubic-bezier(.2, .8, .2, 1); z-index: -1; }
.oracle-bars b { font-size: 15px; width: 16px; text-align: center; }
.oracle-bars em { margin-left: auto; font: 700 12px monospace; font-style: normal; }
.oracle-bars .chosen { box-shadow: inset 0 0 0 2px var(--ink); }
.oracle-bars .chosen::after { content: "YOUR CLICK"; font: 700 9px monospace; letter-spacing: .1em; opacity: .75; }

.oracle-inspector { margin-top: 18px; padding: 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--rule); }
.oracle-inspector-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.oracle-inspector-head label { font-size: .85rem; color: var(--tool-text-muted); }
.oracle-lab select { max-width: 100%; padding: 8px 10px; background: var(--tool-surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; margin-left: 8px; font: inherit; }
.oracle-inspector-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: 16px; align-items: start; }
.oracle-equation { min-width: 0; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); font: .82rem/1.8 monospace; overflow-wrap: anywhere; }
.oracle-equation .katex { font-size: 1.05em; }
.oracle-votes { margin: 0; }
.oracle-votes figcaption { font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.oracle-votes small { display: block; margin-top: 8px; color: var(--tool-text-muted); font-size: .76rem; line-height: 1.5; }
.oracle-votes small .katex { font-size: 1em; color: var(--tool-text-muted); }
.oracle-vote { display: grid; grid-template-columns: 34px 1fr 54px; align-items: center; gap: 8px; height: 22px; font: .74rem monospace; }
.oracle-vote > span:first-child { color: var(--tool-text-muted); text-align: right; }
.oracle-vote-track { position: relative; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.oracle-vote-track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--tool-text-muted); opacity: .5; }
.oracle-vote-track i { position: absolute; top: 0; bottom: 0; width: var(--size); border-radius: 5px; transition: width .35s ease; }
.oracle-vote-track i.pos { left: 50%; background: var(--pos); }
.oracle-vote-track i.neg { right: 50%; background: var(--neg); }
.oracle-vote b { text-align: right; font-weight: 600; } .oracle-vote b.pos { color: var(--pos); } .oracle-vote b.neg { color: var(--neg); }
.oracle-gradient { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.oracle-gradient h4 { margin: 0 0 10px; font-size: .9rem; }
.oracle-gradient p { margin: 10px 0 0; font-size: .84rem; line-height: 1.6; color: var(--tool-text-muted); }

.oracle-lab details { margin-top: 20px; }
.oracle-lab summary { cursor: pointer; font-weight: 600; }
.oracle-lab summary .katex { font-size: 1em; margin-left: 6px; color: var(--tool-text-muted); }
.oracle-matrix-scroll { overflow-x: auto; margin-top: 10px; border-radius: 10px; border: 1px solid var(--rule); }
.oracle-lab table { margin: 0; width: 100%; border-collapse: separate; border-spacing: 2px; font: .72rem/1.4 monospace; text-align: right; background: var(--tool-surface); }
.dark-mode .oracle-lab table { background: #0b1426; }
.oracle-lab th, .oracle-lab td { padding: 7px 8px; white-space: nowrap; color: var(--ink); border: 0; border-radius: 5px; background: transparent; }
.oracle-lab thead th { font: 700 .95rem system-ui, sans-serif; text-align: center; color: var(--tool-text-muted); }
.oracle-lab thead .oracle-groups th { font: 700 .62rem monospace; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--rule); border-radius: 0; padding: 4px; }
.oracle-lab th.oracle-corner { font: 600 .6rem monospace; letter-spacing: .04em; text-align: left; }
.oracle-lab tbody th { font: 700 .82rem system-ui, sans-serif; text-align: left; color: var(--ink); }
.oracle-lab .sym-0 { color: var(--o); } .oracle-lab .sym-1 { color: var(--p); } .oracle-lab .sym-2 { color: var(--s); }
.oracle-lab td.positive { background: color-mix(in srgb, var(--pos) calc(var(--strength) * .42), transparent); }
.oracle-lab td.negative { background: color-mix(in srgb, var(--neg) calc(var(--strength) * .42), transparent); }
.oracle-lab td small { display: block; color: var(--tool-text-muted); font-size: .64rem; }
.oracle-lab td.still small { opacity: .45; }
.oracle-lab td.big-change { box-shadow: inset 0 0 0 2px var(--gold-line); }
.oracle-lab td.big-change small { color: var(--gold); font-weight: 700; opacity: 1; }
.oracle-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 0; }
.oracle-legend + .oracle-lab-note { margin-top: 4px; }
.oracle-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.oracle-swatch.positive { background: color-mix(in srgb, var(--pos) 45%, transparent); }
.oracle-swatch.negative { background: color-mix(in srgb, var(--neg) 45%, transparent); }
.oracle-swatch.big-change { box-shadow: inset 0 0 0 2px var(--gold-line); }
@media (max-width: 900px) {
    .oracle-inspector-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .oracle-lab { padding: 16px; }
    .oracle-pipeline { grid-template-columns: 1fr; }
    .oracle-steps { grid-template-columns: 1fr 1fr; }
    .oracle-stage, .oracle-inspector { padding: 14px; }
    .oracle-lab .katex { font-size: .96em; }
    .oracle-stage > .oracle-tex:first-of-type, .oracle-readout, .oracle-equation { padding: 10px; }
}
