#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) thead th,
#main .history-table thead th{
  background:linear-gradient(#079de4,#367bc7);
  color:#fff;
  font-weight:600;
  border-color:#9cb6d6;
}

/* Shared presentation for current-result attribute tables. */
#main :is(.racing-summary-scroll,.ssc-summary-scroll,.happy8-summary-scroll,.happy20-summary-scroll,.k3-summary-scroll,.marksix-summary-scroll,.eleven5-summary-scroll){overflow-x:auto;margin-top:24px;border:1px solid #dce5ee;border-radius:5px;background:#fff}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary){border-collapse:collapse;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;font-variant-numeric:tabular-nums}
#main .summary-table{border:1px solid #dce5ee}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) :is(th,td){padding:2px 8px;border:0;border-right:1px solid #e2eaf2;border-bottom:1px solid #dce5ee;line-height:18px;white-space:nowrap}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) thead tr:first-child th{background:#247fbc;color:#fff;font-size:13px;font-weight:650;height:22px;letter-spacing:.5px;border-right-color:#68a4cf;border-bottom-color:#247fbc}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) thead tr:not(:first-child) th{background:#edf5fc;color:#365b7b;font-size:12px;font-weight:600;height:22px;letter-spacing:.2px}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) tbody td{height:44px;background:#fff;color:#293c50;font-size:14px;font-weight:500;border-bottom:0}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) tbody td:first-child{font-size:16px;font-weight:650}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) :is(th,td):last-child{border-right:0}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) :is(.racing-emphasis,.ssc-emphasis,.happy8-emphasis,.happy20-emphasis,.k3-emphasis,.eleven5-emphasis,.lh-red){color:#df2626;font-weight:650}
#main :is(.happy20-summary,.eleven5-summary,.marksix-summary) :is(.happy20-tie,.eleven5-tie,.lh-green){color:#168348;font-weight:650}
#main .marksix-summary .lh-blue{color:#1269c3;font-weight:650}
#main :is(.draw-rolling,.bingo-pending) :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) tbody td{font-size:0}

/* Hash history: independent block column and locally adjustable leaf columns. */
#main .hash-history-table{table-layout:fixed;min-width:0;font-variant-numeric:tabular-nums}
#main .hash-history-table :is(th,td){box-sizing:border-box;min-width:0;text-align:center;padding:8px 6px;white-space:normal;overflow-wrap:anywhere}
#main .hash-history-table thead th{position:relative;font-size:13px;line-height:20px;padding:9px 8px}
#main .hash-history-table .hash-block-column a{color:#53708c;font:12px/20px Arial,sans-serif;text-decoration:none}
#main .hash-history-table .hash-block-column a:hover{color:#1678bd;text-decoration:underline}
#main .hash-history-table .hash-history-numbers{display:flex;flex-direction:column;align-items:center;gap:5px}
#main .hash-history-table .balls,#main .hash-history-table .hash-result{width:100%;min-width:0;max-width:100%;align-items:center;gap:0}
#main .hash-history-table .hash-ball-row{justify-content:center;flex-wrap:wrap}
#main .hash-history-table .hash-proof{width:100%;max-width:100%;text-align:center;font-size:11px;line-height:17px}
#main .hash-history-table .hash-latest td{background:#fff8dc}

#main .hash-history-table thead th{height:calc(var(--hash-head-height,44px)/2);padding:0 8px}
#main .hash-history-table thead th[rowspan="2"]{height:var(--hash-head-height,44px)}
#main .hash-history-table tbody td{position:relative;height:var(--hash-row-height,44px);padding:var(--hash-row-padding,4px) 6px}
#main .hash-history-table .hash-history-numbers{gap:2px}

/* Compact historical rows; retain content-driven height for stacked result balls. */
#main .history-table:not(.hash-history-table) thead th{height:22px;padding:2px 6px;line-height:18px}
#main .history-table:not(.hash-history-table) thead th[rowspan="2"],#main .history-table:not(.hash-history-table) thead tr:only-child th{height:44px}
#main .history-table:not(.hash-history-table) tbody td{height:44px;padding:4px 6px;line-height:18px;vertical-align:middle}
#main .hash-history-scroll{overflow:visible}

#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) thead :is(th[rowspan="2"],tr:only-child th){height:44px}
#main :is(.summary-table,.racing-summary,.ssc-summary,.happy8-summary,.happy20-summary,.k3-summary,.marksix-summary,.eleven5-summary) thead th{padding:1px 8px}

/* Keep approved columns even if the optional layout helper has not loaded. */
#main :is(.ssc-history-table,.hash-history-table){table-layout:fixed;width:100%;min-width:0;--history-issue:13.716814%;--history-time:15.044248%;--history-numbers:29.115044%;--history-stat:6.017699%}
#main .hash-history-table.racing-history-table{--history-issue:12.93823%;--history-time:14.190317%;--history-numbers:27.462437%;--history-stat:5.676127%}
#main :is(.ssc-history-table,.hash-history-table) thead tr:first-child th:nth-child(1){width:var(--history-issue)}
#main :is(.ssc-history-table,.hash-history-table) thead tr:first-child th:nth-child(2){width:var(--history-time)}
#main :is(.ssc-history-table,.hash-history-table) thead tr:first-child th:nth-child(3){width:var(--history-numbers)}
#main :is(.ssc-history-table,.hash-history-table) thead tr:first-child th:nth-child(4){width:calc(var(--history-stat)*3)}
#main :is(.ssc-history-table,.hash-history-table) thead tr:first-child th:nth-child(n+5){width:var(--history-stat)}
#main .ssc-history-table .balls{min-width:0;flex-wrap:nowrap;justify-content:center}
#main .ssc-history-table .hash-ball-row{flex-wrap:nowrap;justify-content:center;gap:5px}
