:root{color-scheme:light dark;font:15px system-ui,sans-serif}body{margin:0;background:Canvas;color:CanvasText}header,main{max-width:1000px;margin:auto;padding:16px}header{display:flex;align-items:center;flex-wrap:wrap;gap:16px}h1{font-size:21px;margin:0}h2{font-size:17px}section{border:1px solid GrayText;border-radius:10px;padding:16px;margin:12px 0}label{display:flex;gap:10px;align-items:center;margin:12px 0;flex-wrap:wrap}input,button,select{font:inherit;padding:8px;max-width:100%;box-sizing:border-box}input[type=checkbox]{width:20px;height:20px}button{margin:4px 6px 4px 0;cursor:pointer}article{padding:12px 0;border-bottom:1px solid GrayText;display:flex;align-items:center;gap:12px;flex-wrap:wrap}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}a{color:LinkText}#status{overflow-wrap:anywhere}
.condition-editor{display:flex;flex-wrap:wrap;gap:6px;align-items:center;border-bottom:1px solid GrayText;padding:8px 0}.operand-editor{display:flex;flex-wrap:wrap;gap:4px}.operand-editor input{max-width:110px}textarea{box-sizing:border-box;font:13px monospace;max-width:100%}[hidden]{display:none!important}

.v3-expression-node{min-width:0;border-left:2px solid GrayText;padding:5px;margin:4px 0}.v3-expression-node>div{min-width:0}.operand-editor{border:1px solid GrayText;padding:5px;margin:4px 0;align-items:flex-start}.operand-editor>div{min-width:0;max-width:100%}.operand-editor code{overflow-wrap:anywhere;white-space:pre-wrap}.operand-editor label{display:inline-flex;margin:4px}.nested-source{min-width:0}.v3-expression-node select{max-width:100%}

.shared-market-picker{display:flex;flex-wrap:wrap;gap:6px;align-items:center;max-width:100%;margin:4px 0}.shared-market-picker input,.shared-market-picker select{min-width:0;max-width:100%}.shared-market-picker small{flex-basis:100%}.shared-market-picker small:empty{display:none}

@media(max-width:760px){.mobile-rule-start{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:9px}.mobile-rule-start select,.mobile-rule-start button{min-height:44px}.mobile-rule-start p{margin:0;line-height:1.5}body[data-research] main>section:nth-last-of-type(-n+3){min-width:0}}
@media(min-width:761px){.mobile-rule-start{display:none}}

@media(max-width:760px){#mobileRuleMarkets,#mobileRuleThreshold{display:flex;flex-wrap:wrap;gap:6px}#mobileRuleMarkets button,#mobileRuleThreshold button{flex:1;min-width:44px;min-height:44px}#mobileRuleThreshold button[aria-pressed=true]{outline:2px solid #518dfa}main>details>summary{padding:10px;cursor:pointer}main>details>summary h2{display:inline;font-size:16px}}
