*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#121d1d;color:#edf5f2;font:16px/1.45 "Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif}header{border-bottom:1px solid #374743}.bar,main{max-width:970px;margin:auto;padding:0 20px}.bar,.actions,.row,.editorActions,.summary{display:flex;align-items:center;gap:10px}.bar{height:57px}.bar strong{color:#89e7b3}.spacer{flex:1}main{padding-top:36px}.card,dialog{background:#182423;border:1px solid #394d46;padding:20px}.card{margin:14px 0}.login{max-width:375px;margin:11vh auto 0}.login button{width:100%}.bar span,#metadata,p,label{color:#b7cbc4}h1,h2,p{margin:0}h1{font-size:26px}h2{font-size:18px}main p,dialog:not(#scriptDialog) p{margin:10px 0}.row{flex-wrap:wrap}.row label{flex:1;margin:0}.actions{margin-top:15px}input,textarea,select,button{font:inherit}input,textarea,select{color:#edf5f2;background:#10191a;border:1px solid #415450;padding:8px 10px;min-width:0}input:not([type=checkbox]),textarea{width:100%}label{display:grid;gap:6px;margin:14px 0}button{border:1px solid #50665e;background:#273935;color:#f5faf8;padding:8px 14px;cursor:pointer}button:hover{filter:brightness(1.14)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #7ce8ac;outline-offset:1px}.primary{background:#7ce8ac;color:#12271d;font-weight:650}button:disabled{opacity:.56;cursor:wait}dialog{color:inherit;width:min(445px,96vw);max-height:96dvh}dialog::backdrop{background:#070e0db8}#status,#editorError,#accountError{color:#ffd38a}#scriptDialog{padding:0;width:min(936px,100vw);max-width:100vw;max-height:100dvh;border:1px solid #42534f}#editor{margin:0}.titlebar{padding:5px 14px;background:#e9edef;color:#37403d;font:14px/20px "Microsoft YaHei UI",sans-serif}.sheet{padding:22px 16px 18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 20px;font-family:"Microsoft YaHei UI","Microsoft YaHei",sans-serif}.sheet label{margin:0}.sheet h2{font-size:16px;margin:3px 0 5px}.sheet p{line-height:1.35}.sheet input,.sheet textarea{border-radius:0}.check{display:flex;align-items:center;gap:5px;color:#f1f6f4}.check input{width:15px;height:15px;margin:0;accent-color:#7ce8ac}.leftHelp .check{margin-top:5px}.sheet textarea,#preview{height:clamp(230px,40vh,330px);overflow:auto}.sheet textarea{resize:vertical;font:16px/1.3 Consolas,"Microsoft YaHei",monospace}#preview{background:#102c24;border:1px solid #315648;border-radius:5px;padding:7px 12px;color:#d3eae0}#preview div{margin:0 0 5px;overflow-wrap:anywhere}.summary,.editorActions,#editorError{grid-column:1/-1}.summary{justify-content:space-between;color:#ffd38a}.summary label{display:flex;align-items:center;gap:6px;font-size:13px}.summary select{padding:2px}.editorActions{gap:9px}.editorActions button{background:#dedede;color:#151a17;border-color:#919b94;min-height:40px}.editorActions .primary{background:#7ce8ac}.editorActions button:disabled{opacity:.5}[hidden]{display:none!important}@media(max-width:620px){main{padding:22px 12px}.bar{padding:0 12px;gap:7px}.bar>span:first-of-type{display:none}.sheet{grid-template-columns:minmax(0,1fr);padding:12px;gap:9px}.nameField{order:0}.stakeField{order:1}.leftHelp{order:2}#rounds{order:3;height:150px}.rightHelp{order:4}#preview{order:5;height:auto;max-height:220px}.summary{order:6;flex-wrap:wrap}.editorActions{order:8;flex-wrap:wrap}.editorActions button{padding:6px 8px}.editorActions .spacer{display:none}#editorError{order:7}.row label{min-width:100%}}
@media(min-width:621px){#scriptDialog{margin:0 auto;top:max(0px,calc((100dvh - 662px)/2))}.sheet textarea,#preview{height:clamp(230px,43vh,330px)}#preview{word-spacing:1px;white-space:pre-wrap}.check input{color-scheme:light}}
