:root{--bg:#f4f6f9;--card:#fff;--line:#e6eaf0;--text:#17202b;--muted:#84909d;--red:#e5484d;--blue:#2f72ce;--green:#168a56;--amber:#d68a12;--slate:#667487;--shadow:0 12px 34px rgba(31,48,70,.06)}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{max-width:1500px;margin:auto}.header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.header-in{height:66px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-weight:950;font-size:20px;white-space:nowrap}.nav{display:flex;gap:6px;align-items:center}.nav a{text-decoration:none;color:#5e6b79;font-size:13px;font-weight:800;padding:9px 12px;border-radius:10px}.nav a.active{background:#eef4fb;color:#1f5fae}.main{padding:16px}.status-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;font-weight:900;font-size:13px;white-space:nowrap}.status-pill.live{background:#edf9f2;color:var(--green)}.status-pill.keep{background:#edf5ff;color:var(--blue)}.status-pill.closed{background:#eff2f6;color:#586779}.status-pill.warn{background:#fff7e8;color:var(--amber)}.status-pill.bad{background:#fff0f0;color:var(--red)}.status-pill.wait{background:#eef3fa;color:#657487}.dot{width:7px;height:7px;border-radius:50%;background:currentColor}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.hero{display:grid;grid-template-columns:1.65fr repeat(4,minmax(130px,1fr));gap:0;padding:20px 22px;align-items:center}.hero-main h1{font-size:26px;margin:0 0 7px;font-weight:950}.hero-main p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.hero-metric{padding:2px 18px;border-left:1px solid var(--line)}.hero-metric span,.label{display:block;color:var(--muted);font-size:11px}.hero-metric b{display:block;margin-top:6px;font-size:18px}.notice{margin-top:12px;padding:12px 16px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:13px}.notice.bad{border-color:#f1caca;background:#fff5f5;color:#c43d42}.notice.closed{background:#f7f8fa;color:#657386}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.section-title h2{margin:0;font-size:17px}.section-title small{color:var(--muted)}.btn{border:1px solid var(--line);background:#fff;color:#4d5a68;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:800}.btn.primary{border-color:#e8b8ba;color:var(--red);background:#fff}.btn.blue{border-color:#c9d9ef;color:#2766b2;background:#f8fbff}.btn:disabled{opacity:.5;cursor:not-allowed}.drop-panels{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.drop-body{padding:16px 18px;min-height:116px}.drop-group{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eef1f4}.drop-group:last-child{border-bottom:0}.balls{display:flex;gap:7px;flex-wrap:wrap}.ball{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:950;box-shadow:0 4px 10px rgba(33,46,61,.10)}.ball.red{background:#e33f46}.ball.blue{background:#2e72cc}.ball.green{background:#1d9956}.drop-odds{text-align:right}.drop-odds span{display:block;color:var(--muted);font-size:10px}.drop-odds b{display:block;font-size:18px;margin-top:3px}.drop-value{text-align:right;color:var(--red);font-size:21px;font-weight:950;min-width:65px}.empty{padding:28px 12px;text-align:center;color:#9aa4af}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}.metric{padding:16px 18px}.metric b{display:block;font-size:27px;margin:7px 0 3px}.metric small{color:var(--muted);font-size:11px;line-height:1.55}.red-text{color:var(--red)}.blue-text{color:var(--blue)}.lower{display:grid;grid-template-columns:1.18fr .82fr;gap:12px;margin-top:12px}.grid49{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;padding:12px}.num-cell{border:1px solid #edf0f4;background:#fbfcfd;border-radius:12px;text-align:center;padding:8px 4px;min-height:87px}.num-cell.hot{background:#fff7f7;border-color:#f0cdcf}.num-cell .ball{width:34px;height:34px;margin:auto}.zodiac{font-size:10px;font-weight:800;margin-top:4px}.odds{font-size:14px;font-weight:950;margin-top:4px}.num-cell.hot .odds,.num-cell.hot .delta{color:var(--red)}.delta{font-size:10px;color:#a0a9b3;margin-top:2px}.events{max-height:720px;overflow:auto}.event{padding:15px 16px;border-bottom:1px solid #eef1f4}.event-head{display:flex;align-items:center;gap:9px}.event-time{width:72px;color:#88939f;font-size:12px;font-weight:800}.badge{display:inline-flex;padding:5px 8px;border-radius:8px;font-size:11px;font-weight:900}.badge.INITIAL{background:#f1f4f7;color:#5d6877}.badge.CHANGE{background:#eef5ff;color:var(--blue)}.badge.NEW{background:#fff0f0;color:var(--red)}.event-nums{font-size:16px;font-weight:950;margin-top:10px}.event-nums em{font-style:normal;color:var(--red)}.event-line{font-weight:850;margin-top:8px;font-size:14px}.event-line b{color:var(--red)}.event-note{font-size:11px;color:#8f99a5;margin-top:4px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}.page-head h1{font-size:24px;margin:0 0 5px}.page-head p{margin:0;color:var(--muted);font-size:12px}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.input,.select,.textarea{border:1px solid #dfe4ea;background:#fff;border-radius:10px;padding:9px 11px;color:var(--text);outline:none}.input:focus,.select:focus,.textarea:focus{border-color:#9ab7db}.history-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.history-item{padding:17px 18px}.history-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.history-period{font-size:20px;font-weight:950}.history-date{font-size:11px;color:var(--muted);margin-top:4px}.history-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.stat-mini{background:#f7f9fb;border-radius:10px;padding:10px}.stat-mini span{display:block;color:var(--muted);font-size:10px}.stat-mini b{display:block;margin-top:4px;font-size:15px}.history-balls{margin-top:14px}.history-balls .ball{width:30px;height:30px;font-size:11px}.detail{margin-top:12px}.detail-body{padding:18px}.detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.timeline{border-left:2px solid #edf0f4;margin-left:7px;padding-left:16px}.timeline-item{position:relative;padding:0 0 17px}.timeline-item:before{content:"";position:absolute;left:-22px;top:5px;width:10px;height:10px;border-radius:50%;background:#96a4b3;border:2px solid #fff;box-shadow:0 0 0 1px #dfe5eb}.timeline-item strong{font-size:13px}.timeline-item p{margin:5px 0 0;font-size:12px;color:#66727f}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:850;color:#627080}.chip.active{background:#edf5ff;border-color:#c9daf0;color:#2566b2}.log-list{overflow:hidden}.log-row{display:grid;grid-template-columns:82px 88px 1fr;gap:12px;padding:13px 16px;border-bottom:1px solid #eef1f4;align-items:start}.log-time{font-size:11px;color:#8a95a0;font-weight:800}.log-type{font-size:11px;font-weight:900}.log-msg{font-size:13px;line-height:1.5}.log-meta{font-size:10px;color:#9aa4af;margin-top:3px;word-break:break-all}.form-card{padding:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.field input,.field select,.field textarea{width:100%}.field textarea{min-height:115px;resize:vertical}.hint{font-size:11px;color:#8c97a3;line-height:1.6;margin-top:6px}.savebar{display:flex;align-items:center;gap:10px;margin-top:16px}.tg-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tg-box{padding:18px}.tg-box h3{margin:0 0 14px;font-size:16px}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eef1f4}.switch-row:last-child{border-bottom:0}.switch{width:42px;height:24px;border-radius:999px;background:#dfe4e9;position:relative}.switch:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:white;border-radius:50%}.switch.on{background:#4aa976}.switch.on:after{left:21px}.muted-box{background:#f7f9fb;border:1px dashed #dce3ea;border-radius:12px;padding:16px;color:#7c8996;font-size:12px;line-height:1.7}.footer-note{margin:16px 0 3px;color:#9aa4af;text-align:center;font-size:10px}
@media(max-width:1050px){.hero{grid-template-columns:1.3fr repeat(2,1fr)}.hero-main{grid-column:1/-1;margin-bottom:12px}.hero-metric:nth-last-child(-n+2){border-top:1px solid var(--line);padding-top:12px}.lower{grid-template-columns:1fr}.history-grid{grid-template-columns:1fr}.tg-grid{grid-template-columns:1fr}}
@media(max-width:700px){.header-in{height:auto;min-height:64px;display:block;padding:12px 12px 8px}.brand{font-size:18px;margin-bottom:10px}.nav{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.nav a{text-align:center;padding:8px 2px;font-size:10px;border-radius:8px}.main{padding:11px}.hero{grid-template-columns:1fr 1fr;padding:16px}.hero-main{grid-column:1/-1}.hero-main h1{font-size:27px}.hero-metric{padding:9px 10px;border-left:0;border-top:1px solid var(--line)}.hero-metric b{font-size:17px}.drop-panels{grid-template-columns:1fr}.drop-group{grid-template-columns:minmax(0,1fr) auto}.drop-value{grid-column:2;grid-row:1;align-self:end}.drop-odds{grid-column:2}.metrics{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:14px}.metric b{font-size:28px}.grid49{grid-template-columns:repeat(7,1fr);gap:5px;padding:8px}.num-cell{padding:7px 2px;min-height:78px}.num-cell .ball{width:32px;height:32px;font-size:12px}.events{max-height:none}.page-head{display:block}.toolbar{margin-top:10px}.history-stats{grid-template-columns:1fr 1fr}.detail-summary{grid-template-columns:1fr 1fr}.log-row{grid-template-columns:65px 68px 1fr;gap:8px;padding:12px}.form-grid{grid-template-columns:1fr}.tg-grid{grid-template-columns:1fr}.section-title{padding:14px}.drop-body{padding:12px 14px}}

/* ===== 实时监控页面 UI 紧凑优化 ===== */
.live-main{min-width:0}.hero-compact{display:block;padding:18px 20px;overflow:hidden}.hero-title-row h1{margin:0;font-size:27px;font-weight:950;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.hero-title-row p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.market-inline{font-size:16px;font-weight:900;color:#4f5f70;background:#f2f5f8;border-radius:8px;padding:5px 9px;white-space:nowrap}.hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.hero-stat{padding:13px 16px;min-width:0}.hero-stat+ .hero-stat{border-left:1px solid var(--line)}.hero-stat span{display:block;color:var(--muted);font-size:11px}.hero-stat b{display:block;margin-top:5px;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-substats{display:flex;align-items:center;gap:12px;padding:11px 4px 4px;color:#6e7b88;font-size:12px}.hero-substats b{color:var(--text);font-size:13px}.hero-substats i{width:1px;height:14px;background:var(--line)}.hero-notice{margin-top:9px;padding:10px 12px;border-radius:10px;background:#f7f9fb;color:#657386;font-size:12px;line-height:1.5}.hero-notice.bad{background:#fff2f2;color:#c43d42}.hero-notice.closed{background:#f1f4f7;color:#657386}
.current-drop-card{margin-top:12px;overflow:hidden}.current-drop-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px 8px}.current-drop-title{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap}.current-drop-title h2{margin:0;font-size:18px}.current-drop-title span{color:var(--muted);font-size:12px}.current-drop-title strong{color:var(--red);font-size:15px}.copy-icon-btn{width:36px;height:36px;flex:0 0 36px;border:1px solid #edc4c6;border-radius:10px;background:#fff;color:var(--red);font-size:19px;font-weight:900;display:grid;place-items:center;padding:0}.copy-icon-btn:disabled{opacity:.45}.current-drop-extra{display:flex;align-items:center;gap:24px;padding:0 18px 11px;color:#7a8693;font-size:12px;border-bottom:1px solid var(--line)}.current-drop-extra b{font-size:13px;color:var(--text)}.current-drop-extra span:last-child b{color:var(--red)}.current-balls{padding:16px 18px 17px;min-height:67px}.current-balls .balls{gap:9px}.current-balls .ball{width:39px;height:39px;font-size:13px}.compact-empty{padding:10px}
.live-stack{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px;min-width:0}.events-card,.market-card{min-width:0;overflow:hidden}.events-compact{max-height:650px;overflow:auto}.event.event-compact{padding:14px 18px}.event-topline{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap}.event-compact .event-time{width:auto;flex:0 0 auto;color:#566575;font-size:14px;font-weight:950}.event-move{font-size:14px;font-weight:850;color:#27323e}.event-move i{font-style:normal;color:#87929d;margin:0 2px}.event-move b{color:var(--red)}.event-onedrop{font-size:13px;font-weight:900;color:var(--red)}.event-total{font-size:13px;font-weight:900;color:#27323e}.event-ball-row{margin-top:10px}.event-ball-row .balls{gap:7px}.event-ball-row .ball{width:32px!important;height:32px!important;font-size:11px!important}.grid49{width:100%;min-width:0;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden}.num-cell{min-width:0;overflow:hidden}.market-card .section-title{min-width:0}
@media(max-width:700px){.live-main{padding:10px}.hero-compact{padding:15px 14px}.hero-title-row h1{font-size:24px;gap:7px;flex-wrap:nowrap}.market-inline{font-size:13px;padding:4px 7px}.hero-title-row p{font-size:11px;margin-top:6px}.hero-stats{margin-top:13px}.hero-stat{padding:11px 7px;text-align:left}.hero-stat span{font-size:10px;white-space:nowrap}.hero-stat b{font-size:15px;margin-top:4px}.hero-substats{gap:8px;padding:9px 2px 2px;font-size:11px;white-space:nowrap}.hero-substats b{font-size:12px}.hero-notice{font-size:11px;margin-top:8px;padding:9px 10px}.current-drop-head{padding:13px 13px 7px;gap:6px}.current-drop-title{gap:7px;flex:1}.current-drop-title h2{font-size:16px}.current-drop-title span{font-size:11px}.current-drop-title strong{font-size:13px}.copy-icon-btn{width:33px;height:33px;flex-basis:33px;font-size:17px}.current-drop-extra{padding:0 13px 10px;gap:18px;font-size:11px}.current-drop-extra b{font-size:12px}.current-balls{padding:13px}.current-balls .balls{gap:8px}.current-balls .ball{width:37px;height:37px}.event.event-compact{padding:13px 14px}.event-topline{gap:7px}.event-compact .event-time{font-size:13px}.badge{padding:4px 6px;font-size:10px}.event-move{font-size:12px}.event-onedrop,.event-total{font-size:11px}.event-ball-row{margin-top:9px}.events-compact{max-height:none}.grid49{gap:4px;padding:7px}.num-cell{padding:6px 1px;min-height:76px;border-radius:10px}.num-cell .ball{width:30px;height:30px;font-size:11px}.zodiac{font-size:9px}.odds{font-size:13px}.delta{font-size:9px}}
@media(max-width:380px){.hero-title-row h1{font-size:22px}.market-inline{font-size:12px}.hero-stat b{font-size:14px}.current-drop-title{gap:5px}.current-drop-title h2{font-size:15px}.current-drop-title strong{font-size:12px}.current-drop-extra{gap:12px}.event-topline{gap:5px}.event-compact .event-time{font-size:12px}.event-move{font-size:11px}.event-onedrop,.event-total{font-size:10px}}

/* ===== 实时监控页面 UI 二次优化 2026-09-01 ===== */
.hero-title-row h1{align-items:center;line-height:1.08}.market-inline{font-size:1em;line-height:1;font-weight:950;padding:4px 8px;display:inline-flex;align-items:center;align-self:center}.run-state{display:inline-flex;align-items:center;gap:6px;margin-left:2px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;line-height:1;white-space:nowrap;align-self:center}.run-dot{width:7px;height:7px;border-radius:50%;display:block;flex:0 0 7px}.run-state.running{color:#168a56;background:#edf9f2}.run-state.running .run-dot{background:#26a269;animation:runPulse 1.25s ease-in-out infinite}.run-state.stopped{color:#d84b50;background:#fff2f2}.run-state.stopped .run-dot{background:#d84b50}.run-state.error{color:#d84b50;background:#fff2f2}.run-state.error .run-dot{background:#e5484d;animation:errorPulse .72s ease-in-out infinite}@keyframes runPulse{0%,100%{opacity:.35;box-shadow:0 0 0 0 rgba(38,162,105,.15)}50%{opacity:1;box-shadow:0 0 0 4px rgba(38,162,105,.12)}}@keyframes errorPulse{0%,100%{opacity:.25}50%{opacity:1}}
.hero-stats-four{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-stats-four .hero-stat{padding-left:14px;padding-right:14px}.hero-stats-four .hero-stat b{font-size:17px}.hero-substats{display:none!important}
.current-drop-head{padding-bottom:12px;border-bottom:1px solid var(--line)}.current-drop-title{gap:6px}.current-drop-title .meta-sep{font-style:normal;color:#c0c7cf;font-size:12px;line-height:1}.current-drop-title #newCount{color:#5f6d7b;font-weight:800}.current-drop-title #dropRange{margin-left:1px}.current-balls{padding-top:15px}.copy-icon-btn.copied{background:#fff4f4;border-color:#e9aeb1;transform:scale(.96)}.copy-toast{position:fixed;left:50%;bottom:28px;z-index:100;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:rgba(23,32,43,.92);color:#fff;border-radius:999px;padding:9px 14px;font-size:12px;font-weight:800;transition:.2s ease;box-shadow:0 8px 24px rgba(0,0,0,.18)}.copy-toast.show{opacity:1;transform:translate(-50%,0)}
.event-topline{column-gap:9px}.event-onedrop{margin-left:3px}.event-divider{color:#d2d7dd;font-size:12px;font-weight:500;margin:0 -1px}.event-total{display:inline-flex;align-items:center;gap:3px;color:#394451}.event-total em{font-style:normal;color:#8b96a2;font-weight:700}.event-move{letter-spacing:.01em}.event-move b{font-weight:950}
.num-cell.dim{background:#f6f7f9;border-color:#eef1f4}.num-cell.dim .ball{filter:grayscale(.72) saturate(.30);opacity:.48;box-shadow:none}.num-cell.dim .zodiac{color:#a3acb5}.num-cell.dim .odds{color:#949da6;font-weight:850}.num-cell.dim .delta{color:#c0c6cc}.num-cell.hot{box-shadow:inset 0 0 0 1px rgba(229,72,77,.03)}
@media(max-width:700px){.hero-title-row h1{font-size:23px;gap:6px}.market-inline{font-size:1em;padding:3px 5px;border-radius:7px}.run-state{font-size:9px;padding:4px 6px;gap:4px;margin-left:0}.run-dot{width:6px;height:6px;flex-basis:6px}.hero-stats-four{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-stats-four .hero-stat{padding:10px 5px}.hero-stats-four .hero-stat span{font-size:9px}.hero-stats-four .hero-stat b{font-size:13px;letter-spacing:-.02em}.current-drop-title{gap:4px;overflow:hidden}.current-drop-title h2{font-size:15px;flex:0 0 auto}.current-drop-title span{font-size:10px;flex:0 0 auto}.current-drop-title .meta-sep{font-size:10px}.current-drop-title strong{font-size:12px;flex:0 0 auto}.current-drop-head{padding:12px 12px 10px}.event-topline{gap:6px}.event-onedrop{margin-left:2px}.event-divider{font-size:10px;margin:0 -2px}.event-total{gap:2px}.event-total em{font-size:10px}.num-cell.dim .ball{opacity:.42}.num-cell.dim .odds{color:#9ca4ad}}
@media(max-width:400px){.hero-title-row h1{font-size:21px;gap:5px}.market-inline{font-size:1em}.run-state{font-size:8px;padding:4px 5px}.hero-stats-four .hero-stat{padding:9px 4px}.hero-stats-four .hero-stat span{font-size:8.5px}.hero-stats-four .hero-stat b{font-size:12px}.event-topline{gap:5px}.event-compact .event-time{font-size:12px}.badge{font-size:9px;padding:4px 5px}.event-move{font-size:11px}.event-onedrop,.event-total{font-size:10px}.event-divider{font-size:9px}.event-total em{font-size:9px}}

/* ===== 实时监控 UI 第三版：全局运行状态 / 标题统一 / 最新变化分隔 ===== */
.header-in{position:relative}
.global-run-state{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:900;line-height:1;white-space:nowrap;order:3}
.global-run-dot{width:7px;height:7px;border-radius:50%;display:block;flex:0 0 7px}
.global-run-state.running{color:#168a56;background:#edf9f2}.global-run-state.running .global-run-dot{background:#26a269;animation:globalRunPulse 1.25s ease-in-out infinite}
.global-run-state.stopped{color:#d84b50;background:#fff2f2}.global-run-state.stopped .global-run-dot{background:#d84b50}
.global-run-state.error{color:#d84b50;background:#fff2f2}.global-run-state.error .global-run-dot{background:#e5484d;animation:globalErrorPulse .72s ease-in-out infinite}
@keyframes globalRunPulse{0%,100%{opacity:.35;box-shadow:0 0 0 0 rgba(38,162,105,.15)}50%{opacity:1;box-shadow:0 0 0 4px rgba(38,162,105,.12)}}
@keyframes globalErrorPulse{0%,100%{opacity:.25}50%{opacity:1}}

/* 当前降倍号码：元数据统一视觉权重 */
.current-drop-title{gap:7px}
.current-drop-title #currentMeta,.current-drop-title #newCount{color:#5f6d7b;font-size:12px;font-weight:850;line-height:1.1}
.current-drop-title .meta-sep{color:#b9c1c9;font-size:12px;margin:0 1px}
.current-drop-title #dropRange{font-size:14px;font-weight:950;line-height:1.1}

/* 最新变化：每个信息块都明确分隔，同时保持单行 */
.event-topline{gap:4px}
.event-compact .event-time{font-size:14px;font-weight:950;color:#4f5f70}
.event-divider{color:#c7ced6;font-size:12px;font-weight:600;margin:0 1px;flex:0 0 auto}
.event-move{font-size:13px;font-weight:900;letter-spacing:0}
.event-onedrop,.event-total{font-size:12px;font-weight:900}
.event-total{gap:2px}.event-total em{font-size:11px;font-weight:800}
.badge{flex:0 0 auto}

@media(max-width:700px){
  .header-in{padding-top:12px}
  .brand{padding-right:76px}
  .global-run-state{position:absolute;right:12px;top:12px;padding:5px 7px;font-size:9px;gap:4px;z-index:2}
  .global-run-dot{width:6px;height:6px;flex-basis:6px}
  .current-drop-title{gap:5px}
  .current-drop-title #currentMeta,.current-drop-title #newCount{font-size:10.5px;font-weight:850}
  .current-drop-title .meta-sep{font-size:10px;margin:0}
  .current-drop-title #dropRange{font-size:11.5px}
  .event-topline{gap:3px}
  .event-compact .event-time{font-size:13px}
  .event-divider{font-size:10px;margin:0}
  .event-move{font-size:12px}
  .event-onedrop,.event-total{font-size:11px}
  .event-total em{font-size:10px}
}
@media(max-width:400px){
  .brand{padding-right:70px}
  .global-run-state{right:10px;top:12px;font-size:8.5px;padding:5px 6px}
  .current-drop-title{gap:4px}
  .current-drop-title #currentMeta,.current-drop-title #newCount{font-size:10px}
  .current-drop-title #dropRange{font-size:11px}
  .event-topline{gap:2px}
  .event-compact .event-time{font-size:12.5px}
  .event-divider{font-size:9px}
  .event-move{font-size:11.5px}
  .event-onedrop,.event-total{font-size:10.5px}
}


/* ===== 实时监控 UI 第四版：期号标题重排 / 事件时间去秒 / 状态三色 ===== */
.hero-title-row h1{display:flex;align-items:baseline;gap:9px;flex-wrap:nowrap}
.period-label{font-size:.72em;font-weight:900;color:#25303c;letter-spacing:.02em}
.hero-title-row #period{font-size:1em;font-weight:950;letter-spacing:.015em;color:#17212d}
.title-sep{font-size:.62em;color:#c3cad2;font-weight:700;transform:translateY(-1px)}
.market-inline{background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;color:#374554!important;font-size:.78em!important;font-weight:900!important;line-height:1!important;box-shadow:none!important}

/* 三种事件状态采用更明确的背景色 */
.badge.INITIAL{background:#eef1f5!important;color:#596777!important;border:1px solid #e1e6eb}
.badge.NEW{background:#fff0ea!important;color:#d65345!important;border:1px solid #ffd8cb}
.badge.CHANGE{background:#eaf3ff!important;color:#2f6fbd!important;border:1px solid #cfe3fb}
.event-time{font-variant-numeric:tabular-nums}

@media(max-width:700px){
  .hero-title-row h1{gap:6px;font-size:23px}
  .period-label{font-size:.68em}
  .title-sep{font-size:.55em}
  .market-inline{font-size:.74em!important}
}
@media(max-width:400px){
  .hero-title-row h1{gap:5px;font-size:21px}
  .period-label{font-size:.67em}
  .market-inline{font-size:.72em!important}
}

/* ===== 实时监控 UI 第五版：整条事件底色 / 初始赔率并入标题 ===== */
.base-odds-inline{font-size:.46em;font-weight:750;color:#7c8895;white-space:nowrap;line-height:1;align-self:center;margin-left:1px}
.base-odds-inline b{font-size:1.04em;color:#465463;font-weight:900}

/* 最新变化：按事件类型给整条记录上低饱和底色 */
.event.event-compact{transition:background-color .18s ease}
.event.event-compact.event-state-initial{background:#f6f7f9}
.event.event-compact.event-state-new{background:#fff6f1}
.event.event-compact.event-state-change{background:#f3f8ff}
.event.event-compact.event-state-initial:hover{background:#f1f3f6}
.event.event-compact.event-state-new:hover{background:#fff0e8}
.event.event-compact.event-state-change:hover{background:#ebf4ff}

@media(max-width:700px){
  .base-odds-inline{font-size:.43em;margin-left:0}
}
@media(max-width:400px){
  .base-odds-inline{font-size:.40em}
}

/* ===== 实时监控 UI 第六版：标题同权重 / 事件背景增强 ===== */
/* 特码B丨初始赔率48.99：字号、颜色、字重统一 */
.base-odds-inline{
  font-size:.78em!important;
  font-weight:900!important;
  color:#374554!important;
  line-height:1!important;
  align-self:baseline!important;
  margin-left:0!important;
}
.base-odds-inline b{
  font-size:1em!important;
  color:inherit!important;
  font-weight:inherit!important;
}

/* 三种事件整行采用更容易肉眼区分的底色，并加同色侧边提示 */
.event.event-compact{
  border-left:4px solid transparent;
}
.event.event-compact.event-state-initial{
  background:#eef1f4!important;
  border-left-color:#9aa6b2;
}
.event.event-compact.event-state-new{
  background:#fff0e9!important;
  border-left-color:#ef8a68;
}
.event.event-compact.event-state-change{
  background:#eaf4ff!important;
  border-left-color:#6da7e8;
}
.event.event-compact.event-state-initial:hover{background:#e8ecef!important}
.event.event-compact.event-state-new:hover{background:#ffe9df!important}
.event.event-compact.event-state-change:hover{background:#e1efff!important}

@media(max-width:700px){
  .base-odds-inline{font-size:.74em!important}
}
@media(max-width:400px){
  .base-odds-inline{font-size:.72em!important}
}

/* ===== 实时监控 UI 第七版：当前期标题缩放 / 事件白底彩色描边 ===== */
/* 顶部标题整体收紧，避免移动端被撑爆；特码B与初始赔率保持同权重深色 */
.hero-title-row h1{
  display:flex;
  align-items:baseline;
  flex-wrap:nowrap;
  gap:7px;
  min-width:0;
  white-space:nowrap;
}
.period-label{
  font-size:.82em!important;
  color:#26313d!important;
  font-weight:900!important;
  white-space:nowrap;
}
.hero-title-row #period{
  font-size:1.08em!important;
  letter-spacing:.01em!important;
  white-space:nowrap;
}
.market-inline,
.base-odds-inline{
  font-size:.82em!important;
  color:#374554!important;
  font-weight:900!important;
  white-space:nowrap;
}
.title-sep{font-size:.55em!important;color:#c4cbd3!important;margin:0 -1px}
.base-odds-inline b{font-size:1em!important;color:inherit!important;font-weight:inherit!important}

/* 最新变化：恢复白底，以整条不同颜色描边区分 初始 / 新增 / 变化 */
.event.event-compact{
  background:#fff!important;
  border:1.5px solid #e5e9ee!important;
  border-left-width:4px!important;
  border-radius:12px;
  margin:9px 10px;
  overflow:hidden;
}
.event.event-compact.event-state-initial{
  background:#fff!important;
  border-color:#b8c0c9!important;
  border-left-color:#8f9aa6!important;
}
.event.event-compact.event-state-new{
  background:#fff!important;
  border-color:#f2b9a5!important;
  border-left-color:#e97b55!important;
}
.event.event-compact.event-state-change{
  background:#fff!important;
  border-color:#acd0f4!important;
  border-left-color:#4f94dc!important;
}
.event.event-compact.event-state-initial:hover,
.event.event-compact.event-state-new:hover,
.event.event-compact.event-state-change:hover{background:#fff!important}

@media(max-width:700px){
  .hero-title-row h1{font-size:18px!important;gap:5px!important;letter-spacing:0!important}
  .period-label{font-size:1em!important}
  .hero-title-row #period{font-size:1.22em!important}
  .market-inline,.base-odds-inline{font-size:1em!important}
  .title-sep{font-size:.5em!important;margin:0 -2px}
  .event.event-compact{margin:8px 8px;border-radius:10px}
}
@media(max-width:400px){
  .hero-title-row h1{font-size:16.5px!important;gap:4px!important}
  .hero-title-row #period{font-size:1.18em!important}
  .market-inline,.base-odds-inline{font-size:.96em!important}
  .event.event-compact{margin:7px 6px}
}

/* ===== V5.3.9：顶部标题再收紧 / 最新变化时间 / TG页面修复 ===== */
/* 当前期整行统一缩小，避免移动端撑出卡片 */
.hero-title-row h1{
  font-size:22px!important;
  gap:7px!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  overflow:hidden;
}
.period-label,.hero-title-row #period,.market-inline,.base-odds-inline{
  font-size:1em!important;
  line-height:1.15!important;
  font-weight:900!important;
  color:#25313d!important;
  white-space:nowrap;
}
.hero-title-row #period{font-weight:950!important}
.market-inline{margin-left:2px!important}
.base-odds-inline{margin-left:0!important}

/* 最新变化：时间改深色；单次降幅不再显示“倍”后缀 */
.event-compact .event-time{color:#202a35!important;font-weight:950!important}

/* TG 页面缺失样式补齐，避免机器人状态和运行日志挤成一团 */
.tg-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.tg-title-row h3{margin:0!important}
.master-toggle{display:inline-flex;align-items:center;gap:9px;color:#596777;font-size:12px;font-weight:850;white-space:nowrap}
.clickable{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}
.switch-row>div{min-width:0;padding-right:14px}
.switch-row b{display:inline;font-size:13px;color:#202a35}
.switch-row small{display:block;margin-top:3px;color:#8a95a1;font-size:10.5px;line-height:1.45}
.tg-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.tg-status-grid>div{min-width:0;background:#f7f9fb;border-radius:10px;padding:10px 11px}
.tg-status-grid span{display:block;color:#8a95a1;font-size:10px;margin-bottom:4px}
.tg-status-grid b{display:block;color:#1f2a36;font-size:13px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word}
.tg-actions{flex-wrap:wrap}
.discover-box{margin-top:12px}
.discover-title{font-size:12px;font-weight:900;margin-bottom:7px}
.discover-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #eef1f4}
.discover-row:last-child{border-bottom:0}.discover-row small{display:block;color:#8d98a4;font-size:10px;margin-top:2px}
.tg-detail-list{display:grid;gap:0;border:1px solid #edf0f4;border-radius:11px;overflow:hidden;background:#fff}
.tg-detail-list>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:start;padding:11px 12px;border-bottom:1px solid #eef1f4}
.tg-detail-list>div:last-child{border-bottom:0}
.tg-detail-list span{color:#7f8b97;font-size:11px}
.tg-detail-list b{font-size:12px;line-height:1.5;color:#202a35;overflow-wrap:anywhere;word-break:break-word}
.tg-log-list{max-height:620px;overflow:auto}
.tg-log-row{display:grid;grid-template-columns:118px minmax(0,1fr);gap:14px;padding:12px 16px;border-bottom:1px solid #eef1f4;align-items:start;background:#fff}
.tg-log-row:last-child{border-bottom:0}
.tg-log-row>div:first-child{display:flex;align-items:baseline;gap:7px;min-width:0}
.tg-log-row>div:first-child b{font-size:11px;color:#4f5d6b;font-variant-numeric:tabular-nums;white-space:nowrap}
.tg-log-row>div:first-child small{font-size:9.5px;color:#98a2ad;font-weight:800;white-space:nowrap}
.tg-log-msg{font-size:12px;line-height:1.55;color:#26323e;overflow-wrap:anywhere;word-break:break-word}
.tg-log-msg.success{color:#168a56}.tg-log-msg.error{color:#d84b50}

@media(max-width:700px){
  .hero-title-row h1{font-size:15.5px!important;gap:4px!important}
  .period-label,.hero-title-row #period,.market-inline,.base-odds-inline{font-size:1em!important}
  .hero-title-row #period{letter-spacing:0!important}
  .market-inline{margin-left:1px!important}
  .tg-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .tg-status-grid>div{padding:9px}
  .tg-detail-list>div{grid-template-columns:92px minmax(0,1fr);gap:8px;padding:10px}
  .tg-log-list{max-height:none}
  .tg-log-row{grid-template-columns:88px minmax(0,1fr);gap:9px;padding:11px 12px}
  .tg-log-row>div:first-child{display:block}
  .tg-log-row>div:first-child b,.tg-log-row>div:first-child small{display:block}
  .tg-log-row>div:first-child small{margin-top:2px}
  .tg-log-msg{font-size:11.5px}
  .switch-row{align-items:center}
  .switch-row b{font-size:12.5px}.switch-row small{font-size:10px}
}
@media(max-width:400px){
  .hero-title-row h1{font-size:14.5px!important;gap:3px!important}
  .tg-log-row{grid-template-columns:80px minmax(0,1fr);gap:7px;padding:10px}
}

/* ============================================================
   PUBLIC LICENSE DASHBOARD V1
   ============================================================ */

.public-header-in{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
}

.public-nav{
  justify-content:center;
}

.public-user{
  display:flex;
  align-items:center;
  gap:9px;
  color:#7c8793;
  font-size:11px;
  white-space:nowrap;
}

.public-user button{
  border:1px solid #e0e5ea;
  background:#fff;
  color:#52606d;
  border-radius:9px;
  padding:7px 10px;
  font-size:11px;
  font-weight:800;
}

.badge.RISE{
  background:#edf9f2;
  color:#168a56;
}

.public-login-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
  background:
    radial-gradient(circle at 20% 0%,#fff 0,#f7f9fb 42%,#f3f6f9 100%);
}

.public-login-wrap{
  width:100%;
  max-width:420px;
}

.public-login-card{
  background:#fff;
  border:1px solid #e4e8ed;
  border-radius:22px;
  padding:34px 30px 28px;
  box-shadow:0 18px 55px rgba(41,54,69,.10);
}

.public-login-brand{
  color:#d93f45;
  font-size:13px;
  font-weight:900;
  margin-bottom:14px;
}

.public-login-card h1{
  margin:0;
  font-size:29px;
  color:#1e2833;
}

.public-login-card>p{
  margin:9px 0 24px;
  color:#8a95a1;
  font-size:13px;
}

.public-license-input{
  width:100%;
  height:50px;
  border:1px solid #dce2e8;
  border-radius:12px;
  padding:0 14px;
  outline:none;
  font-size:14px;
  letter-spacing:.3px;
}

.public-license-input:focus{
  border-color:#db8d91;
  box-shadow:0 0 0 3px rgba(217,63,69,.07);
}

.public-login-btn{
  width:100%;
  height:50px;
  border:0;
  border-radius:12px;
  background:#d94248;
  color:#fff;
  font-size:14px;
  font-weight:900;
  margin-top:12px;
}

.public-login-btn:disabled{
  opacity:.65;
}

.public-login-msg{
  min-height:20px;
  margin-top:12px;
  color:#d94248;
  font-size:12px;
  text-align:center;
}

.public-login-foot{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #eef1f4;
  color:#a0a9b3;
  font-size:10px;
  text-align:center;
}

@media(max-width:700px){

  .public-header-in{
    display:grid!important;
    grid-template-columns:1fr auto;
    padding:11px 12px!important;
  }

  .public-header-in .brand{
    grid-column:1;
    margin:0!important;
  }

  .public-nav{
    grid-column:1/-1;
    grid-row:2;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    margin-top:9px;
    order:0;
  }

  .public-user{
    grid-column:2;
    grid-row:1;
  }

  .public-user span{
    display:none;
  }

  .public-login-card{
    padding:28px 20px 24px;
    border-radius:18px;
  }

  .public-login-card h1{
    font-size:26px;
  }
}

/* MULTIPLATFORM_GH_V1 */
.platform-select{
  margin-left:10px;
  min-width:76px;
  height:34px;
  padding:0 28px 0 10px;
  border:1px solid #d5e1ec;
  border-radius:8px;
  background:#fff;
  color:#23364a;
  font:600 14px/1 system-ui,sans-serif;
  vertical-align:middle;
}
.platform-select[hidden]{display:none!important}
@media(max-width:680px){.platform-select{margin-left:6px;min-width:68px;height:32px}}

/* G_EVENT_GROUP_CARD_V1 */
.event-group-card .event-group-head{margin-bottom:2px}
.event-group-count{font-size:12px;font-weight:900;color:#687686}
.event-group-moves{display:grid;gap:8px;margin-top:9px}
.event-group-move{padding-top:8px;border-top:1px dashed #e4e8ed}
.event-group-move:first-child{padding-top:0;border-top:0}
.event-group-move-line{display:flex;align-items:center;gap:5px;white-space:nowrap}
.event-group-card .event-ball-row{margin-top:7px}
@media(max-width:700px){
  .event-group-count{font-size:10px}
  .event-group-moves{gap:7px;margin-top:8px}
  .event-group-move{padding-top:7px}
  .event-group-move-line{gap:3px}
}

/* MONITOR_UI_FIX_20260915_V1 */
.current-drop-clickable{cursor:pointer}
.current-drop-clickable:focus-visible{outline:2px solid #8db7e8;outline-offset:2px}
body.modal-open{overflow:hidden}
.monitor-modal[hidden]{display:none!important}
.monitor-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:22px}
.monitor-modal-mask{position:absolute;inset:0;background:rgba(24,34,46,.38);backdrop-filter:blur(2px)}
.monitor-modal-card{position:relative;z-index:1;width:min(980px,calc(100vw - 44px));max-height:min(82vh,820px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 26px 80px rgba(31,45,61,.22);overflow:hidden}
.monitor-modal-card-small{width:min(720px,calc(100vw - 44px));max-height:70vh}
.monitor-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fff;flex:0 0 auto}
.monitor-modal-head h2{margin:0;font-size:18px}
.monitor-modal-scroll{overflow:auto;overscroll-behavior:contain}
.history-detail-card .detail-body{padding:18px}
.drop-summary-body{display:grid;gap:10px;padding:18px}
.drop-summary-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid #e8edf2;border-radius:12px;background:#f9fbfd;font-size:14px}
.drop-summary-line strong{min-width:46px;font-size:15px}
.drop-summary-numbers{font-weight:900;letter-spacing:.02em}
.drop-summary-meta{font-weight:850;color:#49596a}
.drop-summary-empty{color:#929da8}
.history-number-lines{display:grid;gap:8px}
.history-number-line{display:flex;align-items:center;gap:9px;min-height:30px}
.history-number-label{flex:0 0 34px;font-size:11px;font-weight:900;color:#667585}
.history-number-label.added{color:var(--red)}
.history-number-line .balls{gap:6px}
.history-number-empty{font-size:11px;color:#9aa4af}
@media(max-width:700px){
  .monitor-modal{padding:8px;align-items:stretch}
  .monitor-modal-card,.monitor-modal-card-small{width:100%;max-height:none;height:calc(100dvh - 16px);margin:auto;border-radius:15px}
  .monitor-modal-head{padding:13px 14px}
  .history-detail-card .detail-body{padding:14px}
  .drop-summary-body{padding:14px}
  .drop-summary-line{display:grid;grid-template-columns:auto 1fr;gap:7px 10px;padding:13px}
  .drop-summary-line strong{min-width:0}
  .drop-summary-numbers{grid-column:2}
  .drop-summary-meta{grid-column:2;font-size:12px}
}
