/* Full-year records page: one document scrollbar, full-width fitted tables. */
.records-page .records-top-links{flex-wrap:wrap;align-items:center}
.records-page .records-top-links .records-tool-link{color:#0c7950;font-size:12px;font-weight:700;white-space:nowrap;text-decoration:none}
.records-page .history-tool-link{justify-self:start;width:70px;padding:0 4px;font-size:12px;font-weight:400;white-space:nowrap;text-decoration:none}
.records-page .history-tool-link:active{background:#00f;border-color:#00f;color:#fff;box-shadow:none}
html.records-page{background:#fff;color-scheme:light;scroll-behavior:auto}
.records-page body{margin:0;padding:12px;background:#fff;min-width:0}
.records-page .records-shell{width:100%;max-width:1540px;margin:0 auto}
.records-page .external-history-section{max-width:none;margin:0 0 20px;padding:0;overflow:visible;background:transparent}
.records-page .history-reference{max-width:720px}
.records-page .history-market-shortcuts{display:grid;gap:8px;width:100%;max-width:370px;padding-bottom:10px}
.records-page .history-market-row{display:grid;grid-template-columns:70px repeat(2,minmax(0,1fr));gap:7px;align-items:center}
.records-page .history-market-row .history-control{padding:0 4px}
.records-page .history-section-shortcut{position:relative;overflow:visible}
.records-page .history-hot{position:absolute;top:-7px;right:3px;z-index:1;padding:0 3px;border:1px solid #ffada6;border-radius:3px;background:#fff5f2;color:#f00000;font:900 10px/12px Arial,sans-serif;letter-spacing:.2px;box-shadow:0 1px 2px #c22a181a;pointer-events:none}
.records-page #historyMarketShortcuts,.records-page .section-block{scroll-margin-top:10px}
.records-page .records-section-back{align-self:center;color:#315e8a;font-size:12px;white-space:nowrap;text-decoration:none}
.records-page .records-section-back:hover{text-decoration:underline}
.records-page .external-history-records{max-height:none;min-height:0;height:auto;overflow:visible;touch-action:auto}
.records-page .section-block{--text:#243d36;--muted:#667b74;--mint:#246b53;--line:#d8e2de;padding:16px;margin:0 0 20px;overflow:visible;min-width:0;background:#fff;color:var(--text);border-color:var(--line);box-shadow:none;backdrop-filter:none}
.records-page .section-heading{flex-wrap:wrap;gap:8px}
.records-page .section-heading h2{font-size:20px}
.records-page .section-heading p{margin:5px 0 0;font-size:12px}
.records-page .draw-matrix-wrap,.records-page .results-detail-wrap{position:relative;width:100%;max-width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto;touch-action:auto;scrollbar-gutter:auto;cursor:auto!important;contain:none!important;transform:none!important;border-radius:0;isolation:auto}
.records-page .draw-matrix-scale,.records-page .results-detail-scale{position:relative!important;width:100%!important;min-width:0!important;height:var(--records-stage-height,0px)!important;min-height:0!important;overflow:visible!important;contain:none!important}
.records-page .draw-matrix,.records-page .results-detail-table{display:table!important;position:absolute!important;top:0!important;left:0!important;width:var(--records-table-width)!important;min-width:var(--records-table-width)!important;max-width:none!important;transform:scale(var(--records-table-scale,1))!important;transform-origin:top left!important;table-layout:fixed!important}
.records-page #drawMatrixSection .draw-matrix th,.records-page #resultsDetailSection .results-detail-table th,.records-page #resultsDetailSection .results-detail-table td{position:static!important;inset:auto!important}
.records-page #drawMatrixSection .draw-matrix td{position:relative!important;inset:auto!important}
/* White card and header surfaces; retain the colored draw and attribute markers. */
.records-page #drawMatrixSection .draw-matrix thead th,.records-page #resultsDetailSection .results-detail-table thead th{background:#fff!important;color:#294a3f!important;box-shadow:none}
.records-page #drawMatrixSection .matrix-stat-item{color:#566e64}
.records-page #drawMatrixSection .matrix-stat-item b{color:#886013}
.records-page #drawMatrixSection .matrix-stat-item+.matrix-stat-item{border-left-color:#d8e2de}
.records-page .matrix-summary,.records-page .results-detail-summary{background:#fff;color:#3f6254;border-color:#cddcd5}
.records-page .draw-matrix-wrap,.records-page .results-detail-wrap{background:#fff!important;border-color:#cddcd5!important;box-shadow:none!important}
.records-page .matrix-legend small{color:#667b74}
/* Distribution palette: cream headings, blue/green hits and solid red specials. */
.records-page #drawMatrixSection .draw-matrix thead th{background:#fffbea!important;color:#294b71!important}
.records-page #drawMatrixSection .matrix-stat-item{color:#456382}
.records-page #drawMatrixSection [data-matrix-stat-value="hit"]{color:#2d63a3}
.records-page #drawMatrixSection [data-matrix-stat-value="miss"]{color:#936215}
.records-page #drawMatrixSection .matrix-draw strong{color:#294b71!important}
.records-page #drawMatrixSection .matrix-draw>small{color:#62778d!important}
.records-page #drawMatrixSection .matrix-regulars{display:inline-flex;gap:3px;overflow:visible}
.records-page #drawMatrixSection .matrix-number{display:inline-grid;place-items:center;width:22px;min-width:22px;height:22px;margin:0;padding:0;border-radius:3px;background:var(--matrix-wave)!important;color:#fff!important;font:800 12px/1 Arial,sans-serif;letter-spacing:0;box-shadow:none;text-shadow:0 1px 1px rgba(0,0,0,.16)}
.records-page #drawMatrixSection .matrix-special-no{outline:2px solid #e7bf63;outline-offset:1px}
.records-page #drawMatrixSection .matrix-hit>span{width:27px;height:27px;font-size:12px;font-weight:900}
.records-page #drawMatrixSection .tail-hit>span{background:#dceaff!important;color:#174f94!important;box-shadow:inset 0 0 0 1px #92b7e2}
.records-page #drawMatrixSection .zodiac-hit>span{background:#ddf1e5!important;color:#14613a!important;box-shadow:inset 0 0 0 1px #95c7a8}
.records-page #drawMatrixSection .special-tail>span,.records-page #drawMatrixSection .special-zodiac>span{width:30px;height:30px;background:#d94350!important;color:#fff!important;font-size:14px;font-weight:1000;box-shadow:inset 0 0 0 1px #bd2f3c,0 0 0 2px #fde5e7}
.records-page #drawMatrixSection .matrix-hit>b{width:14px;height:14px;background:#ffdb7c;color:#653d00;font-size:8px;font-weight:900;box-shadow:0 0 0 1px #fff}
.records-page #drawMatrixSection .matrix-hit>small{color:#405c78!important;font-weight:900}
.records-page #drawMatrixSection .ping-to-special>span{background:#d8e8f8;color:#244f7d;font-weight:900;box-shadow:inset 0 0 0 1px #97b8d8}
.records-page #drawMatrixSection .ping-to-special>small{color:#244f7d!important}
.records-page #drawMatrixSection .special-to-ping>span{background:#ffe7ac;color:#77500b;font-weight:900;box-shadow:inset 0 0 0 1px #d5b665}
.records-page #drawMatrixSection .special-to-ping>small{color:#77500b!important}
.records-page #drawMatrixSection .draw-matrix tbody tr:hover td,.records-page #drawMatrixSection .draw-matrix tbody tr:hover .matrix-draw{background:#fff8e5!important}
.records-page #drawMatrixSection .legend-regular{background:linear-gradient(90deg,#dceaff 50%,#ddf1e5 50%);box-shadow:inset 0 0 0 1px #92b7b8}
.records-page #drawMatrixSection .legend-tail,.records-page #drawMatrixSection .legend-special{background:#d94350;box-shadow:inset 0 0 0 1px #bd2f3c}
.records-page #drawMatrixSection .legend-ping-special{background:#d8e8f8;box-shadow:inset 0 0 0 1px #97b8d8}
.records-page #drawMatrixSection .legend-special-ping{background:#ffe7ac;box-shadow:inset 0 0 0 1px #d5b665}
.records-page .records-status{max-width:720px;margin:0 auto 12px;padding:10px 12px;background:#fff8de;color:#714b13;font-size:13px;border-radius:5px}
.records-page .records-status[hidden]{display:none}
.records-page .records-status button{margin-left:8px;padding:3px 10px;border:1px solid #b68729;background:#fff;color:inherit;border-radius:3px;cursor:pointer}
.records-page [aria-busy="true"]{opacity:.6}
.records-page .records-top-links{max-width:720px;margin:0 auto 10px;display:flex;gap:12px;justify-content:flex-end}
.records-page .records-top-links a{font-size:12px;color:#245b49;text-decoration:none}
@media(max-width:700px){.records-page body{padding:5px}.records-page .section-block{padding:8px;margin-bottom:14px}.records-page .section-heading h2{font-size:17px}.records-page .matrix-legend{font-size:10px}.records-page .results-detail-summary,.records-page .matrix-summary{font-size:10px}}
