/* Scoped reconstruction of the supplied history page. */
.external-history-section{box-sizing:border-box;background:#e7e7e7;color:#333;font:13px Arial,"SimSun",sans-serif;color-scheme:light}
.panel.external-history-section{padding:0;border-radius:0;border:0;overflow:hidden}
.history-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#0d241c;color:#e8fff4}.history-section-heading h2{margin:0;color:inherit;font:700 18px/1.5 Arial,"Microsoft YaHei",sans-serif}.history-section-heading .history-open{color:#7ce5b5;text-decoration:none;font:13px/1.5 Arial,"Microsoft YaHei",sans-serif}.history-section-heading .history-open:hover{text-decoration:underline}
.history-reference{box-sizing:border-box;width:100%;max-width:720px;margin:0 auto;background:#fff}
.history-reference *{box-sizing:border-box}
.history-reference button,.history-reference a{font-family:Arial,"SimSun",sans-serif}
.history-header{position:relative;height:44px;background:#00f;color:#fff;display:flex;align-items:center;justify-content:center}
.history-header #externalHistoryTitle{font:normal 20px/44px "Times New Roman","SimSun",serif;margin:0;padding:0;color:#fff}
.history-back{position:absolute;left:10px;top:0;color:#fff;font-size:13px;line-height:44px;text-decoration:none}
.history-filters{margin-top:5px;padding:0 8px 0 20px;background:#ffc;border:4px solid #fff;border-bottom:0}
.history-filter-row{display:flex;min-height:40px;align-items:flex-start;gap:0}
.history-filter-label{flex:0 0 56px;color:red;font:700 14px/28px "SimSun",serif}
.history-filter-options{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;min-width:0;padding:2px 0}
.history-control{appearance:none;display:inline-flex;justify-content:center;align-items:center;min-width:34px;height:28px;padding:0 5px;border:1px solid #d4cc9d;border-radius:3px;background:linear-gradient(#fffef0,#ffffd0);color:#000;font-size:12px;font-weight:400;line-height:26px;cursor:pointer;white-space:nowrap;box-shadow:inset 0 0 0 1px #ffffff70}
.history-market{padding:0 4px}
.history-filter-row:first-child .history-filter-options{column-gap:10px}
.history-reference .history-control.is-active,.history-reference .history-reset{color:#fff;background:#00f;border-color:#00f;box-shadow:none}
.history-control:focus-visible,.history-year:focus-visible,.history-back:focus-visible{outline:2px solid #e33;outline-offset:2px}
.history-filter-row:last-child .history-filter-options{column-gap:14px}
.history-year-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;align-items:center;padding:8px 2px 6px;background:#e7e7e7;min-height:42px;border:4px solid #fff;border-top:0;border-bottom:0}
.history-year{appearance:none;min-width:0;height:26px;padding:0 6px;border:1px solid #fff;border-radius:6px;background:#fe9f01;color:#fff;font:700 13px/24px Arial,"SimSun",sans-serif;cursor:pointer;white-space:nowrap;text-align:center}
.history-reference .history-year.is-active{background:#fff;color:#111}
.history-year:disabled{opacity:.4;cursor:default}
.history-more-years{display:flex;flex-wrap:wrap;gap:5px;padding:6px 9px;background:#e7e7e7;border:4px solid #fff;border-top:0;border-bottom:0}
.history-more-years[hidden]{display:none}
.history-more-years .history-year{min-width:105px}
.history-message{margin:0;padding:8px;background:#fff9df;color:#a33;font-size:12px}
.history-message[hidden]{display:none}
.external-history-records{max-height:720px;overflow:auto;background:#fff;padding:5px 6px 0;scrollbar-width:thin;scrollbar-color:#bbb #eee}
.external-history-records:focus-visible{outline:2px solid #00f;outline-offset:-2px}
.history-reference .history-records{list-style:none;margin:0;padding:0}
.history-record{display:block;margin:0 0 6px;padding:0;background:#fff;list-style:none}
.history-record-meta{height:17px;padding:0 3px;background:#eee;color:#666;font:13px/17px Arial,"SimSun",sans-serif;white-space:nowrap}
.history-record-meta strong{font-weight:700}
.history-record-meta time{color:#4e6277}
.history-numbers{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;width:100%}
.history-cell{display:flex;flex-direction:column;min-width:0;gap:0;text-align:center}
.history-number{display:block;width:100%;height:22px;border-radius:2px;color:#fff;font:700 16px/22px Arial,sans-serif}
.history-number-red{background:#f00}.history-number-blue{background:#00f}.history-number-green{background:#008000}
.history-zodiac{display:block;height:18px;border:1px solid #ddd;border-top:0;background:#fff;color:#000;font:13px/17px "SimSun",serif}
.history-dimmed .history-number{background:#d5d5d5;color:#fafafa}
.history-dimmed .history-zodiac{color:#bcbcbc;background:#fafafa}
.history-empty{margin:0;padding:30px 12px;text-align:center;font:14px/1.8 Arial,"SimSun",sans-serif}
.history-standalone{background:#e7e7e7}
.history-standalone body{margin:0;padding:4px 24px 0;background:#e7e7e7}
.history-standalone .external-history-section{margin:0 auto;max-width:720px;padding:0}
.history-standalone .external-history-records{max-height:none;overflow:visible}
@media(max-width:720px){.history-filters{padding-left:12px;padding-right:6px}.history-filter-label{flex-basis:42px}.history-filter-options{gap:7px 9px}.history-filter-row:last-child .history-filter-options{column-gap:9px}.history-filter-row{padding:2px 0}.history-year-bar{grid-template-columns:repeat(5,minmax(0,1fr))}.history-standalone body{padding:0 6px}}
@media(max-width:400px){.history-filters{padding-left:7px}.history-filter-label{flex-basis:35px;font-size:13px}.history-control{min-width:30px;height:27px;padding:0 4px;font-size:12px}.history-filter-options{gap:5px 7px}.history-filter-row:last-child .history-filter-options{column-gap:7px}.history-number{font-size:15px}.history-numbers{gap:3px}.history-year{font-size:12px;padding:0 3px}.external-history-records{padding-left:4px;padding-right:4px}.history-record-meta{font-size:12px}}
