.preview{margin-bottom:1rem}.top,.buttons,.pair,.formula{display:flex;align-items:center;gap:.6rem}.top{justify-content:space-between}.top h2{margin:0}.legend{font-weight:bold;display:flex;gap:1rem}.legend span:first-child{color:#b6a2e7}.legend span:last-child{color:#efae65}
#chart{width:100%;display:block;background:#201e2a;border-radius:8px;margin:1rem 0}
#match{display:flex;flex-wrap:wrap;gap:.5rem}
#match span{flex:1 1 0;min-width:0;padding:.6rem .8rem;border-radius:10px;background:var(--surface-3);color:var(--text-2);font-size:.9rem;line-height:1.35}
#match b{display:block;font-size:clamp(1.15rem,3vw,1.4rem);color:var(--text)}
#match .win b{color:#c7b3f0}#match .loss b{color:#f3b974}
.workspace{grid-template-columns:1fr 1fr}
.formula{align-items:stretch;flex-direction:column;padding-bottom:1rem;border-bottom:1px solid var(--border)}
.formula input[type=text]{width:100%;font-family:"JetBrains Mono",ui-monospace,monospace}
.formula input[aria-invalid=true]{border-color:#f87171}
.pair label{flex:1;min-width:0}.formula label{margin:6px 0 0}.formula label span,.controls>label span{display:block;margin-bottom:.35rem}
.buttons{flex-wrap:wrap;margin-top:1rem}
.examples{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:0 0 .6rem}
.examples span{width:100%;font-size:.85rem;color:var(--text-3)}
.examples button{min-height:38px;padding:.35rem .75rem;font-size:.88rem;border-radius:999px}
#status{color:var(--text-2)}
#summary article{margin-bottom:.8rem;background:var(--bg);padding:12px;border-radius:8px;line-height:1.65}#summary article strong{color:#bda5ed;display:block}#summary article:nth-child(2) strong{color:#efae65}
#point{width:100%;accent-color:#b297dc}#inspect{min-height:3.2em}.plan label{display:block;margin-top:1.2rem}
.help{margin-top:.4rem}.help p{margin:.4rem 0 0}
@media(max-width:680px){.workspace{grid-template-columns:1fr}}
[data-theme="light"] input[type=text],[data-theme="light"] input[type=number],[data-theme="light"] select{background:#fff;color:var(--text)}
[data-theme="light"] #summary article{background:var(--surface-2)}
[data-theme="light"] #summary article strong{color:#6d4fb3}[data-theme="light"] #summary article:nth-child(2) strong{color:#a75b06}
[data-theme="light"] #match .win b{color:#6d4fb3}[data-theme="light"] #match .loss b{color:#a75b06}
[data-theme="light"] .legend span:first-child{color:#7c5fc4}[data-theme="light"] .legend span:last-child{color:#b86a0c}
[data-theme="light"] button.primary { color:#fff; }
