:root{--bg:#0B1220;--card:#111A2E;--grid:#1E293B;--text:#E2E8F0;--muted:#94A3B8;--buy:#22D3EE;--refund:#FB923C;--ok:#34D399;--warn:#F59E0B;--bad:#EF4444;--missing:#475569;font-family:Noto Sans SC,Microsoft YaHei,Arial,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);width:1920px;height:1080px;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:2px solid var(--buy);outline-offset:3px}button:disabled{cursor:default;opacity:.65}#app{width:1920px;height:1080px;padding:12px 16px;display:grid;grid-template-rows:44px 84px 118px 1fr 20px;gap:12px}.topbar{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--grid);padding-bottom:8px}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-icon{color:var(--buy);font-size:27px}.brand h1{font-size:19px;letter-spacing:2px;margin:0}.brand-sub{font-size:9px;color:var(--muted);letter-spacing:1px}.products{display:flex;gap:6px}.product-refresh{border:1px solid var(--grid);background:#162235;color:var(--muted);padding:6px 9px;border-radius:4px;font-size:11px}.product-refresh:hover:not(:disabled){color:var(--text);border-color:var(--buy)}.product-chip{border:1px solid var(--grid);background:transparent;padding:6px 10px;border-radius:4px;font-size:12px}.product-chip.active{background:#163042;border-color:var(--buy);color:var(--text)}.controls{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:11px;white-space:nowrap}.clock{font-variant-numeric:tabular-nums;color:var(--muted)}.data-status{color:var(--ok)}.holiday-chip:not(:empty){background:#342039;color:#f472b6;border:1px solid #975079;padding:5px 9px;border-radius:4px;font-weight:600}.analysis-switch{font-size:11px;padding:6px 10px;background:#1b2638;border:1px solid #475569;border-radius:4px}.analysis-switch.enabled{border-color:var(--ok);background:#16392e}.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.kpi{background:var(--card);border:1px solid var(--grid);padding:8px 12px;display:grid;grid-template-columns:40px 1fr;grid-template-rows:1fr 1fr;column-gap:10px;border-radius:4px}.kpi-title{grid-row:span 2;color:var(--muted);font-size:12px;align-self:center}.kpi-row{display:flex;align-items:center;gap:8px;min-width:0}.kpi-row strong{font-size:22px;line-height:26px;letter-spacing:.3px;font-variant-numeric:tabular-nums}.series-key{font-size:10px;color:var(--muted);white-space:nowrap}.series-key:before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;background:var(--buy);border-radius:50%}.refund .series-key:before{background:var(--refund);border-radius:0;transform:rotate(45deg)}.trend{font-size:10px;color:var(--muted);white-space:nowrap}.dashboard-grid{min-height:0;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));grid-template-rows:150px 135px 135px 140px minmax(0,1fr);gap:12px}.panel{min-width:0;min-height:0;background:var(--card);border:1px solid var(--grid);border-radius:4px;overflow:hidden;display:flex;flex-direction:column}.panel-head{height:36px;min-height:36px;display:flex;justify-content:space-between;align-items:center;padding:0 12px;border-bottom:1px solid #1b2940;gap:8px}.panel-label{display:flex;align-items:center;gap:8px;min-width:0}.panel h2{font-size:14px;font-weight:600;margin:0;white-space:nowrap}.panel-number{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.panel-note{font-size:10px;color:var(--muted);white-space:nowrap}.chart{flex:1;min-height:0;width:100%}.panel-r6-24h{grid-column:1/13;grid-row:1}.panel-r6-24h-refund{grid-column:13/25;grid-row:1}.panel-r15{grid-column:1/13;grid-row:2}.panel-r15-refund{grid-column:13/25;grid-row:2}.panel-orders-24h{grid-column:1/13;grid-row:3}.panel-orders-24h-refund{grid-column:13/25;grid-row:3}.panel-req-24h{grid-column:1/9;grid-row:4}.panel-qty-2h{grid-column:9/17;grid-row:4}.panel-channels{grid-column:1/9;grid-row:4}.panel-latency{grid-column:9/17;grid-row:4}.panel-amount{grid-column:17/25;grid-row:4}.panel-activity{grid-column:1/25;grid-row:5}.panel-conclusion{min-height:118px}.conclusion-content{display:grid;grid-template-columns:1fr 1fr;height:100%;padding:12px;gap:16px}.verdict+.verdict{border-left:1px solid var(--grid);padding-left:16px}.verdict-title{display:flex;justify-content:space-between;font-size:12px;gap:8px}.verdict-level{color:var(--muted);font-size:10px;padding:2px 6px;border:1px solid var(--grid);border-radius:3px}.verdict-summary{font-size:12px;line-height:1.8;margin:12px 0;color:var(--text);overflow-wrap:anywhere}.verdict-meta{font-size:10px;color:var(--muted)}.footer{font-size:10px;letter-spacing:.5px;color:var(--muted);display:flex;justify-content:center;align-items:center}.error-banner{position:fixed;top:64px;left:50%;transform:translate(-50%);max-width:1200px;background:#4a2026;color:#fff;border:1px solid var(--bad);padding:12px 24px;z-index:100;font-size:14px;border-radius:4px}.chart-enlarge{flex-shrink:0;color:var(--muted);font-size:11px;border:1px solid var(--grid);border-radius:3px;background:transparent;padding:3px 7px}.chart-enlarge:hover{color:var(--text);border-color:var(--buy)}.chart-dialog{width:94vw;height:88vh;max-width:1800px;max-height:1000px;background:var(--bg);border:1px solid var(--grid);padding:44px 12px 12px;color:var(--text)}.chart-dialog::backdrop{background:#000000bf}.chart-dialog>.panel{height:100%;width:100%}.chart-dialog-close{position:absolute;right:14px;top:10px;background:var(--card);border:1px solid var(--grid);padding:5px 12px;color:var(--text);border-radius:3px}.status-normal{color:var(--ok);border-color:var(--ok)}.status-warn{color:var(--warn);border-color:var(--warn)}.status-abnormal{color:var(--bad);border-color:var(--bad)}body:not(.static-dashboard){width:100%;min-width:360px;height:auto;min-height:100vh;overflow:auto}body:not(.static-dashboard) #app{width:100%;height:auto;min-height:100vh;padding:20px 24px;grid-template-rows:auto auto auto 1fr auto;gap:20px}body:not(.static-dashboard) .topbar{min-height:44px;flex-wrap:wrap;row-gap:12px}body:not(.static-dashboard) .products{flex-wrap:wrap}body:not(.static-dashboard) .kpis{min-height:84px;gap:16px}body:not(.static-dashboard) .dashboard-grid{grid-template-rows:300px 270px 270px 280px 244px;gap:20px}body:not(.static-dashboard) .panel-head{height:40px;min-height:40px}body:not(.static-dashboard) .panel-note{margin-left:auto;overflow:hidden;text-overflow:ellipsis}body:not(.static-dashboard) .footer{min-height:20px;flex-wrap:wrap;text-align:center;line-height:1.8}@media(max-width:1200px){body:not(.static-dashboard) .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}body:not(.static-dashboard) .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:300px}body:not(.static-dashboard) .dashboard-grid>.panel{grid-column:auto;grid-row:auto}body:not(.static-dashboard) .dashboard-grid>.panel-activity{grid-column:1/-1}body:not(.static-dashboard) .controls{flex-wrap:wrap;white-space:normal}}@media(max-width:760px){body:not(.static-dashboard) #app{padding:12px;gap:16px}body:not(.static-dashboard) .topbar{gap:12px}body:not(.static-dashboard) .brand-sub{display:none}body:not(.static-dashboard) .controls{width:100%;margin-left:0;gap:10px}body:not(.static-dashboard) .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:not(.static-dashboard) .kpi{padding:10px 8px;grid-template-columns:32px 1fr;column-gap:6px}body:not(.static-dashboard) .kpi-row{gap:4px;flex-wrap:wrap}body:not(.static-dashboard) .kpi-row strong{font-size:18px}body:not(.static-dashboard) .dashboard-grid{grid-template-columns:minmax(0,1fr);gap:16px}body:not(.static-dashboard) .panel-head{padding:0 8px;gap:6px}body:not(.static-dashboard) .panel h2{font-size:12px}body:not(.static-dashboard) .panel-note{font-size:9px}}@media(max-width:760px){body:not(.static-dashboard) .conclusion-content{grid-template-columns:1fr;height:auto}body:not(.static-dashboard) .verdict+.verdict{border-left:0;border-top:1px solid var(--grid);padding:12px 0 0}}.kpi-change{font-size:12px;font-weight:700;padding:3px 6px;border-radius:4px;white-space:nowrap;font-variant-numeric:tabular-nums}.kpi-change.up{color:#4ade80;background:#16392e}.kpi-change.down{color:#fb7185;background:#3b2030}.kpi-change.flat,.kpi-change.unknown{color:#94a3b8;background:#1e293b}.kpi-row{flex-wrap:wrap}.kpi{row-gap:4px}.kpi-title{min-width:0}body:not(.static-dashboard) .kpis{min-height:100px}.kpi{grid-template-rows:auto auto auto}.kpi-scope{grid-column:1/-1;grid-row:1;display:flex;flex-wrap:wrap;gap:3px 10px;padding-bottom:7px;margin-bottom:3px;border-bottom:1px solid var(--grid);font-size:10px;line-height:1.5;color:var(--muted)}.kpi-scope>span:first-child{color:var(--text)}.kpi .kpi-title{grid-column:1;grid-row:2/4}.kpi .kpi-row{grid-column:2}body.static-dashboard #app{grid-template-rows:44px 130px 118px 1fr 20px}.history-filters{display:flex;flex-basis:100%;align-items:flex-end;flex-wrap:wrap;gap:14px;padding:14px 0 8px;border-top:1px solid var(--grid)}.history-filters label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.history-filters input,.history-filters select,.history-filters button{font:inherit;color:var(--text);background:var(--card);border:1px solid #475569;border-radius:5px;padding:8px 12px;min-height:38px;color-scheme:dark}.history-filters button{border-color:var(--buy);color:var(--buy)}.history-filters span{flex:1 1 280px;font-size:12px;line-height:1.7;color:var(--muted);align-self:center}.history-filters input:focus-visible,.history-filters select:focus-visible{outline:2px solid var(--buy);outline-offset:2px}body:not(.static-dashboard) .dashboard-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:600px}body:not(.static-dashboard) .dashboard-grid>.panel{grid-column:1/-1;grid-row:auto}body:not(.static-dashboard) .dashboard-grid>.panel-activity{height:600px}body.static-dashboard .panel-channels-payin{grid-column:1/13;grid-row:4}body.static-dashboard .panel-channels-payout{grid-column:13/25;grid-row:4}body:not(.static-dashboard) .dashboard-grid>[class*=panel-activity]{height:600px}body.static-dashboard .dashboard-grid{grid-template-rows:120px 135px 125px 125px minmax(0,1fr)}body.static-dashboard .panel-activity{grid-column:1/7;grid-row:1}body.static-dashboard .panel-activity-online{grid-column:7/13;grid-row:1}body.static-dashboard .panel-activity-inProgress{grid-column:13/19;grid-row:1}body.static-dashboard .panel-activity-coin{grid-column:19/25;grid-row:1}body.static-dashboard .panel-r6-24h,body.static-dashboard .panel-r6-24h-refund{grid-row:2}body.static-dashboard .panel-r15,body.static-dashboard .panel-r15-refund{grid-row:3}body.static-dashboard .panel-orders-24h,body.static-dashboard .panel-orders-24h-refund{grid-row:4}body.static-dashboard .panel-channels-payin,body.static-dashboard .panel-channels-payout{grid-row:5}body.static-dashboard .dashboard-grid{grid-template-rows:100px 100px 100px 100px 100px minmax(0,1fr)}body.static-dashboard .panel-r15-amount{grid-column:1/13;grid-row:2}body.static-dashboard .panel-r15-amount-refund{grid-column:13/25;grid-row:2}body.static-dashboard .panel-r6-24h,body.static-dashboard .panel-r6-24h-refund{grid-row:3}body.static-dashboard .panel-r15,body.static-dashboard .panel-r15-refund{grid-row:4}body.static-dashboard .panel-orders-24h,body.static-dashboard .panel-orders-24h-refund{grid-row:5}body.static-dashboard .panel-channels-payin,body.static-dashboard .panel-channels-payout{grid-row:6}.chart-dialog{overflow:hidden}.chart-viewport{width:100%;height:100%;overflow:hidden;touch-action:none;position:relative;cursor:grab}.chart-viewport:active{cursor:grabbing}.panel[data-load-state=loading] .chart,.panel[data-load-state=error] .chart{position:relative}.panel[data-load-state=loading] .chart:after,.panel[data-load-state=error] .chart:after{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;color:#cbd5e1;font-size:15px;background:#111a2ecc;content:"数据加载中…"}.panel[data-load-state=error] .chart:after{content:"等待数据更新";color:#cbd5e1}.chart-viewport>.panel{width:100%;height:100%;transform-origin:0 0;will-change:transform}.chart-dialog-reset{position:absolute;right:110px;top:10px;background:var(--card);border:1px solid var(--grid);padding:5px 12px;border-radius:3px}.chart-dialog-hint{position:absolute;left:14px;top:17px;color:var(--muted);font-size:12px}@media(max-width:600px){.chart-dialog{width:98vw;height:88dvh;padding:48px 6px 6px}.chart-dialog-hint{font-size:10px;left:8px}.chart-dialog-reset{right:96px;padding:5px 8px}.chart-dialog-close{right:8px}}.verdict-events{max-height:150px;overflow-y:auto;display:grid;gap:8px;margin:8px 0;line-height:1.6;font-size:12px}.verdict-event{padding:5px 8px;border-left:3px solid currentColor;background:#162235}.event-bad{color:#ff797b}.event-warn{color:#fbbf24}body:not(.static-dashboard) .panel-conclusion{flex-shrink:0;min-height:200px}body.static-dashboard .verdict-events{max-height:44px;font-size:10px;gap:3px}body.static-dashboard .verdict-summary{margin:4px 0}.event-critical{color:#ff4d4f}.event-warning{color:#fb923c}.event-notice{color:#fbbf24}.event-recovery{color:#34d399}
