:root{--bg:#f3f5f4;--paper:#fff;--ink:#172631;--muted:#77848b;--line:#e4e9e7;--nav:#101b25;--teal:#177c70;--teal-pale:#e5f3ef;--amber:#b87825;--amber-pale:#fff2dc;--red:var(--tone-b94c43,#b94c43);--shadow:0 12px 32px #18282c0b}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);font-size:14px}
button,input{font:inherit}
button{cursor:pointer}
.shell{min-height:100vh;display:grid;grid-template-columns:246px 1fr}
.brand{display:flex;align-items:center;gap:11px;padding:0 9px}
.brand strong{display:block;letter-spacing:.3px;font-size:14px}
.brand small{color:#91a1a7;font-size:11px}
.nav{display:grid;gap:4px}
.nav button{border:0;background:transparent;color:#b9c5c9;text-align:left;padding:11px 12px;border-radius:9px;display:flex;align-items:center;gap:12px;font-size:13px}
.nav button:hover,.nav button.active{background:#22323d;color:#fff}
.nav .ico{width:19px;text-align:center;font-size:15px;color:#a4c8be}
.main{min-width:0}
.topbar{height:69px;background:#ffffffdc;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,54px);position:sticky;top:0;z-index:5;backdrop-filter:blur(10px)}
.crumb{color:var(--muted);font-size:12px}
.crumb b{color:var(--ink);font-weight:600}
.topright{display:flex;align-items:center;gap:11px}
.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e7ece9;color:#596970;font-size:11px}
.content{max-width:1200px;margin:0 auto;padding:31px clamp(20px,4vw,54px) 56px}
.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.7px;color:var(--teal);font-weight:800;margin-bottom:10px}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:24px}
.page-head h1{font-size:26px;letter-spacing:-.7px;margin:0 0 7px}
.page-head p{color:var(--muted);margin:0;line-height:1.65}
.head-actions{display:flex;gap:9px;flex-wrap:wrap}
.btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:10px 14px;border-radius:9px;font-weight:650;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.15s}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.btn.primary{background:var(--nav);color:#fff;border-color:var(--nav)}
.btn.teal{background:var(--teal);color:#fff;border-color:var(--teal)}
.btn.amber{background:#fff9ee;color:#98631d;border-color:#f0dfc2}
.btn.small{padding:7px 10px;font-size:11px}
.banner{background:#fff8ea;border:1px solid #f1dfbd;color:#705322;border-radius:11px;padding:12px 15px;display:flex;gap:10px;align-items:flex-start;line-height:1.55;font-size:12px;margin-bottom:20px}
.banner .mark{font-size:16px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}
.stat,.card{background:var(--paper);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}
.stat{padding:17px 18px}
.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}
.stat-icon{width:29px;height:29px;background:#eff4f1;color:var(--teal);border-radius:8px;display:grid;place-items:center;font-size:14px}
.stat strong{display:block;font-size:25px;letter-spacing:-.8px;margin-top:11px}
.stat small{font-size:10px;color:var(--muted);display:block;margin-top:4px}
.grid-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.9fr);gap:16px}
.card{padding:19px}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
.card-head h2{font-size:14px;margin:0}
.card-head p{color:var(--muted);font-size:11px;margin:5px 0 0}
.live{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--teal);font-weight:700}
.dot{width:7px;height:7px;border-radius:50%;background:#4daf8a;box-shadow:0 0 0 4px #e4f4ed}
.draw-display{border:1px solid var(--line);border-radius:11px;background:#fbfcfb;padding:19px 17px;margin-bottom:15px}
.draw-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:17px}
.pill{display:inline-flex;padding:5px 8px;border-radius:20px;font-size:10px;font-weight:700}
.pill.random{background:var(--teal-pale);color:#167162}
.pill.intervention{background:var(--amber-pale);color:#9c681f}
.balls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ball{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #dce6e2;color:#246b61;font-size:13px;font-weight:800;box-shadow:0 3px 7px #1a40310c}
.ball.special{background:var(--nav);border-color:var(--nav);color:white;margin-left:6px;position:relative}
.ball.special:before{content:'+';position:absolute;left:-13px;color:#a4afae;font-weight:400}
.ball.reveal{animation:pop .32s ease-out 1}
@keyframes pop{0%{transform:scale(.6);opacity:.25}
70%{transform:scale(1.12)}
100%{transform:scale(1);opacity:1}
}
.empty-balls .ball{color:#bdc5c4;background:#f3f5f4;border-style:dashed}
.draw-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px}
.source{font-size:10px;color:var(--muted)}
.source strong{color:var(--ink)}
.draw-actions{display:flex;gap:7px}
.divider{height:1px;background:var(--line);margin:17px 0}
.section-title{font-size:11px;color:var(--muted);font-weight:700;margin:0 0 11px}
.mini-list{display:grid;gap:9px}
.mini-row{display:flex;align-items:center;gap:10px}
.mini-id{font-size:10px;color:var(--muted);width:89px;flex-shrink:0}
.mini-balls{display:flex;gap:4px;min-width:0;flex:1}
.mini-ball{font-size:9px;width:23px;height:23px;background:#f5f8f6;border:1px solid #e5ebe8;border-radius:50%;display:grid;place-items:center;color:#3a7067;font-weight:700}
.mini-ball.special{background:#edf0ef;color:#34444a}

.side-card{display:flex;flex-direction:column}
.progress-wrap{padding:13px;border-radius:10px;background:#f6f8f7}
.prog-top{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}
.progress{height:6px;border-radius:8px;background:#e5ebe8;margin:10px 0 7px;overflow:hidden}
.progress span{display:block;height:100%;width:72%;background:var(--teal);border-radius:8px;transition:width .4s}
.prog-foot{font-size:10px;color:var(--muted)}
.mode-row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:flex-start}
.mode-icon{width:29px;height:29px;flex-shrink:0;border-radius:8px;display:grid;place-items:center;background:var(--teal-pale);color:var(--teal)}
.mode-icon.gold{background:var(--amber-pale);color:var(--amber)}
.mode-row strong{font-size:11px;display:block;margin:1px 0 4px}
.mode-row p{font-size:10px;color:var(--muted);line-height:1.5;margin:0}
.side-card .btn{margin-top:auto}





















.view{display:none}
.view.active{display:block}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;white-space:nowrap}
th{text-align:left;font-size:10px;color:var(--muted);font-weight:650;padding:11px 9px;border-bottom:1px solid var(--line)}
td{padding:12px 9px;border-bottom:1px solid #edf0ef;font-size:11px}
.num-set{display:flex;gap:4px}
.num-chip{height:22px;min-width:23px;padding:0 4px;border:1px solid #e3eae7;background:#f8faf9;border-radius:20px;display:grid;place-items:center;font-weight:700;color:#397268;font-size:9px}
.num-chip.special{background:#edf0ef;color:#3c494d}
.table-foot{display:flex;justify-content:space-between;align-items:center;padding-top:13px;color:var(--muted);font-size:10px}















.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--nav);color:#fff;padding:11px 16px;border-radius:9px;box-shadow:var(--shadow);font-size:12px;z-index:20;transition:.25s}
.toast.show{opacity:1;transform:translate(-50%,0)}











.footerline{padding-top:25px;color:#95a0a0;font-size:9px;text-align:center}
@media(max-width:930px){.shell{grid-template-columns:205px 1fr}
.stats{grid-template-columns:repeat(2,1fr)}
.grid-main{grid-template-columns:1fr}
.side-card .btn{margin-top:12px}

}
@media(max-width:650px){.shell{display:block}
.brand{padding:0 3px}
.nav{display:flex;overflow:auto;gap:3px;margin-top:9px}
.nav button{padding:8px 9px;font-size:10px;white-space:nowrap}
.nav .ico{display:none}
.topbar{height:51px;padding:0 17px}
.content{padding:22px 15px 40px}
.page-head{align-items:flex-start;flex-direction:column}
.page-head h1{font-size:22px}
.stats{gap:9px}
.stat{padding:13px}
.stat strong{font-size:21px}
.card{padding:15px}
.draw-actions .btn{font-size:10px;padding:8px}
.ball{width:34px;height:34px}

}

.proof-strip{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;margin-top:12px;border:1px solid var(--line);border-radius:9px;background:#fff}
.proof-item{display:grid;gap:3px;min-width:170px;max-width:100%}
.proof-strip span{font-size:9px;color:var(--muted)}
.proof-strip code{font:10px ui-monospace,Consolas,monospace;letter-spacing:.3px;color:#345a53;overflow-wrap:anywhere}
.proof-strip small{font-size:9px;color:#8b9898}
.proof-strip code{max-width:430px;overflow-wrap:anywhere}
.proof-strip .actions{display:flex;gap:6px;flex-wrap:wrap}
.draw-display.pending .balls{opacity:.8}
.draw-display:not(.pending) #copyCommitment{display:none}

.proof-cell{min-width:190px;max-width:330px}
.proof-cell small{display:block;color:#77848b;font-size:9px;margin-top:5px}
.proof-cell code{display:block;white-space:normal;overflow-wrap:anywhere;font-size:9px;color:#31444a;background:#f5f8f6;padding:4px 6px;border-radius:5px;margin-top:2px}
.proof-cell details{margin-top:4px}
.proof-cell summary{font-size:10px;color:#177c70;cursor:pointer;font-weight:700;padding:4px 0}
.proof-cell a{margin-top:5px}
@media (prefers-reduced-motion: reduce){.ball.reveal{animation:none}}

/* 历史日期检索 */
.history-search{display:flex;flex-wrap:wrap;align-items:flex-end;gap:20px;padding:20px 24px;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3;background:#fafbfc}
.history-date-fields{display:flex;flex:1;gap:16px}
.history-date-fields label{display:flex;flex-direction:column;gap:0;flex:1;min-width:110px;font-size:12px;font-weight:650;color:#556171;border:1px solid #d9dee5;border-radius:7px;background:#fff;overflow:hidden;box-shadow:0 2px 5px #23304305}
.history-field-title{display:flex;align-items:center;justify-content:center;min-height:36px;padding:5px 10px;background:#eef1f5;border-bottom:1px solid #d9dee5;color:#445468;letter-spacing:1px;text-align:center;box-sizing:border-box}
.history-date-fields label:focus-within{border-color:var(--tone-b81d29,#b81d29);box-shadow:0 0 0 2px var(--tone-b81d2910,#b81d2910)}
.history-date-fields select{width:100%;height:44px;padding:0 12px;border:0;border-radius:0;background:#fff;color:#233043;font:inherit;text-align:center;text-align-last:center;cursor:pointer}
.history-date-fields select:focus-visible{outline:2px solid var(--tone-b81d29,#b81d29);outline-offset:-3px}
.history-search .history-search-actions{width:248px;max-width:248px;flex-shrink:0}
.history-search #historySearchStatus{flex-basis:100%;margin:0;font-size:12px;color:#697586;line-height:1.6}
.history-empty{text-align:center;padding:36px!important;color:#697586}
@media(max-width:650px){.history-search{padding:16px;gap:16px}.history-date-fields{flex-basis:100%;gap:10px}.history-date-fields label{min-width:0}.history-search .history-search-actions{width:100%;max-width:none}}
