:root{--accent: #1c6dd0;--bg: #f6f7fb;--border: #d5dae3;--text: #111827;--muted: #5f6b7f;--surface: #ffffff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:light}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);padding:1rem}header{padding-bottom:.5rem;height:50px;display:flex;align-items:center;gap:1rem}h1{margin:0;font-size:1.5rem;display:flex;align-items:center}.logo-c{color:#15803d}.logo-u{color:#b91c1c}h2{font-size:14px;font-weight:400}header img{mix-blend-mode:multiply;margin-left:5px}p{margin-top:0;color:var(--muted);line-height:1.45}.page{height:calc(100vh - 80px);display:grid;grid-template-columns:minmax(280px,340px) 1fr;margin:0 auto;align-items:start;background:var(--surface);border:1px solid var(--border);border-radius:.5rem;box-shadow:0 24px 50px #0f172a14}.sidebar{display:flex;flex-direction:column;gap:1.25rem;height:100%}#controls{border-right:1px solid var(--border);display:flex;flex-direction:column;gap:1rem;padding:16px;height:100%}label{font-size:.9rem;font-weight:600;color:var(--muted);display:flex;flex-direction:column;gap:.35rem}input,select,button{font:inherit;border-radius:.5rem;border:1px solid var(--border);padding:.55rem .75rem;background:#fff;color:var(--text)}input:focus-visible,select:focus-visible{outline:2px solid var(--accent);border-color:transparent}button{cursor:pointer;border:none;font-weight:600;transition:transform .15s ease,filter .15s ease}button:hover{transform:translateY(-1px)}.primary{background:var(--accent);color:#fff}.ghost{background:#e2e8f0;color:var(--text)}.chart-area{display:flex;height:100%;flex-direction:column}.chart-toolbar{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.toolbar-side{display:flex;flex-direction:row;gap:2rem}.position-value{font-size:2rem;color:#000}#maxProfit{color:#15803d}#maxLoss{color:#b91c1c}.toolbar-group{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:var(--muted)}.toolbar-group select{min-width:140px}.panel{display:flex;flex-direction:column;gap:1.25rem;height:100%}.legend{display:flex;flex-wrap:wrap;gap:1.25rem;color:var(--muted);font-weight:600;-webkit-user-select:none;user-select:none}.legend span{color:var(--text)}textarea{width:100%;font-family:SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Courier New,monospace;font-size:13px;padding:12px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;resize:vertical}textarea:focus{outline:none;border-color:#3b82f6;background:#fff}.error{color:#dc2626;font-size:14px;margin:8px 0;padding:8px 12px;background:#fee2e2;border-radius:6px;border:1px solid #fecaca}.example-buttons{display:flex;gap:8px;margin:auto 0 16px;flex-wrap:wrap}.example-btn{padding:6px 12px;margin:2px;font-size:13px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;transition:all .2s ease}.example-btn:hover{background:#e5e7eb;border-color:#d1d5db}details.advanced-settings{margin-top:16px;border:1px solid #e5e7eb;border-radius:8px;padding:12px;background:#f9fafb}details.advanced-settings summary{cursor:pointer;font-weight:500;color:#6b7280;-webkit-user-select:none;user-select:none;list-style:none}details.advanced-settings summary::-webkit-details-marker{display:none}details.advanced-settings summary:before{content:"▶";display:inline-block;margin-right:8px;transition:transform .2s}details.advanced-settings[open] summary:before{transform:rotate(90deg)}details.advanced-settings[open]{background:#fff}.chart-root{position:relative;height:100%;border-top:1px solid var(--border);padding:.5rem;border-radius:0 0 6px}.chart-surface{position:relative;width:100%;height:100%;overflow:hidden;border-radius:6px}.chart-canvas{display:block;width:100%;height:100%;position:absolute;top:0;left:0}.heatmap-layer{z-index:0}.crosshair-layer{z-index:1}.contour-layer{z-index:2}.mode-pill{display:inline-flex;border-radius:999px;font-size:.85rem;gap:.35rem;padding:.2rem .85rem;background:#e0e7ff;color:#312e81;align-self:center}.tooltip{position:fixed;pointer-events:none;background:#0f172af0;color:#e2e8f0;border-radius:4px;padding:.65rem .85rem;font-size:.85rem;box-shadow:0 24px 50px #0f172a59;z-index:1000;opacity:0;transition:opacity .15s ease}.tooltip[data-visible=true]{opacity:1}.tooltip strong{color:#fff}@media(max-width:960px){.page{height:100%;grid-template-columns:1fr}.chart-area{height:800px}.chart-toolbar{flex-wrap:wrap;justify-content:space-between}}@media(max-width:640px){.legend{flex-direction:column;gap:.6rem}#controls{padding:1rem}}
