/* Round-one shared layout: reference/r1.css, retained once. */
:root {
  color-scheme: light;
  --ink: #203649;
  --muted: #50677a;
  --strong: #16354f;
  --blue: #206486;
  --blue-deep: #174e6b;
  --paper: #fff;
  --canvas: #f3f6f8;
  --wash: #eaf3f7;
  --line: #cad7df;
  --accent: #e9ad65;
  --alert: #a12738;
  font: 14px/1.45 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #c07124; outline-offset: 2px; }
.site-shell { min-width: 1240px; min-height: 100vh; display: flex; flex-direction: column; }
.masthead {
  padding: 0 12px;
  min-height: 62px;
  background: var(--strong);
  color: white;
  display: grid;
  grid-template-columns: 200px minmax(330px, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.identity { display: flex; align-items: center; gap: 11px; width: max-content; }
.identity-icon {
  display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px;
  border: 1px solid #f8d8ac; background: var(--accent); color: var(--strong);
  font: bold 28px/1 Arial, sans-serif;
}
.identity strong { display: block; font-size: 19px; letter-spacing: .03em; }
.identity small { font-size: 11px; color: #c5d9e4; display: block; }
.status-strip { display: flex; gap: 8px 12px; align-items: center; min-width: 0; }
.status-cell { display: grid; gap: 2px; flex: 0 0 auto; }
.status-label { font-size: 11px; color: #c5d9e4; }
.status-number { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-balls { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.site-nav, .game-nav, .play-nav, .subtabs { display: flex; align-items: center; }
.site-nav { gap: 5px; justify-content: end; }
.site-link {
  border: 1px solid #567288; color: #f3f8fa; padding: 5px 8px; border-radius: 3px;
  font-size: 12px; white-space: nowrap;
}
.site-link:hover, .site-link[aria-current="page"] { background: #315770; border-color: #a1c1d2; }
.game-nav { background: var(--blue-deep); color: white; min-height: 36px; padding-inline: 11px; gap: 2px; }
.game-nav-track { display: flex; align-items: center; gap: inherit; }
.more-games .more-sprite { padding-right: 16px; background: url('/assets/down_arrow2.png') right center no-repeat; }
.game-nav-track > * {
  color: inherit; background: transparent; border: 0; text-align: center;
  padding: 8px 16px; min-width: 106px; font-size: 13px; font-weight: 600;
}
.game-nav [aria-current="page"] { background: var(--canvas); color: var(--strong); }
.game-nav button:hover { background: #276281; }
.play-nav {
  padding: 6px 12px 6px 225px;
  background: #e2e9ed; border-bottom: 1px solid #bdcdd7; min-height: 38px;
  flex-wrap: wrap; gap: 2px;
}
.nav-group { display: contents; }
.play-nav .nav-label { display: none; }
.play-link {
  display: inline-block; white-space: nowrap; padding: 2px 6px; font-size: 12px;
  border: 1px solid transparent; border-right-color: #c2cfd6;
}
.play-link:hover { background: #f1f6f9; border-color: #b7cbd6; }
.play-link[aria-current="page"] { background: #f7dcae; color: #5a360e; border-color: #da9d52; font-weight: 700; }
.work-area { display: grid; grid-template-columns: 220px minmax(0, 1fr); flex: 1; }
.side-area { background: #e7edf0; border-right: 1px solid var(--line); padding: 10px; }
.side-card { background: white; border: 1px solid #aebfcd; margin-bottom: 11px; overflow: hidden; border-radius: 5px; }
.side-card h2 { margin: 0; background: var(--blue); color: white; font-size: 14px; padding: 7px 12px; }
.side-card dl { margin: 0; }
.side-card dl div { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 12px; }
.side-card dl div + div { border-top: 1px solid var(--line); }
.side-card dt { font-size: 13px; color: var(--muted); }
.side-card dd { margin: 0; font-weight: 600; }
.account-type { background: var(--wash); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; }
.recent-records { min-height: 120px; display: grid; align-content: center; text-align: center; color: var(--muted); padding: 10px; }
.recent-records > * { padding: 6px 0; }
.recent-records ul { list-style: none; margin: 0; }
.recent-records li + li { border-top: 1px solid var(--line); }
.recent-records li { padding: 6px 0; }
#screen { padding: 10px; background: white; min-width: 0; min-height: 640px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 208px; gap: 10px; align-items: start; }
.panel { min-width: 0; }
.selection.panel, .panel.boxed { border: 1px solid var(--line); background: white; }
.phase-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 5px 12px; background: var(--blue); color: white; padding: 5px 10px; min-height: 32px;
}
.phase-bar h1 { font-size: 14px; margin: 0; color: #fff8e8; }
.phase-bar > div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.phase-bar + form { margin-top: 5px; }
.phase-badge { display: inline-block; padding: 1px 7px; color: #244a39; background: #dff1e4; font-weight: 700; border-radius: 3px; font-size: 12px; }
.phase-badge.closed, .phase-badge.drawn { background: #fbe6d2; color: #793c20; }
.clock { background: white; border-radius: 2px; color: var(--alert); font-weight: bold; font-variant-numeric: tabular-nums; padding: 0 6px; }
.subtabs { align-items: stretch; flex-wrap: wrap; gap: 3px; min-height: 34px; margin: 7px 0; border-bottom: 1px solid var(--line); }
.tab { display: inline-grid; place-items: center; padding: 4px 12px; background: var(--wash); border: 1px solid var(--line); border-bottom: none; }
.tab[aria-current="page"] { background: white; color: var(--blue-deep); border-top: 2px solid var(--blue-deep); font-weight: 700; }
.category-tabs .tab { flex: 1; padding: 4px 6px; }
.category-tabs input, .combo-method input { vertical-align: middle; margin: 0 4px 0 0; }
.category-tabs small { color: var(--alert); font-variant-numeric: tabular-nums; }
.combo-method { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; min-width: 0; border: 1px solid var(--line); margin: 4px 0 7px; padding: 4px 8px; }
.combo-method legend { color: var(--muted); font-size: 12px; padding-inline: 4px; }
.pair-table { margin-bottom: 5px; }
.pair-table caption { border: 1px solid var(--line); border-bottom: 0; padding: 5px; background: var(--wash); }
.pair-table label { display: block; cursor: pointer; }
.pair-table input[type="radio"] { margin-right: 6px; vertical-align: middle; }
.pair-table input[type="text"] { width: 40px; padding: 1px 2px; text-align: center; }
.combo-method span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; }
.table-wrap + .table-wrap { margin-top: 5px; }
.data-table { width: 100%; border-collapse: collapse; background: white; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: center; border: 1px solid #bfcfda; padding: 3px 6px; height: 29px; }
.data-table th { background: #e7f0f5; color: #284a62; font-weight: 600; }
.data-table td { vertical-align: middle; }
.play-tables .data-table td, .play-tables .data-table th { padding: 2px 4px; height: 28px; }
.play-tables .ball-cell { white-space: nowrap; }
.play-tables .position-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.position-grid .table-wrap { margin: 0; }
.position-grid .data-table { font-size: 12px; }
.position-grid .amount-input { width: 36px; }
.data-table tbody tr:nth-child(even) td { background: #f8fafb; }
.data-table td.amount-cell { background: #f7fafc; }
.data-table td.pick-cell { color: #293f52; font-weight: 600; }
.data-table td.odds { color: var(--alert); font-weight: 700; }
.data-table td.chosen { background: #fff1db !important; }
.option { width: 100%; border: none; background: transparent; padding: 0 2px; min-height: 22px; }
.option:hover { background: #e0f0f6; }
.option[aria-pressed="true"] { color: #653b12; background: #f8dfa9; }
.ball {
  --ball-color: #64748b;
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 25px; height: 25px; border-radius: 50%; background: #fff;
  border: 2px solid var(--ball-color); color: #132b3b; font: 700 12px/1 Arial, sans-serif;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--ball-color) 23%, white);
}
.ball.red { --ball-color: #bd3652; }
.ball.green { --ball-color: #248263; }
.ball.blue { --ball-color: #237ab2; }
.amount-input, .amount-field { min-width: 0; width: 55px; height: 22px; text-align: center; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  background: #fff; border: 1px solid #aebfcd; border-radius: 2px; padding: 2px 5px;
}
.work-actions { border: 1px solid var(--line); padding: 6px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: center; margin: 6px 0; }
.work-actions .amount-field { width: 68px; }
.quick-box { margin: 8px 0; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); padding: 6px; }
.quick-box label, .quick-box button { flex-shrink: 0; }
.quick-box textarea { display: block; width: 100%; min-height: 46px; resize: vertical; }
.button { display: inline-block; border: 1px solid #a9bdcb; min-height: 26px; padding: 3px 10px; background: white; border-radius: 3px; }
.button:hover { background: var(--wash); }
.button.primary { color: white; background: var(--blue); border-color: var(--blue-deep); }
.button.primary:hover { background: var(--blue-deep); }
.button.danger { border-color: #b45d66; color: #8b2833; }
.button.preset { color: #66401a; border-color: #e0c29a; background: #faedda; font-variant-numeric: tabular-nums; padding-inline: 7px; }
.panel-heading { background: #eef4f7; padding: 6px 9px; margin: 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.panel-heading small { float: right; font-size: 11px; color: var(--muted); }
.selection-list, .side-trends { list-style: none; padding: 0; margin: 0; }
.side-trends li { display: flex; justify-content: space-between; padding: 4px 7px; border-top: 1px solid #e0e8ec; font-size: 12px; }
.side-trends li span:last-child { color: var(--alert); white-space: nowrap; }
.selection-list li { padding: 7px; border-bottom: 1px solid var(--line); }
.selection-total { margin: 0; padding: 3px 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-title { font-size: 21px; margin: 0; }
.page-description { color: var(--muted); margin: 4px 0 10px; }
.query-panel { border: 1px solid var(--line); background: white; margin: 10px 0; padding: 10px; }
.query-panel h2 { margin: 0 0 7px; font-size: 17px; }
.filter-row, .metrics { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 8px 0; }
.form-field { display: grid; gap: 3px; }
.filter-row input, .filter-row select { min-height: 29px; }
.metrics { gap: 10px; }
.metric { min-width: 120px; border: 1px solid var(--line); padding: 6px 11px; background: #f7fafc; display: grid; gap: 2px; }
.metric strong { font-size: 19px; color: var(--strong); }
.notice, .empty { padding: 10px; color: var(--muted); background: var(--canvas); }
.empty { text-align: center; }
.form-error { color: var(--alert); padding: 4px 0; min-height: 22px; }
.form-error:empty, .notice:empty { display: none; }
.rules-list { margin: 8px 0; padding-left: 24px; max-width: 920px; }
.rules-list li + li { margin-top: 6px; }
.detail-heading { margin: 16px 0 6px; font-size: 15px; }
#query-rows small { display: block; margin-top: 1px; color: var(--muted); }
#query-rows .special-result { background: #fff1db; }
.announcements { border-top: 1px solid #bdcdd7; background: #edf3f7; padding: 5px 12px; color: var(--muted); font-size: 12px; }
.announcements span { color: #764622; font-weight: 700; margin-right: 8px; }
dialog { width: min(590px, 94vw); max-height: 85vh; border: 1px solid #7b96a9; border-radius: 5px; padding: 16px; color: var(--ink); }
dialog::backdrop { background: #16354f75; }
dialog h2 { margin: 0 0 9px; font-size: 18px; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; padding-top: 10px; }
.toast { position: fixed; z-index: 3; right: 12px; bottom: 12px; max-width: min(360px, 90vw); padding: 9px 13px; border-radius: 4px; background: #16354f; color: white; box-shadow: 0 3px 12px #1b354752; }
.toast[hidden] { display: none; }


/* Round-two overrides: login, agreement and the authenticated TM route. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#entry { font-family: "Microsoft YaHei", Arial, Verdana, Helvetica, sans-serif; color: #363636; }
.login-page { position: relative; min-height: max(100vh, 730px); font: 13px/1.5 "Microsoft YaHei", Arial, Verdana, Helvetica, sans-serif;
  background: #faeddf url('/assets/login_newyear.png') no-repeat center / cover; }
.login-ad, .login-wrap { position: absolute; left: 50%; width: 420px; margin-left: -210px; }
.login-ad { top: calc(50% - 365px); aspect-ratio: 420 / 93.796875; }
.login-ad img { display: block; width: 100%; height: auto; color: #2161b3; text-align: center; }
.login-wrap { top: calc(50% - 260px); padding: 40px 40px 5px; background: rgba(255,255,255,.8); box-shadow: 0 0 3px #aaa; }
.login-box { position: relative; }
.login-tips { display: flex; align-items: center; justify-content: space-between; height: 30px; margin-bottom: 20px; color: #4979df; }
.login-tips h1 { margin: 0; width: 100px; height: 30px; font-size: 18px; font-weight: 400; line-height: 30px; padding-left: 2px; }
.login-tips button { border: 0; background: transparent; color: inherit; height: 30px; width: 60px; padding: 0; text-align: right; }
.login-tips button::before { content: '◈'; display: inline-grid; place-items: center; width: 26px; height: 26px;
  font-size: 19px; vertical-align: middle; border-radius: 50%; color: white; background: #4979df; margin-right: 4px; }
.login-graphic { position: relative; }
.login-graphic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.login-graphic.loaded > span { visibility: hidden; }
.login-graphic.loaded::before { visibility: hidden; }
.login-tips img { object-fit: scale-down; object-position: left center; }
.aplus-link img { object-position: right center; }
.mobile-link img { object-position: left center; }
.login-tools img { object-fit: scale-down; }
.login-fields { border: 1px solid #bbb; border-radius: 3px; overflow: hidden; }
.login-fields > label, .login-fields > .code-row { display: flex; height: 51px; border-bottom: 1px solid #ccc; background: #fff; }
.login-fields label { position: relative; display: block; min-width: 0; }
.login-fields label span { position: absolute; left: 8px; top: 0; line-height: 50px; font-size: 14px; color: #2161b3; pointer-events: none; }
.login-fields label input:not([type=checkbox]) { display: block; width: 100%; height: 50px; border: 0; border-radius: 0; padding: 0; text-indent: 65px;
  color: #000; font: 14px/50px "Microsoft YaHei", Arial, Verdana, Helvetica, sans-serif; }
.login-fields input::placeholder { color: #666; opacity: 1; }
.login-fields > label:first-child input { border-radius: 3px 3px 0 0; }
.login-fields input:focus { background: #fff9eb; outline: 1px solid #a0b9eb; outline-offset: -1px; }
.code-row label { flex: 1; }
.captcha { flex: 0 0 90px; margin: 5px; width: 90px; height: 38px; border: 0; color: #fff; padding: 0 0 0 4px;
  background: repeating-linear-gradient(24deg, transparent 0 10px, #7a8ee16a 11px 12px, transparent 13px 18px), #18369d;
  font: 25px/38px Arial, sans-serif; letter-spacing: 5px; }
.login-action { display: block; width: 100%; height: 50px; margin-top: 15px; padding: 0; text-align: center;
  font: bold 18px/50px Arial, sans-serif; color: #fff; border: 1px solid #2161b3; border-radius: 3px;
  background: url('/assets/login_btn.png') repeat-x top, linear-gradient(#4b7ed8, #2866b7); }
.login-action:hover { background: #2a6bbe; }
.login-tools { display: flex; margin-top: 15px; height: 60px; justify-content: space-between; align-items: stretch; color: #4979df; font-size: 16px; }
.login-tools > * { width: 50%; border: 0; background: none; display: flex; align-items: center; white-space: nowrap; padding: 0; }
.login-tools > *::before { content: ''; display: inline-grid; flex-shrink: 0; place-items: center; margin-right: 5px; }
.login-tools .mobile-link::before { content: '▯'; color: white; border-radius: 50%; background: #4979df; font-size: 24px; width: 32px; height: 32px; }
.login-tools .aplus-link { justify-content: flex-end; color: #e9a900; }
.login-tools .aplus-link::before { content: '✪'; color: #e9a900; font-size: 32px; line-height: 32px; }
.login-tools .mobile-link.loaded img, .login-tools .aplus-link.loaded img { visibility: hidden; }
.login-tools .mobile-link.loaded { background: url('/assets/ico_mobile.png') left center no-repeat; }
.login-tools .aplus-link.loaded { background: url('/assets/ico_aplus.png') right center no-repeat; }
.entry-error { font-size: 13px; color: #ad1919; margin: 0; }
.login-box > .entry-error:not(:empty) { position: absolute; inset: auto 0 -27px; padding: 3px 7px; background: rgba(255,255,255,.96); box-shadow: 0 0 3px #aaa; text-align: center; }
@media (max-width: 960px) {
  .login-page { background: #faeddf url('/assets/login_newyearm.png') no-repeat top center / cover; min-height: max(100vh, 615px); font-size: 16px; }
  .login-ad, .login-wrap { width: 90%; margin-left: -45%; }
  .login-ad { top: 10px; }
  .login-wrap { top: max(6em, calc(90vw * .22333 + 17.6px)); padding: 35px 30px 5px; }
  .login-tips button { font-size: 13px; }
  .login-action { height: 46px; line-height: 46px; }
  .login-tools { margin-top: 5px; }
  .login-tools img { object-fit: contain; }
  .login-tools .mobile-link.loaded, .login-tools .aplus-link.loaded { background-size: contain; }
}
@media (max-width: 345px) {
  .login-wrap { padding-inline: 15px; }
  .login-tools { font-size: 14px; }
}
/* Paint on the document canvas so the pattern covers the whole scrollable area. */
:root:has(.agreement-page:not([hidden])) { background: #fff url('/assets/page_bg.png') repeat-x center top; }
.agreement-page { position: relative; min-height: max(100vh, 770px); padding: max(16px, calc(50vh - 304px)) 0 16px;
  background: transparent;
  font: 13px/1.2 "Microsoft YaHei", Arial, Verdana, Helvetica, sans-serif; }
/* Keep the initial reference crop but let the document carry horizontal overflow. */
.agreement-pan { overflow: visible; }
.agreement-pan:focus-visible { outline-offset: -2px; }
.agreement-track { position: relative; left: calc(50% - 365px); width: 785px; margin: 0; padding: 4px 0; }
.agreement-box { width: 785px;
  background: #edf6fc; border-radius: 5px; box-shadow: 0 0 4px #717aae; }
.agreement-box h1 { border-radius: 5px 5px 0 0; margin: 0; min-height: 44px; padding: 0 10px; text-align: center;
  background: url('/assets/pc-defea2-btn_bg_blue.png') repeat-x top center, linear-gradient(#266ab1 0 43%,#215eaa 43%);
  box-sizing: content-box; border-bottom: 1px solid #cec0a4;
  color: #fff; font-size: 18px; line-height: 44px; font-weight: 500; text-shadow: 1px 1px 0 #717aae; }
.agreement-copy { padding: 20px 30px 29px; }
.agreement-copy ol, .agreement-copy p { padding: 0; margin: 0; }
.agreement-copy p { line-height: 16px; }
.agreement-copy li { list-style: none; line-height: 15px; margin: 0 0 10px; }
.agreement-copy .highlight { color: red; }
.agreement-actions { margin: 10px 10px 0; padding: 10px 10px 20px; text-align: center; border-top: 1px solid #d5d9dc;
  display: grid; grid-template-columns: repeat(2, 82px); justify-content: center; column-gap: 20px; }
.agreement-actions button, .agreement-actions a { appearance: none; display: block; width: 82px; height: 34px; padding: 0;
  color: #fff; font: 700 14px/32px "Microsoft YaHei", Arial, Verdana, Helvetica, sans-serif;
  border: 1px solid #2262b4; border-radius: 3px; box-shadow: inset 0 0 1px #fff; text-shadow: 1px 1px 0 #717aae;
  background: #2161b3 url('/assets/pc-91fc45-btn_bg3.png') repeat-x 0 0; }
.agreement-actions button:hover, .agreement-actions a:hover { background: #36f; }
.agreement-actions button:focus-visible, .agreement-actions a:focus-visible { outline: 1px auto #101010; outline-offset: 1px; }
.agreement-actions .entry-error { grid-column: 1 / -1; }
.agreement-actions .entry-error:not(:empty) { margin-top: 6px; }

/* Desktop outer frame is at least 1225px; the game track extends it to 1248px.
   The inner workbench keeps five groups and the reference's fixed side columns. */
.core-workbench { font: 12px/18px Arial, SimSun, "宋体", sans-serif; background: #fff; color: #666; }
.core-workbench .site-shell { min-width: 1225px; --blue: #2161b3; --blue-deep: #1e5da8; --line: #bbc4ce; --alert: #f00; }
.core-workbench .masthead { height: 61px; min-height: 61px; padding: 0; display: grid; grid-template-columns: 185px 473px minmax(0,1fr) 30px; gap: 0;
  background: #074175 url('/assets/pc-a64bc9-top_bg.jpg') no-repeat left top; }
.core-workbench .identity { align-self: start; width: 160px; height: 60px; position: relative; margin-left: 10px; color: #ffce12; }
.core-workbench .identity-icon, .core-workbench .identity-label { display: none; }
.core-workbench .identity::after { content: '试玩投注'; font: 900 35px/1 "Microsoft YaHei", Arial, sans-serif; text-shadow: 2px 2px #402600, -1px -1px #402600; }
.identity .trial-logo { display: none; }
.core-workbench .identity .trial-logo { display: block; width: 160px; height: 60px; }
.core-workbench .identity.loaded::after { content: none; }
.core-workbench .status-strip { position: relative; align-self: start; height: 61px; align-items: start; gap: 18px; padding-left: 31px; overflow: hidden; isolation: isolate; }
.core-workbench .status-strip::before { content: ''; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%); border-bottom: 2px solid #60acda; background: linear-gradient(#144378, #05264a); }
.core-workbench .status-strip:has(.draw-backdrop:not([hidden]))::before { display: none; }
.core-workbench .draw-backdrop { position: absolute; left: 0; top: 0; z-index: -1; }
.core-workbench .draw-caption { flex: 0 0 72px; margin-top: 10px; text-align: center; color: #ffd100; line-height: 20px; }
.core-workbench .result-balls { flex-wrap: nowrap; gap: 10px; margin-top: 5px; }
.core-workbench .draw-number { display: grid; grid-template-rows: 30px 18px; justify-items: center; align-items: center; color: white; font-weight: 700; }
.core-workbench .draw-number .ball-art { border-radius: 50%; }
.core-workbench .draw-number small { font-size: 12px; }
.core-workbench .ball-divider { color: #fdd383; align-self: start; line-height: 30px; font-weight: 700; }
.core-workbench .site-nav { gap: 3.34375px; justify-content: flex-start; align-self: start; margin-top: 15px; }
.core-workbench .site-link { color: #fff; background: transparent url('/assets/pc-4ff100-top_menu.png') center center no-repeat;
  flex: 0 0 67px; height: 30px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 0; font-size: 12px; }
.core-workbench .site-link:hover { background: #2469ac; }
.notify { display: none; }
.core-workbench .notify { display: block; align-self: start; width: 30px; height: 26px; margin-top: 8px; border: 0;
  background: url('/assets/pc-67c350-result_bell_on.png') no-repeat left top / 24px 24px; }
.core-workbench .game-nav { height: 38px; min-height: 38px; background: #2161b3 url('/assets/pc-3b6fcc-sub_bg.png') repeat-x; padding: 0; gap: 0; }
.core-workbench .game-nav-track { flex: 0 0 1248px; height: 38px; }
.core-workbench .game-nav-track > * { height: 38px; min-width: 0; line-height: 38px; padding: 0; flex: 0 0 123px; margin-inline: 2px; font-weight: 700; }
.core-workbench .game-nav-track > :not(.game-home):not(:last-child) { align-self: start; margin-top: 2px; padding-right: 3px; }
.core-workbench .game-nav-track > [aria-current] { align-self: start; margin-top: 2px; background: #e6e6e6; border-radius: 3px 3px 0 0; color: #1e579f; }
.core-workbench .game-nav .game-home { position: relative; flex: 0 0 38px; margin: 0; color: transparent; background: url('/assets/pc-796fb9-arrowsprite.png') no-repeat 0 -38px; }
.core-workbench .game-nav .game-home:hover { background-position: left bottom; }
.core-workbench .game-nav-track > .more-games { position: relative; align-self: start; margin: 3px 0 0 18px; flex-basis: 136px;
  height: 35px; display: block; line-height: 18px; padding: 0 10px; }
.core-workbench .more-games .more-sprite { display: inline-block; box-sizing: content-box; width: 95px; height: 24px;
  margin: 6px 3px; padding: 0 15px 0 0; border-radius: 2px;
  font: 700 12px/24px Arial, SimSun, "宋体", sans-serif;
  background: transparent url('/assets/down_arrow2.png') 90% center no-repeat; }
.core-workbench .play-nav { height: 39px; min-height: 39px; gap: 0; align-content: start; padding: 8px 0 0 230px; overflow-y: auto; scrollbar-width: none;
  background: transparent url('/assets/pc-06d343-ss_bg.png') repeat-x left top; border: 0; }
.core-workbench .play-link { padding: 0 5px; border: 0; border-left: 1px solid #a0a0a0; height: 20px; color: #3c4454; }
.core-workbench .play-link:first-child { border-left: 0; }
.core-workbench .play-link span { display: block; line-height: 18px; padding: 0 5px; border: 1px solid transparent; }
.core-workbench .play-link:hover, .core-workbench .play-link[aria-current] { color: #fff; background: transparent; }
.core-workbench .play-link:hover span, .core-workbench .play-link[aria-current] span { background: #f68d5c; border-color: #f4521b; }
.core-workbench .play-link[aria-current] span { min-width: 38px; border-radius: 2px; }
[data-play-scope='tm-only'].core-workbench .play-nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
[data-play-scope='tm-only'].core-workbench .play-link { flex: none; }
.core-workbench .work-area { height: calc(100vh - 165px); flex: none; min-height: 0; }
.core-workbench .side-area { padding: 10px; background: #e6e6e6; border: 0; box-shadow: inset -2px -2px 4px #0003; min-height: 0; overflow: auto; scrollbar-width: none; }
.core-workbench .side-card { border: 1px solid #2161b3; margin: 0 0 10px; color: #363636; }
.core-workbench .account-card dl div { display: grid; grid-template-columns: 98.546875px minmax(0, 1fr); height: 41px; padding: 0; gap: 0;
  border: 0; border-bottom: 1px solid #a5bfeb; line-height: 30px; }
.core-workbench .account-card dl div:first-child { height: 40.5px; }
.core-workbench .account-card dl div:last-child { height: 40.5px; border: 0; }
.core-workbench .account-card dt { padding: 0 5px; text-align: right; color: #484848; font-size: 12px; }
.core-workbench .account-card dd { min-width: 0; padding: 0 5px; color: #ce0000; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.core-workbench #account-user { font-weight: 400; color: #484848; }
.core-workbench .account-type { display: block; width: 22px; height: 22px; line-height: 20px;
  text-align: center; color: #f00; border: 1px solid #bfcad0; border-radius: 2px; padding: 0; background: #e7f2f8; }
.side-banner { display: none; }
.core-workbench .side-banner { display: block; width: 200px; height: 77px; border-radius: 0; margin-bottom: 10px;
  background: transparent url('/assets/74fcc9f87aff-main_left.png') 0 0 / contain no-repeat; }
.core-workbench .recent-card { border: 0; background: transparent; overflow: visible; border-radius: 0; }
.core-workbench .recent-card h2 { display: block; height: 38px; padding: 0; text-align: center;
  font: 700 14px/36px Arial, SimSun, "宋体", sans-serif; color: #ffd100;
  border: 1px solid #2161b3; border-radius: 3px;
  background: transparent url('/assets/pc-defea2-btn_bg_blue.png') center center repeat-x; }
.core-workbench .recent-records { min-height: 172px; margin-top: -1px; border: 1px solid #2161b3; border-radius: 0 0 5px 5px;
  background: white; align-content: start; padding: 10px; color: #666; font: 26px/100px Arial, SimSun, "宋体", sans-serif; }
.core-workbench .recent-records:has(ul) { padding-top: 7px; }
.core-workbench .recent-records ul { padding-inline: 0; font: 12px/1.3 "Microsoft YaHei", sans-serif; }
.core-workbench #screen { padding: 10px; min-height: 0; overflow: auto; scrollbar-width: none; font: 13px Verdana, Arial, Helvetica, sans-serif; color: #333; }
.core-workbench .workspace-grid { grid-template-columns: minmax(0,1fr) 210px; gap: 10px; }
.core-workbench .phase-bar { min-height: 32px; height: 32px; border: 1px solid #d2dbfc; background: #2161b3; padding: 0 10px;
  gap: 9px; flex-wrap: nowrap; }
.core-workbench .phase-bar h1 { color: #ffd100; white-space: nowrap; font-size: 12px; display: flex; gap: 2px; align-items: center; }
.core-workbench .calendar-icon { display: inline-grid; width: 28px; height: 28px; place-items: center; font-size: 18px; position: relative; }
.core-workbench .calendar-icon img { position: absolute; inset: 0; }
.core-workbench .calendar-icon.loaded > span { visibility: hidden; }
.core-workbench .phase-bar > div { flex: 1; gap: 13px; }
.core-workbench .daily-result { margin-right: auto; font-weight: bold; }
.core-workbench .phase-bar small { min-width: 54px; text-align: right; font-size: 12px; }
.core-workbench .clock { display: inline-block; min-width: 51px; height: 21px; line-height: 19px; padding: 0 5px;
  text-align: center; border: 1px solid #d8c28a; }
.core-workbench .daily-result .clock { min-width: 21px; height: 22px; line-height: 20px; border-radius: 3px; color: #ce0000; }
.tm-tabline { display: flex; margin: 10px 0; height: 32px; justify-content: space-between; align-items: start; border-bottom: 1px solid #cbd3df; }
.tm-tabline .subtabs { height: 32px; min-height: 32px; padding-left: 5px; gap: 5px; margin: 0; border: 0; }
.tm-tabline .tab { width: 88px; font-size: 12px; background: #eaf0f9; border-color: #cbd5e3; }
.tm-tabline .tab[aria-current] { background: white; color: #2161b3; border-top-color: #2161b3; }
.tm-grid { --width-deficit: clamp(0px, calc(1280px - 100vw), 55px); }
.tm-grid .fast-jump { width: 66px; height: 26px; padding: 1px 6px; color: white; border-color: #f4521b;
  background: url('/assets/pc-721f7f-btn_bg1.png') repeat-x top, linear-gradient(#ffb88d,#f5732c); }
.tm-grid .data-table { table-layout: fixed; color: #344757; }
.tm-grid col.tm-number { width: 46px; }
.tm-grid col.tm-odds { width: 51px; }
/* Fixed number and odds columns. Only the remaining five amount columns share the width change. */
.tm-grid .tm-extras col.tm-number { width: calc(46.5px - var(--width-deficit) * .023); }
.tm-grid .tm-extras col.tm-number:nth-child(-n+4) { width: calc(46.5px - var(--width-deficit) * .05256); }
.tm-grid .tm-extras col.tm-odds { width: calc(51.5625px - var(--width-deficit) * .06534); }
.tm-grid .play-tables .data-table th, .tm-grid .play-tables .data-table td { height: 32px; padding: 0; border-color: var(--line); background: #fff; }
.tm-grid .play-tables .data-table th { height: 29px; background: linear-gradient(#f8fbff 12%, #d1e6f4); font-weight: 400; }
.tm-grid .play-tables > .tm-balls > .data-table > thead th,
.tm-grid .play-tables > .tm-extras > .data-table > thead th {
  background: #fff url('/assets/bg2.png') left bottom repeat-x;
  color: #3c4454;
  font: normal 13px/28px Verdana, Arial, Helvetica, sans-serif;
}
.tm-grid .play-tables .data-table td.pick-cell { background: rgba(237, 244, 254, .5); color: #4f4d4d; font-weight: 700; }
.tm-grid .play-tables .data-table td.odds { color: red; font: 700 12px/28px Verdana, Arial, Helvetica, sans-serif; }
.tm-grid .play-tables .data-table td.amount-cell { text-align: left; padding-left: calc(6.1875px - var(--width-deficit) * .02585); }
.tm-grid .tm-extras .data-table td.amount-cell { padding-left: calc(6.1875px - var(--width-deficit) * .0634); }
.tm-grid .play-tables .data-table td.chosen { background: #fff0bf !important; }
.tm-grid .play-tables .data-table td.wave-red { background: #9b2302; color: white; }
.tm-grid .play-tables .data-table td.wave-blue { background: #0047fa; color: white; }
.tm-grid .play-tables .data-table td.wave-green { background: #066306; color: white; }
.tm-grid .play-tables .data-table td.chosen[class*=wave-] { color: #363636; }
.tm-grid .tm-extras .data-table td { height: 29px; }
.tm-grid .option { display: grid; place-items: center; min-height: 0; height: 28px; padding: 0; }
/* Keep TM pick labels legible without enabling locked picks. */
.tm-grid .tm-balls button[data-pick]:disabled,
.tm-grid .tm-extras button.option[data-pick]:disabled { opacity: 1; }
.tm-grid .ball { transform: translateY(1px); }
.core-workbench .ball { width: 25px; height: 25px; position: relative; --ball-color: #ec384d; border-width: 2px; color: #111;
  background: radial-gradient(circle at 44% 35%, white 0 45%, #e9eff2 58%, var(--ball-color) 96%); }
.core-workbench .ball.green { --ball-color: #1db061; }
.core-workbench .ball.blue { --ball-color: #148cdb; }
.core-workbench .ball-art { position: absolute; inset: -2px; width: 25px; height: 25px; object-fit: contain; }
.core-workbench .ball.loaded { border-color: transparent; background: transparent; color: transparent; box-shadow: none; }
.tm-grid input.amount-input:not([type=checkbox]) { display: block; width: calc(58px - var(--width-deficit) * .14858); height: 21px;
  margin-top: 1px; padding: 2px; color: #000; font: 13.3333px Arial, sans-serif; border: 1px solid #cbd2da; border-radius: 0; }
.tm-grid .tm-extras input.amount-input:not([type=checkbox]) { width: calc(58px - var(--width-deficit) * .0727); }
.tm-grid[data-pilot-play] td.amount-cell > input.amount-input[data-pilot-amount] { max-width: 100%; }
/* PC 两面: repeat the reference column proportions in both groups. */
.tm-grid[data-pilot-play='lm'] .data-table thead th:nth-child(3n+1) { width: 14.2%; }
.tm-grid[data-pilot-play='lm'] .data-table thead th:nth-child(3n+2) { width: 15.8%; }
.tm-grid[data-pilot-play='lm'] .data-table thead th:nth-child(3n) { width: 20%; }
/* In each ZMA group, the fixed table layout gives the remaining space to the amount column. */
.tm-grid[data-pilot-play='zma'] .play-tables > .table-wrap:not(.tm-extras) > .data-table thead th:nth-child(3n+1) { width: 46px; }
.tm-grid[data-pilot-play='zma'] .play-tables > .table-wrap:not(.tm-extras) > .data-table thead th:nth-child(3n+2) { width: 51px; }
/* Four extras groups: 7.1% and 7.9% of the table are 28.4% and 31.6% of each group. */
.tm-grid[data-pilot-play='zma'] .play-tables > .tm-extras > .data-table thead th:nth-child(3n+1) { width: 7.1%; }
.tm-grid[data-pilot-play='zma'] .play-tables > .tm-extras > .data-table thead th:nth-child(3n+2) { width: 7.9%; }
.tm-grid:is([data-pilot-play='lm'], [data-pilot-play='zma']) .tm-extras .data-table td.amount-cell { padding-inline: 0; }
.tm-grid:is([data-pilot-play='lm'], [data-pilot-play='zma']) .tm-extras input.amount-input { margin-inline: auto; }
/* Keep the number art legible in the locked view without removing disabled semantics. */
.tm-grid[data-pilot-play='zma'] .play-tables > .table-wrap:not(.tm-extras) button[data-pilot-option]:disabled { opacity: 1; }
.tm-grid input[aria-invalid=true]:not([type=checkbox]) { border-color: #e43838; }
.tm-grid .quick-box { min-height: 66px; margin: 15px 0 5px; padding: 0; gap: 0; align-items: stretch; }
.tm-grid .quick-box .quick-label { width: 80.5px; padding: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0;
  color: #3c4454; font: normal 13px/28px Verdana, Arial, Helvetica, sans-serif; background: white url('/assets/bg2.png') repeat-x left bottom; }
.tm-grid .quick-box textarea { flex: 1; min-width: 0; height: 64px; min-height: 64px; margin-inline: 2.1875px 1.6875px; padding: 2px;
  border: 0; border-radius: 0; resize: vertical; font: 13.3333px monospace; color: #000; }
.tm-grid .work-actions { height: 40.453125px; margin: 0; padding: 5px; align-items: start; gap: 0; flex-wrap: nowrap; color: #690925; }
.tm-grid[data-pilot-play] .work-actions { margin-block-start: 5px; }
.tm-grid .work-actions .button, .tm-grid .fast-jump { font-family: Arial, sans-serif; }
.tm-grid .work-actions .quick-amount { appearance: none; color: #000; width: 69.328125px; min-height: 23px; margin-top: 2px; padding: 1px 6px;
  border: 1px solid #767676; border-radius: 2px; background: #efefef; font: 13.3333px Arial, sans-serif; }
.tm-grid .work-actions .preset-switch, .tm-grid .work-actions .toolbar-amount { display: flex; align-items: flex-start; white-space: nowrap;
  color: #360c00; font: 700 13px/16px Verdana, Arial, Helvetica, sans-serif; }
.tm-grid .work-actions .preset-switch { width: 45.90625px; margin: 6px 13.71875px 0 4.578125px; height: 16px; }
.tm-grid .work-actions .preset-switch input[data-preset] { width: 13px; height: 13px; margin: 0 3.453125px; }
@media (forced-colors: none) {
  /* Match the frozen unchecked appearance without removing native disabled semantics. */
  .tm-grid .work-actions .preset-switch input[data-preset]:disabled:not(:checked):not(:indeterminate) {
    appearance: none; border: 1px solid #767676; border-radius: 2px; background: #fff;
  }
}
.tm-grid .work-actions .toolbar-amount { height: 24px; margin: 2.5px 7.453125px 0 0; padding-top: 3.5px; }
.tm-grid .work-actions input.amount-field:not([type=checkbox]) { width: 71px; height: 24px; margin: -3.5px 0 0 4.453125px; padding: 0 2px;
  color: #000; font: 13.3333px Arial, sans-serif; border: 1px solid #d8c28a; border-radius: 0;
  background: #fff url('/assets/text_input.gif') left top repeat-x; }
.tm-grid .amount-chips { display: flex; margin-top: 2.453125px; gap: 3px; }
.tm-grid .work-actions .button.preset { width: 28px; height: 26px; padding: 0 3px; color: #bd0000;
  border: 1px solid #d8c28a; border-radius: 3px; background: transparent url('/assets/c1bad80d636f-bg2.png') center center repeat-x;
  font: 700 13px/24px Verdana, Arial, Helvetica, sans-serif; text-shadow: 1px 1px #fff; }
.tm-grid .work-actions .button.preset:nth-last-child(-n+2) { width: 35.734375px; }
.tm-grid .work-actions .primary { width: 66px; margin-left: 12.578125px; height: 27px; padding: 1px 6px; color: #fff; font: 14px Arial, sans-serif;
  border: 1px solid #2262b4; border-radius: 3px; box-shadow: inset 0 0 1px #fff;
  background: transparent url('/assets/pc-91fc45-btn_bg3.png') 0 0 repeat-x; }
.tm-grid .work-actions [data-action=repeat] { width: 100px; }
.tm-grid .button:disabled, .tm-grid input:disabled, .tm-grid textarea:disabled { opacity: 1; }
.tm-grid .form-error { margin: 4px 0 0; }
.tm-grid .panel-heading { text-align: center; height: 29px; line-height: 28px; padding: 0; font-weight: 400; color: #3c4454;
  background: url('/assets/pc-7e4e1c-bg2_org.png') repeat-x top, linear-gradient(#fff8f2, #fae7dc); }
.tm-grid .panel-heading span { border: 2px solid #ccc; color: #ccc; background: #fff; display: inline-block; width: 18px; height: 18px;
  border-radius: 50%; font: 700 12px/14px Arial, Helvetica, sans-serif; }
.tm-grid .side-trends li { height: 29px; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tm-grid .side-trends li:last-child { border-bottom: 0; }
.tm-grid .side-trends li span { display: flex; align-items: center; }
.tm-grid .side-trends li span:first-child { padding: 0 3px; width: 140.03125px; color: #3c4454;
  background: linear-gradient(#fff 0 50%, #f0f0f0 51%); border-right: 1px solid var(--line); }
.tm-grid .side-trends li span:last-child { justify-content: center; flex: 1; }
.core-workbench .announcements { height: 27px; padding: 0 18px; display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  border-block: 1px solid #b5c6e2; background: url('/assets/pc-7bf997-marquebg.png') repeat-x top, linear-gradient(#fff8f4, #e9e8e8); color: #684716; }
.core-workbench .announcements span { color: #f35402; font-weight: 400; }
.core-workbench #control-entry { color: #2161b3; }
.announcements button { background: none; border: 0; padding: 0; color: inherit; }

