.kelly-panel{margin-top:18px;border-color:#424065;background:linear-gradient(135deg,#181925,#0d171e 70%)}
.kelly-panel h3{margin:6px 0;font-size:clamp(20px,2.3vw,27px)}
.kelly-tag{font-size:12px;white-space:nowrap;border:1px solid #534879;border-radius:999px;color:#d0baff;padding:7px 12px}
.kelly-intro{max-width:920px;line-height:1.65;color:var(--muted)}
.kelly-average-source{padding:12px 14px;border:1px solid #534879;border-radius:8px;background:#241f33;color:#e2d5ff;line-height:1.6;overflow-wrap:anywhere;font-size:14px}
.kelly-average-source[hidden]{display:none}
.kelly-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.kelly-inputs label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted);min-width:0}
.kelly-inputs input,.kelly-inputs select{width:100%;min-width:0}
.kelly-inputs input:invalid{border-color:var(--danger)}
.kelly-presets{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:16px 0;font-size:13px;color:var(--muted)}
.kelly-presets button[aria-pressed=true]{border-color:#c4acff;background:#2c2540;color:#e2d5ff}
.kelly-stake{padding:14px;border-left:3px solid #c4acff;background:#191c2b;border-radius:4px;line-height:1.65;font-size:14px;min-height:72px}
.kelly-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:18px 0}
#kellyStatus{font-size:13px;color:var(--muted)}
.kelly-results-heading h4{font-size:18px;margin:24px 0 5px}
.kelly-panel .help-text{line-height:1.65}
.kelly-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.kelly-metric{padding:18px;border:1px solid #40364d;border-radius:12px;background:#19171f;display:flex;flex-direction:column;gap:9px}
.kelly-metric>span{color:var(--muted);font-size:13px}
.kelly-metric strong{font-size:clamp(26px,3vw,36px);color:#ffa3b1;letter-spacing:-.03em}
.kelly-metric small{line-height:1.4;color:var(--muted)}
.kelly-risk{line-height:1.65;font-size:14px}
.kelly-risk p{margin:9px 0}
.kelly-risk strong{color:#ded0ff}
.kelly-method,.kelly-distribution{border-top:1px solid var(--border);padding-top:16px;margin-top:20px;font-size:13px;line-height:1.7}
.kelly-method summary,.kelly-distribution summary{color:#c4acff;cursor:pointer;font-weight:650;font-size:14px}
.kelly-method p{max-width:980px;color:var(--muted)}
.kelly-bins{max-width:780px;margin-top:14px}
.kelly-bin{display:grid;grid-template-columns:88px minmax(0,1fr) 72px;align-items:center;gap:12px;margin:8px 0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.kelly-bin>span:last-child{text-align:right}
.kelly-bin-track{height:14px;background:#1d2735;border-radius:4px;overflow:hidden}
.kelly-bin-track i{display:block;height:100%;background:#ba9cec;border-radius:4px}
@media(max-width:1000px){.kelly-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.kelly-tag{display:none}}
@media(max-width:620px){.kelly-panel{padding:16px}.kelly-metrics{grid-template-columns:1fr}.kelly-metric{display:grid;grid-template-columns:1fr auto;align-items:center;padding:14px}.kelly-metric small{grid-column:1/-1}.kelly-inputs{gap:12px}.kelly-inputs label{font-size:12px}.kelly-presets>span{flex-basis:100%}.kelly-presets button{flex:1;font-size:12px;padding:8px}.kelly-bin{grid-template-columns:77px minmax(0,1fr) 56px;gap:7px}.kelly-actions .btn{width:100%}}
@media(max-width:380px){.kelly-inputs{grid-template-columns:1fr}}
