:root{--ink:#202d3f;--muted:#7a8797;--line:#e8edf3;--paper:#f4f7fb;--blue:#3b8cff;--blue-soft:#edf5ff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",Inter,system-ui,sans-serif}.hide{display:none!important}.admin-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#f7faff,#edf4ff)}.login-card{width:min(420px,100%);padding:34px;border:1px solid #e5ecf5;border-radius:22px;background:#fff;box-shadow:0 22px 60px rgba(35,67,105,.12)}.login-card h1{margin:0 0 9px;font-size:28px}.login-card p{margin:0 0 24px;color:var(--muted);font-size:13px;line-height:1.7}.login-form{display:grid;gap:13px}.login-form label{display:grid;gap:7px;color:#5d6978;font-size:12px}.login-form input{height:44px;padding:0 12px;border:1px solid #dce4ed;border-radius:10px;outline:none;font:inherit}.login-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(59,140,255,.12)}.login-form button,.admin-button{border:0;border-radius:10px;background:var(--blue);color:#fff;height:44px;cursor:pointer;font:inherit;font-weight:600}.login-form button:disabled{opacity:.65;cursor:not-allowed}.admin-login-message{min-height:18px;margin:0;color:#b6524f;font-size:12px}.admin-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}.admin-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e4eaf1;padding:28px 17px 20px}.admin-brand{padding:0 12px 29px;border-bottom:1px solid #e9eef3;color:#1d2b3e;font-size:20px;font-weight:800;letter-spacing:.02em}.admin-brand small{display:block;margin-top:5px;color:#99a5b3;font-size:10px;font-weight:600;letter-spacing:.16em}.admin-nav{display:grid;gap:5px;padding-top:22px}.admin-nav-item{display:flex;align-items:center;gap:13px;width:100%;border:0;border-radius:11px;background:transparent;color:#344153;padding:13px 12px;font:600 15px/1.2 "Microsoft YaHei","PingFang SC",sans-serif;text-align:left;cursor:pointer;transition:.16s}.admin-nav-item:hover{background:#f4f8ff;color:var(--blue)}.admin-nav-item.active{background:var(--blue-soft);color:var(--blue)}.admin-nav-item svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.admin-profile{margin-top:auto;padding:18px 12px 0;border-top:1px solid #e9eef3}.admin-profile small{display:block;color:#98a4b1;font-size:11px;margin-bottom:6px}.admin-profile strong{display:block;color:#263447;font-size:14px;word-break:break-word}.admin-profile button{border:0;background:none;color:#a25255;padding:12px 0 0;font:12px "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer}.admin-main{min-width:0;padding:38px clamp(24px,4vw,60px) 70px}.admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:28px}.admin-header h1{margin:0 0 9px;font-size:31px;font-weight:700;letter-spacing:-.02em}.admin-header p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}.admin-header .admin-button{height:38px;padding:0 15px;border-radius:9px}.admin-panel{display:none;animation:panel-in .16s ease}.admin-panel.active{display:block}@keyframes panel-in{from{opacity:.1;transform:translateY(4px)}to{opacity:1;transform:none}}
.admin-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.admin-card{min-height:150px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 10px 28px rgba(36,63,94,.04)}.admin-card small{display:block;color:#91a0b0;font-size:11px;letter-spacing:.1em;margin-bottom:19px}.admin-card strong{display:block;font-size:23px;color:#253449;word-break:break-word}.admin-card span{display:block;margin-top:8px;color:var(--muted);font-size:12px}.admin-section{margin-top:17px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 10px 28px rgba(36,63,94,.04)}.admin-section h2{margin:0 0 8px;font-size:19px}.admin-section p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.not-connected{border-style:dashed;background:#fbfcfe}.not-connected strong{display:block;color:#44546a;font-size:15px;margin-bottom:8px}.admin-panel-title{margin:0 0 17px;font-size:26px}.admin-panel-desc{margin:-8px 0 18px;color:var(--muted);font-size:13px}@media(max-width:900px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto;padding:18px 20px;border-right:0;border-bottom:1px solid #e4eaf1}.admin-brand{padding:0 0 17px}.admin-nav{display:flex;overflow:auto;padding-top:15px;gap:7px}.admin-nav-item{width:auto;white-space:nowrap;padding:10px 12px}.admin-profile{display:none}.admin-main{padding:30px 20px 58px}}@media(max-width:700px){.admin-header{display:block}.admin-header .admin-button{margin-top:15px}.admin-card-grid{grid-template-columns:1fr}.admin-main{padding-left:16px;padding-right:16px}}
.admin-match-board{margin-top:17px;padding:0;overflow:hidden;border-color:#e0e8f1;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);box-shadow:0 16px 38px rgba(36,63,94,.055)}.admin-match-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px 20px;border-bottom:1px solid #edf1f6}.admin-match-heading{display:grid;gap:5px}.admin-match-kicker{color:#7d8ca0;font-size:10px;font-weight:800;letter-spacing:.16em}.admin-match-heading strong{color:#26384d;font-size:21px;line-height:1.2}.admin-match-status{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#607188;font-size:12px;white-space:nowrap}.admin-live-dot{width:8px;height:8px;border-radius:50%;background:#22b573;box-shadow:0 0 0 5px rgba(34,181,115,.11)}.admin-match-meta{color:#8492a4;font-variant-numeric:tabular-nums}.admin-match-note{min-height:0;margin:0;padding:0 25px;color:#b6524f;font-size:12px;line-height:1.7}.admin-match-note:empty{display:none}.admin-match-note.error{padding-bottom:13px}.admin-table-wrap{overflow:auto;background:#fff}.admin-match-table{width:100%;min-width:980px;table-layout:fixed;border-collapse:collapse;background:#fff}.admin-match-table th{height:50px;padding:0 12px;background:#f6f8fb;border-bottom:1px solid #e5ebf2;color:#738298;font-size:12px;font-weight:800;letter-spacing:.03em;text-align:center;white-space:nowrap}.admin-match-table td{height:62px;padding:0 12px;border-bottom:1px solid #eef2f6;color:#304158;font-size:13px;text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums}.admin-match-table tbody tr:last-child td{border-bottom:0}.admin-match-table tbody tr{transition:background-color .14s ease}.admin-match-table tbody tr:hover{background:#f7faff}.admin-match-table .score-cell{font-weight:800;color:#23364e;white-space:nowrap}.admin-match-table .team-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.admin-match-table .odds-cell{color:#24558f;font-family:Arial,"Helvetica Neue","Microsoft YaHei",sans-serif;font-size:14px;font-weight:700;letter-spacing:0;white-space:nowrap}.admin-match-table .empty-cell{padding:38px 16px;text-align:center;color:var(--muted)}.admin-match-table .time-cell{color:#5d6d82;white-space:nowrap}.admin-match-table .league-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4e6179;font-weight:600}.admin-match-table .status-cell{white-space:nowrap;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.admin-match-table .status-live{color:#d94b4b}.admin-match-table .status-half{color:#2d6fca}.admin-match-table .status-finished{color:#43556c}.admin-match-table .status-neutral{color:#bd5a5a}.admin-match-table .status-upcoming{color:transparent}@media(max-width:700px){.admin-match-toolbar{align-items:flex-start;flex-direction:column;padding:20px}.admin-match-status{justify-content:flex-start;flex-wrap:wrap;white-space:normal}.admin-match-note{padding-left:20px;padding-right:20px}.admin-match-table{min-width:920px}}
.admin-push-table{width:100%;min-width:1180px;table-layout:fixed;border-collapse:collapse;background:#fff}.admin-push-table th,.admin-push-table td{text-align:center;padding:14px 10px;border-bottom:1px solid #eef2f6;white-space:nowrap}.admin-push-table th{height:48px;background:#f6f8fb;color:#738298;font-size:12px}.admin-push-table td{color:#304158;font-size:12px}.admin-push-table tr:last-child td{border-bottom:0}.admin-push-table .push-match{overflow:hidden;text-overflow:ellipsis;font-weight:600}.admin-push-table .push-water{color:#24558f;font-family:Arial,"Helvetica Neue","Microsoft YaHei",sans-serif;font-weight:700}.admin-push-table .push-empty{padding:42px 16px;color:var(--muted)}


.admin-batch-table{width:100%;min-width:980px;table-layout:fixed;border-collapse:collapse;background:#fff}.admin-batch-table th,.admin-batch-table td{text-align:center;padding:13px 10px;border-bottom:1px solid #eef2f6;white-space:nowrap}.admin-batch-table th{height:46px;background:#f6f8fb;color:#738298;font-size:12px}.admin-batch-table td{color:#304158;font-size:12px}.admin-batch-table tr:last-child td{border-bottom:0}.admin-batch-table .batch-rule{overflow:hidden;text-overflow:ellipsis;font-weight:600}.admin-batch-table .batch-auto{color:#24558f;font-weight:700}.admin-batch-table .batch-empty{padding:38px 16px;color:var(--muted)}


.admin-push-overview{display:grid;grid-template-columns:minmax(300px,1.45fr) repeat(3,minmax(150px,1fr));gap:16px;margin:0 0 17px}.admin-push-stat-card{min-height:105px;padding:17px 18px;background:#fff;border:1px solid #dfe8f2;border-radius:10px;box-shadow:0 8px 22px rgba(36,63,94,.04)}.admin-push-stat-card-wide{display:grid;grid-template-columns:repeat(3,1fr);padding:0}.admin-push-stat-card-wide article{padding:16px 17px;border-right:1px solid #e7edf4}.admin-push-stat-card-wide article:last-child{border-right:0}.admin-push-stat-card small,.admin-push-stat-card-wide small{display:block;color:#738298;font-size:12px;line-height:1.3;margin-bottom:10px}.admin-push-stat-card strong,.admin-push-stat-card-wide strong{display:block;color:#123e72;font-size:25px;line-height:1.15;font-weight:800;white-space:nowrap;word-break:break-word}.admin-push-stat-card strong.compact{font-size:20px}.admin-push-stat-card span{display:block;margin-top:7px;color:#9aa7b6;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-push-tabs{display:flex;align-items:center;gap:5px;margin:0 0 17px;padding:4px;width:max-content;max-width:100%;border:1px solid #e1e9f2;border-radius:11px;background:#f7f9fc}.admin-push-tab{border:0;border-radius:8px;background:transparent;color:#738298;padding:9px 18px;font:600 13px "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer}.admin-push-tab:hover{color:#2d6fca;background:#fff}.admin-push-tab.active{color:#fff;background:#3b8cff;box-shadow:0 5px 13px rgba(59,140,255,.22)}.admin-push-view{display:block}.admin-push-view.hide{display:none}.admin-current-table,.admin-history-table{width:100%;min-width:1020px;table-layout:fixed;border-collapse:collapse;background:#fff}.admin-current-table th,.admin-current-table td,.admin-history-table th,.admin-history-table td{text-align:center;padding:13px 10px;border-bottom:1px solid #eef2f6;white-space:nowrap}.admin-current-table th,.admin-history-table th{height:48px;background:#f6f8fb;color:#738298;font-size:12px;font-weight:700}.admin-current-table td,.admin-history-table td{color:#304158;font-size:12px}.admin-current-table tr:last-child td,.admin-history-table tr:last-child td{border-bottom:0}.admin-current-table .push-match,.admin-history-table .push-batch{overflow:hidden;text-overflow:ellipsis;font-weight:600}.admin-current-table .push-score{font-weight:800;color:#23364e}.admin-current-table .push-profit,.admin-history-table .push-profit{color:#24558f;font-weight:800;font-variant-numeric:tabular-nums}.admin-current-table .push-empty,.admin-history-table .push-empty{padding:42px 16px;color:var(--muted)}.admin-order-select{width:15px;height:15px;accent-color:#3b8cff;cursor:pointer}.admin-history-detail-button{border:1px solid #cddced;border-radius:8px;background:#f8fbff;color:#2d6fca;padding:6px 11px;font:600 12px "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer}.admin-history-detail-button:hover{border-color:#3b8cff;background:#edf5ff}.admin-push-modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:24px;background:rgba(18,34,54,.42)}.admin-push-modal.hide{display:none}.admin-push-dialog{width:min(920px,100%);max-height:min(760px,90vh);overflow:auto;border:1px solid #e0e8f1;border-radius:18px;background:#fff;box-shadow:0 26px 80px rgba(18,34,54,.28)}.admin-push-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 24px;border-bottom:1px solid #edf1f6}.admin-push-dialog-head h3{margin:0;color:#26384d;font-size:18px}.admin-push-dialog-close{width:32px;height:32px;border:0;border-radius:50%;background:#f3f6fa;color:#64748a;font-size:20px;line-height:1;cursor:pointer}.admin-push-dialog-close:hover{background:#e8eef6;color:#23364e}.admin-push-dialog-content{padding:20px 24px}.admin-push-detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}.admin-push-detail-meta article{padding:12px 14px;border:1px solid #e7edf4;border-radius:10px;background:#fbfcfe}.admin-push-detail-meta small{display:block;color:#8a99aa;font-size:11px;margin-bottom:5px}.admin-push-detail-meta strong{display:block;color:#304158;font-size:13px;word-break:break-word}.admin-push-detail-list{display:grid;gap:9px}.admin-push-detail-row{padding:12px 13px;border:1px solid #e7edf4;border-radius:10px;background:#fff}.admin-push-detail-row strong{display:block;color:#304158;font-size:13px}.admin-push-detail-row span{display:block;margin-top:5px;color:#7b899a;font-size:12px;line-height:1.6}.admin-push-detail-empty{padding:28px 10px;color:var(--muted);text-align:center}@media(max-width:1000px){.admin-push-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-push-stat-card-wide{grid-column:1/-1}}@media(max-width:700px){.admin-push-overview{grid-template-columns:1fr}.admin-push-stat-card-wide{grid-column:auto}.admin-push-stat-card-wide article{padding:14px 12px}.admin-push-stat-card-wide strong{font-size:21px}.admin-push-tabs{width:100%}.admin-push-tab{flex:1;padding-left:10px;padding-right:10px}.admin-push-detail-meta{grid-template-columns:1fr}.admin-push-dialog-content{padding:16px}}
.admin-section-table{padding:0;overflow:hidden}.admin-history-heading{padding:20px 24px 15px}.admin-history-heading h3{margin:0 0 6px;font-size:17px}.admin-history-heading .admin-panel-desc{margin:0}.admin-match-table col:nth-child(1){width:8%}.admin-match-table col:nth-child(2){width:12%}.admin-match-table col:nth-child(3){width:8%}.admin-match-table col:nth-child(4){width:17%}.admin-match-table col:nth-child(5){width:8%}.admin-match-table col:nth-child(6){width:17%}.admin-match-table col:nth-child(7),.admin-match-table col:nth-child(8){width:15%}.admin-current-table col:nth-child(1){width:5%}.admin-current-table col:nth-child(2){width:12%}.admin-current-table col:nth-child(3){width:10%}.admin-current-table col:nth-child(4){width:13%}.admin-current-table col:nth-child(5){width:24%}.admin-current-table col:nth-child(6){width:11%}.admin-current-table col:nth-child(7){width:15%}.admin-current-table col:nth-child(8){width:10%}.admin-history-table col:nth-child(1){width:19%}.admin-history-table col:nth-child(2){width:16%}.admin-history-table col:nth-child(3){width:13%}.admin-history-table col:nth-child(4){width:15%}.admin-history-table col:nth-child(5){width:13%}.admin-history-table col:nth-child(6){width:13%}.admin-history-table col:nth-child(7){width:11%}

.admin-trash-button,.admin-trash-row-button{border:1px solid #e4ccd0;border-radius:8px;background:#fff8f8;color:#a24c57;cursor:pointer;font:600 12px "Microsoft YaHei","PingFang SC",sans-serif}.admin-trash-button{width:36px;height:34px;margin-left:4px;font-size:16px}.admin-trash-row-button{padding:6px 10px}.admin-trash-button:hover,.admin-trash-row-button:hover{border-color:#d58a95;background:#fff0f1}.admin-trash-list{display:grid;gap:10px}.admin-trash-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid #e7edf4;border-radius:10px}.admin-trash-item strong,.admin-trash-item span{display:block}.admin-trash-item strong{color:#304158;font-size:13px}.admin-trash-item span{margin-top:4px;color:#8996a5;font-size:12px}
.admin-panel-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}.admin-panel-header .admin-panel-title{margin:0}.admin-push-tabs{margin:0}.admin-push-toolbar{display:flex;align-items:center;gap:11px;padding:14px 16px;border:1px solid #dbe5f0;border-bottom:0;background:#fff}.admin-bulk-button{height:30px;padding:0 16px;border:1px solid #9fc4f5;border-radius:4px;background:#fff;color:#1265c0;font:600 12px "Microsoft YaHei","PingFang SC",sans-serif;cursor:pointer}.admin-bulk-button:hover{background:#edf5ff;border-color:#3b8cff}.admin-bulk-danger{color:#b6525f;border-color:#e2b5bc}.admin-bulk-danger:hover{background:#fff2f3;border-color:#d58a95}.admin-selected-count{color:#53657b;font-size:12px;white-space:nowrap}.admin-current-table,.admin-history-table{border:1px solid #dbe5f0;border-collapse:separate;border-spacing:0}.admin-current-table th,.admin-current-table td,.admin-history-table th,.admin-history-table td{border-right:1px solid #e5ecf4}.admin-current-table th:last-child,.admin-current-table td:last-child,.admin-history-table th:last-child,.admin-history-table td:last-child{border-right:0}.admin-current-table .push-direction{color:#24558f;font-weight:700;font-variant-numeric:tabular-nums}.admin-current-table .push-profit,.admin-history-table .push-profit{font-weight:800;font-variant-numeric:tabular-nums}.profit-positive{color:#0e9b69!important}.profit-negative{color:#df3f45!important}.profit-zero{color:#42546b!important}.profit-pending{color:#c43f49!important}.admin-push-detail-row em{font-style:normal;font-weight:800}.admin-bulk-button[data-admin-action="open-trash"]{color:#1265c0}
@media(max-width:700px){.admin-panel-header{align-items:flex-start;flex-direction:column}.admin-push-tabs{width:100%}}
.admin-current-table col:nth-child(1){width:5%}.admin-current-table col:nth-child(2){width:11%}.admin-current-table col:nth-child(3){width:10%}.admin-current-table col:nth-child(4){width:11%}.admin-current-table col:nth-child(5){width:22%}.admin-current-table col:nth-child(6){width:10%}.admin-current-table col:nth-child(7){width:17%}.admin-current-table col:nth-child(8){width:7%}.admin-current-table col:nth-child(9){width:7%}.admin-history-table col:nth-child(1){width:16%}.admin-history-table col:nth-child(2){width:14%}.admin-history-table col:nth-child(3){width:11%}.admin-history-table col:nth-child(4){width:14%}.admin-history-table col:nth-child(5){width:11%}.admin-history-table col:nth-child(6){width:11%}.admin-history-table col:nth-child(7){width:11%}.admin-history-table col:nth-child(8){width:12%}
.admin-panel-header .admin-push-tabs{margin:0 0 0 auto;flex:0 0 auto}
/* Compact push board and tabs under cumulative profit. */
.admin-push-profit-card{display:flex;flex-direction:column;align-items:flex-start}.admin-push-profit-card .admin-push-tabs{margin:13px 0 0;padding:3px;width:100%;max-width:100%;gap:3px}.admin-push-profit-card .admin-push-tab{flex:1;padding:7px 8px;font-size:12px}.admin-current-table,.admin-history-table{width:100%;min-width:0!important;table-layout:fixed}.admin-current-table th,.admin-current-table td,.admin-history-table th,.admin-history-table td{padding-left:6px;padding-right:6px}.admin-current-table col:nth-child(1){width:4%}.admin-current-table col:nth-child(2){width:9%}.admin-current-table col:nth-child(3){width:9%}.admin-current-table col:nth-child(4){width:10%}.admin-current-table col:nth-child(5){width:29%}.admin-current-table col:nth-child(6){width:9%}.admin-current-table col:nth-child(7){width:17%}.admin-current-table col:nth-child(8){width:7%}.admin-current-table col:nth-child(9){width:6%}.admin-current-table .push-match{max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-table-wrap{overflow-x:hidden}.admin-current-table th,.admin-history-table th{font-size:11px}.admin-current-table td,.admin-history-table td{font-size:11px}@media(max-width:900px){.admin-table-wrap{overflow-x:auto}.admin-current-table,.admin-history-table{min-width:760px!important}.admin-push-profit-card .admin-push-tabs{width:100%}}

/* Keep toolbar tabs aligned right after removing operation columns. */
.admin-push-toolbar .admin-push-tabs{margin:0 0 0 auto;flex:0 0 auto}
.admin-current-table col:nth-child(1){width:4%}.admin-current-table col:nth-child(2){width:10%}.admin-current-table col:nth-child(3){width:10%}.admin-current-table col:nth-child(4){width:12%}.admin-current-table col:nth-child(5){width:29%}.admin-current-table col:nth-child(6){width:10%}.admin-current-table col:nth-child(7){width:17%}.admin-current-table col:nth-child(8){width:8%}
.admin-history-table col:nth-child(1){width:19%}.admin-history-table col:nth-child(2){width:16%}.admin-history-table col:nth-child(3){width:13%}.admin-history-table col:nth-child(4){width:16%}.admin-history-table col:nth-child(5){width:13%}.admin-history-table col:nth-child(6){width:13%}.admin-history-table col:nth-child(7){width:10%}
@media(min-width:901px){.admin-table-wrap{overflow-x:hidden}}

/* Keep tabs visible for both views and tighten centered stat cards. */
.admin-push-tabs-row{display:flex;align-items:center;justify-content:flex-end;margin:0 0 12px}
.admin-push-tabs-row .admin-push-tabs{margin:0}
.admin-push-overview{gap:12px;margin-bottom:12px}
.admin-push-stat-card{min-height:88px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.admin-push-stat-card-wide{min-height:88px}
.admin-push-stat-card-wide article{padding:11px 10px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.admin-push-stat-card small,.admin-push-stat-card-wide small{margin-bottom:6px}
.admin-push-stat-card strong,.admin-push-stat-card-wide strong{font-size:24px}
.admin-push-stat-card strong.compact{font-size:19px}
.admin-push-profit-card{align-items:center;text-align:center}
@media(max-width:700px){.admin-push-tabs-row{justify-content:flex-end}.admin-push-stat-card,.admin-push-stat-card-wide{min-height:82px}}

/* Keep tabs in the table toolbar and stat cards horizontal and compact. */
.admin-push-records-section{padding:0;overflow:hidden}
.admin-push-records-section .admin-push-toolbar{display:flex;align-items:center;gap:11px;padding:14px 16px;border:0;border-bottom:1px solid #dbe5f0;background:#fff}
.admin-push-bulk-actions{display:flex;align-items:center;gap:11px;min-width:0}
.admin-push-toolbar-spacer{flex:1 1 auto;min-width:0}
.admin-push-records-section .admin-push-tabs{margin:0;flex:0 0 auto}
.admin-push-overview{gap:12px;margin-bottom:14px}
.admin-push-stat-card{min-height:96px;padding:13px 16px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.admin-push-stat-card-wide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:96px;padding:0}
.admin-push-stat-card-wide article{min-height:96px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.admin-push-stat-card small,.admin-push-stat-card-wide small{margin-bottom:6px}
.admin-push-stat-card strong,.admin-push-stat-card-wide strong{font-size:24px}
.admin-push-stat-card strong.compact{font-size:20px}
.admin-push-profit-card{align-items:center;text-align:center}
@media(max-width:700px){.admin-push-records-section .admin-push-toolbar{align-items:flex-end;flex-wrap:wrap}.admin-push-bulk-actions{flex-wrap:wrap}.admin-push-records-section .admin-push-tabs{margin-left:auto}.admin-push-stat-card,.admin-push-stat-card-wide,.admin-push-stat-card-wide article{min-height:88px}}
/* History overview cards and detail table. */
.admin-history-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 17px}
.admin-history-overview.hide{display:none}
.admin-history-stat-card{min-height:94px;padding:16px 18px;background:#fff;border:1px solid #dfe8f2;border-radius:10px;box-shadow:0 8px 22px rgba(36,63,94,.04)}
.admin-history-stat-card small{display:block;color:#738298;font-size:12px;line-height:1.3;margin-bottom:10px}
.admin-history-stat-card strong{display:block;color:#123e72;font-size:25px;line-height:1.15;font-weight:800;white-space:nowrap;word-break:break-word;font-variant-numeric:tabular-nums}
.admin-push-detail-table-wrap{overflow:auto;border:1px solid #dbe5f0;border-radius:8px;background:#fff}
.admin-push-detail-table{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;background:#fff}
.admin-push-detail-table th,.admin-push-detail-table td{text-align:center;padding:11px 8px;border-right:1px solid #e5ecf4;border-bottom:1px solid #e5ecf4;white-space:nowrap}
.admin-push-detail-table th{height:42px;background:#f6f8fb;color:#738298;font-size:12px;font-weight:700}
.admin-push-detail-table td{height:42px;color:#304158;font-size:12px}
.admin-push-detail-table tr:last-child td{border-bottom:0}
.admin-push-detail-table th:last-child,.admin-push-detail-table td:last-child{border-right:0}
.admin-push-detail-table .push-match{overflow:hidden;text-overflow:ellipsis;font-weight:600}
.admin-push-detail-table .push-score{font-weight:800;color:#23364e}
.admin-push-detail-table .push-direction{color:#24558f;font-weight:700;font-variant-numeric:tabular-nums}
.admin-history-status{display:inline-block;padding:3px 8px;border:1px solid #bfe8d3;border-radius:4px;background:#effbf4;color:#0e9b69;font-size:11px;font-weight:700}
.admin-history-status.status-neutral{border-color:#e2c6ca;background:#fff6f7;color:#b6525f}
@media(max-width:900px){.admin-history-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-push-detail-table-wrap{overflow-x:auto}}
@media(max-width:700px){.admin-history-overview{grid-template-columns:1fr}.admin-history-stat-card strong{font-size:22px}}

/* History detail keeps the header and metadata fixed; only match rows scroll. */
.admin-push-dialog{width:min(1180px,calc(100vw - 40px));height:min(820px,92vh);max-height:none;overflow:hidden;display:flex;flex-direction:column}
.admin-push-dialog-head{flex:0 0 auto}
.admin-push-dialog-content{min-height:0;max-height:none;overflow:hidden;display:flex;flex-direction:column}
.admin-push-detail-meta{flex:0 0 auto}
.admin-push-detail-table-wrap{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.admin-push-detail-table{width:100%;min-width:1080px;table-layout:fixed}
.admin-push-detail-table col:nth-child(1){width:10%}
.admin-push-detail-table col:nth-child(2){width:12%}
.admin-push-detail-table col:nth-child(3){width:12%}
.admin-push-detail-table col:nth-child(4){width:31%}
.admin-push-detail-table col:nth-child(5){width:8%}
.admin-push-detail-table col:nth-child(6){width:18%}
.admin-push-detail-table col:nth-child(7){width:9%}
.admin-push-detail-table th,.admin-push-detail-table td{padding:12px 10px}
.admin-push-detail-table td.push-match{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45;word-break:break-word}
.admin-push-detail-table td.push-score,.admin-push-detail-table td.push-direction,.admin-push-detail-table td.push-profit{white-space:nowrap}
@media(max-width:700px){.admin-push-dialog{width:calc(100vw - 20px);height:calc(100vh - 20px)}.admin-push-dialog-content{padding:14px}.admin-push-detail-meta{gap:8px}.admin-push-detail-table{min-width:1040px}}

/* Use readable typography with tight tables and compact centered cards. */
.admin-push-overview{gap:10px;margin-bottom:12px}
.admin-push-stat-card{min-height:82px;padding:10px 12px}
.admin-push-stat-card-wide{min-height:82px}
.admin-push-stat-card-wide article{min-height:82px;padding:10px 10px}
.admin-push-stat-card small,.admin-push-stat-card-wide small{font-size:13px;margin-bottom:5px}
.admin-push-stat-card strong,.admin-push-stat-card-wide strong{font-size:25px}
.admin-push-stat-card strong.compact{font-size:20px}
.admin-history-overview{gap:10px;margin-bottom:12px}
.admin-history-stat-card{min-height:82px;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.admin-history-stat-card small{font-size:13px;margin-bottom:5px}
.admin-history-stat-card strong{font-size:25px}
.admin-current-table th,.admin-history-table th{height:42px;padding:8px 5px;font-size:13px;line-height:1.2}
.admin-current-table td,.admin-history-table td{padding:8px 5px;font-size:13px;line-height:1.25}
@media(max-width:700px){
  .admin-push-stat-card,.admin-push-stat-card-wide,.admin-push-stat-card-wide article,.admin-history-stat-card{min-height:76px}
  .admin-push-stat-card small,.admin-push-stat-card-wide small,.admin-history-stat-card small{font-size:12px}
  .admin-current-table th,.admin-history-table th{font-size:12px}
  .admin-current-table td,.admin-history-table td{font-size:12px}
}

/* Persistent order-delivery switch.  The live scoreboard remains independent
   from this control and continues to refresh while delivery is disabled. */
.admin-push-control{display:inline-flex;align-items:center;gap:8px;margin-left:auto;margin-right:14px;white-space:nowrap;color:#49627d;font-size:13px}
.admin-push-control-label{font-weight:700}
.admin-push-control-state{min-width:28px;color:#149467;font-size:12px}
.admin-push-switch{position:relative;width:46px;height:24px;padding:0;border:0;border-radius:999px;background:#b8c5d3;cursor:pointer;transition:background .2s ease,box-shadow .2s ease}
.admin-push-switch span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #17324b33;transition:transform .2s ease}
.admin-push-switch.is-on{background:#2d83dc;box-shadow:0 0 0 3px #2d83dc1c}
.admin-push-switch.is-on span{transform:translateX(22px)}
.admin-push-switch.is-off{background:#9aa9b8}
.admin-push-switch:disabled{cursor:wait;opacity:.65}
@media(max-width:900px){.admin-push-control{margin-left:0;margin-right:8px}.admin-push-control-state{display:none}}

/* Match current recommendation card height to history cards. */
.admin-push-overview{align-items:start}
.admin-push-stat-card,.admin-push-stat-card-wide{height:82px;min-height:82px;max-height:82px;align-self:start}
.admin-push-stat-card-wide article{height:82px;min-height:82px;max-height:82px}
.admin-history-stat-card{height:82px;min-height:82px;max-height:82px}
@media(max-width:700px){
  .admin-push-stat-card,.admin-push-stat-card-wide{height:76px;min-height:76px;max-height:76px}
  .admin-push-stat-card-wide article,.admin-history-stat-card{height:76px;min-height:76px;max-height:76px}
}

/* History goal net and compact period revenue summary. */
.admin-history-overview{grid-template-columns:minmax(118px,.85fr) minmax(226px,1.7fr) minmax(126px,1fr) minmax(132px,1.08fr) minmax(194px,1.45fr);gap:10px}
.admin-history-stat-card{height:82px;min-height:82px;max-height:82px;padding:8px 10px}
.admin-history-stat-card small{font-size:12px;line-height:1.2;margin-bottom:4px}
.admin-history-stat-card strong{font-size:24px;line-height:1.1}
.admin-history-net-card,.admin-history-recent-card{align-items:stretch;text-align:center}
.admin-history-dual-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;height:42px}
.admin-history-dual-values>div{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.admin-history-dual-values>div+div{border-left:1px solid #e7edf4}
.admin-history-dual-values span{display:block;color:#7b899a;font-size:11px;line-height:1.15;white-space:nowrap}
.admin-history-dual-values strong{margin-top:3px;font-size:19px;line-height:1.1;white-space:nowrap}
.admin-history-table col:nth-child(1){width:9%}
.admin-history-table col:nth-child(2){width:17%}
.admin-history-table col:nth-child(3){width:8%}
.admin-history-table col:nth-child(4){width:12%}
.admin-history-table col:nth-child(5){width:14%}
.admin-history-table col:nth-child(6){width:10%}
.admin-history-table col:nth-child(7){width:18%}
.admin-history-table col:nth-child(8){width:12%}
.admin-history-table th,.admin-history-table td{padding:8px 4px}
.admin-history-table .push-goal-net{font-weight:800;font-variant-numeric:tabular-nums}
@media(max-width:1180px){
  .admin-history-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-history-net-card{grid-column:span 2}
}
@media(max-width:900px){
  .admin-history-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-history-net-card,.admin-history-recent-card{grid-column:span 1}
  .admin-history-table{min-width:940px!important}
}
@media(max-width:700px){
  .admin-history-stat-card{height:76px;min-height:76px;max-height:76px;padding:7px 9px}
  .admin-history-stat-card strong{font-size:21px}
  .admin-history-dual-values{height:38px}
  .admin-history-dual-values strong{font-size:17px}
}

/* Keep history summary cards balanced and contain dual metrics. */
.admin-history-overview{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:12px}
.admin-history-stat-card{height:96px;min-height:96px;max-height:96px;padding:12px 14px}
.admin-history-stat-card small{font-size:13px;line-height:1.25;margin-bottom:7px}
.admin-history-stat-card strong{font-size:25px;line-height:1.08}
.admin-history-net-card,.admin-history-recent-card{justify-content:center}
.admin-history-dual-values{height:47px}
.admin-history-dual-values span{font-size:11px;line-height:1.2}
.admin-history-dual-values strong{margin-top:4px;font-size:18px;line-height:1.08}
.admin-history-table .push-goal-net{color:#24558f;font-weight:800;font-variant-numeric:tabular-nums}
@media(max-width:1180px){
  .admin-history-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-history-net-card{grid-column:span 1}
}
@media(max-width:900px){
  .admin-history-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .admin-history-overview{grid-template-columns:1fr}
  .admin-history-stat-card{height:88px;min-height:88px;max-height:88px;padding:10px 12px}
  .admin-history-stat-card strong{font-size:22px}
  .admin-history-dual-values{height:42px}
  .admin-history-dual-values strong{font-size:18px}
}

/* Use content-sized history cards with a wider dual-metric card. */
.admin-history-overview{grid-template-columns:minmax(140px,.72fr) minmax(360px,1.75fr) minmax(150px,.9fr) minmax(170px,1fr) minmax(280px,1.3fr);gap:12px}
.admin-history-net-card,.admin-history-recent-card{justify-content:center}
.admin-history-net-card .admin-history-dual-values,.admin-history-recent-card .admin-history-dual-values{height:48px}
.admin-history-net-card .admin-history-dual-values strong,.admin-history-recent-card .admin-history-dual-values strong{font-size:18px}
@media(max-width:1250px){
  .admin-history-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-history-net-card,.admin-history-recent-card{grid-column:span 2}
}
@media(max-width:900px){
  .admin-history-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-history-net-card,.admin-history-recent-card{grid-column:span 1}
}
@media(max-width:700px){
  .admin-history-overview{grid-template-columns:1fr}
  .admin-history-net-card .admin-history-dual-values,.admin-history-recent-card .admin-history-dual-values{height:42px}
}

/* Equalize current recommendation card typography and reduce height. */
.admin-push-overview{gap:10px;align-items:start}
.admin-push-stat-card,.admin-push-stat-card-wide{height:76px;min-height:76px;max-height:76px;padding:8px 10px}
.admin-push-stat-card-wide{padding:0}
.admin-push-stat-card-wide article{height:76px;min-height:76px;max-height:76px;padding:8px 10px}
.admin-push-stat-card small,.admin-push-stat-card-wide small{font-size:12px;line-height:1.15;margin-bottom:4px}
.admin-push-stat-card strong,.admin-push-stat-card strong.compact,.admin-push-stat-card-wide strong{font-size:22px;line-height:1.08}
@media(max-width:700px){
  .admin-push-stat-card,.admin-push-stat-card-wide{height:72px;min-height:72px;max-height:72px}
  .admin-push-stat-card-wide article{height:72px;min-height:72px;max-height:72px;padding:7px 8px}
  .admin-push-stat-card small,.admin-push-stat-card-wide small{font-size:11px}
  .admin-push-stat-card strong,.admin-push-stat-card strong.compact,.admin-push-stat-card-wide strong{font-size:20px}
}
/* Optional password memory control. */
.admin-remember-option{display:flex;align-items:center;gap:7px;color:#738298;font-size:12px;cursor:pointer}.admin-remember-option input{width:14px;height:14px;margin:0;accent-color:#3b8cff}
/* Align the remember-password control with its label. */
.login-form .admin-remember-option{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:0;color:#738298;font-size:12px;line-height:18px;cursor:pointer}
.login-form .admin-remember-option input{width:15px;height:15px;flex:0 0 15px;margin:0;accent-color:#3b8cff}
.admin-account-picker{position:relative;display:block}.login-form .admin-account-picker>input{width:100%}.admin-saved-accounts{position:absolute;z-index:20;top:calc(100% + 6px);right:0;left:0;max-height:210px;overflow:auto;padding:5px;border:1px solid #dce4ed;border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(35,67,105,.16)}.admin-saved-account{display:block;width:100%;min-height:38px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#263b56;font:inherit;text-align:left;cursor:pointer}.admin-saved-account:hover,.admin-saved-account:focus-visible{background:#edf5ff;color:#216fce;outline:0}
.account-picker{width:100%;height:47px;margin-top:6px;padding:0 13px;border:1px solid #d9e0e7;border-radius:12px;background:#fff;color:#202d3f;outline:none;cursor:pointer}.account-picker:focus{border-color:#3b8cff;box-shadow:0 0 0 3px rgba(59,140,255,.12)}.account-input-fallback{display:block}.account-picker:not(.hide)+.account-input-fallback{display:none}

/* Weighted net-win card and compact overview layouts. */
.admin-push-overview{grid-template-columns:minmax(260px,1.45fr) repeat(4,minmax(140px,1fr));gap:12px;align-items:stretch}
.admin-push-stat-card,.admin-push-stat-card-wide{height:82px;min-height:82px;max-height:82px;padding:8px 10px}
.admin-push-stat-card-wide{padding:0}
.admin-push-stat-card-wide article{height:82px;min-height:82px;max-height:82px;padding:8px 10px}
.admin-push-net-wins-card,.admin-history-net-wins-card{justify-content:center;text-align:center}
.admin-push-net-wins-card strong,.admin-history-net-wins-card strong{font-size:23px}
.admin-history-overview{grid-template-columns:minmax(140px,.85fr) minmax(260px,1.45fr) minmax(140px,.85fr) minmax(140px,.85fr) minmax(280px,1.3fr);gap:12px;align-items:stretch}
.admin-history-stat-card{height:86px;min-height:86px;max-height:86px;padding:10px 12px}
@media(max-width:1250px){.admin-push-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-push-stat-card-wide{grid-column:1/-1}.admin-history-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.admin-push-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-push-stat-card-wide{grid-column:1/-1}.admin-history-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.admin-push-overview,.admin-history-overview{grid-template-columns:1fr}.admin-push-stat-card-wide{grid-column:auto}.admin-push-stat-card,.admin-push-stat-card-wide,.admin-push-stat-card-wide article{height:76px;min-height:76px;max-height:76px}.admin-history-stat-card{height:80px;min-height:80px;max-height:80px}}

/* Keep admin push tables in a fixed viewport. Only the rows scroll; the
   page, toolbar and table headings remain in place for both tabs. */
@media(min-width:901px){
  #admin-console:has(#order-records-panel.active),
  .admin-main:has(#order-records-panel.active){
    height:100vh;
    min-height:0;
    overflow:hidden;
  }
  .admin-main:has(#order-records-panel.active){padding-bottom:0}
  #order-records-panel.active{
    height:calc(100vh - 38px);
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  #order-records-panel.active .admin-push-overview,
  #order-records-panel.active .admin-history-overview{
    flex:0 0 auto;
  }
  #order-records-panel.active .admin-push-records-section{
    flex:1 1 auto;
    height:auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  #order-records-panel.active .admin-push-toolbar{
    flex:0 0 auto;
  }
  #order-records-panel.active .admin-push-view:not(.hide){
    min-height:0;
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
  }
  #order-records-panel.active .admin-push-view.hide{display:none!important}
  #order-records-panel.active .admin-table-wrap{
    min-height:0;
    height:100%;
    flex:1 1 auto;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:#a7b4c2 #eef3f8;
    touch-action:pan-y;
  }
  #order-records-panel.active .admin-table-wrap::-webkit-scrollbar{width:10px;height:10px}
  #order-records-panel.active .admin-table-wrap::-webkit-scrollbar-track{background:#eef3f8;border-radius:999px}
  #order-records-panel.active .admin-table-wrap::-webkit-scrollbar-thumb{background:#a7b4c2;border:2px solid #eef3f8;border-radius:999px}
  #order-records-panel.active .admin-table-wrap::-webkit-scrollbar-thumb:hover{background:#8495a8}
  #order-records-panel.active .admin-current-table thead th,
  #order-records-panel.active .admin-history-table thead th{
    position:sticky;
    top:0;
    z-index:3;
    background:#f6f8fb;
    box-shadow:inset 0 -1px 0 #dbe5f0;
  }
}

html body.admin-booting #admin-login,
html body.admin-booting #admin-console{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

.admin-members-table th:last-child,
.admin-members-table td:last-child{
  width:140px!important;
  padding-right:0!important;
  padding-left:0!important;
  text-align:center!important;
  vertical-align:middle!important;
}

.admin-members-table td:last-child .admin-agent-actions{
  width:100%!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
}

.admin-members-table td:last-child .admin-agent-actions button{
  margin:0!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
}

@media(max-width:900px){
  /* Keep the compact mobile layout usable without forcing a desktop-height
     viewport onto the stacked navigation. */
  #order-records-panel.active .admin-table-wrap{
    max-height:calc(100vh - 300px);
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  #order-records-panel.active .admin-current-table thead th,
  #order-records-panel.active .admin-history-table thead th{
    position:sticky;
    top:0;
    z-index:3;
    background:#f6f8fb;
  }
}
