:root {
  color-scheme: light;
  --jc-navy: #17283e;
  --jc-blue: #245e91;
  --jc-blue-soft: #edf5fb;
  --jc-red: #d63f4d;
  --jc-red-soft: #fff1f2;
  --jc-green: #218a58;
  --jc-yellow: #f1b84a;
  --jc-line: #ccd5df;
  --jc-line-dark: #9eacba;
  --jc-text: #1d2935;
  --jc-muted: #697889;
  --jc-page: #e9eef3;
  --jc-surface: #ffffff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; background: var(--jc-page); color: var(--jc-text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.jc-app { min-height: 100vh; display: grid; grid-template-rows: 52px minmax(0, 1fr); }
.jc-topbar { display: flex; min-width: 0; align-items: center; gap: 14px; background: var(--jc-navy); color: #fff; padding: 0 12px; }
.jc-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.jc-brand .caishuhui-brand-lockup__name { color: #fff; }
.jc-brand .caishuhui-brand-lockup__product { color: #c4d8d1; }
.jc-topnav { display: flex; min-width: 0; align-self: stretch; }
.jc-topnav__button { min-width: 92px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #dce6ef; font-weight: 800; }
.jc-topnav__button[aria-pressed="true"] { border-color: #ffcf4f; background: rgba(255,255,255,.08); color: #fff; }
.jc-topnav__link { display: inline-flex; min-width: 92px; align-items: center; justify-content: center; border-bottom: 3px solid transparent; color: #dce6ef; text-decoration: none; font-weight: 800; }
.jc-topnav__link:hover, .jc-topnav__link:focus-visible { border-color: #31b77b; background: rgba(255,255,255,.08); color: #fff; outline: none; }
.jc-source-status { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: flex-end; gap: 7px; font-size: 12px; }
.jc-source-status output { max-width: 420px; overflow: hidden; color: #c8d4df; text-overflow: ellipsis; white-space: nowrap; }
.jc-status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #f0b646; box-shadow: 0 0 8px rgba(240,182,70,.65); }
.jc-status-dot.is-ok { background: #38c979; box-shadow: 0 0 8px rgba(56,201,121,.65); }
.jc-status-dot.is-error { background: #ef5b66; }

.jc-button { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; border: 1px solid #8a9bac; border-radius: 3px; background: #f3f6f8; color: #263544; padding: 0 10px; text-decoration: none; font-weight: 700; }
.jc-button:hover, .jc-button:focus-visible { border-color: #56728d; background: #e8eff5; outline: none; }
.jc-button--primary { border-color: #267bb5; background: #246b9f; color: #fff; }
.jc-button--primary:hover { background: #1d7ab8; }
.jc-button--block { width: 100%; }
.jc-text-button { border: 0; background: transparent; color: #2d6c9d; padding: 3px 5px; }

.jc-main { min-width: 0; min-height: 0; }
.jc-panel { min-width: 0; min-height: calc(100vh - 52px); background: var(--jc-page); }
.jc-toolbar { display: flex; min-width: 0; align-items: center; gap: 10px; border-bottom: 1px solid var(--jc-line-dark); background: #fff; padding: 7px 10px; }
.jc-segmented { display: inline-flex; flex: 0 0 auto; border: 1px solid #7d91a4; border-radius: 3px; overflow: hidden; }
.jc-segmented button { min-width: 82px; height: 32px; border: 0; border-right: 1px solid #9eacba; background: #f2f5f8; color: #344557; font-weight: 800; }
.jc-segmented button:last-child { border-right: 0; }
.jc-segmented button[aria-pressed="true"] { background: var(--jc-blue); color: #fff; }
.jc-play-tabs { display: flex; min-width: 0; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.jc-play-tab { flex: 0 0 auto; min-width: 74px; height: 32px; border: 1px solid #c5cdd6; border-radius: 3px; background: #f5f7f9; color: #344252; padding: 0 9px; font-weight: 700; }
.jc-play-tab[aria-selected="true"] { border-color: #dc5561; background: #e74755; color: #fff; }
.jc-play-tab.is-unavailable { border-style: dashed; color: #8996a2; }

.jc-workspace { display: grid; min-width: 0; min-height: 540px; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 8px; padding: 8px; }
.jc-events-pane { min-width: 0; border: 1px solid var(--jc-line-dark); background: #fff; }
.jc-filterbar { display: flex; min-width: 0; flex-wrap: wrap; align-items: end; gap: 7px; border-bottom: 1px solid var(--jc-line); background: #f4f7f9; padding: 7px; }
.jc-filterbar label { display: grid; flex: 0 0 auto; gap: 2px; color: #667789; font-size: 11px; font-weight: 700; }
.jc-filterbar select, .jc-filterbar input, .jc-bet-controls select, .jc-bet-controls input, .jc-recommendation-filters select { height: 31px; border: 1px solid #b5c0cb; border-radius: 3px; background: #fff; color: #233444; padding: 0 8px; }
.jc-search-label { flex: 1 1 160px !important; }
.jc-search-label input { width: 100%; }
.jc-match-count { margin-left: auto; align-self: center; color: #bf3442; font-size: 13px; font-weight: 900; }

.jc-results-panel {
  padding-bottom: 18px;
}

.jc-results-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

.jc-results-head > div {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 3px;
}

.jc-results-head > div > span {
  color: #9facbf;
  font-size: 11px;
}

.jc-results-toolbar {
  display: flex;
  align-items: end;
  gap: 7px;
  border-bottom: 1px solid var(--jc-line-dark);
  background: var(--jc-surface-alt);
  padding: 8px 12px;
}

.jc-results-toolbar label {
  display: grid;
  gap: 2px;
  color: #aeb8c8;
  font-size: 11px;
  font-weight: 700;
}

.jc-results-toolbar select,
.jc-results-toolbar input {
  width: 145px;
  height: 31px;
  border: 1px solid #536177;
  border-radius: 3px;
  background: #0d1426;
  color: #f4f6fb;
  padding: 0 8px;
}

.jc-results-toolbar .jc-result-search {
  flex: 1;
}

.jc-results-toolbar .jc-result-search input {
  width: 100%;
}

.jc-result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--jc-line-dark);
  background: var(--jc-line-dark);
}

.jc-result-summary > div {
  display: grid;
  gap: 4px;
  background: #1a2237;
  padding: 10px 14px;
}

.jc-result-summary span {
  color: #9ca8ba;
  font-size: 11px;
}

.jc-result-summary strong {
  color: #ffe477;
  font-size: 17px;
}

.jc-result-list {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.jc-result-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(280px, 0.8fr) minmax(420px, 1.6fr) 82px;
  align-items: stretch;
  border: 1px solid #465267;
  border-radius: 5px;
  background: rgba(18, 22, 40, 0.96);
  overflow: hidden;
}

.jc-result-card__meta,
.jc-result-card__score,
.jc-result-card__plays {
  min-width: 0;
  border-right: 1px solid #465267;
  padding: 10px;
}

.jc-result-card__meta {
  display: grid;
  align-content: center;
  gap: 5px;
}

.jc-result-card__meta > span {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border-left: 4px solid var(--league-color, #296ca0);
  color: #9bdcff;
  padding-left: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-result-card__meta time {
  color: #9ca8ba;
  font-size: 11px;
}

.jc-result-card__score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  text-align: center;
}

.jc-result-card__score > strong {
  overflow-wrap: anywhere;
}

.jc-result-card__score > b {
  color: #ff777d;
  font-size: 23px;
}

.jc-result-card__score > small {
  grid-column: 1 / -1;
  color: #9ca8ba;
}

.jc-result-card__plays {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 5px;
}

.jc-result-chip {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid #3e4b61;
  background: #151d31;
  padding: 5px 7px;
}

.jc-result-chip > span,
.jc-result-chip > em,
.jc-result-chip small {
  color: #9ca8ba;
  font-size: 10px;
  font-style: normal;
}

.jc-result-chip > strong {
  color: #f4f6fb;
  overflow-wrap: anywhere;
}

.jc-result-pending {
  align-self: center;
  color: #f0d681;
  text-align: center;
}

.jc-result-official {
  display: grid;
  place-items: center;
  color: #72c8ff;
  font-size: 12px;
  text-decoration: none;
}

.jc-result-official:hover {
  background: #20344b;
  color: #ffffff;
}
.jc-export-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.jc-button--copy-image { border-color: #348e74; background: #226c59; color: #fff; font-weight: 900; }
.jc-button--copy-image:hover, .jc-button--copy-image:focus-visible { border-color: #62d0af; background: #2b826a; }
.jc-button--copy-image.is-copying { animation: jc-copy-flash 0.55s ease; }
@keyframes jc-copy-flash { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.75); box-shadow: 0 0 0 3px rgba(98, 208, 175, 0.32); } }
.jc-unavailable { border-bottom: 1px solid #e4bd70; background: #fff7df; color: #7d5a12; padding: 10px 12px; font-size: 13px; }
.jc-table-scroll { min-width: 0; max-height: calc(100vh - 230px); overflow: auto; scrollbar-width: thin; }
.jc-match-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.jc-match-table th, .jc-match-table td { height: 42px; border-right: 1px solid var(--jc-line); border-bottom: 1px solid var(--jc-line); padding: 3px 5px; text-align: center; }
.jc-match-table th:last-child, .jc-match-table td:last-child { border-right: 0; }
.jc-match-table thead th { position: sticky; z-index: 3; top: 0; height: 34px; background: #e8eef4; color: #263747; font-weight: 900; }
.jc-match-table tbody tr:nth-child(even):not(.jc-date-row) td { background: #fafbfd; }
.jc-date-row td { height: 31px; background: #dce7f0; color: #254762; padding: 0 9px; text-align: left; font-weight: 900; }
.jc-match-meta { color: #5f7081; line-height: 1.45; }
.jc-league { display: inline-block; min-width: 48px; border-radius: 2px; background: #385f79; color: #fff; padding: 2px 5px; }
.jc-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; font-size: 13px; font-weight: 800; }
.jc-teams span:first-child { text-align: right; }
.jc-teams span:last-child { text-align: left; }
.jc-versus { color: #8b98a5; font-size: 11px; }
.jc-line-value { color: #d23a48; font-weight: 900; }
.jc-no-odds { color: #8995a0; font-size: 11px; }
.jc-odds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.jc-odds-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jc-odd-button { min-width: 0; min-height: 34px; border: 1px solid #c3cbd3; border-radius: 2px; background: #fff; color: #243647; padding: 2px 4px; line-height: 1.2; }
.jc-odd-button span { display: block; color: #697887; font-size: 10px; }
.jc-odd-button strong { color: #bf3140; font-size: 13px; }
.jc-odd-button[aria-pressed="true"] { border-color: #dc3f4d; background: #e84d59; color: #fff; }
.jc-odd-button[aria-pressed="true"] span, .jc-odd-button[aria-pressed="true"] strong { color: #fff; }
.jc-data-link { color: #2c6c9b; font-weight: 800; text-decoration: none; }

.jc-bet-slip { position: sticky; top: 8px; min-width: 0; border: 1px solid #7d8d9e; background: #fff; }
.jc-bet-slip__header { display: flex; min-height: 38px; align-items: center; justify-content: space-between; border-bottom: 1px solid #aeb9c4; background: #e8eef4; padding: 0 9px; }
.jc-bet-selections { max-height: 310px; overflow: auto; padding: 6px; scrollbar-width: thin; }
.jc-empty { color: #8a97a3; padding: 18px 8px; text-align: center; }
.jc-slip-match { border-bottom: 1px solid #d9dfe5; padding: 6px 2px; }
.jc-slip-match:last-child { border-bottom: 0; }
.jc-slip-match__head { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 12px; font-weight: 800; }
.jc-slip-choice { display: inline-flex; margin: 4px 3px 0 0; border-radius: 2px; background: #fff0f1; color: #c13542; padding: 3px 5px; font-size: 11px; }
.jc-slip-choice button { border: 0; background: transparent; color: #a42c37; padding: 0 0 0 5px; }
.jc-bet-controls { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 7px; border-top: 1px solid #cbd3dc; background: #f6f8fa; padding: 8px; }
.jc-bet-controls label { display: grid; gap: 3px; color: #657586; font-size: 11px; font-weight: 800; }
.jc-bet-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #d1d8df; }
.jc-bet-summary div { display: grid; gap: 3px; border-right: 1px solid #d8dfe6; border-bottom: 1px solid #d8dfe6; padding: 7px 8px; }
.jc-bet-summary div:nth-child(even) { border-right: 0; }
.jc-bet-summary span { color: #72808e; font-size: 11px; }
.jc-bet-summary strong { color: #c43442; font-size: 14px; }
.jc-disclaimer { margin: 7px 8px; color: #7b8793; font-size: 11px; line-height: 1.45; }
.jc-bet-slip .jc-button--block { width: calc(100% - 16px); margin: 0 8px 8px; }

.jc-inline-recommendations { margin: 0 8px 8px; border: 1px solid var(--jc-line-dark); background: #fff; }
.jc-inline-recommendations > header { display: flex; min-height: 36px; align-items: center; gap: 10px; border-bottom: 1px solid var(--jc-line); background: #f0f4f7; padding: 0 9px; }
.jc-inline-recommendations header span, .jc-section-header span { color: #778592; font-size: 11px; }
.jc-recommendation-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 7px; }
.jc-recommendation-card { min-width: 0; border: 1px solid #ccd4dc; border-left: 4px solid #8b9aab; background: #fff; padding: 7px 8px; }
.jc-recommendation-card.is-concentrated { border-left-color: #d94854; }
.jc-recommendation-card.is-lean { border-left-color: #e4a52d; }
.jc-recommendation-card__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.jc-recommendation-card__head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-grade { border-radius: 2px; background: #eef2f5; color: #5d6c7a; padding: 2px 5px; font-size: 10px; font-weight: 900; }
.jc-grade--集中 { background: #ffe7e9; color: #c42e3c; }
.jc-grade--偏强 { background: #fff2d8; color: #96620a; }
.jc-recommendation-pick { margin-top: 5px; color: #c03240; font-size: 15px; font-weight: 900; }
.jc-recommendation-teams { margin-top: 5px; overflow: hidden; color: #344556; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.jc-recommendation-card p { margin: 5px 0; color: #617181; font-size: 11px; line-height: 1.45; }
.jc-recommendation-card footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.jc-recommendation-card footer span { color: #82909c; font-size: 10px; }
.jc-recommendation-card footer .jc-button { min-height: 26px; padding: 0 7px; font-size: 11px; }

.jc-section-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--jc-line-dark); background: #fff; padding: 10px 12px; }
.jc-section-header > div:first-child { display: grid; gap: 3px; }
.jc-section-header strong { font-size: 17px; }
.jc-recommendation-filters { display: flex; gap: 7px; }
.jc-recommendation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.jc-recommendation-list .jc-recommendation-card { min-height: 150px; }
.jc-rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--jc-line); }
.jc-rules-grid article { min-height: 150px; background: #fff; padding: 18px; }
.jc-rules-grid article strong { color: #254e6d; font-size: 16px; }
.jc-rules-grid article p { color: #5f6f7e; line-height: 1.7; }
.jc-toast { position: fixed; z-index: 20; right: 16px; bottom: 16px; max-width: min(420px, calc(100vw - 32px)); border: 1px solid #61809a; border-radius: 3px; background: #1a3449; color: #fff; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

@media (max-width: 980px) {
  .jc-topbar { flex-wrap: wrap; height: auto; min-height: 52px; padding: 6px 8px; }
  .jc-app { grid-template-rows: auto minmax(0, 1fr); }
  .jc-source-status { flex: 1 1 100%; justify-content: flex-start; }
  .jc-workspace { grid-template-columns: minmax(0, 1fr); }
  .jc-bet-slip { position: static; }
  .jc-recommendation-strip, .jc-recommendation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jc-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jc-table-scroll { max-height: 560px; }
}

@media (max-width: 600px) {
  .jc-brand .caishuhui-brand-lockup__product { display: none; }
  .jc-brand .caishuhui-brand-lockup__name { display: block; font-size: 16px; }
  .jc-topnav { width: 100%; order: 3; overflow-x: auto; }
  .jc-topnav__button { min-width: 86px; height: 34px; }
  .jc-source-status output { max-width: 145px; }
  .jc-source-status { flex-wrap: wrap; }
  .jc-source-status output { flex: 1 1 145px; }
  .jc-toolbar { align-items: stretch; flex-direction: column; }
  .jc-segmented { align-self: flex-start; }
  .jc-filterbar label { flex: 1 1 44%; }
  .jc-search-label { flex-basis: 100% !important; }
  .jc-workspace { padding: 5px; }
  .jc-inline-recommendations { margin: 0 5px 5px; }
  .jc-recommendation-strip, .jc-recommendation-list, .jc-rules-grid { grid-template-columns: minmax(0, 1fr); }
  .jc-section-header { align-items: stretch; flex-direction: column; }
  .jc-recommendation-filters select { min-width: 0; width: 50%; }
  .jc-bet-summary strong { font-size: 12px; }
}

.recommendation-source-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid #4a576d;
  background: #151d2c;
  padding: 8px 10px;
}

.recommendation-source-tabs,
.manual-ranking-tabs {
  display: flex;
  gap: 4px;
}

.recommendation-source-tabs button,
.manual-ranking-tabs button {
  min-height: 34px;
  border: 1px solid #53627a;
  border-radius: 4px;
  background: #202a3c;
  color: #ccd5e3;
  padding: 0 16px;
}

.recommendation-source-tabs button[aria-selected="true"],
.manual-ranking-tabs button[aria-selected="true"] {
  border-color: #d65852;
  background: #7b302f;
  color: #fff;
}

.recommendation-source-bar p {
  margin: 0;
  color: #aeb9c9;
  font-size: 12px;
}

.recommendation-source-bar > a {
  border: 1px solid #5b6b82;
  border-radius: 4px;
  color: #eef3f8;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.manual-recommendation-content {
  min-width: 0;
  border: 1px solid #47546a;
  background: #111827;
}

.manual-recommendation-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #47546a;
  background: #182132;
  padding: 9px 10px;
}

.manual-recommendation-filterbar label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b6c1d1;
  font-size: 12px;
}

.manual-recommendation-play-filter {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.manual-recommendation-play-filter > strong {
  color: #b6c1d1;
  font-size: 12px;
}

.manual-recommendation-play-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.manual-recommendation-play-tabs button {
  min-height: 34px;
  border: 1px solid #53627a;
  border-radius: 4px;
  background: #172235;
  color: #dce5f0;
  padding: 6px 14px;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.manual-recommendation-play-tabs button[aria-selected="true"] {
  border-color: #e6c66f;
  background: #176044;
  color: #fff;
  box-shadow: inset 0 0 0 1px #64bc8d;
}

.manual-recommendation-filterbar select {
  min-width: 112px;
  height: 34px;
  border: 1px solid #53627a;
  border-radius: 4px;
  background: #0f1622;
  color: #edf2f7;
  padding: 0 8px;
}

.manual-recommendation-author-search {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: min(100%, 320px);
}

.manual-recommendation-author-search input {
  width: 150px;
  height: 34px;
  border: 1px solid #53627a;
  border-radius: 4px;
  background: #0f1622;
  color: #edf2f7;
  padding: 0 9px;
}

.manual-recommendation-author-search .jc-button {
  min-height: 34px;
  padding: 0 11px;
}

#manualRecommendationStatus {
  margin-left: auto;
  color: #9eacbd;
  font-size: 12px;
}

#manualRecommendationStatus.is-error {
  color: #ff8d8d;
}

.manual-recommendation-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  min-height: 480px;
}

.manual-ranking-panel {
  min-width: 0;
  border-right: 1px solid #47546a;
  background: #141c2a;
  padding: 10px;
}

.manual-ranking-tabs button {
  flex: 1;
  padding: 0 8px;
}

#manualRecommendationRankings {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.manual-ranking-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-bottom: 1px solid #303c50;
  color: #d7dfeb;
  font-size: 12px;
}

.manual-ranking-row > b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5b3340;
  color: #ffdce2;
}

.manual-ranking-row > strong {
  color: #f0c46b;
}

.manual-ranking-row > small {
  color: #8492a6;
}

.manual-recommendation-summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #344156;
  color: #b7c2d2;
  padding: 0 12px;
  font-size: 13px;
}

.manual-recommendation-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* TGWDEV666: expanded comments must not stretch neighboring cards into empty panels. */
  align-items: start;
  gap: 9px;
  padding: 10px;
}

/* TGWDEV663: use the actual feed width so desktop cards fill two or three columns without horizontal scrolling. */
.manual-recommendation-workspace > div { min-width: 0; container: manual-feed / inline-size; }
@container manual-feed (min-width: 680px) {
  .manual-recommendation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container manual-feed (min-width: 1230px) {
  .manual-recommendation-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.manual-recommendation-list > .manual-empty { grid-column: 1 / -1; }

.manual-recommendation-card {
  min-width: 0;
  border: 1px solid #4b5870;
  border-radius: 5px;
  background: #192334;
  padding: 11px;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
}

.manual-recommendation-card.is-locked {
  border-color: #695a43;
  background: #1c2330;
}

.manual-recommendation-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.manual-recommendation-card > header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manual-recommendation-card > header > div:first-child {
  min-width: 0;
  display: grid;
}

.manual-recommendation-card > header strong {
  color: #f1f5f9;
  font-size: 15px;
}

.manual-recommendation-card > header span,
.manual-recommendation-card footer {
  color: #96a4b7;
  font-size: 11px;
}

.manual-result,
.manual-price,
.manual-free {
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.manual-result--hit,
.manual-free {
  background: #245b43;
  color: #bdf6d6;
}

.manual-result--miss {
  background: #69353c;
  color: #ffd1d5;
}

.manual-result--pending,
.manual-price {
  background: #6b522b;
  color: #ffe1a3;
}

.manual-selection-groups {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.manual-selection-group {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.manual-selection-group > strong {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #a67b42;
  border-radius: 4px;
  background: #5d3b24;
  color: #ffe1a8;
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.manual-selection-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manual-selection-values > span {
  min-width: 34px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #b14b52;
  border-radius: 4px;
  background: #932f36;
  color: #fff;
  padding: 4px 8px;
  font-weight: 700;
}

.manual-legacy-play-notice {
  margin: 10px 0;
  border-left: 3px solid #d6a44d;
  background: #32291b;
  color: #f1d79f;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
}

.manual-recommendation-card > p {
  margin: 10px 0;
  color: #c8d1de;
  white-space: pre-wrap;
}

.manual-recommendation-card > img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 10px 0;
}

.manual-recommendation-card footer {
  border-top: 1px solid #39465a;
  margin-top: 10px;
  padding-top: 8px;
  line-height: 1.6;
}

/* TGWDEV663: keep the list to three content lines; only the detail dialog expands. */
.manual-preview {
  max-height: 108px;
  overflow: hidden;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.manual-preview .manual-selection-groups { margin: 0; gap: 6px; }
.manual-preview .manual-selection-values { max-height: 102px; overflow: hidden; }
.manual-preview p { margin: 6px 0; line-height: 28px; white-space: pre-wrap; }
.manual-author-button, .manual-history-button {
  border: 0;
  background: transparent;
  color: #a7d7ff;
  padding: 2px;
  cursor: pointer;
  font: inherit;
}
.manual-history-button { grid-column: 4; grid-row: 1 / 3; }
.manual-author-button:hover, .manual-history-button:hover { text-decoration: underline; }
.manual-ranking-row { grid-template-columns: 24px minmax(0, 1fr) auto auto; }
.manual-ranking-row > small { grid-column: 2 / 4; line-height: 1.6; padding-bottom: 5px; }
.manual-ranking-row > b { grid-row: 1 / 3; }
.manual-card-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.manual-recommendation-card > .manual-card-actions { margin-top: auto; padding-top: 10px; }
.manual-card-actions .jc-button { min-width: 0; padding: 6px 4px; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.manual-card-actions [aria-pressed="true"] { border-color: #ebca70; color: #ffe38b; }
.manual-result--unsettleable { background: #414857; color: #dae1ed; }
.manual-layout-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }
.manual-layout-tabs [aria-pressed="true"] { border-color: #ebca70; color: #ffe38b; }
.manual-publisher { display: flex; align-items: center; min-width: 0; gap: 9px; margin-bottom: 10px; }
.manual-publisher > div { min-width: 0; flex: 1; }
.manual-publisher .manual-author-button, .manual-publisher-latest .manual-author-button { border: 0; background: transparent; box-shadow: none; color: #b5ddff; text-align: left; }
.manual-publisher .manual-author-button { font-size: 15px; font-weight: 700; }
.manual-author-avatar { display: grid; position: relative; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border: 1px solid #526b82; border-radius: 50%; background: #254a58; color: #e8f6fa; font-size: 21px; }
.manual-author-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.manual-author-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: #aab7c8; overflow-wrap: anywhere; }
/* TGWDEV664: ranking shares the feed's 2/3-column tracks; a lone publisher must not stretch across the feed. */
.manual-publisher-rank-row { display: flex; flex-direction: column; gap: 8px; border: 1px solid #45546b; border-radius: 5px; padding: 11px; background: #192334; min-width: 0; overflow-wrap: anywhere; }
.manual-publisher-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.manual-publisher-header .manual-publisher { flex: 1; align-items: flex-start; }
.manual-publisher-rank-row .manual-publisher { margin: 0; }
.manual-publisher-rank-row > *, .manual-publisher-latest > * { min-width: 0; }
.manual-publisher-position { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #654434; color: #ffe4a8; font-size: 13px; }
.manual-publisher-latest { display: grid; gap: 3px; }
.manual-publisher-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.5; color: #e2e9f4; }
.manual-publisher-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; border-top: 1px solid #36465b; padding-top: 7px; }
.manual-publisher-latest small, .manual-publisher-stats small { color: #9cabbf; font-size: 12px; line-height: 1.6; }
.manual-publisher-stats strong { color: #ffb9af; font-size: 14px; line-height: 1.6; }
.manual-publisher-stats .manual-publisher-hit-rate { color: #f4d38b; }
.manual-publisher-stats span { font-size: 13px; color: #c8d9e9; }
.manual-publisher-scope { color: #a5b4c7; font-size: 11px; line-height: 1.5; }
.manual-publisher-rank-row > .manual-publisher-details { width: 100%; min-width: 0; margin-top: auto; padding: 6px; font-size: 14px; }
.manual-recommendation-card > .manual-view-full { align-self: flex-start; width: auto; min-width: 0; min-height: 26px; padding: 3px 8px; font-size: 13px; line-height: 1.3; }
.manual-publisher-rank-row .manual-author-button { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.manual-dialog {
  box-sizing: border-box;
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #60728c;
  border-radius: 8px;
  background: #152032;
  color: #e2e9f4;
  overflow: hidden;
}
.manual-dialog::backdrop { background: rgb(0 0 0 / .65); }
/* The page already has chat navigation; injected floating links must not cover dialog controls. */
.manual-dialog > .global-chat-launcher, .manual-dialog > .global-live-channel-link { display: none !important; }
.manual-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #40516b; }
.manual-dialog h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.manual-dialog-body { padding: 14px; max-height: calc(100dvh - 120px); overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; }
.manual-dialog-body img { max-width: 100%; height: auto; }
.manual-dialog-body > p { line-height: 1.7; }
.manual-dialog-body textarea, .manual-dialog-body input, .manual-dialog-body select {
  box-sizing: border-box; max-width: 100%; padding: 8px; background: #0c1726; color: #e6edf7; border: 1px solid #53657e; border-radius: 4px;
}
.manual-dialog-body textarea { display: block; width: 100%; min-height: 90px; margin-bottom: 8px; }
.manual-dialog-body select { display: block; width: 100%; margin: 12px 0; }
.manual-full-content { white-space: pre-wrap; line-height: 1.8; overflow-wrap: anywhere; user-select: text; margin: 12px 0; }
.manual-identity-disclosure, .manual-statistics-note { color: #acbbcf; font-size: 12px; line-height: 1.7; }
.manual-history-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.manual-history-metrics > span { padding: 10px; border: 1px solid #42546b; border-radius: 4px; }
.manual-history-entry { border-top: 1px solid #3f5067; padding: 12px 0; }
.manual-history-entry p { font-size: 13px; line-height: 1.7; }
.manual-history-statistics { margin: 10px 0; padding: 9px; border: 1px solid #42546b; border-radius: 4px; }
.manual-history-statistics > summary { cursor: pointer; font-size: 13px; color: #c2daf5; }
.manual-history-statistics[open] > summary { margin-bottom: 10px; }
.manual-history-content > summary { cursor: pointer; color: #d9e8f8; line-height: 1.6; }
.manual-history-content > summary small { display: block; margin: 3px 0 0 16px; color: #aab9cd; font-size: 12px; }
.manual-history-content[open] > summary { margin-bottom: 10px; }
.ai-sports-history { min-width: 0; font-size: 13px; }
.ai-sports-history .manual-history-entry { padding: 6px 0; }
.manual-history-full { min-width: 0; overflow-wrap: anywhere; }
.manual-history-full .manual-selection-values { max-height: none; overflow: visible; }
.manual-history-full .manual-card-actions { margin-top: 12px; }
.manual-history-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-wrap; }
.manual-bet-results p, .manual-comments p { padding: 8px 0; border-bottom: 1px solid #394a60; line-height: 1.7; }
.manual-dialog-status { color: #f0d58d; }
/* TGWDEV666: published comments belong to their recommendation, without another dialog. */
.manual-comment-thread { min-width: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid #40516b; }
.manual-comment-thread[hidden] { display: none; }
.manual-comment-thread > header { display: flex; align-items: center; gap: 6px; }
.manual-comment-thread > header > strong { margin-right: auto; font-size: 14px; color: #e2e9f4; }
.manual-comment-thread .manual-comment-control { min-height: 26px; padding: 3px 8px; font-size: 12px; }
.manual-comment-thread .manual-comments { max-height: 280px; overflow-y: auto; overflow-wrap: anywhere; }
.manual-comment-thread .manual-comment-entry { padding: 8px 0; border-bottom: 1px solid #36465b; }
.manual-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.manual-comment-meta strong { color: #dce8f5; font-size: 13px; }
.manual-comment-meta time { color: #a1b4cd; font-size: 11px; }
.manual-comment-thread .manual-comment-entry p { margin: 4px 0 0; padding: 0; border: 0; white-space: pre-wrap; color: #e2e9f4; font-size: 14px; line-height: 1.65; }
.manual-comment-thread form { display: grid; justify-items: start; gap: 6px; margin-top: 10px; }
.manual-comment-thread textarea, html[data-app-theme] body :is(#jcRecommendationsPanel, .manual-dialog) .manual-comment-thread textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 64px; resize: vertical; padding: 8px; border: 1px solid #53657e; border-radius: 4px; background: #0c1726; color: #e6edf7; font: inherit; font-size: 14px; }
.manual-comment-thread form button { min-height: 30px; padding: 5px 10px; font-size: 13px; }
.manual-comment-compose-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.manual-comment-ai-notice { color: #a1b4cd; font-size: 12px; line-height: 1.5; }
.manual-comment-status { margin: 6px 0 0; font-size: 13px; color: #f0d58d; }
.manual-comment-status.is-error { color: #ff9393; }
.recommendation-period-table, .recommendation-bet-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 12px 0; font-size: 13px; }
.recommendation-period-table caption { text-align: left; color: #bdccdf; padding: 8px 0; line-height: 1.6; }
.recommendation-period-table th, .recommendation-period-table td, .recommendation-bet-table th, .recommendation-bet-table td { border: 1px solid #46546a; padding: 8px 6px; text-align: left; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; }
.recommendation-period-table th, .recommendation-bet-table th { background: #263346; color: #e3eaf4; }
.recommendation-period-table th:nth-child(3) { width: 27%; }
.recommendation-table-numbers { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.recommendation-table-hit { color: #ff3038 !important; font-weight: 800; }
.recommendation-table-detail { min-width: 0; min-height: 24px; margin-top: 4px; padding: 2px 6px; font-size: 12px; }
@media (max-width: 600px) {
  .recommendation-period-table, .recommendation-period-table tbody, .recommendation-period-table tr,
  .recommendation-bet-table, .recommendation-bet-table tbody, .recommendation-bet-table tr { display: block; }
  .recommendation-period-table thead, .recommendation-bet-table thead { display: none; }
  .recommendation-period-table caption { display: block; width: 100%; box-sizing: border-box; }
  .recommendation-period-table tr, .recommendation-bet-table tr { margin-bottom: 10px; border-top: 1px solid #46546a; }
  .recommendation-period-table td, .recommendation-bet-table td { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 6px; border-top: 0; }
  .recommendation-period-table td::before, .recommendation-bet-table td::before { content: attr(data-label); color: #adbed2; font-weight: 400; }
  .recommendation-table-detail { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .manual-history-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-dialog-body { padding: 10px; }
  .manual-card-actions { gap: 4px; }
  .manual-card-actions .jc-button { font-size: 12px; }
}

.manual-lock-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  border: 1px dashed #766442;
  background: #25291f;
  padding: 12px;
}

.manual-lock-panel strong {
  color: #f3d58d;
}

.manual-lock-panel span {
  color: #b6ad97;
  font-size: 12px;
}

.manual-unlock-button {
  border-color: #a17836;
  background: #6e4d1e;
}

.manual-recommendation-compliance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid #47546a;
  background: #101722;
  color: #9da9b9;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.65;
}

.manual-recommendation-compliance strong {
  color: #e0bd75;
}

.manual-empty {
  color: #8f9caf;
  padding: 24px 10px;
  text-align: center;
}

.ai-recommendation-market-wrapper {
  position: relative;
  color: #e2e9f4;
}

.ai-recommendation-market-wrapper.is-ai-locked > #jcSportsRecommendationContent,
.ai-recommendation-market-wrapper.is-ai-locked > #numberLotteryRecommendations {
  max-height: 280px;
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

/* TGWDEV665: AI uses the very same manual card/ranking/container grid. */
.ai-recommendation-market-wrapper.is-ai-locked > #aiRecommendationRankings { display: none; }
#aiRecommendationSearch input { min-width: 0; width: min(260px, 100%); min-height: 34px; padding: 0 9px; border: 1px solid #53657e; border-radius: 4px; background: #f3f6f8; color: #203347; }
#aiRecommendationMarketStatus { margin-left: auto; color: #9eacbd; font-size: 12px; }
#aiRecommendationMarketStatus.is-error { color: #ff8d8d; }
#aiRecommendationRankingList { margin-top: 10px; }
#aiRecommendationMarketList { min-width: 0; }
#aiRecommendationMarketList > .manual-statistics-note { grid-column: 1 / -1; margin: 0; }
#aiRecommendationMarketList .manual-publisher-header .manual-publisher { margin-bottom: 8px; }
#aiRecommendationMarketList > article { gap: 8px; }
/* ASUS2DEV007：只让数字彩算法卡片共享各行高度，说明换行不再推偏同排的号码和按钮。 */
#aiRecommendationMarketList > [data-ai-algorithm] { display: grid; grid-template-rows: subgrid; grid-row: span 8; align-self: stretch; }
#aiRecommendationMarketList.is-ranking-layout > [data-ai-algorithm] { grid-row: span 6; }
#aiRecommendationMarketList .manual-preview { margin: 0; }
/* 批ASUS2DEV001：AI号码参考必须展示完整位置/分区，不能裁掉后区和末位。 */
#aiRecommendationMarketList .manual-preview,
#aiRecommendationMarketList .manual-preview .manual-selection-values { max-height: none; overflow: visible; }
#aiRecommendationMarketList .manual-preview p { font-size: 17px; }
#aiRecommendationMarketList .ai-current-numbers-label { display: block; margin-bottom: 6px; color: #c6d4e5; font-size: 13px; }
.ai-current-draw-status { margin: 6px 0 0; color: #f4cd64; font-weight: 700; }
#aiRecommendationMarketList .ai-current-draw-status { font-size: 14px; line-height: 1.5; }
.ai-algorithm-avatar { font-size: 16px; font-weight: 800; }
.ai-detail-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
/* 批ASUS2DEV003：按内容收紧数字彩弹窗；快乐8完整20码采用两行，避免窄开奖列撑高整期。 */
.ai-numbers-dialog .manual-dialog-body { padding: 10px; }
.ai-detail-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ai-detail-current { padding: 8px; border: 1px solid #52657b; border-radius: 5px; background: #1b293c; }
.ai-detail-current > h3 { color: #ffdf7b; }
.ai-detail-current-meta { color: #c8d9ed; font-size: 13px; line-height: 1.5; }
.ai-detail-current-choice { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 8px; }
.ai-detail-current-choice > strong { padding-top: 4px; color: #c6d4e5; font-size: 12px; }
.ai-detail-current-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ai-detail-current-footer > p { margin: 0; }
.ai-detail-overview h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.ai-detail-overview .manual-author-bio { margin: 2px 0 0; }
.ai-detail-overview .manual-selection-groups, .ai-detail-overview > p { margin: 0; }
.ai-detail-overview .ai-detail-tools { margin: 0; }
.ai-detail-overview .jc-button { padding: 5px 8px; min-height: 30px; font-size: 12px; }
.ai-numbers-dialog .manual-dialog-body > .manual-history-content { margin: 8px 0; }
.ai-numbers-dialog .manual-dialog-body > h3 { margin: 10px 0 4px; font-size: 16px; }
.ai-numbers-dialog .manual-dialog-body > p { margin: 4px 0; }
.ai-history-table-scroll { max-width: 100%; overflow-x: auto; }
.ai-numbers-dialog .recommendation-period-table { width: auto; max-width: 100%; table-layout: auto; margin: 6px auto; font-size: 12px; }
.ai-numbers-dialog .recommendation-period-table caption { padding: 4px 0; }
.ai-numbers-dialog .recommendation-period-table th, .ai-numbers-dialog .recommendation-period-table td { width: auto; padding: 5px; white-space: normal; text-align: center; vertical-align: middle; }
.ai-numbers-dialog .recommendation-period-table th { white-space: nowrap; }
/* BUG-20261024-ASUS2-011：按内容收紧列宽，玩法及奖金同行，禁止固定开奖列百分比挤压结果。 */
.ai-numbers-dialog .recommendation-period-table :is(.ai-history-mode, .ai-history-streak, .is-official-result) > span { white-space: nowrap; }
.ai-numbers-dialog .recommendation-period-table .ai-history-result { font-size: 11px; }
.ai-numbers-dialog .number-recommendation-history-groups { gap: 3px; }
.ai-numbers-dialog .number-recommendation-history-balls { gap: 2px; }
.ai-numbers-dialog .number-recommendation-history-ball { width: 21px; height: 21px; font-size: 11px; box-sizing: border-box; }
.ai-history-date time, .ai-history-date strong { display: block; line-height: 1.5; }
.ai-history-date time { color: #acbbcf; font-size: 11px; white-space: nowrap; }
.ai-history-prize, .ai-history-algorithm { display: block; margin-top: 3px; color: #acbbcf; font-size: 10px; line-height: 1.4; }
.ai-numbers-dialog .recommendation-period-table[data-ai-game="kl8"] .ai-history-draw .number-recommendation-history-balls { display: grid; grid-template-columns: repeat(10, 21px); gap: 2px; }
.ai-numbers-dialog .recommendation-period-table[data-ai-game="kl8"] .ai-history-recommendation .number-recommendation-history-balls { display: grid; grid-template-columns: repeat(var(--ai-pool-columns), 21px); }
@media (min-width: 601px) and (max-width: 899px) {
  .ai-numbers-dialog .recommendation-period-table[data-ai-game="kl8"] .ai-history-draw .number-recommendation-history-balls { grid-template-columns: repeat(5, 21px); }
}
@media (max-width: 600px) {
  .ai-numbers-dialog .recommendation-period-table { width: 100%; }
  .ai-detail-overview { grid-template-columns: minmax(0, 1fr); }
  .ai-detail-overview .ai-detail-tools { grid-column: 1; grid-row: auto; }
  .ai-numbers-dialog .recommendation-period-table colgroup { display: none; }
  .ai-numbers-dialog .recommendation-period-table td { grid-template-columns: 64px minmax(0, 1fr); gap: 5px; padding: 5px; }
  .ai-numbers-dialog .recommendation-period-table .ai-history-result { font-size: 10px; }
  .ai-numbers-dialog .recommendation-period-table .ai-history-result > span { white-space: normal; }
  .ai-numbers-dialog .recommendation-period-table tr { margin-bottom: 6px; }
  .ai-numbers-dialog .recommendation-period-table .ai-history-date > span { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
  .ai-numbers-dialog .recommendation-period-table[data-ai-game="kl8"] .ai-history-draw .number-recommendation-history-balls { grid-template-columns: repeat(10, 19px); }
  .ai-numbers-dialog .recommendation-period-table[data-ai-game="kl8"] .ai-history-recommendation .number-recommendation-history-balls { grid-template-columns: repeat(var(--ai-pool-columns), 19px); }
  .ai-numbers-dialog .number-recommendation-history-ball { width: 19px; height: 19px; font-size: 10px; }
}
@media (max-width: 360px) {
  .ai-numbers-dialog .recommendation-period-table[data-ai-game="kl8"] .ai-history-draw .number-recommendation-history-balls { grid-template-columns: repeat(5, 19px); }
}
.ai-all-play-ranking { margin-top: 14px; color: #aab7c8; font-size: 12px; }
.ai-all-play-ranking summary { cursor: pointer; }
.ai-all-play-ranking .jc-button { margin: 8px 0; }
.ai-all-play-ranking span { display: block; line-height: 1.7; }
#aiOtherPlayRankingList { display: grid; gap: 5px; }
.ai-current-full { font-size: 20px; }
#aiRecommendationContent .manual-card-actions button:disabled { cursor: default; opacity: .5; }
@media (max-width: 720px) {
  #aiRecommendationMarketStatus { margin-left: 0; flex-basis: 100%; }
  #aiRecommendationSearch input { flex: 1; width: auto; }
}

.ai-recommendation-paywall {
  position: sticky;
  z-index: 8;
  top: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #a07a37;
  background: #282316;
  color: #f0d58d;
  margin: 10px 0;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.ai-recommendation-paywall > span {
  color: #c8b992;
  font-size: 12px;
}

.ai-recommendation-paywall > button {
  border-color: #aa7c30;
  background: #76521d;
}

.ai-recommendation-rankings {
  border: 1px solid #46536a;
  background: #121a28;
  margin: 10px 0;
}

.ai-ranking-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #3d4a5f;
  background: #182233;
  padding: 8px 10px;
}

.ai-ranking-head > strong {
  color: #edf2f8;
  white-space: nowrap;
}

.ai-ranking-head > div {
  display: flex;
  gap: 4px;
}

.ai-ranking-head > div button {
  min-height: 32px;
  border: 1px solid #526178;
  border-radius: 3px;
  background: #222d40;
  color: #cbd5e2;
  padding: 0 12px;
}

.ai-ranking-head > div button[aria-selected="true"] {
  border-color: #ca524e;
  background: #74302f;
  color: #fff;
}

.ai-ranking-head > span {
  margin-left: auto;
  color: #97a5b8;
  font-size: 11px;
}

#aiRecommendationRankingList {
  display: grid;
}

#aiRecommendationRankingList > button {
  display: grid;
  grid-template-columns: 32px minmax(180px, 1fr) 100px minmax(170px, auto);
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid #303d52;
  background: transparent;
  color: #d7dfeb;
  padding: 5px 10px;
  text-align: left;
}

#aiRecommendationRankingList > button:hover {
  background: #1d293b;
}

#aiRecommendationRankingList > button > b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #533440;
  color: #ffdce3;
}

#aiRecommendationRankingList > button > span {
  min-width: 0;
  display: grid;
}

#aiRecommendationRankingList > button > span strong {
  overflow: hidden;
  color: #edf2f8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#aiRecommendationRankingList > button small {
  color: #91a0b5;
  font-size: 11px;
}

#aiRecommendationRankingList > button > em {
  color: #f0c76e;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 800px) {
  .recommendation-source-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .recommendation-source-bar p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .manual-recommendation-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-ranking-panel {
    border-right: 0;
    border-bottom: 1px solid #47546a;
  }

  #manualRecommendationStatus {
    width: 100%;
    margin-left: 0;
  }

  .manual-recommendation-author-search {
    flex: 1 1 100%;
  }

  .manual-recommendation-author-search input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .ai-ranking-head {
    flex-wrap: wrap;
  }

  .ai-ranking-head > span {
    width: 100%;
    margin-left: 0;
  }

  #aiRecommendationRankingList > button {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  #aiRecommendationRankingList > button > small {
    grid-column: 2 / -1;
  }
}

@media (max-width: 520px) {
  .recommendation-source-tabs,
  .manual-ranking-tabs {
    width: 100%;
  }

  .recommendation-source-tabs button {
    flex: 1;
    padding: 0 8px;
  }

  .recommendation-source-bar > a {
    font-size: 11px;
    padding: 8px;
  }

  .manual-recommendation-filterbar label {
    flex: 1 1 calc(50% - 4px);
    display: grid;
  }

  .manual-recommendation-play-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-recommendation-play-tabs button {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 88px;
    white-space: normal;
  }

  .manual-recommendation-filterbar select {
    width: 100%;
    min-width: 0;
  }

  .manual-lock-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-recommendation-card > header {
    display: grid;
  }

  .manual-selection-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-recommendation-compliance {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-recommendation-paywall {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Football selection and calculator follow the compact mixed-pass workflow. */
.jc-workspace.is-football-layout {
  display: block;
  min-height: 720px;
  padding: 0 0 98px;
}

.jc-events-pane.is-football-layout {
  border-width: 0 0 1px;
  background: #0c1020;
}

.jc-filterbar.is-football-layout {
  display: flex;
  padding: 6px 8px;
  background: #11172a;
}

.jc-football-match-list {
  min-width: 0;
  background: #0c1020;
}

.jc-football-day {
  border-bottom: 1px solid #465267;
}

.jc-football-day > header {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #465267;
  border-bottom: 1px solid #38445b;
  background: #202941;
  padding: 6px 12px;
}

.jc-football-day > header strong {
  min-width: 0;
  color: var(--jc-yellow);
  font-size: 13px;
}

.jc-football-day > header button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #83cfff;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 800;
}

.jc-football-match {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 112px minmax(190px, 0.65fr) minmax(430px, 1.35fr) 76px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #2f394d;
  background: #151c2e;
  padding: 8px 12px;
}

.jc-football-match:nth-child(even) {
  background: #171e32;
}

.jc-football-match__meta {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
  color: #aeb8c8;
  font-size: 10px;
}

.jc-football-league {
  max-width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #245e91;
  color: #ffffff;
  padding: 2px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-football-match__meta strong {
  color: #f4f6fb;
  font-size: 13px;
}

.jc-football-match__meta time,
.jc-football-match__meta small {
  color: #94a4b8;
  font-size: 10px;
}

.jc-football-match__teams {
  min-width: 0;
  display: grid;
  gap: 5px;
  text-align: center;
}

.jc-football-match__teams strong {
  overflow-wrap: anywhere;
  color: #f4f6fb;
  font-size: 14px;
}

.jc-football-match__teams strong span {
  color: #7f90a6;
  margin: 0 8px;
  font-size: 10px;
}

.jc-football-match__teams small {
  color: #8f9caf;
  font-size: 10px;
}

.jc-football-match__odds {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jc-football-odds-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.jc-football-play-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 2px;
}

.jc-single-badge {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: #f08a24;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.jc-football-line {
  display: block;
  color: #ff737b;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

.jc-football-odds-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.jc-football-odds-grid.is-score {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.jc-football-odds-grid.is-goals {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.jc-football-odds-grid.is-halfFull {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.jc-football-odds-grid.is-score .jc-football-odd,
.jc-football-odds-grid.is-goals .jc-football-odd,
.jc-football-odds-grid.is-halfFull .jc-football-odd {
  min-height: 36px;
  padding-inline: 2px;
}

.jc-football-odd {
  min-height: 42px;
  background: #171e32;
}

.jc-football-odd span {
  color: #ff747b;
  font-size: 11px;
  font-weight: 900;
}

.jc-football-odd strong {
  color: #f4f6fb;
  font-size: 12px;
}

.jc-odds-trend {
  margin-left: 4px;
  font-size: 14px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
}

.jc-odds-trend.is-up {
  color: #f08a24;
}

.jc-odds-trend.is-down {
  color: #22b968;
}

.jc-football-odd[aria-pressed="true"] {
  border-color: #ff777f;
  background: #c72e38;
}

.jc-football-odd:disabled {
  cursor: default;
  opacity: 0.5;
}

.jc-football-model-row {
  min-height: 58px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid #465267;
  border-radius: 3px;
  background: #11172a;
  text-align: center;
}

.jc-football-model-row span {
  color: #9facbf;
  font-size: 10px;
}

.jc-football-model-row strong {
  color: #ffe082;
  font-size: 12px;
}

.jc-football-more {
  color: #72c5ff;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-decoration: none;
}

.jc-football-more.is-unavailable {
  color: #75849a;
  cursor: default;
}

.jc-bet-dock {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 7px;
  padding: 8px;
  background: #11172a;
}

.jc-bet-dock label,
.jc-bet-dock__selected,
.jc-bet-dock__amount,
.jc-bet-dock__payout {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.jc-bet-dock label,
.jc-bet-dock span {
  color: #9ca8ba;
  font-size: 10px;
  font-weight: 800;
}

.jc-bet-dock select,
.jc-bet-dock input {
  width: 100%;
  height: 31px;
  min-width: 0;
  border: 1px solid #536177;
  border-radius: 3px;
  background: #0d1426;
  color: #f4f6fb;
  padding: 0 8px;
}

.jc-bet-dock__pass {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.jc-pass-selector {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) auto;
  gap: 4px;
}

.jc-pass-selector .jc-button {
  min-width: 88px;
  height: 31px;
  padding: 0 7px;
  border-color: #d3aa46;
  background: #5b461d;
  color: #fff0b0;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.jc-pass-selector .jc-button[aria-expanded="true"] {
  border-color: #ffdf7a;
  background: #a12635;
  color: #fff;
}

.jc-pass-multi-panel {
  position: absolute;
  z-index: 95;
  left: 0;
  bottom: calc(100% + 6px);
  width: min(440px, calc(100vw - 20px));
  max-height: min(65vh, 520px);
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 6px;
  padding: 10px;
  border: 2px solid #e0b852;
  border-radius: 5px;
  background: #101727;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
  overflow-y: auto;
}

.jc-pass-multi-panel[hidden] {
  display: none;
}

.jc-pass-multi-panel label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #536177;
  border-radius: 4px;
  background: #1b2436;
  color: #f4f6fb;
  cursor: pointer;
}

.jc-pass-multi-panel label:has(input:checked) {
  border-color: #ffdc70;
  background: #a12635;
  color: #fff;
}

.jc-pass-multi-panel input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #e12e3f;
}

.jc-bet-dock__selected {
  grid-column: 1 / -1;
}

.jc-bet-dock__selected strong,
.jc-bet-dock__amount strong,
.jc-bet-dock__payout strong {
  overflow-wrap: anywhere;
  color: #ff626a;
  font-size: 14px;
}

.jc-bet-dock__amount,
.jc-bet-dock__payout,
.jc-bet-dock__multiplier,
#jcViewSlip {
  grid-column: 1 / -1;
}

.jc-bet-dock__amount b {
  color: #ffe082;
}

.jc-bet-details {
  border-top: 1px solid #465267;
  background: #0c1020;
}

.jc-bet-details > header {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #2d354c;
  padding: 0 8px;
}

.jc-bet-details > header strong {
  color: #ffe082;
  font-size: 13px;
}

.jc-bet-details > header span {
  color: #8f9bae;
  font-size: 10px;
}

.jc-bet-slip.is-football-layout {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  top: auto;
  border-width: 1px 0 0;
  border-color: #65738a;
  background: rgba(12, 16, 32, 0.98);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.34);
}

.jc-bet-slip.is-football-layout > .jc-bet-slip__header {
  display: none;
}

.jc-bet-slip.is-football-layout .jc-bet-dock {
  width: min(100%, 1380px);
  min-height: 88px;
  grid-template-columns: 82px 210px 74px 92px minmax(150px, 1fr) minmax(180px, 1fr) 150px;
  align-items: end;
  margin: 0 auto;
  padding: 9px 12px;
}

.jc-bet-slip.is-football-layout .jc-bet-dock__selected,
.jc-bet-slip.is-football-layout .jc-bet-dock__amount,
.jc-bet-slip.is-football-layout .jc-bet-dock__payout,
.jc-bet-slip.is-football-layout .jc-bet-dock__multiplier,
.jc-bet-slip.is-football-layout #jcViewSlip {
  grid-column: auto;
}

.jc-bet-slip.is-football-layout .jc-bet-dock__selected strong {
  font-size: 20px;
}

.jc-bet-slip.is-football-layout .jc-bet-details {
  position: absolute;
  right: 12px;
  bottom: 100%;
  width: min(720px, calc(100vw - 24px));
  max-height: min(62vh, 620px);
  overflow: auto;
  border: 1px solid #65738a;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
}

.jc-bet-slip.is-football-layout .jc-bet-selections {
  max-height: 380px;
}

.jc-bet-slip:not(.is-football-layout) .jc-bet-details {
  display: block;
}

.jc-split-actions,
.jc-order-cart-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid #2d354c;
  padding: 8px;
}

.jc-order-cart-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jc-split-order-list,
.jc-order-cart-list {
  display: grid;
  max-height: 280px;
  overflow: auto;
  border-top: 1px solid #2d354c;
  background: #101629;
  scrollbar-width: thin;
}

.jc-split-order {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  border-bottom: 1px solid #2d354c;
  padding: 8px;
  cursor: pointer;
}

.jc-split-order:hover {
  background: #182138;
}

.jc-split-order input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #c72e38;
}

.jc-split-order > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jc-split-order strong,
.jc-cart-order strong {
  color: #f4f6fb;
  font-size: 12px;
}

.jc-split-order small,
.jc-cart-order p {
  margin: 0;
  color: #aeb8c8;
  font-size: 10px;
  line-height: 1.55;
}

.jc-split-order em,
.jc-cart-order footer {
  color: #ffe082;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.jc-order-cart {
  margin: 8px;
  border: 1px solid #465267;
  background: #11172a;
}

.jc-order-cart > header,
.jc-order-cart > footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
}

.jc-order-cart > header {
  border-bottom: 1px solid #465267;
}

.jc-order-cart > header strong,
.jc-order-cart > footer strong {
  color: #ffe082;
  font-size: 12px;
}

.jc-order-cart > header span,
.jc-order-cart > footer span {
  color: #9facbf;
  font-size: 10px;
}

.jc-cart-order {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #2d354c;
  padding: 8px;
}

.jc-cart-order > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jc-button.is-copying {
  animation: jc-copy-flash 0.55s ease;
}

@media (max-width: 980px) {
  .jc-football-match {
    grid-template-columns: 100px minmax(170px, 0.6fr) minmax(390px, 1.4fr) 70px;
  }
}

@media (max-width: 700px) {
  .jc-pass-multi-panel {
    position: fixed;
    right: 5px;
    bottom: 132px;
    left: 5px;
    width: auto;
    max-height: calc(100vh - 170px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jc-workspace.is-football-layout {
    padding-bottom: 135px;
  }

  .jc-filterbar.is-football-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jc-filterbar.is-football-layout .jc-search-label,
  .jc-filterbar.is-football-layout .jc-export-actions,
  .jc-filterbar.is-football-layout .jc-match-count {
    grid-column: 1 / -1;
  }

  .jc-football-day > header {
    min-height: 36px;
    padding: 5px 8px;
  }

  .jc-football-day > header strong {
    font-size: 11px;
  }

  .jc-football-match {
    min-height: 142px;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 5px 7px;
    padding: 7px 6px;
  }

  .jc-football-match__meta {
    grid-row: 1 / span 3;
    align-self: stretch;
    align-content: center;
    justify-items: center;
    border-radius: 4px;
    background: #11172a;
    padding: 6px 3px;
    text-align: center;
  }

  .jc-football-match__teams {
    grid-column: 2;
  }

  .jc-football-match__teams strong {
    font-size: 12px;
  }

  .jc-football-match__teams strong span {
    margin: 0 5px;
  }

  .jc-football-match__odds {
    grid-column: 2;
  }

  .jc-football-odds-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 3px;
  }

  .jc-football-odds-grid {
    gap: 3px;
  }

  .jc-football-odds-grid.is-score,
  .jc-football-odds-grid.is-goals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jc-football-odds-grid.is-halfFull {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jc-football-odd {
    min-height: 39px;
    padding: 2px;
  }

  .jc-football-more {
    grid-column: 2;
    justify-self: end;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock {
    width: 100%;
    min-height: 126px;
    grid-template-columns: 58px minmax(0, 1fr) 66px;
    grid-template-rows: auto auto auto;
    align-items: end;
    gap: 5px;
    padding: 6px;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock__selected {
    grid-column: 1;
    grid-row: 1;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock__pass {
    grid-column: 2;
    grid-row: 1;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock__clear {
    grid-column: 3;
    grid-row: 1;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock__multiplier {
    grid-column: 1;
    grid-row: 2;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock__amount {
    grid-column: 2;
    grid-row: 2;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock__payout {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .jc-bet-slip.is-football-layout #jcViewSlip {
    grid-column: 3;
    grid-row: 2 / 4;
    align-self: stretch;
    padding: 0 5px;
  }

  .jc-bet-slip.is-football-layout .jc-bet-dock__selected strong,
  .jc-bet-slip.is-football-layout .jc-bet-dock__amount strong,
  .jc-bet-slip.is-football-layout .jc-bet-dock__payout strong {
    font-size: 12px;
  }

  .jc-bet-slip.is-football-layout .jc-bet-details {
    right: 5px;
    width: calc(100vw - 10px);
    max-height: 56vh;
  }

  .jc-split-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .jc-order-cart-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jc-split-actions .jc-button,
  .jc-order-cart-actions .jc-button {
    min-width: 0;
    white-space: normal;
  }
}

:root {
  color-scheme: dark;
  --jc-navy: #17182c;
  --jc-blue: #245e91;
  --jc-blue-soft: #17283e;
  --jc-red: #ff4d55;
  --jc-red-soft: #3a1c28;
  --jc-green: #36c66a;
  --jc-yellow: #ffdf2b;
  --jc-line: #2d354c;
  --jc-line-dark: #465267;
  --jc-text: #f5f7fa;
  --jc-muted: #9aa3b3;
  --jc-page: #101223;
  --jc-surface: #17182c;
  --jc-surface-deep: #0b1b2d;
  --jc-surface-alt: #11172a;
  --jc-header: #1a2037;
  --jc-cyan: #29b6f6;
}

html,
body {
  background: var(--jc-page);
  color: var(--jc-text);
}

.jc-app {
  position: relative;
  z-index: 1;
}

.jc-watermarks {
  position: fixed;
  z-index: 8;
  inset: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(92px, 1fr));
  align-items: center;
  justify-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.jc-watermarks span {
  color: rgba(232, 236, 243, 0.075);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transform: rotate(-13deg);
}

.jc-watermarks span:nth-child(3n) { transform: rotate(8deg); }
.jc-watermarks span:nth-child(4n) { transform: rotate(-5deg); }
.jc-watermarks span:nth-child(5n) { transform: rotate(14deg); }

.jc-topbar {
  border-bottom: 1px solid #536177;
  background: var(--jc-header);
}

.jc-brand strong,
.jc-recommendation-pick,
.jc-match-count {
  color: var(--jc-yellow);
}

.jc-brand span,
.jc-source-status output,
.jc-inline-recommendations header span,
.jc-section-header span {
  color: #9facbf;
}

.jc-topnav__button {
  color: #c7d0de;
}

.jc-topnav__button[aria-pressed="true"] {
  border-color: var(--jc-yellow);
  background: #252d47;
  color: #ffffff;
}

.jc-panel {
  background: var(--jc-page);
}

.jc-toolbar,
.jc-section-header,
.jc-inline-recommendations > header,
.jc-bet-slip__header {
  border-color: var(--jc-line-dark);
  background: var(--jc-header);
}

.jc-section-header strong,
.jc-inline-recommendations > header strong,
.jc-bet-slip__header strong {
  color: var(--jc-yellow);
}

.jc-button {
  border-color: #536177;
  background: #2c3547;
  color: #f4f6fb;
}

.jc-button:hover,
.jc-button:focus-visible {
  border-color: #8290a7;
  background: #3a465c;
}

.jc-button--primary {
  border-color: #2a83bb;
  background: #246b9f;
  color: #ffffff;
}

.jc-button--primary:hover,
.jc-button--primary:focus-visible {
  border-color: #42a0d8;
  background: #287db7;
}

.jc-button.jc-button--copy-image {
  border-color: #348e74;
  background: #226c59;
  color: #ffffff;
}

.jc-button.jc-button--copy-image:hover,
.jc-button.jc-button--copy-image:focus-visible {
  border-color: #62d0af;
  background: #2b826a;
}

.jc-text-button,
.jc-data-link {
  color: #6fc8ff;
}

.jc-segmented {
  border-color: #536177;
}

.jc-segmented button {
  border-color: #536177;
  background: #242b40;
  color: #cbd4e1;
}

.jc-segmented button[aria-pressed="true"] {
  background: #1250a2;
  color: #ffffff;
}

.jc-play-tab {
  border-color: #465267;
  background: #242b40;
  color: #cbd4e1;
}

.jc-play-tab:hover,
.jc-play-tab:focus-visible {
  border-color: #75839a;
  background: #313a52;
  outline: none;
}

.jc-play-tab[aria-selected="true"] {
  border-color: #ff757c;
  background: #c72e38;
  color: #ffffff;
}

.jc-play-tab.is-unavailable {
  color: #7f8a9c;
}

.jc-events-pane,
.jc-bet-slip,
.jc-inline-recommendations {
  border-color: var(--jc-line-dark);
  background: rgba(23, 24, 44, 0.97);
}

.jc-filterbar,
.jc-bet-controls {
  border-color: var(--jc-line);
  background: var(--jc-surface-alt);
}

.jc-filterbar label,
.jc-bet-controls label {
  color: #aeb8c8;
}

.jc-filterbar select,
.jc-filterbar input,
.jc-bet-controls select,
.jc-bet-controls input,
.jc-recommendation-filters select {
  border-color: #536177;
  background: #0d1426;
  color: #f4f6fb;
}

.jc-filterbar select:focus,
.jc-filterbar input:focus,
.jc-bet-controls select:focus,
.jc-bet-controls input:focus,
.jc-recommendation-filters select:focus {
  border-color: #29b6f6;
  outline: 1px solid rgba(41, 182, 246, 0.35);
}

.jc-unavailable {
  border-color: #756327;
  background: #2b2617;
  color: #f0d681;
}

.jc-match-table th,
.jc-match-table td {
  border-color: var(--jc-line);
}

.jc-match-table thead th {
  background: #222a42;
  color: #e9edf5;
}

.jc-match-table tbody td {
  background: rgba(18, 22, 40, 0.94);
}

.jc-match-table tbody tr:nth-child(even):not(.jc-date-row) td {
  background: rgba(25, 30, 51, 0.94);
}

.jc-match-table tbody tr:hover:not(.jc-date-row) td {
  background: rgba(38, 49, 75, 0.96);
}

.jc-date-row td {
  background: #20344b;
  color: #9bdcff;
}

.jc-match-meta,
.jc-odds-grid span,
.jc-no-odds,
.jc-versus {
  color: #9ca8ba;
}

.jc-league {
  background: #245e91;
  color: #ffffff;
}

.jc-line-value,
.jc-odds-grid strong {
  color: #ff6a70;
}

.jc-odd-button {
  border-color: #465267;
  background: #171e32;
  color: #f3f5fa;
}

.jc-odd-button:hover,
.jc-odd-button:focus-visible {
  border-color: #73829b;
  background: #252f48;
  outline: none;
}

.jc-odd-button[aria-pressed="true"] {
  border-color: #ff757c;
  background: #c72e38;
  color: #ffffff;
}

.jc-bet-selections {
  background: rgba(12, 16, 32, 0.94);
}

.jc-empty,
.jc-disclaimer {
  color: #8f9bae;
}

.jc-slip-match {
  border-color: var(--jc-line);
}

.jc-slip-choice {
  background: #3a1c28;
  color: #ff8a90;
}

.jc-slip-choice button {
  color: #ff9da2;
}

.jc-bet-summary {
  border-color: var(--jc-line);
  background: #11172a;
}

.jc-bet-summary div {
  border-color: var(--jc-line);
}

.jc-bet-summary span {
  color: #9ca8ba;
}

.jc-bet-summary strong {
  color: #ff626a;
}

.jc-recommendation-strip,
.jc-recommendation-list {
  background: #0c1020;
}

.jc-recommendation-card {
  border-color: #465267;
  border-left-color: #5d6d83;
  background: #171e32;
  color: #f4f6fb;
}

.jc-recommendation-card.is-concentrated {
  border-left-color: #ff4d55;
  box-shadow: inset 3px 0 0 rgba(255, 77, 85, 0.12);
}

.jc-recommendation-card.is-lean {
  border-left-color: #ffdf2b;
  box-shadow: inset 3px 0 0 rgba(255, 223, 43, 0.1);
}

.jc-recommendation-card__head strong,
.jc-recommendation-teams {
  color: #f4f6fb;
}

.jc-grade {
  background: #29334a;
  color: #b8c4d5;
}

.jc-grade--集中 {
  background: #4b2029;
  color: #ff8a90;
}

.jc-grade--偏强 {
  background: #443919;
  color: #ffe478;
}

.jc-recommendation-card p {
  color: #aeb8c8;
}

.jc-recommendation-card footer span {
  color: #8f9caf;
}

.jc-recommendation-card footer .jc-button {
  border-color: #438e7d;
  background: #245f56;
  color: #d7fff3;
}

.jc-recommendation-card footer .jc-button:hover,
.jc-recommendation-card footer .jc-button:focus-visible {
  border-color: #7fdcc2;
  background: #31796d;
}

.jc-rules-grid {
  background: var(--jc-line);
}

.jc-rules-grid article {
  background: #171e32;
}

.jc-rules-grid article strong {
  color: var(--jc-yellow);
}

.jc-rules-grid article p {
  color: #b2bdcc;
}

.jc-toast {
  border-color: #6f8098;
  background: #1a2037;
  color: #ffffff;
}

.jc-odd-button.is-unavailable,
.jc-football-odd.is-unavailable {
  border-style: dashed;
  border-color: #76505a;
  background: #1b1c2a;
  cursor: not-allowed;
  opacity: 0.68;
}

.jc-odd-button.is-unavailable span,
.jc-football-odd.is-unavailable span {
  color: #b97980;
}

.jc-odd-button.is-unavailable strong,
.jc-football-odd.is-unavailable strong {
  color: #a7afbd;
}

.jc-odd-button.is-denied {
  animation: jc-sale-denied 0.55s ease;
}

@keyframes jc-sale-denied {
  0%, 100% { transform: translateX(0); border-color: #76505a; }
  25% { transform: translateX(-3px); border-color: #ff6973; }
  55% { transform: translateX(3px); border-color: #ff6973; background: #4b2029; }
}

.jc-slip-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(2px);
}

.jc-bet-slip.is-football-layout .jc-bet-details,
.jc-bet-details {
  position: fixed;
  z-index: 80;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid #687892;
  border-radius: 5px;
  background: #0c1020;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
  transform: translate(-50%, -50%);
  scrollbar-width: thin;
}

.jc-bet-details > header:first-child {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 54px;
  background: #1a2236;
  padding: 7px 10px;
}

.jc-bet-details > header:first-child > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.jc-bet-details > header:first-child > div strong {
  color: #ffe082;
  font-size: 16px;
}

.jc-slip-dialog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #465267;
  background: #12192a;
}

.jc-slip-dialog-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  border-right: 1px solid #354158;
  border-bottom: 1px solid #354158;
  padding: 10px 12px;
}

.jc-slip-dialog-summary > div:nth-child(3n) {
  border-right: 0;
}

.jc-slip-dialog-summary span {
  color: #92a0b4;
  font-size: 11px;
  font-weight: 700;
}

.jc-slip-dialog-summary strong {
  overflow-wrap: anywhere;
  color: #ff727a;
  font-size: 17px;
}

.jc-slip-selection-header {
  min-height: 38px !important;
  position: static !important;
  background: #11172a !important;
}

.jc-bet-details .jc-bet-selections,
.jc-bet-slip.is-football-layout .jc-bet-selections {
  max-height: none;
}

.jc-bet-details .jc-button--block {
  min-height: 40px;
  font-size: 14px;
}

.jc-toast {
  z-index: 100;
}

@media (max-width: 700px) {
  .jc-bet-slip.is-football-layout .jc-bet-details,
  .jc-bet-details {
    inset: 6px;
    width: auto;
    max-height: none;
    transform: none;
  }

  .jc-slip-dialog-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jc-slip-dialog-summary > div:nth-child(3n) {
    border-right: 1px solid #354158;
  }

  .jc-slip-dialog-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .jc-bet-details .jc-split-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .jc-watermarks {
    inset: 100px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(7, minmax(100px, 1fr));
  }
}

.jc-recommendation-browser {
  display: grid;
  gap: 1px;
  border-bottom: 1px solid var(--jc-line-dark);
  background: var(--jc-line-dark);
}

.jc-recommendation-axis {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #11172a;
}

.jc-recommendation-axis > strong {
  color: #9facbf;
  font-size: 12px;
}

.jc-recommendation-axis--record {
  grid-template-columns: 58px max-content max-content minmax(0, 1fr);
}

.jc-recommendation-axis--record > .jc-button--copy-image {
  min-height: 31px;
  justify-self: start;
}

.jc-segmented--recommendation {
  width: max-content;
  max-width: 100%;
}

.jc-segmented--recommendation button[aria-selected="true"] {
  border-color: #29b6f6;
  background: #173b58;
  color: #ffffff;
}

.jc-play-tabs--recommendation {
  overflow-x: auto;
}

.jc-play-tabs--recommendation .jc-play-tab {
  flex: 0 0 auto;
}

.jc-recommendation-filters {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 8px 12px;
  background: #11172a;
}

.jc-recommendation-filters label {
  display: grid;
  gap: 3px;
  color: #9facbf;
  font-size: 11px;
  font-weight: 800;
}

.jc-recommendation-filters select {
  min-width: 146px;
}

.jc-recommendation-filters select:disabled {
  opacity: 0.5;
}

.jc-recommendation-notice {
  border-top: 1px solid #765f20;
  border-bottom: 1px solid #765f20;
  background: #28220f;
  color: #ffe082;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
}

.jc-recommendation-summary {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  border-bottom: 1px solid var(--jc-line-dark);
  background: #0c1020;
  overflow-x: auto;
}

.jc-recommendation-summary > div {
  min-width: 90px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid var(--jc-line-dark);
}

.jc-recommendation-summary > div:last-child {
  border-right: 0;
}

.jc-recommendation-summary span {
  color: #8f9caf;
  font-size: 11px;
}

.jc-recommendation-summary strong {
  color: #ffffff;
  font-size: 15px;
}

.jc-recommendation-list {
  display: block;
  padding: 0;
  background: #0c1020;
}

.jc-recommendation-day {
  border-bottom: 1px solid var(--jc-line-dark);
}

.jc-recommendation-day > header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #344056;
  background: #202941;
}

.jc-recommendation-day > header strong {
  color: var(--jc-yellow);
  font-size: 14px;
}

.jc-recommendation-day > header span {
  color: #aeb9ca;
  font-size: 12px;
}

.jc-recommendation-rows {
  display: grid;
}

.jc-miss-group {
  border-bottom: 1px solid #2f394d;
  background: #11182a;
}

.jc-miss-group__toggle {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: #182137;
  padding: 9px 12px;
  color: #c6d1df;
  text-align: left;
  cursor: pointer;
}

.jc-miss-group__toggle:hover,
.jc-miss-group__toggle:focus-visible {
  background: #202d48;
}

.jc-miss-group__toggle > span:first-child {
  display: grid;
  gap: 4px;
}

.jc-miss-group__toggle strong {
  color: #8fc5ff;
  font-size: 16px;
}

.jc-miss-group__toggle small {
  color: #98a7ba;
  font-size: 11px;
}

.jc-miss-group__toggle > span:last-child {
  flex: 0 0 auto;
  border: 1px solid #51617b;
  border-radius: 3px;
  padding: 5px 8px;
  color: #d9e4f2;
  font-size: 11px;
  font-weight: 800;
}

.jc-miss-group__rows {
  border-top: 1px solid #44506a;
}

.jc-recommendation-row.is-miss-detail {
  padding-left: 24px;
  background: #131a2b;
  box-shadow: inset 4px 0 0 #426f9f;
}

.jc-recommendation-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 0.8fr) 126px minmax(210px, 0.9fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 10px 12px;
  border-bottom: 1px solid #2f394d;
  background: #151c2e;
}

.jc-recommendation-row:nth-child(even) {
  background: #171e32;
}

.jc-recommendation-row:last-child {
  border-bottom: 0;
}

.jc-recommendation-row__match,
.jc-recommendation-row__pick,
.jc-recommendation-row__probability,
.jc-recommendation-row__result {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.jc-recommendation-row__match strong,
.jc-recommendation-row__pick strong {
  overflow-wrap: anywhere;
  color: #f4f6fb;
  font-size: 13px;
}

.jc-recommendation-row__match span,
.jc-recommendation-row__pick span,
.jc-recommendation-row__probability span,
.jc-recommendation-row__result small,
.jc-recommendation-row__closed {
  color: #9facbf;
  font-size: 11px;
  line-height: 1.5;
}

.jc-recommendation-row__pick strong,
.jc-recommendation-row__probability strong {
  color: var(--jc-yellow);
}

.jc-recommendation-row__probability strong {
  font-size: 18px;
}

.jc-recommendation-row__result {
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: start;
}

.jc-recommendation-row__result small {
  grid-column: 1 / -1;
}

.jc-result {
  min-width: 46px;
  display: inline-flex;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid #5c687b;
  border-radius: 3px;
  color: #c9d2df;
  font-size: 11px;
  font-weight: 900;
}

.jc-result--hit {
  border-color: #b84852;
  background: #4b2029;
  color: #ff9aa0;
}

.jc-result--miss {
  border-color: #426f9f;
  background: #1b3656;
  color: #8fc5ff;
}

.jc-result--pending {
  border-color: #81702c;
  background: #3d3518;
  color: #ffe477;
}

.jc-grade--待更新 {
  background: #2c3342;
  color: #c5cfdd;
}

.jc-result--void {
  border-color: #657187;
  background: #293247;
  color: #c3ccda;
}

.jc-recommendation-row > .jc-button,
.jc-recommendation-row__closed {
  justify-self: end;
}

@media (max-width: 1080px) {
  .jc-recommendation-row {
    grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.8fr) 110px minmax(190px, 0.9fr);
  }

  .jc-recommendation-row > .jc-button,
  .jc-recommendation-row__closed {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .jc-section-header > .jc-button--copy-image {
    width: 100%;
  }

  .jc-recommendation-axis {
    grid-template-columns: 1fr;
  }

  .jc-recommendation-axis--record > .jc-button--copy-image {
    width: 100%;
  }

  .jc-segmented--recommendation,
  .jc-segmented--recommendation button {
    width: 100%;
  }

  .jc-recommendation-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jc-recommendation-filters label:first-child {
    grid-column: 1 / -1;
  }

  .jc-recommendation-filters select {
    width: 100%;
    min-width: 0;
  }

  .jc-recommendation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .jc-recommendation-summary > div {
    border-bottom: 1px solid var(--jc-line-dark);
  }

  .jc-recommendation-day > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .jc-recommendation-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .jc-miss-group__toggle {
    align-items: stretch;
    flex-direction: column;
  }

  .jc-miss-group__toggle > span:last-child {
    text-align: center;
  }

  .jc-recommendation-row.is-miss-detail {
    padding-left: 16px;
  }

  .jc-recommendation-row__result {
    grid-template-columns: max-content max-content;
  }

  .jc-recommendation-row > .jc-button,
  .jc-recommendation-row__closed {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .jc-watermarks {
    inset: 128px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(96px, 1fr));
  }

  .jc-watermarks span {
    font-size: 11px;
  }

  .jc-export-actions {
    width: 100%;
    flex: 1 1 100%;
  }

  .jc-export-actions .jc-button--copy-image {
    min-width: 0;
    flex: 1 1 0;
  }

  .jc-recommendation-filters {
    flex-wrap: wrap;
  }

  .jc-recommendation-filters select {
    width: auto;
    flex: 1 1 calc(50% - 4px);
  }

  .jc-recommendation-filters .jc-button--copy-image {
    width: 100%;
    flex: 1 1 100%;
  }
}

.all-recommendation-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid #465267;
  border-bottom: 1px solid #465267;
  background: #465267;
}

.all-recommendation-games section {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: stretch;
  background: #171d31;
}

.all-recommendation-games section > strong {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #555f6d;
  border-radius: 3px;
  background: #303641;
  color: #b9c0ca;
  margin: 6px 4px 6px 6px;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .04);
  font-size: 12px;
  font-weight: 900;
  cursor: default;
  user-select: none;
}

.all-recommendation-games section > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
}

.all-recommendation-games section:last-child > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.all-recommendation-games button {
  --game-button-background: #eac066;
  --game-button-border: #f3d58e;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--game-button-border);
  border-radius: 3px;
  background: var(--game-button-background);
  color: #2d2617;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  transition: filter 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.all-recommendation-games button:hover,
.all-recommendation-games button:focus-visible {
  filter: brightness(1.16);
  outline: none;
}

.all-recommendation-games button[aria-selected="true"] {
  border-color: #ffe082;
  background: #c72e38;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 -4px 0 #ffe082;
  filter: brightness(1.14);
}

.number-lottery-recommendations {
  min-width: 0;
  background: #0c1020;
  color: #e6ebf3;
}

.number-recommendation-toolbar {
  display: grid;
  border-bottom: 1px solid #465267;
  background: #11172a;
}

.number-recommendation-modes {
  display: flex;
  min-width: 0;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible;
  padding: 7px 10px;
}

.number-recommendation-mode-group {
  --mode-background: #1f574b;
  --mode-border: #438473;
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid var(--mode-border);
  border-left-width: 4px;
  border-radius: 3px;
  background: var(--mode-background);
  color: #fff;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.number-recommendation-mode {
  --mode-background: #1f574b;
  --mode-active-background: #c72e38;
  --mode-border: #438473;
  min-width: 0;
  min-height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--mode-border);
  border-radius: 3px;
  background: var(--mode-background);
  color: #f7f9fc;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: filter 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

[data-number-recommendation-role="kill"] {
  --mode-background: #294765;
  --mode-active-background: #c72e38;
  --mode-border: #53759a;
}

.number-recommendation-mode-group[data-number-recommendation-role] {
  --mode-background: #303641;
  --mode-border: #555f6d;
  color: #b9c0ca;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .04);
  cursor: default;
  user-select: none;
}

.number-recommendation-row-break {
  width: 0;
  height: 0;
  flex: 0 0 100%;
}

.number-recommendation-mode:hover,
.number-recommendation-mode:focus-visible {
  filter: brightness(1.2);
  outline: none;
}

.number-recommendation-mode[aria-selected="true"] {
  border-color: #ffe082;
  background: var(--mode-active-background);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -3px 0 #ffe082;
}

.number-recommendation-settings {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #303950;
  padding: 7px 10px;
}

.number-recommendation-settings label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #aeb8c8;
  font-size: 11px;
  font-weight: 800;
}

.number-recommendation-settings input,
.number-recommendation-settings select {
  width: 66px;
  height: 31px;
  border: 1px solid #536177;
  border-radius: 3px;
  background: #0d1426;
  color: #f4f6fb;
  padding: 0 6px;
  font-weight: 800;
}

#numberRecommendationStatus {
  flex: 1 1 180px;
  color: #80e2c7;
  font-size: 11px;
  font-weight: 800;
}

.number-recommendation-current {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(480px, 1fr);
  border-bottom: 1px solid #465267;
}

.number-recommendation-current__main {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid #465267;
  background: #151c2e;
}

.number-recommendation-current__main header,
.number-recommendation-basis > header,
.number-recommendation-history > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.number-recommendation-current__main header strong {
  color: #ffe082;
  font-size: 17px;
}

.number-recommendation-current__main header span {
  color: #80e2c7;
  font-size: 13px;
  font-weight: 900;
}

.number-recommendation-current__main p {
  margin: 10px 0 0;
  color: #9facbf;
  font-size: 11px;
  line-height: 1.7;
}

.number-recommendation-numbers {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.number-recommendation-numbers > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff858b;
  border-radius: 50%;
  background: #cf303a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.number-recommendation-zones,
.number-recommendation-positions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.number-recommendation-zones section,
.number-recommendation-positions section {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.number-recommendation-zones section > strong,
.number-recommendation-positions section > strong {
  padding-top: 10px;
  color: #aeb8c8;
  font-size: 12px;
}

.number-recommendation-zones .number-recommendation-numbers,
.number-recommendation-positions .number-recommendation-numbers {
  margin-top: 0;
}

.number-recommendation-zone.is-secondary .number-recommendation-numbers > span {
  border-color: #75bdff;
  background: #287bc1;
}

.number-recommendation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #11182a;
}

.number-recommendation-metrics > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 72px;
  border-right: 1px solid #303950;
  border-bottom: 1px solid #303950;
  padding: 9px 11px;
}

.number-recommendation-metrics span {
  color: #8f9caf;
  font-size: 11px;
}

.number-recommendation-metrics strong {
  color: #fff;
  font-size: 15px;
}

.number-recommendation-basis,
.number-recommendation-history {
  border-bottom: 1px solid #465267;
}

.number-recommendation-basis > header,
.number-recommendation-history > header {
  min-height: 42px;
  border-bottom: 1px solid #344056;
  background: #202941;
  padding: 7px 12px;
}

.number-recommendation-basis > header strong,
.number-recommendation-history > header strong {
  color: #ffe082;
  font-size: 14px;
}

.number-recommendation-basis > header span,
.number-recommendation-history > header span {
  color: #9facbf;
  font-size: 11px;
}

#numberRecommendationBasisList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: #303950;
}

#numberRecommendationBasisList article {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 9px;
  background: #151c2e;
  padding: 10px 12px;
}

#numberRecommendationBasisList article strong {
  grid-row: 1 / span 4;
  color: #80e2c7;
  font-size: 14px;
}

#numberRecommendationBasisList article span {
  color: #aeb8c8;
  font-size: 11px;
  white-space: nowrap;
}

#numberRecommendationHistoryList {
  display: grid;
}

.number-recommendation-history-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, .75fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border-bottom: 1px solid #2f394d;
  background: #151c2e;
  padding: 9px 12px;
}

.number-recommendation-history-row:nth-child(even) {
  background: #171e32;
}

.number-recommendation-history-period {
  color: #8fc5ff;
  font-size: 13px;
}

.number-recommendation-history-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.number-recommendation-history-row > div > span {
  color: #8f9caf;
  font-size: 10px;
}

.number-recommendation-history-row > div > strong {
  overflow-wrap: anywhere;
  color: #f4f6fb;
  font-size: 12px;
}

.number-recommendation-history-result {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
}

.number-recommendation-history-row > .number-recommendation-history-result > .number-recommendation-history-result-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: #63d9a9;
  font-size: 11px;
}

.number-recommendation-history-resolution {
  color: #63d9a9;
  font-size: 13px;
  font-weight: 900;
}

.number-recommendation-history-prize {
  display: block;
  color: #ffe082;
  font-size: 11px;
  line-height: 1.5;
}

.number-recommendation-history-result b {
  display: inline-flex;
  min-width: 58px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  border: 1px solid #69768a;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
}

.number-recommendation-history-row.is-hit .number-recommendation-history-result b {
  border-color: #ff777f;
  background: #c72e38;
}

.number-recommendation-history-row.is-miss .number-recommendation-history-result b {
  border-color: #718096;
  background: #354157;
}

.number-recommendation-history-row.is-pending .number-recommendation-history-result b {
  border-color: #b4923c;
  background: #6d561b;
  min-width: 132px;
  min-height: 34px;
  font-size: 16px;
  white-space: nowrap;
}

.number-recommendation-history-number-content {
  display: block;
  min-width: 0;
}

.number-recommendation-history-balls {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.number-recommendation-history-ball {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #59667b;
  border-radius: 50%;
  background: #20283b;
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.number-recommendation-history-ball.is-matched {
  border-color: #ff858b;
  background: #cf303a;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.number-recommendation-history-ball.is-opened-kill {
  border-color: #e9a14b;
  background: #6e4a21;
  color: #ffe1a6;
}

.number-recommendation-history-ball.is-pending {
  border-color: #7f6d3d;
  background: #2d2a25;
  color: #f3d98c;
}

.number-recommendation-history-groups {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.number-recommendation-history-groups > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.number-recommendation-history-groups b {
  flex: 0 0 auto;
  color: #80e2c7;
  font-size: 11px;
}

.number-recommendation-waiting {
  color: #ffd45c;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.number-recommendation-miss-group {
  border-bottom: 1px solid #2f394d;
  background: #11182a;
}

.number-recommendation-miss-group > button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: #182137;
  color: #c6d1df;
  padding: 8px 12px;
  text-align: left;
}

.number-recommendation-miss-group > button > span:first-child {
  display: grid;
  gap: 3px;
}

.number-recommendation-miss-group > button strong {
  color: #8fc5ff;
  font-size: 15px;
}

.number-recommendation-miss-group > button small,
.number-recommendation-miss-group > button > span:last-child {
  color: #98a7ba;
  font-size: 11px;
}

.number-recommendation-miss-group.is-expanded > div {
  border-top: 1px solid #44506a;
}

.number-recommendation-miss-group.is-expanded .number-recommendation-history-row {
  padding-left: 24px;
  box-shadow: inset 4px 0 0 #426f9f;
}

@media (min-width: 901px) {
  .all-recommendation-games section > strong {
    font-size: 13px;
  }

  .all-recommendation-games button {
    min-height: 38px;
    font-size: 14px;
  }

  .number-recommendation-mode-group {
    min-height: 36px;
    font-size: 13px;
  }

  .number-recommendation-mode {
    min-height: 36px;
    font-size: 14px;
  }

  .number-recommendation-settings label,
  #numberRecommendationStatus {
    font-size: 13px;
  }

  .number-recommendation-settings input,
  .number-recommendation-settings select,
  .number-recommendation-settings .jc-button {
    height: 34px;
    font-size: 14px;
  }

  .number-recommendation-current__main header strong {
    font-size: 20px;
  }

  .number-recommendation-current__main header span {
    font-size: 14px;
  }

  .number-recommendation-current__main p {
    font-size: 14px;
  }

  .number-recommendation-numbers > span {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .number-recommendation-zones section > strong,
  .number-recommendation-positions section > strong {
    font-size: 14px;
  }

  .number-recommendation-metrics span {
    font-size: 13px;
  }

  .number-recommendation-metrics strong {
    font-size: 18px;
  }

  .number-recommendation-basis > header strong,
  .number-recommendation-history > header strong {
    font-size: 16px;
  }

  .number-recommendation-basis > header span,
  .number-recommendation-history > header span {
    font-size: 13px;
  }

  #numberRecommendationBasisList article strong {
    font-size: 15px;
  }

  #numberRecommendationBasisList article span {
    font-size: 13px;
  }

  .number-recommendation-history-row {
    min-height: 76px;
  }

  .number-recommendation-history-period {
    font-size: 15px;
  }

  .number-recommendation-history-row > div > span {
    font-size: 12px;
  }

  .number-recommendation-history-row > div > strong {
    font-size: 14px;
  }

  .number-recommendation-history-result-copy,
  .number-recommendation-history-prize {
    font-size: 13px;
  }

  .number-recommendation-history-resolution,
  .number-recommendation-history-result b {
    font-size: 14px;
  }

  .number-recommendation-miss-group > button strong {
    font-size: 16px;
  }

  .number-recommendation-miss-group > button small,
  .number-recommendation-miss-group > button > span:last-child {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .all-recommendation-games {
    grid-template-columns: 1fr;
  }

  .number-recommendation-current {
    grid-template-columns: minmax(0, 1fr);
  }

  .number-recommendation-current__main {
    border-right: 0;
    border-bottom: 1px solid #465267;
  }

  .number-recommendation-history-row {
    grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
  }

  .number-recommendation-history-result {
    grid-column: 2 / -1;
  }
}

@media (max-width: 600px) {
  .all-recommendation-games section {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .all-recommendation-games section > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .all-recommendation-games button {
    padding: 3px;
    font-size: 11px;
  }

  .number-recommendation-settings label {
    flex: 1 1 calc(50% - 5px);
  }

  .number-recommendation-settings input,
  .number-recommendation-settings select {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .number-recommendation-settings .jc-button {
    flex: 1 1 calc(50% - 5px);
  }

  #numberRecommendationStatus {
    flex-basis: 100%;
  }

  .number-recommendation-current__main header,
  .number-recommendation-basis > header,
  .number-recommendation-history > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .number-recommendation-numbers > span {
    width: 31px;
    height: 31px;
    font-size: 12px;
  }

  .number-recommendation-zones section,
  .number-recommendation-positions section {
    grid-template-columns: 1fr;
  }

  .number-recommendation-zones section > strong,
  .number-recommendation-positions section > strong {
    padding-top: 0;
  }

  .number-recommendation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #numberRecommendationBasisList {
    grid-template-columns: minmax(0, 1fr);
  }

  .number-recommendation-history-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .number-recommendation-history-result {
    grid-column: 1;
  }

  .number-recommendation-miss-group > button {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .jc-results-head {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 7px;
  }

  .jc-results-head > div {
    flex-basis: 100%;
  }

  .jc-results-head > div > span {
    display: none;
  }

  .jc-results-head .jc-button {
    flex: 1;
    padding: 0 7px;
    font-size: 11px;
  }

  .jc-results-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 7px;
  }

  .jc-results-toolbar .jc-segmented {
    width: 100%;
  }

  .jc-results-toolbar .jc-segmented button {
    flex: 1;
  }

  .jc-results-toolbar label {
    flex: 1 1 42%;
  }

  .jc-results-toolbar select,
  .jc-results-toolbar input {
    width: 100%;
  }

  .jc-results-toolbar .jc-result-search {
    flex-basis: 100%;
  }

  .jc-result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jc-result-summary > div {
    padding: 7px 9px;
  }

  .jc-result-summary strong {
    font-size: 15px;
  }

  .jc-result-list {
    padding: 6px;
  }

  .jc-result-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .jc-result-card__meta,
  .jc-result-card__score,
  .jc-result-card__plays {
    border-right: 0;
    border-bottom: 1px solid #465267;
  }

  .jc-result-card__meta {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    padding: 7px 9px;
  }

  .jc-result-card__score {
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    padding: 9px;
  }

  .jc-result-card__plays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 7px;
  }

  .jc-result-official {
    min-height: 36px;
  }
}
.recommendation-analysis-disclosure {
  margin: 8px 12px 12px;
  border: 1px solid #526079;
  border-radius: 6px;
  background: #171d31;
  color: #dfe6f1;
}

.recommendation-analysis-disclosure > summary {
  cursor: pointer;
  padding: 9px 11px;
  color: #ffdf2b;
  font-weight: 800;
  list-style-position: inside;
}

.recommendation-analysis-disclosure > div {
  padding: 0 11px 8px;
}

.recommendation-analysis-disclosure p {
  margin: 6px 0;
  color: #c4cede;
  font-size: 12px;
  line-height: 1.55;
}

.recommendation-analysis-disclosure > button {
  margin: 0 11px 10px;
}

.jc-recommendation-row__analysis {
  grid-column: 1 / -1;
  margin: 0 8px 8px;
}
