.predict-main{min-width:0;align-content:start}.predict-side{min-width:0}
.backtest-panel{min-width:0}
.fusion-report{margin:18px 0;padding:14px;border:1px solid rgba(99,217,234,.24);border-radius:10px;background:rgba(16,44,57,.22)}
.fusion-report h4{color:var(--cyan);font-size:13px;margin-bottom:8px}.fusion-report p{font-size:11px;color:var(--muted);line-height:1.9;margin:10px 0;overflow-wrap:anywhere}
.fusion-table-wrap{max-width:100%;overflow-x:auto}.fusion-table{min-width:0;width:100%;table-layout:fixed}.fusion-table th,.fusion-table td{white-space:normal;padding:9px 5px;font-size:10px;overflow-wrap:anywhere}.fusion-table strong{font-size:12px;color:var(--cyan)}.fusion-table small{display:block;font-size:9px;color:var(--muted)}
.fusion-report summary,.backtest-comparison summary,.backtest-records summary{font-size:11px;color:var(--cyan);cursor:pointer;line-height:1.8}
.backtest-comparison{margin:18px 0}.comparison-table th:first-child{width:27%}.fusion-comparison{background:rgba(99,217,234,.08)}
.backtest-records{margin-top:14px}.backtest-record-list{max-height:360px;overflow:auto;padding-right:4px}.backtest-record{border-bottom:1px solid var(--line-soft);padding:12px 0;display:grid;gap:5px}.backtest-record strong{font-size:11px;color:var(--text)}.backtest-record span{font:10px 'DM Mono',monospace;color:var(--muted);word-spacing:2px}.backtest-record small{font-size:9px;color:var(--faint)}
.model-panel button.model-card{display:block;text-align:left;background:transparent;color:var(--text);font:inherit;width:100%}
.model-panel button.model-card.selected{background:rgba(99,217,234,.07)}
.model-card strong{display:block;font-size:13px;padding-right:16px}.model-description{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.7}
.model-card:last-child:nth-child(odd){grid-column:1/-1}
#probabilitySourceNote{margin:0 0 18px;padding:12px;border-left:2px solid var(--cyan);background:rgba(99,217,234,.04);line-height:1.9}
.probability-report{margin-top:18px;padding:14px;border:1px solid rgba(99,217,234,.22);border-radius:10px;background:rgba(16,44,57,.2)}
.probability-report h4{font-size:13px;color:var(--cyan);margin:0 0 8px}.probability-report p{font-size:11px;line-height:1.9;color:var(--muted);margin-top:10px;overflow-wrap:anywhere}
.probability-tests{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.probability-tests>div{padding:10px;border:1px solid var(--line);border-radius:6px}.probability-tests strong{display:block;font-size:11px;color:var(--text)}.probability-tests span{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.probability-report .odds-table{min-width:0;width:100%;margin-top:12px}.odds-table caption{text-align:left;color:var(--muted);font-size:11px;margin-bottom:7px}.odds-table th,.odds-table td{padding:8px 6px;font-size:11px;white-space:normal}.odds-table td:last-child{font-family:'DM Mono',monospace;text-align:right}.odds-table th:last-child{text-align:right}
.paper-citation{border-top:1px solid var(--line);padding-top:9px}.paper-citation a{color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
@media(max-width:540px){.probability-tests{grid-template-columns:1fr}.probability-report{padding:11px}.odds-table td{font-size:10px}}
.model-controls button:disabled{opacity:.6;cursor:wait}
.prediction-output .panel-heading{align-items:center}.prediction-output #predictionTime{white-space:nowrap}
.conversation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding:15px 0;border-bottom:1px solid var(--line-soft)}
.analysis-conversation{max-height:760px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#294657 transparent;overscroll-behavior:contain;padding:22px 3px 5px 0}
.analysis-conversation [hidden]{display:none!important}
.analysis-turn+.analysis-turn{margin-top:30px;padding-top:25px;border-top:1px solid var(--line-soft)}
.user-message{max-width:90%;margin-left:auto;background:linear-gradient(115deg,rgba(55,132,157,.16),rgba(51,105,136,.1));border:1px solid rgba(99,217,234,.2);border-radius:14px 14px 3px 14px;padding:13px 16px;margin-bottom:23px}
.user-message>span{display:block;font-size:10px;color:var(--cyan);margin-bottom:4px}.user-message p{font-size:12px;color:#d2e4ee;line-height:1.9}
.assistant-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:13px}.assistant-avatar{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:rgba(99,217,234,.12);color:var(--cyan);font-size:17px;border:1px solid rgba(99,217,234,.27)}
.assistant-heading strong{font-size:12px;font-weight:600}.analysis-state{font-size:10px;color:var(--cyan);margin-left:auto}.analysis-state[data-state="stopped"]{color:var(--yellow)}
.assistant-body{padding-left:8px}.calculation-details{border-left:1px solid #264655;padding-left:15px;margin-left:5px;margin-bottom:16px}.calculation-details summary{font-size:11px;color:var(--muted);cursor:pointer;list-style:disclosure-open;padding:3px 0}.calculation-details:not([open]) summary{list-style:disclosure-closed}
.calculation-steps{list-style:none;margin:14px 0 2px;padding:0;display:grid;gap:17px}.calculation-steps li{position:relative}.calculation-steps li:before{content:'';width:5px;height:5px;border-radius:50%;position:absolute;left:-18px;top:7px;background:var(--cyan)}
.calculation-steps strong{display:block;font-size:11px;color:#bcdbe6;font-weight:600;margin-bottom:5px}.calculation-steps p{font-size:11px;line-height:1.95;color:#9db4c3;overflow-wrap:anywhere;min-height:1em}
.sampling-progress{padding:12px 14px;border:1px solid rgba(99,217,234,.13);background:rgba(22,57,70,.18);border-radius:9px;margin:16px 0}.sampling-progress>div{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--cyan)}
.sampling-progress progress{display:block;width:100%;height:4px;margin-top:11px;border:none;border-radius:5px;background:#16303f;accent-color:var(--cyan)}.sampling-progress progress::-webkit-progress-bar{background:#16303f;border-radius:5px}.sampling-progress progress::-webkit-progress-value{background:var(--cyan);border-radius:5px}
.analysis-answer{font-size:12px;line-height:2;color:#d1e5ef;margin:18px 0;overflow-wrap:anywhere}.assistant-body.is-streaming .analysis-answer:after{content:'▍';color:var(--cyan);animation:cursor-blink 1s steps(2) infinite}
.analysis-results{display:grid;gap:9px;margin-top:14px}.analysis-results .prediction-set{grid-template-columns:22px minmax(0,1fr) auto;gap:9px;padding:12px 10px}.analysis-results .prediction-rank{font-size:11px;color:var(--faint)}
.candidate-content{min-width:0}.analysis-results .ball-row{gap:5px}.analysis-results .ball{width:25px;height:25px;flex-shrink:0}.candidate-note{display:block;color:var(--muted);font-size:10px;margin-top:7px}.use-candidate{white-space:nowrap;font-size:10px}.use-candidate:disabled{color:var(--faint);cursor:not-allowed}
.analysis-footnote{font-size:10px;color:var(--muted);line-height:1.8;margin-top:16px}.analysis-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:15px;padding-top:12px;border-top:1px solid var(--line-soft)}.analysis-seed{font:9px 'DM Mono',monospace;color:var(--faint);flex:1;min-width:120px}.analysis-actions button{font-size:11px;white-space:nowrap}
.latest-validation{margin-top:18px;padding:12px;border:1px solid rgba(99,217,234,.16);border-radius:9px;background:rgba(16,44,57,.22)}
.validation-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:10px}.validation-heading strong{font:11px 'DM Mono';color:var(--cyan);white-space:nowrap}
.validation-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.validation-row>span{font-size:9px;color:var(--faint);min-width:54px}.validation-row .ball-row{gap:4px}.validation-row .ball{width:22px;height:22px;font-size:9px}
#backtestSummary{margin-top:12px}
@keyframes cursor-blink{to{opacity:0}}
@media(max-width:1120px) and (min-width:851px){.predict-layout{grid-template-columns:minmax(0,1fr)}.predict-side{display:grid;grid-template-columns:1fr 1fr;gap:14px}.predict-side .method-panel{margin-top:0}}
@media(max-width:540px){.analysis-conversation{max-height:650px;padding-top:18px}.user-message{max-width:96%;padding:11px 13px}.assistant-body{padding-left:0}.assistant-heading{gap:7px}.analysis-state{flex-basis:100%;margin-left:34px;margin-top:-4px}.calculation-details{padding-left:12px}.calculation-steps li:before{left:-15px}.analysis-results .prediction-set{grid-template-columns:19px minmax(0,1fr);padding:11px 9px}.analysis-results .use-candidate{grid-column:2;justify-self:start}.analysis-results .ball-row{gap:4px}.analysis-results .ball{width:24px;height:24px}.conversation-toolbar{font-size:10px}.analysis-answer{font-size:12px}.prediction-output .panel-heading{align-items:flex-start}.prediction-output #predictionTime{font-size:9px}.validation-heading{display:block}.validation-heading strong{display:block;margin-top:5px}.validation-row .ball{width:20px;height:20px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.assistant-body.is-streaming .analysis-answer:after{animation:none}}
