/* Predictions extends the existing ANSIO stage, typography and native book. */
body[data-page=predictions] #stage{inset:88px 0 108px}
body[data-page=predictions] #stage .chapter.wide{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding-block:12px;overflow-y:auto;touch-action:pan-y}
body[data-page=predictions] #stage .chapter.wide .chapter-copy{display:grid;grid-template-columns:1fr 1fr;gap:8px 48px;width:100%;max-width:1120px;margin:0 auto;flex:none}
body[data-page=predictions] .chapter.wide .chapter-copy .eyebrow{grid-column:1/-1}
body[data-page=predictions] #stage .chapter.wide .chapter-copy :is(h1,h2){font-size:clamp(30px,3.2vw,46px);margin:0;line-height:1.08}
body[data-page=predictions] .chapter.wide .chapter-copy>p{max-width:460px;margin:0;align-self:center;font-size:14px;line-height:1.6}
body[data-page=predictions] .chapter-copy .text-link{grid-column:2;margin:0;font-size:12px;min-height:24px}
body[data-page=predictions] .pred-surface{max-width:1120px!important;width:100%;margin:0 auto;flex:1;min-height:0;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;display:flex;flex-direction:column;gap:16px;font-size:13px}
.pred-surface h3{font:500 clamp(22px,2.2vw,32px)/1.15 var(--display);letter-spacing:-.04em;margin:0}
.pred-micro{font:10px/1.5 var(--mono);letter-spacing:.06em;color:var(--muted)}
.pred-event-row{display:flex;align-items:center;gap:16px;flex:none}.pred-event-row>div{display:flex;gap:8px;flex-wrap:wrap}.pred-event-row button{border:1px solid var(--border);border-radius:24px;padding:7px 14px;display:flex;gap:8px;align-items:center;font-size:12px}.pred-event-row button[aria-pressed=true]{background:var(--lilac);color:#111;border-color:var(--lilac)}.pred-event-row i{font-style:normal;border-radius:50%;background:var(--text);color:var(--bg);width:22px;height:22px;display:grid;place-items:center}.pred-sample{margin-left:auto;font:9px var(--mono);color:var(--muted)}
.pred-event-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.pred-event-title h3{margin-top:4px}.pred-prob{display:flex;gap:18px;align-items:baseline;white-space:nowrap}.pred-prob b{font:500 36px var(--display);letter-spacing:-.04em;color:var(--teal)}.pred-prob small{font:11px var(--mono);margin-left:4px}.pred-prob>span{color:var(--coral);font:12px var(--mono)}
.pred-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;flex:none}.pred-kpi{border:1px solid var(--border);border-radius:14px;padding:12px 16px;display:flex;flex-direction:column;gap:5px}.pred-kpi>span{font-size:10px}.pred-kpi strong{font:500 25px var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums}.pred-kpi.lilac{background:var(--lilac);color:#111;border-color:transparent}.pred-kpi.acid{background:var(--acid);color:#111;border-color:transparent}.pred-kpi.pink{background:var(--pink);color:#111;border-color:transparent}
.pred-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:200px;flex:1}.pred-surface .book-col{background:var(--panel);border-radius:12px;min-width:0}.pred-surface .book-col h4{font-size:10px;font-weight:500;margin:0;padding:10px 12px}.pred-surface .book-head-row,.pred-surface .book-row{grid-template-columns:1fr 1fr 1fr!important;padding:5px 12px!important;font:11px var(--mono);min-height:24px}.pred-surface .book-head-row{font-size:9px;color:var(--muted)}.pred-surface .book-head-row>span,.pred-surface .book-row>span{text-align:right!important}.pred-surface .book-head-row>span:first-child,.pred-surface .book-row>span:first-child{text-align:left!important}.pred-surface .book-row .book-owner-tag,.pred-surface .book-row .oo-dot{display:none}.pred-surface .book-row{transition:background .4s}.pred-surface .book-scroll{max-height:280px}.pred-surface .book-row:nth-child(n+7){display:grid!important}
.pred-btn{border:1px solid var(--border);border-radius:24px;padding:10px 18px;min-height:40px;font-size:12px;white-space:nowrap}.pred-btn:hover{border-color:var(--violet);color:var(--violet)}.pred-btn.primary{background:var(--text);color:var(--bg);border-color:var(--text)}.pred-actions,.pred-bottom>div{display:flex;gap:8px;flex-wrap:wrap}.pred-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}
.pred-two{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:24px;flex:1;min-height:0}.pred-card{border:1px solid var(--border);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:20px;background:var(--panel);min-height:0}.pred-card header{display:flex;justify-content:space-between;align-items:center;gap:12px}.pred-card>p{font-size:13px;line-height:1.6;color:var(--muted)}.pred-card .pred-btn{align-self:flex-start}.pred-toggle{width:42px;height:24px;background:var(--border);border-radius:20px;padding:3px;flex:none}.pred-toggle i{display:block;width:18px;height:18px;border-radius:50%;background:var(--text);transition:transform .25s}.pred-toggle[aria-checked=true]{background:var(--acid)}.pred-toggle[aria-checked=true] i{background:#111;transform:translateX(18px)}.pred-field{display:grid;grid-template-columns:1fr auto;gap:12px;font-size:12px}.pred-field output{font-family:var(--mono);color:var(--violet)}.pred-field input{grid-column:1/-1;width:100%;accent-color:var(--violet);margin:0;height:28px}.pred-quote-note{font:10px/1.6 var(--mono);color:var(--muted);margin-top:auto}.pred-quote-books{display:flex;flex-direction:column;gap:16px;min-height:0}.pred-quote-books .pred-books{grid-template-columns:1fr 1fr}.pred-quote-books .book-col:last-child{display:none}.pred-ribbon{display:flex;gap:12px;justify-content:space-between;font-size:11px;border-block:1px solid var(--border);padding:18px 0}.pred-ribbon strong{font-family:var(--mono)}
.pred-cases{display:flex;flex-direction:column;gap:12px;overflow-y:auto;min-height:0}.pred-cases button{border:1px solid var(--border);border-radius:16px;padding:20px;text-align:left;display:flex;flex-direction:column;gap:10px}.pred-cases button[aria-pressed=true]{background:var(--lilac);color:#111}.pred-cases strong{font:500 20px var(--display)}.pred-cases button>span:last-child{font-size:12px;line-height:1.55}.pred-cases button[aria-pressed=true] .pred-micro{color:#544b70}.pred-checks{flex:1;overflow-y:auto;min-height:120px}.pred-checks>div{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--border);animation:pred-appear .35s ease-out}.pred-checks i,.pred-timeline i{font-style:normal;border:1px solid var(--border);width:26px;height:26px;display:grid;place-items:center;border-radius:50%;flex:none}.pred-checks i{background:var(--acid);color:#111;border:0}.pred-review-action{min-height:40px}.pred-success{color:var(--teal);font-size:13px}.pred-detail{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--border)}.pred-detail b{font-family:var(--mono);font-size:13px}.pred-timeline{display:flex;flex-direction:column;gap:24px;margin:12px 0}.pred-timeline>div{display:flex;gap:12px;align-items:center;opacity:.4}.pred-timeline .done{opacity:1}.pred-timeline .done i{background:var(--acid);color:#111;border:0}.pred-settlement{background:var(--panel-2)}.pred-card .pred-fine{margin-top:auto;font-size:11px}.pred-settlement h3{font-size:clamp(30px,3.6vw,48px)}
.pred-chat{border:1px solid var(--border);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:16px;background:var(--panel);min-height:380px}.pred-chat header{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:16px}.pred-chat header img{width:28px;height:28px}.pred-chat header div{display:flex;flex-direction:column;gap:4px}.pred-chat header div span{font-size:10px;color:var(--muted)}.pred-chat header>.pred-micro{margin-left:auto}.pred-messages{flex:1;overflow-y:auto;min-height:100px;display:flex;flex-direction:column;gap:12px}.pred-message{padding:12px 16px;border-radius:14px;background:var(--panel-2);font-size:12px;line-height:1.55;max-width:90%;align-self:flex-start;animation:pred-appear .35s ease-out}.pred-message.user{background:var(--lilac);color:#111;align-self:flex-end}.pred-prompts{display:flex;flex-direction:column;gap:6px}.pred-prompts button{display:flex;justify-content:space-between;border:1px solid var(--border);padding:10px 12px;border-radius:10px;text-align:left;font-size:11px}.pred-prompts button:hover{background:var(--violet-dim)}.pred-composer{display:flex;justify-content:space-between;color:var(--muted);border:1px solid var(--border);border-radius:24px;padding:12px 16px;font-size:11px}.pred-thinking{color:var(--muted);font-size:12px;animation:pred-appear .3s}.pred-ai{grid-template-columns:1fr 1fr}.pred-empty{margin:auto 0;padding:20px 0;display:flex;flex-direction:column;gap:18px}.pred-empty>span{font:40px var(--display);color:var(--violet)}.pred-empty p{font-size:13px;line-height:1.6;color:var(--muted);max-width:340px}.pred-task-state{font:10px var(--mono);padding:8px 12px;background:var(--lilac);color:#111;border-radius:20px;align-self:flex-start}.pred-task-state.applied{background:var(--acid)}
.pred-history{border:1px solid var(--border);border-radius:18px;padding:24px;display:flex;flex-direction:column;flex:1;min-height:0}.pred-history header{display:flex;gap:12px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--border)}.pred-history header>div{margin-right:auto}.pred-history h3{margin-top:4px}.pred-history-list{overflow-y:auto;min-height:220px}.pred-history-row{display:grid;grid-template-columns:80px 120px 1fr 20px;gap:16px;align-items:start;padding:18px 0;border-bottom:1px solid var(--border);font-size:12px}.pred-history-row time{font:10px var(--mono);color:var(--muted)}.pred-history-row div{display:flex;flex-direction:column;gap:6px}.pred-history-row strong{font-weight:500}.pred-history-row span{color:var(--muted)}.pred-history-row i{color:var(--teal);font-style:normal}
@keyframes pred-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-height:800px) and (min-width:761px){body[data-page=predictions] #stage .chapter.wide{gap:16px}body[data-page=predictions] .pred-surface{gap:12px}.pred-card{padding:20px;gap:16px}.pred-event-title h3{font-size:22px}.pred-kpi{padding:10px 14px}.pred-kpi strong{font-size:22px}.pred-chat{min-height:340px}.pred-checks>div{padding:12px 0}.pred-cases button{padding:16px;gap:6px}}
@media(max-width:760px){body[data-page=predictions] #stage{inset:72px 0 112px}body[data-page=predictions] #stage .chapter.wide{justify-content:flex-start;gap:20px;padding:12px 16px 28px}body[data-page=predictions] #stage .chapter.wide .chapter-copy{display:block}.chapter.wide .chapter-copy .eyebrow{margin-bottom:8px}body[data-page=predictions] #stage .chapter.wide .chapter-copy :is(h1,h2){font-size:30px!important}body[data-page=predictions] .chapter.wide .chapter-copy>p{margin-top:12px;font-size:12px}body[data-page=predictions] .chapter-copy .text-link{margin-top:12px}body[data-page=predictions] .pred-surface{flex:none;gap:16px}.pred-two,.pred-ai{grid-template-columns:1fr}.pred-event-row{gap:8px;flex-wrap:wrap}.pred-event-row>.pred-micro{display:none}.pred-event-row button{padding:6px 10px;font-size:11px}.pred-sample{margin:0}.pred-event-title{align-items:flex-start}.pred-event-title h3{font-size:20px}.pred-prob{flex-direction:column;gap:2px}.pred-prob b{font-size:26px}.pred-kpis{grid-template-columns:1fr 1fr;gap:8px}.pred-kpi strong{font-size:22px}.pred-books{overflow-x:auto;grid-template-columns:repeat(3,minmax(230px,1fr));min-height:260px;padding-bottom:8px;touch-action:pan-x}.pred-bottom{flex-direction:column;align-items:flex-start}.pred-card{padding:20px}.pred-quote-books .pred-books{grid-template-columns:repeat(2,minmax(230px,1fr))}.pred-ribbon{flex-wrap:wrap}.pred-cases{max-height:310px;flex:none}.pred-history{padding:16px}.pred-history header{flex-wrap:wrap}.pred-history header>div{width:100%}.pred-history-row{grid-template-columns:62px 1fr;gap:8px}.pred-history-row>div{grid-column:1/-1}.pred-history-row i{display:none}.pred-chat{height:460px}.pred-checks{min-height:180px}.pred-proposal{min-height:300px}}
@media(prefers-reduced-motion:reduce){.pred-surface *{animation:none!important;transition:none!important}}

@media(min-width:761px){.pred-surface>.pred-two{flex:0 1 auto;min-height:400px;max-height:520px}.pred-surface>.pred-ai{height:480px}.pred-surface .pred-history{max-height:520px}.pred-quote-books .pred-books{min-height:340px}}
.pred-tick{animation:pred-tick .7s ease-out}@keyframes pred-tick{from{background:var(--violet-dim)}to{background:transparent}}

body[data-page=predictions] .chapter{scrollbar-width:thin}.pred-book-hint{display:none}@media(max-width:760px){.pred-book-hint{display:block;font:10px var(--mono);color:var(--muted)}}

/* Reuse the manager feature rail and Predictions card system. */
.pred-tools-view{min-height:0;flex:1}.pred-tool-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);min-height:430px;max-height:540px}.pred-tools-tabs{position:static!important;flex:none;align-self:center;max-width:100%;margin:10px 0 0!important;overflow-x:auto;white-space:nowrap;padding-bottom:6px}.pred-tools-tabs button{flex:none;min-height:42px}.pred-tool-message{min-height:36px;font-size:12px;line-height:1.5;color:var(--muted)}.pred-btn:disabled{opacity:.4;cursor:default}.pred-pair-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pred-pair-cards .pred-kpi{padding:20px}.pred-pair-cards strong{font-size:clamp(26px,3.1vw,42px)}.pred-capital-visual{display:flex;flex-direction:column;justify-content:center;padding:28px;border-radius:18px;background:var(--panel);border:1px solid var(--border);gap:18px}.pred-pair-path{display:flex;align-items:center;justify-content:center;gap:20px;color:var(--violet);height:48px}.pred-pair-path span{width:22%;height:1px;background:var(--border)}.pred-pair-path b{font:300 40px var(--display)}.pred-pair-path.moving b{animation:pred-capital-flow .7s ease-in-out}.pred-capital-total{text-align:center;display:flex;flex-direction:column;gap:10px}.pred-capital-total>span{font-size:12px;color:var(--muted)}.pred-capital-total strong{font:500 clamp(36px,4.4vw,62px)/1.1 var(--display);letter-spacing:-.06em;font-variant-numeric:tabular-nums}.pred-capital-total small{color:var(--muted);font-size:11px}.pred-capital-visual>.pred-fine{text-align:center;margin-top:16px}.pred-state{padding:6px 10px;border-radius:20px;font:10px/1.4 var(--mono);white-space:nowrap}.pred-state.good{background:color-mix(in srgb,var(--teal) 12%,transparent);color:var(--teal)}.pred-state.warn{background:color-mix(in srgb,var(--pink) 18%,transparent);color:var(--text)}.pred-reward-visual{gap:24px}.pred-reward-band{position:relative;height:160px;margin:10px 12px 0;flex:none;background:linear-gradient(transparent 49%,var(--border) 49%,var(--border) 50%,transparent 50%)}.pred-eligible-band{position:absolute;left:29%;width:42%;top:20px;bottom:35px;background:color-mix(in srgb,var(--acid) 24%,transparent);border-inline:1px dashed var(--teal);border-radius:8px}.pred-eligible-band>span{display:block;text-align:center;font:10px var(--mono);margin-top:9px}.pred-midpoint{position:absolute;left:50%;top:54px;height:50px;border-left:1px dashed var(--muted)}.pred-mid-label{position:absolute;bottom:9px;width:100%;text-align:center;color:var(--muted);font:10px var(--mono)}.pred-quote-dot{position:absolute;top:62px;transform:translateX(-50%);transition:left .25s;display:flex;align-items:center;flex-direction:column;gap:9px}.pred-quote-dot b{padding:9px 10px;border-radius:9px;color:#111;background:var(--acid);font:500 15px var(--mono)}.pred-quote-dot.ask b{background:var(--pink)}.pred-quote-dot small{font:9px var(--mono)}.pred-reward-check{display:flex;align-items:center;gap:14px}.pred-reward-check>i{font:20px var(--mono);width:30px;text-align:center;color:var(--violet)}.pred-reward-check>div{display:flex;flex-direction:column;gap:5px}.pred-reward-check b{font-size:13px;font-weight:500}.pred-reward-check span{font:10px var(--mono);color:var(--muted)}.pred-option{display:flex;align-items:center;gap:10px;font-size:13px}.pred-option input{accent-color:var(--violet);width:18px;height:18px}.pred-exit-steps{flex:1;display:flex;flex-direction:column;justify-content:center}.pred-exit-steps>div{display:grid;grid-template-columns:32px 1fr;align-items:center;column-gap:12px;row-gap:6px;border-bottom:1px solid var(--border);padding:18px 0;color:var(--muted)}.pred-exit-steps i{font:13px var(--mono);font-style:normal;grid-row:1/3}.pred-exit-steps b{grid-column:2;font-size:12px;font-weight:400;color:var(--muted)}.pred-exit-steps .done{color:var(--text)}.pred-exit-steps .done i{color:var(--teal)}.pred-exit-steps .running{color:var(--violet);animation:pred-capital-pulse 1s ease-in-out infinite alternate}.pred-exit-visual .pred-pair-cards strong{font-size:28px}.pred-guard-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pred-guard-controls button{border:1px solid var(--border);padding:12px;border-radius:12px;font-size:12px;text-align:left;min-height:48px}.pred-guard-controls button[aria-pressed=true]{background:var(--lilac);color:#111;border-color:var(--lilac)}.pred-guard-verdict{display:flex;align-items:center;gap:14px;background:color-mix(in srgb,var(--teal) 8%,transparent);padding:16px;border-radius:12px}.pred-guard-verdict.alert{background:color-mix(in srgb,var(--pink) 13%,transparent)}.pred-guard-verdict i{font:24px var(--display);font-style:normal}.pred-guard-verdict div{display:flex;flex-direction:column;gap:7px}.pred-guard-verdict b{font-size:13px;font-weight:500}.pred-guard-verdict span{font-size:12px;color:var(--muted)}.pred-platforms{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:1000px;width:100%;margin:auto;min-height:420px}.pred-platform-card{padding:32px;gap:24px}.pred-platform-card header img{width:64px;height:64px;border-radius:14px}.pred-platform-card h3{font-size:36px}.pred-platform-points{display:flex;flex-wrap:wrap;gap:8px}.pred-platform-points span{border:1px solid var(--border);border-radius:20px;padding:8px 12px;font:10px var(--mono)}.pred-platform-card .pred-fine{margin-top:auto}.pred-platform-plus{display:grid;place-items:center;width:64px;height:64px;border-radius:14px;background:var(--lilac);color:#111;font:400 40px var(--display)}.pred-your-platform .pred-btn{align-self:flex-start;text-decoration:none;white-space:normal}.pred-tool-grid .pred-fine,.pred-platform-card .pred-fine{font-size:10px;line-height:1.6}
@keyframes pred-capital-flow{0%{transform:translateY(-12px);opacity:.2}100%{transform:translateY(12px);opacity:1}}@keyframes pred-capital-pulse{from{opacity:.5}to{opacity:1}}
@media(max-height:820px) and (min-width:761px){.pred-tool-grid{min-height:390px;max-height:none}.pred-tool-grid .pred-card{gap:14px;padding:20px}.pred-tool-grid h3{font-size:26px}.pred-tool-grid p{font-size:12px;margin:0}.pred-reward-band{height:136px;margin-top:0}.pred-tool-grid .pred-pair-cards .pred-kpi{padding:14px}.pred-platforms{min-height:360px}}
@media(max-width:760px){.pred-tool-grid{grid-template-columns:1fr;min-height:0;max-height:none}.pred-tools-view{flex:none}.pred-tools-tabs{width:100%;justify-content:flex-start!important}.pred-tool-grid .pred-card{min-height:350px}.pred-capital-visual{padding:24px 18px;min-height:340px}.pred-pair-cards{gap:10px}.pred-pair-cards .pred-kpi{padding:16px}.pred-pair-cards strong{font-size:30px}.pred-platforms{grid-template-columns:1fr;min-height:0;gap:20px}.pred-platform-card{padding:24px;min-height:350px}.pred-platform-card h3{font-size:30px}.pred-platform-card header{gap:8px}.pred-platform-card header img{width:52px;height:52px}.pred-platform-card .pred-state{font-size:9px}.pred-capital-total strong{font-size:42px}.pred-tools-tabs button{font-size:11px}.pred-tool-grid .pred-btn{white-space:normal}}

.pred-tools-view{flex:0 0 auto}.pred-tool-grid{max-height:none}.pred-guard-visual{gap:14px}.pred-guard-visual .pred-detail{padding-block:10px}.pred-guard-visual .pred-pair-cards .pred-kpi{padding:16px}.pred-tool-grid p{margin-block:0}
