.xlcastle{--xl-text:#e5f2ff;--xl-muted:#9fb4ca;--xl-line:rgba(133,180,216,.22);--xl-panel:#0d1d2b;color:var(--xl-text);background:#09151f;border:1px solid var(--xl-line);border-radius:22px;padding:clamp(16px,3vw,30px);margin:24px 0;overflow:hidden;min-width:0}
.xlcastle *{box-sizing:border-box}.xlcastle [hidden]{display:none!important}
.xlcastle-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.xlcastle .xlcastle-heading h2{font-size:clamp(23px,3.2vw,38px);line-height:1.15;letter-spacing:-.035em;margin:6px 0 12px;color:var(--xl-text)}.xlcastle-heading p{font-size:14px;line-height:1.6;max-width:62ch;color:var(--xl-muted);margin:0}.xlcastle-heading .xlcastle-eyebrow{color:#76c6fc;font-size:10px;letter-spacing:.15em;font-weight:700}.xlcastle-mode-badge{border:1px solid #39785f;border-radius:30px;background:#12312a;color:#9bf1c9;font-size:9px;font-weight:700;letter-spacing:.08em;padding:8px 12px;white-space:nowrap}.xlcastle[data-mode=explore] .xlcastle-mode-badge{background:#352b18;border-color:#796333;color:#f1d395}
.xlcastle-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}.xlcastle-modes{display:flex;border:1px solid var(--xl-line);border-radius:12px;padding:4px;background:#0d1d2b}.xlcastle button,.xlcastle select{font:inherit;font-size:12px;line-height:1.25;border:1px solid var(--xl-line);border-radius:8px;color:var(--xl-text);background:#152b3d;padding:10px 13px;min-height:40px;cursor:pointer}.xlcastle button:focus-visible,.xlcastle select:focus-visible,.xlcastle input:focus-visible,.xlcastle summary:focus-visible{outline:2px solid #7dd4ff;outline-offset:4px}.xlcastle button:hover:not(:disabled){background:#22445d}.xlcastle button:disabled,.xlcastle select:disabled{opacity:.5;cursor:default}.xlcastle-modes button{border-color:transparent;background:transparent}.xlcastle-modes button[aria-pressed=true]{background:#25445b;color:#d9f1ff;box-shadow:inset 0 0 0 1px #48718e}.xlcastle-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.xlcastle-tools label{color:var(--xl-muted);font-size:11px;display:flex;align-items:center;gap:8px}.xlcastle select{min-width:78px}.xlcastle-reading{font-size:14px;line-height:1.65;margin:20px 0;color:var(--xl-text);border-left:3px solid #4edcac;padding:2px 16px}.xlcastle[data-pressure=sell] .xlcastle-reading{border-color:#ec7f8c}.xlcastle[data-pressure=sell] .xlcastle-multiplier{color:#ff9da8}
.xlcastle-explore{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:24px;padding:22px;border:1px solid #665534;background:#251f15;border-radius:14px;margin:20px 0;color:#f4dcb3}.xlcastle-explore strong{font-size:14px}.xlcastle-explore p{font-size:12px;line-height:1.6;margin:6px 0 0;color:#cdbb9b}.xlcastle-explore label{display:grid;gap:10px;font-size:12px}.xlcastle-explore output{font-size:19px;font-weight:700;color:#ffe1a8;font-variant-numeric:tabular-nums}.xlcastle-explore input{width:100%;accent-color:#eac17c;cursor:pointer;min-height:30px;margin:0}
.xlcastle-context{display:grid;grid-template-columns:1fr 1.25fr 1fr;border:1px solid var(--xl-line);border-radius:14px;background:var(--xl-panel);margin-top:22px}.xlcastle-context>div{display:flex;flex-direction:column;gap:7px;padding:18px 20px;min-width:0}.xlcastle-context>div+div{border-left:1px solid var(--xl-line)}.xlcastle-context span{font-size:10px;color:var(--xl-muted);letter-spacing:.03em}.xlcastle-context strong{font-size:20px;font-variant-numeric:tabular-nums;color:var(--xl-text)}.xlcastle-context small{font-size:10px;line-height:1.5;color:var(--xl-muted)}.xlcastle-method{margin-top:22px;border-top:1px solid var(--xl-line);padding-top:18px}.xlcastle-method summary{font-size:12px;cursor:pointer;color:#a5d8fc;list-style-position:inside;min-height:24px}.xlcastle-method>div{columns:2;column-gap:28px}.xlcastle-method p{font-size:12px;line-height:1.8;color:var(--xl-muted);break-inside:avoid}.xlcastle-method strong{color:var(--xl-text)}
@media(max-width:760px){.xlcastle-heading{flex-direction:column;gap:12px}.xlcastle-explore{grid-template-columns:1fr;gap:16px}.xlcastle-context{grid-template-columns:1fr}.xlcastle-context>div+div{border-left:0;border-top:1px solid var(--xl-line)}.xlcastle-method>div{columns:1}.xlcastle-toolbar{align-items:stretch}.xlcastle-tools{gap:6px}.xlcastle-tools label{flex:1}.xlcastle button{font-size:11px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){.xlcastle *{scroll-behavior:auto!important;transition:none!important}}

.xlcastle-balance{display:flex;height:5px;overflow:hidden;border-radius:10px;background:#1b3042;margin:-6px 0 22px}.xlcastle-balance span:first-child{width:var(--xl-buy-share,50%);background:#55ddb0;transition:width .3s ease}.xlcastle-balance span:last-child{flex:1;background:#e78694}
