.chart3-dialog {
  width: calc(100vw - 12px);
  height: calc(100vh - 12px);
  max-width: none;
  max-height: none;
  overflow: hidden;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #f7f8fa;
  color: #172033;
  padding: 0;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.62);
  overflow-anchor: none;
}

.chart3-dialog[open] {
  display: grid;
  grid-template-rows: 48px auto minmax(0, 1fr) 34px;
}

.chart3-dialog::backdrop {
  background: rgba(3, 7, 16, 0.82);
}

.chart3-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid #566476;
  background: #1b2638;
  color: #f8fafc;
  padding: 5px 8px 5px 13px;
}

.chart3-header__title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.chart3-header__title strong {
  flex: 0 0 auto;
  color: #ffe128;
  font-size: 18px;
}

.chart3-header__title span {
  min-width: 0;
  overflow: hidden;
  color: #bdc8d7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart3-header__actions,
.chart3-game-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.chart3-header__actions {
  order: -1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chart3-header__title {
  flex: 0 1 auto;
}

.chart3-header-period {
  color: #e5eeeb;
}

.chart3-header-period .chart3-select {
  width: 68px;
}

.chart-export-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.chart3-export-button {
  height: 30px;
  border: 1px solid #71807a;
  border-radius: 3px;
  background: #53615c;
  color: #fff;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.chart-export-button.is-export-feedback,
.chart3-export-button.is-export-feedback,
[data-chart-export].is-export-feedback {
  border-color: #f4d648 !important;
  background: #247a64 !important;
  color: #fff !important;
  animation: chart-export-flash 0.24s ease-in-out 2 alternate;
}

[data-chart-export].is-export-failed {
  background: #b83340 !important;
}

@keyframes chart-export-flash {
  from { filter: brightness(1); transform: scale(1); }
  to { filter: brightness(1.28); transform: scale(0.96); }
}

.chart3-game-switch {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart3-game-button,
.chart3-close {
  height: 32px;
  border: 1px solid #65758a;
  border-radius: 3px;
  background: #46546a;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chart3-game-button[aria-pressed="true"] {
  border-color: #ff7a82;
  background: #ca2f3d;
}

.chart3-close {
  flex: 0 0 auto;
  min-width: 52px;
  margin-left: auto;
  padding: 0 10px;
  font-size: 13px;
}

.chart3-controls {
  display: grid;
  min-width: 0;
  gap: 5px;
  border-bottom: 1px solid #c4cad2;
  background: #ffffff;
  padding: 6px 9px;
}

.chart3-controls__row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.chart3-controls__row[hidden] {
  display: none;
}

.chart3-control-button {
  flex: 0 0 auto;
  min-width: 48px;
  height: 29px;
  border: 1px solid #e1e4e8;
  border-radius: 5px;
  background: #f4f5f7;
  color: #1c2430;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.chart3-control-button:hover,
.chart3-control-button:focus-visible {
  border-color: #aab4c1;
  background: #e9edf2;
  outline: none;
}

.chart3-kl8-matrix-button {
  border-color: #c69a18;
  background: #f3df83;
  color: #3f3210;
  font-weight: 900;
}

.chart3-kl8-matrix-button:hover,
.chart3-kl8-matrix-button:focus-visible {
  border-color: #f0c52e;
  background: #ffe67a;
  color: #241b05;
}

.chart3-control-button[aria-pressed="true"] {
  border-color: #ffb7c2;
  background: #fde8ed;
  color: #df3152;
}

.chart3-control-button--primary[aria-pressed="true"] {
  border-color: #ff97aa;
  background: #fbd8df;
  color: #d92347;
}

.chart3-relation-button {
  border-color: #6f8fa2;
  background: #dbe8ed;
  color: #25495c;
}

.chart3-controls__spacer {
  flex: 1 1 auto;
  min-width: 14px;
}

.chart3-control-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.chart3-select {
  height: 29px;
  border: 1px solid #d5dae0;
  border-radius: 5px;
  background: #f7f8fa;
  color: #202938;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.chart3-table-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overflow-anchor: none;
  background: #eef1f4;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  scrollbar-color: #8c98a8 #e8ebef;
  scrollbar-width: thin;
}

.chart3-table-stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: max(1300px, 100%);
  min-height: 0;
  /* 批DEV186：不能在 sticky 表格和唯一滚动容器之间建立 paint 裁剪边界，
     否则 top/left sticky 会被锁在舞台内而跟着内容滚走。 */
  contain: none;
  overflow: visible;
  background: #fff;
}

.chart3-table {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: max(1300px, 100%);
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  color: #273244;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 11px;
}

.chart3-table th,
.chart3-table td {
  height: 29px;
  overflow: hidden;
  border-right: 1px solid #cbd1d8;
  border-bottom: 1px solid #cbd1d8;
  padding: 0 1px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart3-table tbody tr.chart3-virtual-placeholder td {
  height: 28px;
  padding: 0;
  background: #eef1f4;
  color: transparent;
  pointer-events: none;
}

.chart3-table thead th {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 28px;
  border-top: 1px solid #bcc4cd;
  background: #f3f5f7;
  color: #202938;
  font-weight: 900;
}

.chart3-table thead tr:nth-child(2) th {
  top: 29px;
}

.chart3-table th:first-child,
.chart3-table td:first-child {
  border-left: 1px solid #cbd1d8;
}

.chart3-table .chart3-sticky-period {
  position: sticky;
  z-index: 4;
  left: 0;
}

.chart3-table thead .chart3-sticky-period {
  z-index: 8;
}

.chart3-table .chart3-sticky-draw {
  position: sticky;
  z-index: 4;
  left: 60px;
}

.chart3-table thead .chart3-sticky-draw {
  z-index: 8;
}

.chart3-table tbody tr:nth-child(odd) td[data-group="meta"] {
  background: #fff8fb;
}

.chart3-table tbody tr:nth-child(even) td[data-group="meta"] {
  background: #fdf0f6;
}

.chart3-table [data-group="type"] {
  background: #f1f7e8;
}

.chart3-table [data-group="scalar"] {
  background: #f7f8fa;
}

.chart3-table [data-group="band"] {
  background: #fffbed;
}

.chart3-table [data-group="distribution-odd"] {
  background: #fff1f4;
}

.chart3-table [data-group="distribution-size"] {
  background: #fffbe8;
}

.chart3-table [data-group="metric"] {
  background: #f6f8fb;
}

.chart3-table thead .chart3-metric-section,
.chart3-stat-section-title .chart3-metric-section {
  background: #edf2f7;
  color: #334155;
}

.chart3-table thead .chart3-metric-header {
  background: #f7f9fc;
  color: #475569;
  font-size: 10px;
  text-overflow: clip;
}

.chart3-table thead .chart3-metric-header.is-selected {
  background: #fde8ed;
  color: #d92347;
}

.chart3-table .chart3-metric-cell.is-selected:not(.chart3-hit-cell),
.chart3-table .chart3-metric-stat.is-selected {
  background: #fff1f4;
  color: #d33a50;
  font-weight: 800;
}

.chart3-table .chart3-metric-cell .chart3-filter-omission {
  color: #a6adb8;
}

.chart3-table [data-group="hundreds"] {
  background: #fff8ea;
}

.chart3-table [data-group="tens"] {
  background: #f4faee;
}

.chart3-table [data-group="units"] {
  background: #f6f2fb;
}

.chart3-table tbody tr.is-focus td {
  box-shadow: inset 0 1px 0 rgba(230, 51, 78, 0.42), inset 0 -1px 0 rgba(230, 51, 78, 0.42);
}

.chart3-table .chart3-hit-cell {
  background: #f54e5a !important;
  color: #ffffff;
  font-weight: 900;
}

.chart3-table .chart3-filter-hit-cell {
  box-shadow: inset 0 0 0 1px rgba(180, 20, 42, 0.42);
}

.chart3-table .chart3-filter-miss-cell {
  background-image: none !important;
  color: #d7dbe1;
}

.chart3-filter-omission {
  color: #d1d5dc;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
}

.chart3-table tbody tr.is-filter-match .chart3-sticky-period,
.chart3-table tbody tr.is-filter-match .chart3-sticky-draw {
  color: #ef3f52;
  font-weight: 900;
}

.chart3-period {
  color: #283447;
  font-weight: 800;
}

.chart3-period.is-special,
.chart3-draw.is-special {
  color: #f13d4f;
}

.chart3-draw {
  letter-spacing: 1px;
  font-weight: 900;
}

.chart3-omission-cell {
  position: relative;
  color: #c5c8ce;
  font-size: 10px;
}

.chart3-omission-cell.is-miss-warm {
  background-image: linear-gradient(rgba(255, 208, 120, 0.14), rgba(255, 208, 120, 0.14));
  color: #a7a18e;
}

.chart3-omission-cell.is-miss-hot {
  background-image: linear-gradient(rgba(255, 100, 108, 0.16), rgba(255, 100, 108, 0.16));
  color: #aaa0a1;
  font-weight: 600;
}

.chart3-ball {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.chart3-ball--hundreds {
  background: #f39a12;
}

.chart3-ball--tens {
  background: #0871d9;
}

.chart3-ball--units {
  background: #27ad52;
}

.chart3-ball.is-focus-digit {
  border: 2px solid #ff2946;
  box-shadow: 0 0 0 2px #ffe22a, 0 2px 5px rgba(0, 0, 0, 0.28);
}

.chart3-prediction-row td {
  height: 33px;
  background: #d8dcda !important;
}

.chart3-prediction-label {
  color: #444d5b;
  font-weight: 900;
}

.chart3-dlt-prediction-summary {
  display: flex;
  min-width: 178px;
  padding: 3px 5px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: #263d48;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.chart3-dlt-prediction-summary strong {
  color: #bd2739;
  font-size: 13px;
}

.chart3-dlt-prediction-summary small {
  color: #275c79;
  font-size: 10px;
  font-weight: 800;
}

.chart3-lotto-prediction-row:has(.chart3-dlt-prediction-summary) td {
  height: 57px;
}

.chart3-prediction-cell {
  cursor: pointer;
}

.chart3-prediction-cell:hover {
  background: #c8cecb !important;
}

.chart3-prediction-mark {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: #b91f35;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
}

.chart3-lotto-prediction-row td {
  height: 35px;
}

.chart3-prediction-mark--lotto-primary,
.chart3-prediction-mark--lotto-secondary {
  width: 23px;
  height: 23px;
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  font-size: 9px;
}

.chart3-prediction-mark--lotto-primary {
  background: #ce303a;
}

.chart3-prediction-mark--lotto-secondary {
  background: #287bc1;
}

.chart3-stat-section-title td {
  height: 31px;
  border-top: 1px solid #87948e;
  background: #f1f3f6 !important;
  color: #202938;
  font-weight: 900;
}

.chart3-stat-row td {
  height: 31px;
  background: #fff !important;
}

.chart3-stat-row[data-stat="appear"] td {
  color: #9868c9;
}

.chart3-stat-row[data-stat="maxMiss"] td {
  color: #c9895d;
}

.chart3-stat-row[data-stat="averageMiss"] td {
  color: #a56dc9;
}

.chart3-stat-row[data-stat="maxStreak"] td {
  color: #2c9c72;
}

.chart3-stat-row[data-stat="currentMiss"] td {
  color: #c58b55;
}

.chart3-stat-label {
  font-weight: 900;
}

.chart3-trend-overlay {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.chart3-overlay-ball-label {
  fill: #fff;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .08);
  stroke-width: .45px;
}

.chart3-table-watermark {
  position: absolute;
  z-index: 3;
  inset: 58px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  grid-template-rows: repeat(3, minmax(90px, 1fr));
  overflow: hidden;
  pointer-events: none;
}

.chart3-table-watermark span {
  align-self: center;
  justify-self: center;
  color: var(--chart-watermark-color-18, rgba(231, 233, 236, 0.18));
  font-size: 14px;
  font-weight: 900;
  transform: rotate(calc(-18deg + (var(--chart3-watermark-index) % 3) * 16deg));
  white-space: nowrap;
}

.chart3-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  border-top: 1px solid #c4cad2;
  background: #f8fafc;
  color: #596273;
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.chart3-footer strong {
  color: #273244;
}

.chart3-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart3-legend::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
  content: "";
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .chart3-dialog {
    box-sizing: border-box;
    width: calc(100vw - 4px);
    max-width: calc(100vw - 4px);
    height: calc(100vh - 4px);
    border-radius: 2px;
  }

  .chart3-dialog > *,
  .chart3-table-scroll,
  .chart3-material-stage,
  .material-chart-shell,
  .material-table-scroll {
    min-width: 0;
    max-width: 100%;
  }

  .chart3-dialog[open] {
    grid-template-rows: auto auto minmax(0, 1fr) 32px;
  }

  .chart3-header {
    min-height: 82px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 6px;
  }

  .chart3-header__title {
    width: calc(100% - 58px);
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .chart3-header__title strong {
    font-size: 16px;
  }

  .chart3-header__title span {
    width: 100%;
    font-size: 10px;
  }

  .chart3-header__actions {
    box-sizing: border-box;
    width: 100%;
    justify-content: space-between;
    padding-right: 100px;
  }

  .chart3-game-switch {
    display: grid;
    width: calc(100% - 58px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .chart3-game-button {
    width: 100%;
    min-width: 0;
    padding: 0 4px;
  }

  .chart3-close {
    position: absolute;
    top: 5px;
    right: 5px;
  }

  .chart3-controls {
    padding: 5px;
  }

  .chart3-control-button {
    min-width: 54px;
    height: 32px;
    font-size: 13px;
  }

  .chart3-table {
    font-size: 10px;
  }

  .chart3-footer {
    gap: 8px;
    padding: 3px 6px;
    font-size: 10px;
  }
}

.chart3-dialog {
  border-color: #75839a;
  background: #101528;
  color: #f4f6fb;
}

.chart3-controls {
  border-color: #465267;
  background: #171d31;
}

.chart3-control-button {
  border-color: #465267;
  background: #242c40;
  color: #dce4ef;
}

.chart3-control-button:hover,
.chart3-control-button:focus-visible {
  border-color: #75839a;
  background: #313b53;
}

.chart3-control-button[aria-pressed="true"],
.chart3-control-button--primary[aria-pressed="true"] {
  border-color: #ff757c;
  background: #c72e38;
  color: #ffffff;
}

.chart3-control-label { color: #aeb8c8; }

.chart3-select {
  border-color: #536177;
  background: #0d1426;
  color: #f4f6fb;
}

.chart3-table-scroll {
  background: #0c1020;
  scrollbar-color: #59677e #11172a;
}

.chart3-table-stage {
  background: #0c1020;
}

.chart3-table-stage::after {
  position: absolute;
  z-index: 3;
  inset: 60px 0 0;
  overflow: hidden;
  pointer-events: none;
  content: "彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析\A\A彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析\A\A彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析\A\A彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析\A\A彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析";
  color: var(--chart-watermark-color-055, rgba(231, 235, 242, 0.055));
  font-size: 16px;
  font-weight: 800;
  line-height: 9;
  text-align: center;
  white-space: pre-wrap;
  transform: rotate(-7deg) scale(1.06);
  transform-origin: center;
}

.chart3-table {
  color: #e6ebf3;
}

.chart3-table th,
.chart3-table td {
  border-color: #303950;
}

.chart3-table thead th,
.chart3-table thead .chart3-metric-header,
.chart3-table thead .chart3-metric-section,
.chart3-stat-section-title .chart3-metric-section {
  background: #222a42;
  color: #e9edf5;
}

.chart3-table tbody tr:nth-child(odd) td[data-group="meta"],
.chart3-table tbody tr:nth-child(even) td[data-group="meta"] {
  background: #171e32;
}

.chart3-table [data-group="type"],
.chart3-table [data-group="scalar"],
.chart3-table [data-group="band"],
.chart3-table [data-group="distribution-odd"],
.chart3-table [data-group="distribution-size"],
.chart3-table [data-group="metric"],
.chart3-table [data-group="hundreds"],
.chart3-table [data-group="tens"],
.chart3-table [data-group="units"] {
  background: rgba(20, 26, 45, 0.96);
}

.chart3-table [data-group="lotto-primary"] {
  background: rgba(55, 24, 36, 0.96);
}

.chart3-table [data-group="lotto-secondary"] {
  background: rgba(20, 40, 67, 0.96);
}

.chart3-lotto-zone-header.lotto-primary {
  background: #4c202b !important;
  color: #ff9ca2 !important;
}

.chart3-lotto-zone-header.lotto-secondary {
  background: #1c4169 !important;
  color: #9bd7ff !important;
}

.chart3-period { color: #8ccfff; }
.chart3-draw { color: #f4f6fb; }
.chart3-omission-cell { color: #8895a8; }

.chart3-ball--lotto-primary { background: #ce303a; }
.chart3-ball--lotto-secondary { background: #287bc1; }
.chart3-ball--zone-1 { background: #ce303a; }
.chart3-ball--zone-2 { background: #287bc1; }
.chart3-ball--zone-3 { background: #2b9b65; }
.chart3-ball--zone-4 { background: #b67a20; }
.chart3-ball--zone-5 { background: #7d61bd; }
.chart3-prediction-mark--zone-1 { background: #b91f35; }
.chart3-prediction-mark--zone-2 { background: #096cae; }
.chart3-prediction-mark--zone-3 { background: #08784d; }
.chart3-prediction-mark--zone-4 { background: #9c5c08; }
.chart3-prediction-mark--zone-5 { background: #6142a6; }

.chart3-stat-section-title td,
.chart3-stat-row td {
  background: #171e32 !important;
  color: #dbe3ee;
}

.chart3-footer {
  border-color: #465267;
  background: #171d31;
  color: #9facbf;
}

.chart3-footer strong { color: #ffdf2b; }

.chart3-dialog.is-lotto #chart3ShapeControls,
.chart3-dialog.is-lotto [data-chart3-band] {
  display: none;
}

.chart3-dialog.is-lotto [data-chart3-connect],
.chart3-dialog.is-lotto #chart3DigitControls {
  display: none;
}

.chart3-footer-legends {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chart3-dialog.is-lotto .chart3-table .chart3-sticky-draw {
  left: 72px;
}

.chart3-dialog.is-lotto .chart3-table {
  font-size: 10px;
}

.chart3-dialog.is-lotto #chart3ClearPredictions {
  border-color: #f06f7a;
  background: #762a38;
  color: #fff;
}

.chart3-dialog {
  border-color: #8f9b96;
  background: #edf1ef;
  color: #27332f;
}

.chart3-header {
  border-color: #66736e;
  background: #394541;
  color: #f5f7f6;
}

.chart3-header__title strong {
  color: #ffe270;
}

.chart3-header__title span {
  color: #d5ddda;
}

.chart3-game-button,
.chart3-close {
  border-color: #71807a;
  background: #53615c;
}

.chart3-game-button[aria-pressed="true"] {
  border-color: #c9545c;
  background: #b83e48;
}

.chart3-controls {
  border-color: #aab5b0;
  background: #e4eae7;
}

.chart3-control-button {
  border-color: #aeb9b4;
  background: #f2f5f3;
  color: #2e3a36;
}

.chart3-control-button:hover,
.chart3-control-button:focus-visible {
  border-color: #7f8e87;
  background: #dce4e0;
}

.chart3-control-button[aria-pressed="true"],
.chart3-control-button--primary[aria-pressed="true"] {
  border-color: #ba4a54;
  background: #c7434e;
  color: #fff;
}

.chart3-control-label {
  color: #47534f;
}

.chart3-select {
  border-color: #a9b5af;
  background: #f4f6f5;
  color: #293531;
}

.chart3-table-scroll {
  background: #e7ece9;
  scrollbar-color: #82918a #d8dfdc;
}

.chart3-table-stage {
  background: #f2f5f3;
}

.chart3-table-stage::after {
  color: rgba(79, 91, 86, 0.065);
}

.chart3-table {
  color: #2f3a36;
}

.chart3-table th,
.chart3-table td {
  border-color: #c5ceca;
}

.chart3-table thead th,
.chart3-table thead .chart3-metric-header,
.chart3-table thead .chart3-metric-section,
.chart3-stat-section-title .chart3-metric-section {
  background: #dce3df;
  color: #28342f;
}

.chart3-table tbody tr:nth-child(odd) td[data-group="meta"],
.chart3-table tbody tr:nth-child(even) td[data-group="meta"] {
  background: #e8eeeb;
}

.chart3-table [data-group="type"],
.chart3-table [data-group="scalar"],
.chart3-table [data-group="band"],
.chart3-table [data-group="distribution-odd"],
.chart3-table [data-group="distribution-size"],
.chart3-table [data-group="metric"],
.chart3-table [data-group="hundreds"],
.chart3-table [data-group="tens"],
.chart3-table [data-group="units"],
.chart3-table [data-group^="digit-position-"] {
  background: #f4f7f5;
}

.chart3-table tbody tr[data-chart3-data-row]:nth-child(even) td {
  filter: brightness(0.975);
}

.chart3-table tbody tr[data-chart3-data-row] > .chart3-sticky-period,
.chart3-table tbody tr[data-chart3-data-row] > .chart3-sticky-draw,
.chart3-table tbody tr[data-chart3-data-row] > .chart3-draw-grid-cell {
  background: #4f5955 !important;
  color: #fff !important;
}

/* 批182补：3D/排三/排五胆码图的“开奖号码”列只保留圆球，
   清除深色方格底，使用浅青灰列底承托圆球，避免开奖区抢占视觉。 */
.chart3-dialog.is-digit-game .chart3-table tbody tr[data-chart3-data-row] > .chart3-sticky-period,
.chart3-dialog.is-digit-game .chart3-table tbody tr[data-chart3-data-row] > .chart3-sticky-draw,
.chart3-dialog.is-digit-game .chart3-table tbody tr[data-chart3-data-row] > .chart3-draw-grid-cell {
  background: #e4efec !important;
  color: #365b60 !important;
  box-shadow: 1px 0 0 #b7ccc8;
}

.chart3-table tbody tr.chart3-decade-row > * {
  border-bottom: 1px solid #65746d;
}

.chart3-table [data-group="lotto-primary"],
.chart3-table [data-group="lotto-secondary"] {
  background: #f2f5f3;
}

.chart3-lotto-zone-header.lotto-primary,
.chart3-lotto-zone-header.lotto-secondary {
  background: #d4ddd8 !important;
  color: #32403a !important;
}

.chart3-period {
  color: #26749b;
}

.chart3-draw,
.chart3-draw-grid-cell {
  color: #25322d;
}

.chart3-omission-cell,
.chart3-omission-cell.is-miss-warm,
.chart3-omission-cell.is-miss-hot,
.chart3-full-indicator-cell {
  color: #c0c5c2;
  font-weight: 500;
}

.chart3-stat-section-title td,
.chart3-stat-row td {
  background: #edf2ef !important;
  color: #34413c;
}

.chart3-footer {
  border-color: #aab5b0;
  background: #e4eae7;
  color: #52605a;
}

.chart3-footer strong {
  color: #9d3039;
}

.chart3-open-grid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.chart3-open-digit {
  box-sizing: border-box;
  display: inline-flex;
  width: 23px;
  min-width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid #9eaaa5;
  border-radius: 50%;
  background: #fafcfb;
  color: #26332e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.chart3-open-digit.is-repeat,
.chart3-ball.is-repeat-number {
  border-color: #a62531;
  background: #d23c48 !important;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(166, 37, 49, 0.18);
}

/* 批182：3D/排三/排五开奖栏使用与图表底色协调的非重号球；
   同一期开奖结果中出现两次及以上的数字继续使用红球。关系/联动高亮
   仍保留给用户主动选择的状态，避免普通开奖球被亮白方块感干扰。 */
.chart3-dialog.is-digit-game .chart3-open-digit:not(.is-repeat):not(.is-relation-consecutive):not(.is-relation-diagonal):not(.is-relation-drop):not(.is-chart-draw-linked):not(.is-chart-draw-muted) {
  border-color: #a8d1d1 !important;
  background: #4c7482 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(6, 28, 36, 0.32);
}

.chart3-dialog.is-digit-game :is(
  .chart3-table .chart3-open-digit,
  .material-span-table .traditional-draw .chart3-open-digit
):not(.is-repeat):not(.is-relation-consecutive):not(.is-relation-diagonal):not(.is-relation-drop):not(.is-chart-draw-linked):not(.is-chart-draw-muted) {
  border-color: #3f7f89 !important;
  background: #508f9b !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(47, 106, 116, 0.24);
}

.chart3-ball--position-1 { background: #cf3c46; }
.chart3-ball--position-2 { background: #337fb1; }
.chart3-ball--position-3 { background: #2f8f69; }
.chart3-ball--position-4 { background: #aa782d; }
.chart3-ball--position-5 { background: #7664a8; }

.chart3-full-indicator-header {
  height: 32px !important;
  font-size: 10px;
}

.chart3-full-indicator-cell.is-hit {
  background: #bd3742 !important;
  color: #fff;
  font-weight: 900;
}

.chart3-indicator-ball {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #c62f3d;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(91, 8, 18, 0.28);
}

.chart3-full-indicator-cell.chart3-form-DM.is-hit {
  background: #dce8e2 !important;
}

.chart3-form-CF { background-color: #e3ebef !important; }
.chart3-form-LF { background-color: #dfece5 !important; }
.chart3-form-DX { background-color: #eee9d9 !important; }
.chart3-form-DS { background-color: #eee1e4 !important; }
.chart3-form-HH { background-color: #dcebe9 !important; }
.chart3-form-HZ { background-color: #e7e2ed !important; }
.chart3-form-HW { background-color: #dce9e6 !important; }
.chart3-form-KD { background-color: #eee5db !important; }
.chart3-form-YX { background-color: #dde7ef !important; }
.chart3-form-DM { background-color: #eddddf !important; }

.chart3-dialog.is-full-indicators #chart3ShapeControls,
.chart3-dialog.is-full-indicators [data-chart3-band],
.chart3-dialog.is-full-indicators [data-chart3-connect],
.chart3-dialog.is-full-indicators #chart3DigitControls {
  display: none;
}

.chart3-dialog.is-full-indicators .chart3-table .chart3-sticky-draw,
.chart3-dialog.is-lotto .chart3-table .chart3-sticky-draw {
  left: 72px;
}

.chart3-material-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: thin;
  white-space: nowrap;
}

.chart3-material-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.chart3-material-toolbar .chart3-material-tabs {
  flex: 0 0 auto;
}

.chart3-inline-display-controls {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.chart3-material-toolbar .chart3-material-controls {
  flex: 1 1 auto;
  border-top: 0;
  padding-top: 0;
}

.chart3-material-tab {
  flex: 0 0 auto;
  min-width: 78px;
  height: 31px;
  border: 1px solid #b9c1ca;
  border-radius: 4px;
  background: #e9edf0;
  color: #33403a;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.chart3-material-tab:hover,
.chart3-material-tab:focus-visible {
  border-color: #737f78;
  background: #dde4e0;
  outline: none;
}

.chart3-material-tab[aria-pressed="true"] {
  border-color: #8f2531;
  background: #aa303d;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(62, 10, 18, 0.32);
}

.chart3-material-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid #d5dad7;
  padding-top: 5px;
  scrollbar-width: thin;
  white-space: nowrap;
}

.chart3-material-controls[hidden] {
  display: none;
}

.chart3-material-controls label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #35423c;
  font-size: 12px;
  font-weight: 900;
}

.chart3-material-controls input,
.chart3-material-controls select,
.chart3-material-controls button {
  height: 31px;
  border: 1px solid #aeb8b3;
  border-radius: 4px;
  background: #f5f7f6;
  color: #202d27;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.chart3-material-controls input {
  width: 134px;
}

.chart3-material-controls .material-control-wide {
  flex: 1 1 360px;
}

.chart3-material-controls .material-control-wide input {
  width: min(500px, 50vw);
}

.chart3-material-controls button {
  border-color: #8c3b45;
  background: #a7313e;
  color: #fff;
  cursor: pointer;
}

.material-controls-note {
  margin-left: auto;
  color: #65716b;
  font-size: 11px;
  font-weight: 700;
}

.material-default-period-control input {
  width: 74px;
}

.chart3-material-stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 10px;
  background: #18231f;
  color: #e7ede9;
}

.chart3-material-stage[hidden] {
  display: none;
}

.material-chart-shell {
  position: relative;
  z-index: 1;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.material-chart-watermark {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  overflow: hidden;
  pointer-events: none;
}

.material-chart-watermark span {
  align-self: center;
  justify-self: center;
  color: var(--chart-watermark-color-075, rgba(231, 233, 236, 0.075));
  font-size: 13px;
  font-weight: 900;
  transform: rotate(calc(-18deg + (var(--watermark-index) % 3) * 16deg));
  white-space: nowrap;
}

.material-summary-grid,
.material-metric-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
}

.material-metric-grid--compact {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.material-metric-grid--six {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
}

.material-summary-block,
.material-metric-card,
.material-current-driving,
.material-current-omission,
.material-pyramid-base,
.material-process-card {
  border: 1px solid #43534c;
  border-radius: 5px;
  background: #24312c;
  color: #dbe4df;
}

.material-summary-block {
  display: grid;
  grid-template-columns: auto repeat(3, auto);
  align-items: center;
  gap: 6px 12px;
  padding: 8px 10px;
  font-size: 12px;
}

.material-summary-block > strong {
  color: #ffe66a;
  font-size: 14px;
}

.material-span-counts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(10, minmax(28px, 1fr));
  gap: 2px;
}

.material-span-counts i {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #506159;
  background: #1e2925;
  color: #aebbb5;
  font-style: normal;
}

.material-span-counts b {
  color: #fff;
}

.material-metric-card {
  display: grid;
  min-height: 68px;
  align-content: center;
  gap: 2px;
  border-left-width: 5px;
  padding: 7px 10px;
}

.material-metric-card span,
.material-metric-card small {
  color: #aab9b1;
  font-size: 11px;
}

.material-metric-card strong {
  color: #fff;
  font-size: 18px;
}

.material-tone-1 { border-left-color: #cd4350; }
.material-tone-2 { border-left-color: #d5a337; }
.material-tone-3 { border-left-color: #3d9c77; }
.material-tone-4 { border-left-color: #4388b8; }
.material-tone-5 { border-left-color: #8d6db5; }

.material-table-scroll {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overflow-anchor: none;
  border: 1px solid #44534d;
  border-radius: 4px;
  background: #202b27;
  scrollbar-color: #64756d #1b2521;
  scrollbar-width: thin;
}

.material-table {
  width: 100%;
  min-width: max-content;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  color: #dbe4df;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 11px;
}

.material-table th,
.material-table td {
  height: 29px;
  overflow: hidden;
  border-right: 1px solid #46544e;
  border-bottom: 1px solid #46544e;
  padding: 0 5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #3b4943;
  color: #fff;
  font-weight: 900;
}

.material-table tbody th {
  position: sticky;
  z-index: 2;
  left: 0;
  background: #2e3b35;
  color: #f0d66a;
  font-weight: 900;
}

.material-table tbody tr:nth-child(even) td {
  background: #25312c;
}

.material-table tbody tr:nth-child(odd) td {
  background: #202b27;
}

.material-table .is-hit,
.material-table .material-result-cell,
.material-table .is-current-level {
  background: #b83643 !important;
  color: #fff;
  font-weight: 900;
}

.material-table .is-omission {
  color: #6e7d76;
  font-weight: 600;
}

.material-traditional-table {
  width: max-content;
  min-width: 100%;
  border-top: 1px solid #111b17;
  border-left: 1px solid #111b17;
  background: #eef2ef;
  color: #18211d;
  table-layout: fixed;
  font-size: 11px;
}

.material-traditional-table th,
.material-traditional-table td {
  box-sizing: border-box;
  min-width: 31px;
  height: 27px;
  border-right: 1px solid #1b2520;
  border-bottom: 1px solid #1b2520;
  background: #f4f6f5;
  color: #1c2722;
  padding: 0 3px;
  font-weight: 600;
}

.material-traditional-table tbody tr:nth-child(odd) > th,
.material-traditional-table tbody tr:nth-child(odd) > td,
.material-traditional-table tbody tr:nth-child(even) > th,
.material-traditional-table tbody tr:nth-child(even) > td {
  background: #f4f6f5;
  color: #1c2722;
}

.material-traditional-table thead th {
  z-index: 8;
  background: #d9e1dd;
  color: #17201c;
  font-weight: 900;
}

.material-traditional-table thead tr:nth-child(2) th {
  top: 28px;
}

.material-traditional-table .traditional-date {
  position: sticky;
  z-index: 7;
  left: 0;
  min-width: 82px;
  background: #e3e9e6 !important;
  color: #4e5d56 !important;
  font-weight: 800;
}

.material-traditional-table .traditional-period {
  position: sticky;
  z-index: 7;
  left: 82px;
  min-width: 70px;
  background: #e7ece9;
  color: #256f93;
  font-weight: 900;
}

.material-traditional-table .traditional-draw {
  position: sticky;
  z-index: 7;
  left: 152px;
  min-width: 72px;
  background: #edf1ef;
  color: #1f2c26;
  font-weight: 900;
  box-shadow: 1px 0 0 #66736d;
}

.material-traditional-table thead .traditional-date,
.material-traditional-table thead .traditional-period,
.material-traditional-table thead .traditional-draw {
  z-index: 10;
}

.material-traditional-table .traditional-group-title {
  min-width: 80px;
  border-bottom-width: 1px;
  background: #cdd8d2;
  color: #1e2a24;
  font-size: 12px;
  font-weight: 900;
}

.material-kl8-shape thead tr:first-child .traditional-group-title {
  left: auto;
  text-align: left;
  padding-left: 10px;
}

.material-kl8-shape thead tr:first-child .traditional-group-title:last-child {
  left: auto;
  text-align: center;
  padding-left: 3px;
}

.material-traditional-table .traditional-tone-1 { background: #f7edbd !important; }
.material-traditional-table .traditional-tone-2 { background: #d8e5ef !important; }
.material-traditional-table .traditional-tone-3 { background: #d8eadc !important; }
.material-traditional-table .traditional-tone-4 { background: #eadccb !important; }

.material-traditional-table .traditional-section-start {
  border-left: 1px solid #46564e;
}

.material-traditional-table .traditional-section-end {
  border-right: 1px solid #46564e;
}

.material-span-table {
  width: 100%;
  min-width: max-content;
  border-top-width: 1px;
  border-left-width: 1px;
  font-size: 10px;
}

.material-span-table col.span-period-column { width: 60px; }
.material-span-table col.span-draw-column { width: 76px; }
.material-span-table col.span-relation-column,
.material-span-table col.span-metric-column { width: max(27px, calc((100vw - 170px) / 58)); }

.material-span-table th,
.material-span-table td {
  min-width: max(27px, calc((100vw - 170px) / 58));
  width: max(27px, calc((100vw - 170px) / 58));
  height: 26px;
  border-right: 1px solid #aeb7b2;
  border-bottom: 1px solid #aeb7b2;
  padding: 0 1px;
}

.material-span-table .traditional-date {
  left: 0;
  min-width: 64px;
  width: 64px;
}

.material-span-table .traditional-period {
  left: 0;
  min-width: 60px;
  width: 60px;
}

.material-span-table .traditional-draw {
  left: 60px;
  min-width: 76px;
  width: 76px;
  box-shadow: 1px 0 0 #7f8b85;
}

.material-span-table tbody .traditional-period,
.material-span-table tbody .traditional-draw,
.material-push-table tbody .traditional-period,
.material-push-table tbody .traditional-draw {
  background: #4f5955 !important;
}

.material-span-table tbody .traditional-period,
.material-push-table tbody .traditional-period {
  color: #8fd2ff !important;
}

.material-span-table tbody .traditional-draw,
.material-push-table tbody .traditional-draw {
  color: #fff !important;
}

.material-traditional-table .traditional-draw .chart3-open-grid {
  display: flex;
  width: 100%;
  gap: 2px;
}

.material-traditional-table .traditional-draw .chart3-open-digit {
  flex: 0 0 23px;
  width: 23px;
  min-width: 23px;
  height: 23px;
  justify-self: center;
}

.material-span-table .traditional-group-title,
.material-span-table .span-relation-title {
  min-width: 27px;
  border-bottom-width: 1px;
  font-size: 11px;
}

.material-span-table .span-relation-title,
.material-span-table .span-relation-cell {
  background: #e5e3ec !important;
}

.material-span-table .traditional-section-start {
  border-left: 1px solid #65746d !important;
}

.material-span-table .traditional-section-end {
  border-right: 1px solid #65746d !important;
}

.material-traditional-table .traditional-hit {
  background: #c83242 !important;
  color: #fff !important;
  font-weight: 900;
}

.material-span-table tbody .span-relation-cell.traditional-hit {
  background: #287bc1 !important;
  color: #fff !important;
}

.material-traditional-table .traditional-miss {
  color: #aab1ad;
  font-weight: 500;
}

.chart3-dialog.is-digit-game .material-span-table tbody td.traditional-miss {
  color: #c0c5c2 !important;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.material-traditional-table .traditional-empty {
  background: #f1f3f2 !important;
  color: #c5cbc8;
}

.material-traditional-table .traditional-stat-cell {
  min-width: 50px;
  background: #dce6e1;
  color: #1d2a24;
  font-weight: 900;
}

.material-traditional-table .traditional-stat-cell.is-active {
  background: #d9e6ec;
  color: #0064c8;
}

.material-traditional-table .traditional-push-value {
  color: #111b17;
  font-weight: 900;
}

.material-traditional-table .traditional-disappearing {
  background: #ffe500 !important;
  color: #d52331 !important;
  font-weight: 900;
}

.material-traditional-table .traditional-current-row th,
.material-traditional-table .traditional-current-row td {
  background: #dce8e2 !important;
  color: #21312a;
  font-weight: 900;
}

.material-traditional-table .traditional-stat-row th,
.material-traditional-table .traditional-stat-row td {
  background: #59615f !important;
  color: #fff !important;
  font-weight: 800;
}

.material-push-table tbody .traditional-zero {
  border: 1px solid #98a49e !important;
  background: #f4f6f5 !important;
  color: #aeb7b2 !important;
  font-weight: 500;
}

.material-traditional-table tfoot th[colspan] {
  left: 0;
  z-index: 8;
  min-width: 224px;
}

.material-distribution thead th:first-child,
.material-distribution tbody th:first-child,
.material-distribution tfoot th:first-child {
  position: sticky;
  left: 0;
  z-index: 9;
  min-width: 70px;
  background: #e7ece9;
}

.material-traditional-table tfoot th,
.material-traditional-table tfoot td {
  position: sticky;
  z-index: 4;
  bottom: 0;
  border-top: 1px solid #59675f;
}

.material-traditional-table tfoot tr:nth-last-child(2) > * {
  bottom: 27px;
}

.material-traditional-table tfoot tr:nth-last-child(3) > * {
  bottom: 54px;
}

.material-push-table td,
.material-push-table th {
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
}

.material-push-table .traditional-date {
  min-width: 86px;
  width: 86px;
  left: 0;
}

.material-push-table .traditional-period {
  min-width: 72px;
  width: 72px;
  left: 0;
}

.material-push-table .traditional-draw {
  min-width: 76px;
  width: 76px;
  left: 72px;
  box-shadow: none;
}

.material-push-switches {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}

.material-push-mode-switches {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.material-push-switches button {
  min-height: 29px;
  border: 1px solid #9aa9a2;
  border-radius: 2px;
  background: #edf1ef;
  color: #24342c;
  padding: 3px 9px;
  font-weight: 800;
}

.material-push-switches button[aria-pressed="true"] {
  border-color: #9f2331;
  background: #c73745;
  color: #fff;
}

.material-kl8-shape-switches {
  display: grid;
  grid-auto-columns: minmax(76px, max-content);
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 40px);
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: min(1460px, 78vw);
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.chart3-dialog.is-kl8-shape-material .chart3-material-toolbar {
  flex-wrap: wrap;
}

.chart3-dialog.is-kl8-shape-material .chart3-material-toolbar .chart3-material-controls {
  flex: 1 0 100%;
  width: 100%;
  flex-wrap: wrap;
  overflow: visible;
}

.chart3-dialog.is-kl8-shape-material .material-kl8-shape-switches {
  order: -1;
  grid-auto-columns: auto;
  grid-template-columns: repeat(18, minmax(64px, 1fr));
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.chart3-dialog.is-kl8-shape-material .material-kl8-shape-switches button {
  min-width: 68px;
  padding-right: 4px;
  padding-left: 4px;
}

.chart3-dialog.is-kl8-shape-material .material-kl8-shape-switches button small {
  display: none;
}

.chart3-dialog.is-kl8-shape-material .material-controls-note {
  flex: 1 0 100%;
  margin-left: 0;
}

.chart3-material-controls .material-kl8-shape-switches button {
  display: grid;
  height: 40px;
  min-width: 76px;
  align-content: center;
  border-color: #568d82;
  border-radius: 2px;
  background: #173f39;
  color: #f1faf7;
  padding: 2px 7px;
  line-height: 1.05;
  box-shadow: inset 0 -2px 0 rgba(1, 25, 21, 0.36);
}

.material-kl8-shape-switches button span {
  font-size: 12px;
  font-weight: 900;
}

.material-kl8-shape-switches button small {
  color: #b9d4ce;
  font-size: 8px;
  font-weight: 800;
}

.chart3-material-controls .material-kl8-shape-switches button[aria-pressed="true"] {
  border-color: #ff8f97;
  background: #c32e3b;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(255, 125, 134, 0.24);
}

.material-kl8-shape-switches button[aria-pressed="true"] small {
  color: #fff4f5;
}

.material-push-digits {
  flex: 0 0 auto;
  flex-basis: auto;
  flex-wrap: nowrap;
  margin-left: 10px;
}

.material-push-digits button {
  min-width: 61px;
}

.material-push-position-control {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 5px;
}

.material-push-position-label {
  display: inline-flex;
  height: 29px;
  flex: 0 0 auto;
  align-items: center;
  color: #35423c;
  font-size: 12px;
  font-weight: 900;
}

.material-push-aligned-grid {
  display: grid;
  grid-template-columns: repeat(10, 61px);
  grid-auto-rows: 29px;
  flex: 0 0 auto;
  gap: 3px;
}

.material-push-aligned-grid button {
  box-sizing: border-box;
  width: 61px;
  min-width: 61px;
  height: 29px;
  padding: 3px 4px;
}

.material-push-table {
  width: 1978px;
  min-width: 1978px;
  font-size: 10px;
}

.material-push-table col.push-period-column { width: 72px; }
.material-push-table col.push-draw-column { width: 76px; }
.material-push-table col.push-stat-column,
.material-push-table col.push-result-column { width: 60px; }
.material-push-table col.push-square-column { width: max(30px, calc((100vw - 280px) / 60)); }

.material-push-table thead th {
  white-space: nowrap;
}

.material-push-table th,
.material-push-table td {
  border-right-color: #aab3ae;
  border-bottom-color: #aab3ae;
}

.material-push-table tbody .traditional-empty {
  border: 1px solid #98a49e !important;
  background: #f4f6f5 !important;
  color: #aeb7b2 !important;
}

.material-push-table tbody .traditional-stat-cell.is-filtered-out {
  background: #f4f6f5 !important;
  color: #aeb7b2 !important;
}

.material-push-table thead .push-zone-count { background: #f3e8bd !important; }
.material-push-table thead .push-zone-group { background: #d9e4f2 !important; }
.material-push-table thead .push-zone-position { background: #e1e7ed !important; }
.material-push-table thead .push-zone-large { background: #d4e5f2 !important; }
.material-push-table thead .push-zone-middle { background: #d6e9dc !important; }
.material-push-table thead .push-zone-small { background: #efdfd2 !important; }
.material-push-table thead .push-zone-permutation { background: #dfe7e3 !important; }
.material-push-table thead .push-zone-parity { background: #e9d9e3 !important; }
.material-push-table thead .push-zone-size { background: #d8e9d7 !important; }
.material-push-table thead .push-zone-sum { background: #efdbb8 !important; }
.material-push-table thead .push-zone-tail { background: #f2e4c7 !important; }
.material-push-table thead .push-zone-target-span { background: #d8e6ed !important; }

.material-push-table thead .push-result-column {
  background: #e2b8c1 !important;
  color: #67202b !important;
}

.material-push-table thead .push-stat-column {
  background: #bfd3e5 !important;
  color: #244f72 !important;
}

.material-push-table tbody .push-result-column {
  background: #f8ecef !important;
  color: transparent !important;
  font-weight: 500;
}

.material-push-table thead .push-stat-column,
.material-push-table tbody .push-stat-column,
.material-push-table thead .push-result-column,
.material-push-table tbody .push-result-column,
.material-push-table thead .traditional-stat-cell,
.material-push-table tbody .traditional-stat-cell {
  min-width: 60px;
  width: 60px;
}

.material-push-table tbody .traditional-stat-cell.is-active {
  background: #3f78ad !important;
  color: #fff !important;
}

.material-push-table tbody .traditional-push-count.traditional-push-value {
  background: #2f8f5b !important;
  color: #fff !important;
}

.material-push-table tbody .push-hidden-cell {
  color: transparent !important;
  box-shadow: none !important;
}

.material-push-table tbody .push-plain-value {
  color: #fff !important;
  font-weight: 900;
}

.material-push-table tbody .push-zone-count.push-hidden-cell { background: #fbf5dc !important; }
.material-push-table tbody .push-zone-group.push-hidden-cell { background: #edf3f9 !important; }
.material-push-table tbody .push-zone-position.push-hidden-cell { background: #f0f3f6 !important; }
.material-push-table tbody .push-zone-large.push-hidden-cell { background: #eaf3f9 !important; }
.material-push-table tbody .push-zone-middle.push-hidden-cell { background: #edf6f0 !important; }
.material-push-table tbody .push-zone-small.push-hidden-cell { background: #f8f0e9 !important; }
.material-push-table tbody .push-zone-permutation.push-hidden-cell { background: #eff4f1 !important; }
.material-push-table tbody .push-zone-parity.push-hidden-cell { background: #f6eef3 !important; }
.material-push-table tbody .push-zone-size.push-hidden-cell { background: #eef6ed !important; }
.material-push-table tbody .push-zone-sum.push-hidden-cell { background: #faf1df !important; }
.material-push-table tbody .push-zone-tail.push-hidden-cell { background: #faf4e7 !important; }
.material-push-table tbody .push-zone-target-span.push-hidden-cell { background: #edf4f7 !important; }
.material-push-table tbody .push-stat-column.push-hidden-cell { background: #eaf4ee !important; }
.material-push-table tbody .push-result-column.push-hidden-cell { background: #f8ecef !important; }

.material-push-table tbody .push-zone-group.push-plain-value { background: #5579a6 !important; }
.material-push-table tbody .push-zone-position.push-plain-value { background: #687f98 !important; }
.material-push-table tbody .push-zone-large.push-plain-value { background: #4682ad !important; }
.material-push-table tbody .push-zone-middle.push-plain-value { background: #57846a !important; }
.material-push-table tbody .push-zone-small.push-plain-value { background: #ad7659 !important; }
.material-push-table tbody .push-zone-permutation.push-plain-value { background: #667f76 !important; }
.material-push-table tbody .push-zone-parity.push-plain-value { background: #966480 !important; }
.material-push-table tbody .push-zone-size.push-plain-value { background: #6f9169 !important; }
.material-push-table tbody .push-zone-sum.push-plain-value { background: #ad7c3c !important; }
.material-push-table tbody .push-zone-tail.push-plain-value { background: #9f7942 !important; }
.material-push-table tbody .push-zone-target-span.push-plain-value { background: #567e91 !important; }

.material-push-table .traditional-push-count,
.material-push-table .traditional-push-result,
.material-push-table .traditional-push-mark {
  box-sizing: border-box;
  min-width: max(30px, calc((100vw - 280px) / 60));
  width: max(30px, calc((100vw - 280px) / 60));
  height: 30px;
  color: #17231d;
  font-weight: 900;
  text-align: center;
}

.material-push-table .traditional-stat-cell {
  box-sizing: border-box;
  min-width: max(30px, calc((100vw - 280px) / 60));
  width: max(30px, calc((100vw - 280px) / 60));
  height: 30px;
}

.material-push-table tbody .traditional-stat-cell.is-active,
.material-push-table tbody .traditional-push-count.traditional-push-value,
.material-push-table tbody .traditional-push-mark {
  border: 1px solid #aab3ae;
}

.material-push-table tbody tr > td:not(.traditional-draw) {
  box-sizing: border-box;
  min-width: max(30px, calc((100vw - 280px) / 60));
  width: max(30px, calc((100vw - 280px) / 60));
  height: 30px;
  border: 1px solid #aab3ae;
}

.material-push-table tbody tr > td.push-hidden-cell {
  color: transparent !important;
}

.chart3-dialog.is-digit-game .material-push-table tbody td.push-omission-cell {
  color: #c0c5c2 !important;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.material-push-table thead .traditional-section-start,
.material-push-table tbody .traditional-section-start {
  border-left: 2px solid #52635b !important;
}

.material-push-table tbody tr > td.push-hidden-cell.traditional-section-start {
  border-left: 2px solid #52635b !important;
}

.material-push-table thead .push-stat-column.traditional-section-start,
.material-push-table tbody .push-stat-column.traditional-section-start,
.material-push-table tbody tr > td.push-stat-column.push-hidden-cell.traditional-section-start {
  border-left: 1px solid #aab3ae !important;
}

.material-push-table tbody .traditional-period {
  background: #959b99 !important;
  color: #345f77 !important;
}

.material-push-table tbody .traditional-push-mark {
  background: #c83242 !important;
  color: #fff !important;
}

.material-push-table tbody .traditional-push-result.traditional-push-mark {
  background: #c83242 !important;
  color: #fff !important;
}

.material-push-table .traditional-draw .chart3-open-grid {
  gap: 4px;
}

.material-push-table .traditional-draw .chart3-open-digit {
  border: 1px solid #9eaaa5;
  border-radius: 50%;
  box-shadow: none;
}

.material-push-table .traditional-draw .chart3-open-digit + .chart3-open-digit {
  border-left-width: 1px;
}

.material-push-table tbody .traditional-disappearing {
  background: #ffe500 !important;
  color: #d52331 !important;
}

.material-push-table tfoot .traditional-current-row th,
.material-push-table tfoot .traditional-current-row td {
  min-height: 30px;
  background: #959b99 !important;
  color: #fff !important;
}

.material-push-table tfoot td.traditional-disappearing {
  background: #ffe500 !important;
  color: #d52331 !important;
  font-weight: 900;
}

.chart3-dialog.is-push-material .material-push-scroll {
  max-height: none;
}

/* 推动图首屏保持轻量滚动；指标区收起后只保留一行指标表头吸顶。 */
.chart3-dialog.is-push-material .material-push-scroll {
  max-height: min(64vh, 720px);
  overflow: auto;
}
.chart3-dialog.is-push-material .material-push-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
}
.chart3-dialog.is-push-material[data-controls-collapsed="true"] .material-push-table thead tr:first-child {
  display: none;
}
.chart3-dialog.is-push-material[data-controls-collapsed="true"] .material-push-table thead tr:nth-child(2) th {
  top: 0;
  z-index: 10;
}

.chart3-dialog.is-material-chart .material-span-scroll,
.chart3-dialog.is-push-material .material-push-scroll {
  max-width: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.material-kl8-shape th,
.material-kl8-shape td,
.material-distribution th,
.material-distribution td {
  min-width: max(30px, fit-content);
  width: max(30px, fit-content);
  padding: 0;
}

.material-distribution {
  --material-kl8-stat-count: 80;
}

.material-kl8-shape .traditional-kl8-draw {
  min-width: max(400px, calc(100vw * 0.22));
  width: max(400px, calc(100vw * 0.22));
  font-family: Consolas, monospace;
  font-size: 10px;
  word-spacing: 1px;
}

.material-kl8-shape .traditional-shape-count {
  background: #d7e9df;
  color: #1f3a2e;
  font-weight: 900;
}

.material-kl8-shape .traditional-not-applicable {
  background: #edf1ef;
  color: #a0aaa5;
}

.material-kl8-shape .traditional-probability-row td {
  min-width: 43px;
  font-size: 8px;
  white-space: nowrap;
}

.material-dlt-trend th,
.material-dlt-trend td {
  min-width: 45px;
  width: 45px;
  padding: 0 3px;
}

.material-dlt-trend .traditional-date {
  min-width: 82px;
  width: 82px;
}

.material-dlt-trend .traditional-period {
  min-width: 78px;
  width: 78px;
}

.material-dlt-trend thead th small {
  display: block;
  color: #5d6d66;
  font-size: 8px;
  line-height: 1;
}

.material-dlt-draw {
  color: #fff;
  font-weight: 900;
}

.material-dlt-front {
  background: #c83240 !important;
}

.material-dlt-back {
  background: #287bc1 !important;
}

.material-dlt-metric {
  min-width: 54px !important;
  width: 54px !important;
}

.material-dlt-metric strong,
.material-dlt-metric small {
  display: block;
  line-height: 1.05;
}

.material-dlt-metric strong {
  font-size: 11px;
}

.material-dlt-metric small {
  color: inherit;
  font-size: 8px;
  opacity: 0.9;
}

.material-dlt-trend tfoot td {
  min-width: 54px;
  font-size: 8px;
  white-space: nowrap;
}

.material-traditional-table .traditional-distribution-count {
  background: #d8e8df !important;
  color: #2b4236;
  font-weight: 800;
}

.material-traditional-table .traditional-current-level {
  color: #fff;
}

.material-narrow-table {
  width: fit-content;
  max-width: 100%;
}

.material-symmetry-table {
  width: 100%;
}

.material-symmetry-table th,
.material-symmetry-table td {
  min-width: 86px;
}

.material-pyramid-table .traditional-combination {
  min-width: 150px;
  font-family: Consolas, monospace;
  font-weight: 900;
}

.material-push-matrix td {
  width: 74px;
  min-width: 74px;
  height: 48px;
}

.material-push-matrix td b,
.material-push-matrix td small {
  display: block;
}

.material-push-matrix td b {
  color: #fff;
  font-size: 15px;
}

.material-push-matrix td small {
  color: #b8c6bf;
  font-size: 10px;
}

.material-heat-0 { background: #202b27 !important; }
.material-heat-1 { background: #294037 !important; }
.material-heat-2 { background: #315546 !important; }
.material-heat-3 { background: #52633a !important; }
.material-heat-4 { background: #8a6736 !important; }
.material-heat-5 { background: #9f3540 !important; }

.material-current-driving,
.material-pyramid-base {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
}

.material-current-driving > div,
.material-pyramid-base > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.material-current-driving span,
.material-pyramid-base span {
  color: #afbeb6;
  font-size: 12px;
  font-weight: 800;
}

.material-current-driving strong,
.material-pyramid-base strong {
  color: #ffe66a;
  font-size: 14px;
}

.material-number-balls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
}

.material-number-balls b {
  display: inline-flex;
  width: 20px;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3afb6;
  border-radius: 50%;
  background: #bd3742;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.material-details,
.material-algorithm {
  border: 1px solid #43534c;
  border-radius: 4px;
  background: #202b27;
  color: #c6d1cb;
}

.material-details summary,
.material-algorithm summary {
  padding: 8px 10px;
  color: #f0d66a;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.material-details .material-table-scroll {
  border: 0;
  border-top: 1px solid #43534c;
  border-radius: 0;
}

.material-algorithm p {
  margin: 0;
  border-top: 1px solid #34413b;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.7;
}

.material-kl8-shape .material-kl8-draw {
  max-width: 620px;
  color: #f2f5f3;
  font-family: Consolas, monospace;
  font-size: 11px;
  word-spacing: 2px;
}

.material-kl8-shape .material-shape-value {
  min-width: 52px;
  color: #fff;
  font-weight: 900;
}

.material-current-omission {
  display: grid;
  gap: 7px;
  padding: 9px 11px;
}

.material-current-omission > strong {
  color: #f0d66a;
}

.material-current-omission > div {
  display: grid;
  grid-template-columns: repeat(20, minmax(44px, 1fr));
  gap: 3px;
}

.material-current-omission i {
  display: grid;
  min-height: 37px;
  place-items: center;
  border: 1px solid #46564e;
  background: #1d2723;
  color: #8fa098;
  font-size: 9px;
  font-style: normal;
}

.material-current-omission i b {
  color: #fff;
  font-size: 12px;
}

.material-distribution th,
.material-distribution td {
  width: 33px;
  min-width: 33px;
  height: 26px;
  padding: 0;
}

.material-distribution th:first-child {
  width: 58px;
  min-width: 58px;
}

.material-distribution .has-count {
  background: #365247 !important;
  color: #e8f0ec;
}

.material-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 7px;
}

.material-process-card {
  display: grid;
  gap: 8px;
  border-left-width: 5px;
  padding: 10px;
}

.material-process-card > strong {
  color: #f1dc75;
}

.material-reference-candidates {
  border-left: 1px solid #52615b;
  padding-left: 14px;
}

.material-score-table {
  max-width: 680px;
}

.material-score-table tr.is-candidate td,
.material-score-table tr.is-candidate th {
  background: #9f3540 !important;
  color: #fff;
}

.material-split-view {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(620px, 1.35fr) minmax(420px, 0.65fr);
  gap: 9px;
}

.material-transition-matrix td {
  min-width: 54px;
}

.material-transition-matrix .is-drop { box-shadow: inset 0 0 0 2px #d44a55; }
.material-transition-matrix .is-diagonal { background: #71552e !important; }
.material-transition-matrix .is-symmetry { color: #7adab7; font-weight: 900; }

.material-pattern-badge {
  display: inline-block;
  margin: 1px 2px;
  border: 1px solid #677970;
  border-radius: 3px;
  background: #33463e;
  color: #f0df86;
  padding: 2px 5px;
  font-size: 10px;
}

.material-pyramid-base {
  border-color: #79682d;
  background: #333424;
}

.material-pyramid {
  display: grid;
  gap: 8px;
}

.material-pyramid-layer {
  display: grid;
  gap: 7px;
  border: 1px solid #48574f;
  border-radius: 4px;
  background: #222e29;
  padding: 8px;
}

.material-pyramid-layer header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.material-pyramid-layer header strong {
  color: #f1dc75;
  font-size: 14px;
}

.material-pyramid-layer header span {
  color: #93a49b;
  font-size: 11px;
}

.material-pyramid-layer > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 3px;
}

.material-pyramid-layer i {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid #44564d;
  background: #19231f;
  padding: 0 7px;
  font-style: normal;
}

.material-pyramid-layer i b {
  color: #e9efeb;
  font-family: Consolas, monospace;
  font-size: 11px;
}

.material-pyramid-layer i small {
  color: #e0c65f;
}

.material-pyramid-layer--3 {
  margin-inline: 3%;
}

.material-pyramid-layer--4 {
  margin-inline: 7%;
}

.material-empty {
  display: grid;
  min-height: 260px;
  place-content: center;
  gap: 8px;
  color: #aab9b1;
  text-align: center;
}

.material-empty strong {
  color: #f0d66a;
  font-size: 18px;
}

.chart3-dialog.is-material-chart .chart3-table-scroll {
  background: #18231f;
}

.chart3-dialog.is-material-chart .chart3-footer {
  border-top-color: #4b5a53;
  background: #24312c;
  color: #acbab3;
}

.chart3-dialog.is-material-chart .chart3-footer strong {
  color: #f0d66a;
}

.chart3-dialog.is-material-chart .chart3-footer > span:last-child {
  display: none;
}

@media (max-width: 760px) {
  .chart3-material-tab {
    min-width: 70px;
    padding: 0 8px;
    font-size: 11px;
  }

  .chart3-material-controls {
    align-items: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .chart3-material-controls .material-control-wide {
    flex-basis: 100%;
  }

  .chart3-material-controls .material-control-wide input {
    width: min(240px, 58vw);
  }

  .material-controls-note {
    width: 100%;
    margin-left: 0;
  }

  .chart3-material-stage {
    padding: 7px;
  }

  .material-summary-grid,
  .material-metric-grid,
  .material-metric-grid--compact,
  .material-metric-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-summary-block {
    grid-template-columns: repeat(2, 1fr);
  }

  .material-summary-block > strong,
  .material-span-counts {
    grid-column: 1 / -1;
  }

  .material-span-counts {
    grid-template-columns: repeat(5, minmax(28px, 1fr));
  }

  .material-current-driving,
  .material-pyramid-base {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-reference-candidates {
    border-top: 1px solid #52615b;
    border-left: 0;
    padding-top: 8px;
    padding-left: 0;
  }

  .material-process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .material-current-omission > div {
    grid-template-columns: repeat(8, minmax(34px, 1fr));
  }

  .material-split-view {
    grid-template-columns: 1fr;
  }

  .material-pyramid-layer--3,
  .material-pyramid-layer--4 {
    margin-inline: 0;
  }
}

.chart3-dialog.is-lotto #chart3ClearPredictions {
  border-color: #b84a54;
  background: #c7434e;
  color: #fff;
}

.chart3-dialog:not(.is-lotto) [data-chart3-view="draw"] {
  display: none;
}

.chart3-table .chart3-indicator-band--1 { background-color: #d4e6dc !important; }
.chart3-table .chart3-indicator-band--2 { background-color: #efe0bd !important; }
.chart3-table .chart3-indicator-band--3 { background-color: #d1e1ef !important; }
.chart3-table .chart3-indicator-band--4 { background-color: #ebd1d7 !important; }
.chart3-table .chart3-indicator-band--5 { background-color: #cee5e0 !important; }
.chart3-table .chart3-indicator-band--6 { background-color: #ead7c4 !important; }
.chart3-table .chart3-indicator-band--7 { background-color: #dbd3e8 !important; }

.chart3-table .chart3-indicator-band.is-band-start,
.chart3-table .chart3-lotto-band.is-band-start {
  border-left: 1px solid #65746d;
}

.chart3-table .chart3-indicator-band.is-band-end,
.chart3-table .chart3-lotto-band.is-band-end {
  border-right: 1px solid #65746d;
}

.chart3-table .chart3-position-section,
.chart3-table .chart3-position-start {
  border-left: 1px solid #65746d;
}

.chart3-table .chart3-position-section,
.chart3-table .chart3-position-end {
  border-right: 1px solid #65746d;
}

.chart3-table .chart3-indicator-section,
.chart3-table .chart3-lotto-zone-header {
  border-left: 1px solid #65746d;
  border-right: 1px solid #65746d;
}

.material-traditional-table tbody tr.chart3-decade-row > * {
  border-bottom: 1px solid #65746d !important;
}

.chart3-table [data-group="digit-position-1"] { background: #efdce0 !important; }
.chart3-table [data-group="digit-position-2"] { background: #dbe8f3 !important; }
.chart3-table [data-group="digit-position-3"] { background: #d8ece3 !important; }
.chart3-table [data-group="digit-position-4"] { background: #eee2cf !important; }
.chart3-table [data-group="digit-position-5"] { background: #e3ddec !important; }

.chart3-table .chart3-position-section--1 { background: #dfbdc4 !important; }
.chart3-table .chart3-position-section--2 { background: #bdd3e6 !important; }
.chart3-table .chart3-position-section--3 { background: #bcdbc8 !important; }
.chart3-table .chart3-position-section--4 { background: #dfcca9 !important; }
.chart3-table .chart3-position-section--5 { background: #cec4df !important; }

.chart3-table .chart3-lotto-band--1 { background-color: #d4e6dc !important; }
.chart3-table .chart3-lotto-band--2 { background-color: #efe0bd !important; }
.chart3-table .chart3-lotto-band--3 { background-color: #d1e1ef !important; }
.chart3-table .chart3-lotto-band--4 { background-color: #ebd1d7 !important; }
.chart3-table .chart3-lotto-band--5 { background-color: #cee5e0 !important; }
.chart3-table .chart3-lotto-band--6 { background-color: #ead7c4 !important; }
.chart3-table .chart3-lotto-band--7 { background-color: #dbd3e8 !important; }
.chart3-table .chart3-lotto-band--8 { background-color: #cce4dc !important; }
.chart3-table .chart3-lotto-band--9 { background-color: #ead2c1 !important; }

.chart3-table .chart3-full-indicator-cell.is-hit {
  background: #bd3742 !important;
  color: #fff;
  font-weight: 900;
}

/* 批182补：3D/排三/排五“胆码”列统一使用图表底色，
   取消命中方框，只显示单元格中的圆球；胆码球本身的红色继续保留。 */
.chart3-dialog.is-digit-game .chart3-table .chart3-full-indicator-cell.chart3-form-DM,
.chart3-dialog.is-digit-game .chart3-table .chart3-full-indicator-cell.chart3-form-DM.is-hit {
  background: #d4e6dc !important;
  color: #365b60 !important;
}

.chart3-lotto-reordered-header {
  background: #cfd9d4 !important;
  color: #2f3d37 !important;
}

.chart3-draw-groups,
.chart3-draw-zone {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.chart3-draw-groups {
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 2px 5px;
  white-space: nowrap;
}

.chart3-draw-zone {
  flex-wrap: nowrap;
}

.chart3-draw-number {
  display: inline-flex;
  width: 20px;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.chart3-table .chart3-draw-number--primary {
  background: #ce303a !important;
}

.chart3-table .chart3-draw-number--secondary {
  background: #287bc1 !important;
}

.chart3-relation-button[aria-pressed="true"] {
  border-color: #fff0a8;
  background: #a02f45;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 240, 168, 0.24);
}

.chart3-ball.is-relation-consecutive:not(.is-repeat-number),
.chart3-draw-number.is-relation-consecutive,
.chart3-open-digit.is-relation-consecutive:not(.is-repeat) {
  border-color: #f1e6ff !important;
  background: #7c3aed !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.26), 0 1px 3px rgba(0, 0, 0, 0.28);
}

.chart3-ball.is-relation-diagonal:not(.is-repeat-number),
.chart3-draw-number.is-relation-diagonal,
.chart3-open-digit.is-relation-diagonal:not(.is-repeat) {
  border-color: #fff2d9 !important;
  background: #df7415 !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(223, 116, 21, 0.24), 0 1px 3px rgba(0, 0, 0, 0.28);
}

.chart3-ball.is-relation-drop:not(.is-repeat-number),
.chart3-draw-number.is-relation-drop,
.chart3-open-digit.is-relation-drop:not(.is-repeat) {
  border-color: #d9fff0 !important;
  background: #13865b !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(19, 134, 91, 0.24), 0 1px 3px rgba(0, 0, 0, 0.28);
}

.chart3-draw-separator {
  color: #6f7c76;
  font-weight: 900;
}

.chart3-draw-hidden {
  color: #7a8781;
  font-size: 11px;
  font-weight: 800;
}

.chart3-draw.is-hidden {
  color: #7a8781;
  text-align: center;
}

.chart3-dialog {
  border-color: #617d7c;
  background: #0d191a;
}

.chart3-header {
  border-bottom-color: #557a78;
  background: #183a38;
}

.chart3-controls {
  border-bottom-color: #4f7471;
  background: #17312f;
  box-shadow: inset 0 -1px 0 rgba(3, 14, 15, 0.55);
}

.chart3-control-label {
  color: #d4e5e1;
}

.chart3-control-button,
.chart3-game-button,
.chart3-close {
  border-color: #5f8194;
  background: #31596d;
  color: #f7fbff;
  box-shadow: inset 0 -2px 0 rgba(3, 18, 27, 0.24);
}

.chart3-control-button:hover,
.chart3-control-button:focus-visible,
.chart3-game-button:hover,
.chart3-close:hover {
  border-color: #91c1d8;
  background: #3d7189;
}

.chart3-control-button[aria-pressed="true"],
.chart3-control-button--primary[aria-pressed="true"],
.chart3-game-button[aria-pressed="true"] {
  border-color: #ff7d86;
  background: #c32e3b;
  color: #fff;
}

.chart3-omission-cell.is-miss-warm,
.chart3-full-indicator-cell.is-miss-warm {
  background: #ead995 !important;
  color: #6d5a1f !important;
  font-weight: 800 !important;
}

.chart3-omission-cell.is-miss-hot,
.chart3-full-indicator-cell.is-miss-hot {
  background: #d68782 !important;
  color: #5f1720 !important;
  font-weight: 900 !important;
}

.chart3-game-button[data-chart3-game="fc3d"],
.chart3-game-button[data-chart3-game="kl8"],
.chart3-game-button[data-chart3-game="ssq"] {
  border-color: #8f6f72;
  background: #78434a;
}

.chart3-game-button[data-chart3-game="pl3"],
.chart3-game-button[data-chart3-game="pl5"],
.chart3-game-button[data-chart3-game="dlt"] {
  border-color: #607e99;
  background: #345b78;
}

.chart3-game-button[aria-pressed="true"] {
  border-color: #ff8b93;
  background: #c32e3b;
}

@media (min-width: 1100px) {
  .chart3-dialog[open] {
    grid-template-rows: auto auto minmax(0, 1fr) 34px;
  }

  .chart3-header {
    min-height: 46px;
  }

  .chart3-controls {
    grid-template-columns: 1fr;
  }

  .chart3-controls__row {
    min-height: 29px;
  }
}

.chart3-export-button {
  border-color: #b99a42;
  background: #725f27;
  color: #fff5c7;
  box-shadow: inset 0 -2px 0 rgba(41, 31, 3, 0.28);
}

.chart3-export-button:hover,
.chart3-export-button:focus-visible {
  border-color: #f1cf69;
  background: #927930;
}

.chart3-kl8-matrix-button,
.chart3-material-controls button {
  border-color: #62aa80;
  background: #23724f;
  color: #fff;
}

.chart3-kl8-matrix-button:hover,
.chart3-kl8-matrix-button:focus-visible,
.chart3-material-controls button:hover,
.chart3-material-controls button:focus-visible {
  border-color: #8cddb0;
  background: #2d9064;
  color: #fff;
}

.chart3-material-tabs {
  border: 1px solid #547572;
  border-radius: 4px;
  background: #112724;
  padding: 4px;
}

.chart3-material-tab,
.material-push-switches button {
  border-color: #568d82;
  background: #245e56;
  color: #effaf7;
  box-shadow: inset 0 -2px 0 rgba(1, 28, 23, 0.26);
}

.chart3-material-tab:hover,
.chart3-material-tab:focus-visible,
.material-push-switches button:hover,
.material-push-switches button:focus-visible {
  border-color: #80c7b8;
  background: #327a70;
}

.chart3-material-tab[aria-pressed="true"],
.material-push-switches button[aria-pressed="true"] {
  border-color: #ff7d86;
  background: #c32e3b;
  color: #fff;
}

.chart3-material-controls {
  border-top-color: #52736e;
  background: #19322f;
  padding: 6px;
}

.chart3-material-controls label {
  color: #d5e5e1;
}

.chart3-material-stage,
.chart3-dialog.is-material-chart .chart3-table-scroll {
  background: #0b1718;
}

.chart3-material-stage::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  color: var(--chart-watermark-color-055, rgba(229, 235, 233, 0.055));
  content: "彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析\A\A彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析\A\A彩枢汇老唐专业分析　　彩枢汇老唐专业分析　　彩枢汇老唐专业分析";
  font-size: 15px;
  font-weight: 900;
  line-height: 10;
  text-align: center;
  white-space: pre-wrap;
  pointer-events: none;
  inset: 10%;
  transform: rotate(-8deg) scale(0.8);
}

.chart3-dialog.is-compact-material-table[open] {
  height: calc(100vh - 12px) !important;
  max-height: none;
  grid-template-rows: 48px auto minmax(0, 1fr) 34px;
}

.chart3-dialog.is-compact-material-table .chart3-table-scroll {
  max-height: none;
}

.chart3-dialog.is-compact-material-table .chart3-material-stage {
  min-height: 100%;
  padding: 10px;
}

.chart3-dialog.is-compact-material-table .material-chart-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 760px) {
  .chart3-material-toolbar {
    flex-wrap: wrap;
    overflow: visible;
  }

  .chart3-material-toolbar .chart3-material-tabs,
  .chart3-material-toolbar .chart3-inline-display-controls,
  .chart3-material-toolbar .chart3-material-controls {
    width: 100%;
  }

  .material-kl8-shape-switches {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  .chart3-dialog.is-kl8-shape-material .material-kl8-shape-switches {
    grid-template-columns: repeat(18, 64px);
  }
}

.material-chart-shell {
  border: 1px solid #3e5c58;
  border-radius: 4px;
  background: #132320;
  padding: 7px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}

.material-kl8-shape-shell,
.material-kl8-table-area {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.material-kl8-table-area {
  flex: 1 1 auto;
}

#chartFunction3Close.chart3-close {
  min-width: 96px;
  height: 38px;
  border-color: #ff9ca4;
  background: #b72f3b;
  padding: 0 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(73, 8, 15, 0.42), 0 0 0 1px rgba(255, 224, 138, 0.2);
}

#chartFunction3Close.chart3-close:hover,
#chartFunction3Close.chart3-close:focus-visible {
  border-color: #ffe2a3;
  background: #d43a47;
  outline: 2px solid #fff3c4;
  outline-offset: 1px;
}

.chart3-material-toolbar > .global-chat-launcher--chart-toolbar {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .chart3-header__title {
    width: calc(100% - 102px);
  }

  .chart3-game-switch {
    width: 100%;
    max-width: 100%;
  }

  #chartFunction3Close.chart3-close {
    min-width: 88px;
    height: 36px;
    padding: 0 14px;
    font-size: 15px;
  }
}

.chart3-material-stage > .material-chart-shell,
.chart3-material-stage > .material-empty {
  position: relative;
  z-index: 1;
  width: 100%;
}

.chart3-dialog.is-material-chart .chart3-footer {
  border-top-color: #557a78;
  background: #183a38;
}

.chart3-table tr.chart3-prediction-row > td {
  background: #c8d8e2 !important;
  color: #24485f;
}

.chart3-table tr.chart3-prediction-row > td.chart3-prediction-cell:hover {
  background: #b8ccd9 !important;
}

.chart3-table thead .chart3-sticky-period,
.chart3-table tbody tr[data-chart3-data-row] > .chart3-sticky-period,
.material-traditional-table thead .traditional-period,
.material-traditional-table tbody .traditional-period {
  background: #c8d8e2 !important;
  color: #24485f !important;
}

.chart3-dialog.is-digit-game .chart3-open-grid {
  width: calc(var(--chart3-open-digit-count) * 30px);
  min-width: calc(var(--chart3-open-digit-count) * 30px);
  justify-content: center;
  gap: 4px;
}

.chart3-dialog.is-digit-game .chart3-open-digit {
  box-sizing: border-box;
  width: 23px;
  min-width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border: 1px solid #9eaaa5;
  border-radius: 50%;
  box-shadow: none;
}

.chart3-dialog.is-digit-game .chart3-open-digit + .chart3-open-digit {
  border-left-width: 1px;
}

.chart3-dialog.is-digit-game .material-span-table .traditional-draw,
.chart3-dialog.is-digit-game .material-push-table .traditional-draw {
  width: calc(var(--chart3-open-digit-count) * 30px);
  min-width: calc(var(--chart3-open-digit-count) * 30px);
}

.chart3-dialog.is-digit-game .material-push-table col.push-draw-column {
  width: calc(var(--chart3-open-digit-count) * 30px);
}

.chart3-dialog.is-digit-game .material-push-table {
  width: calc(1902px + var(--chart3-open-digit-count) * 30px);
  min-width: calc(1902px + var(--chart3-open-digit-count) * 30px);
}

.material-traditional-table tfoot .traditional-current-row > th,
.material-traditional-table tfoot .traditional-current-row > td {
  background: #c8d8e2 !important;
  color: #24485f !important;
}

/* 批167：快乐8形态统计——格子宽度刚好满足字符（去掉100vw公式导致的两侧大空白） */
.material-kl8-shape th,
.material-kl8-shape td {
  min-width: 0 !important;
  width: auto !important;
  padding: 0 4px !important;
  white-space: nowrap !important;
}
.material-kl8-shape table { width: max-content !important; }

/* 批170：单跨度/双跨度复合指标——命中格按具体跨度类型着色区分 */
.material-kl8-shape td.traditional-shape-lian { background: #6fa8dc !important; color: #fff !important; }
.material-kl8-shape td.traditional-shape-span3 { background: #93c47d !important; color: #17201c !important; }
.material-kl8-shape td.traditional-shape-span5 { background: #ffd966 !important; color: #17201c !important; }
.material-kl8-shape td.traditional-shape-span7 { background: #f6b26b !important; color: #17201c !important; }
.material-kl8-shape td.traditional-shape-chong { background: #dd7e6b !important; color: #fff !important; }
.material-kl8-shape td.traditional-shape-span2 { background: #b4a7d6 !important; color: #17201c !important; }
.material-kl8-shape td.traditional-shape-span4 { background: #c9daf8 !important; color: #17201c !important; }
.material-kl8-shape td.traditional-shape-span6 { background: #d0e0e3 !important; color: #17201c !important; }
.material-kl8-shape td.traditional-shape-span8 { background: #ead1dc !important; color: #17201c !important; }


/* 批DEV183：3D、排三、排五号码球与胆码底色统一。 */
.chart3-dialog.is-digit-game .chart3-table tbody tr[data-chart3-data-row] > .chart3-sticky-period,
.chart3-dialog.is-digit-game .chart3-table tbody tr[data-chart3-data-row] > .chart3-sticky-draw,
.chart3-dialog.is-digit-game .chart3-table tbody tr[data-chart3-data-row] > .chart3-draw-grid-cell {
  background: #e4efec !important;
  color: #365b60 !important;
  box-shadow: 1px 0 0 #b7ccc8;
}

.chart3-dialog.is-digit-game .chart3-open-grid {
  justify-content: center;
  gap: 4px;
}

.chart3-dialog.is-digit-game .chart3-open-digit,
.chart3-dialog.is-digit-game .material-traditional-table .traditional-draw .chart3-open-digit {
  box-sizing: border-box;
  width: 23px;
  min-width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border: 1px solid #3f7f89;
  border-left-width: 1px !important;
  border-right-width: 1px !important;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(47, 106, 116, 0.24);
}

.chart3-dialog.is-digit-game .chart3-open-digit:not(.is-repeat):not(.is-relation-consecutive):not(.is-relation-diagonal):not(.is-relation-drop):not(.is-chart-draw-linked):not(.is-chart-draw-muted) {
  background: #508f9b !important;
  color: #fff !important;
}

.chart3-dialog.is-digit-game .chart3-open-digit.is-repeat,
.chart3-dialog.is-digit-game .chart3-open-digit.is-repeat-number {
  border-color: #a62531 !important;
  background: #d23c48 !important;
  color: #fff !important;
}

.chart3-dialog.is-digit-game .chart3-table .chart3-full-indicator-cell.chart3-form-DM,
.chart3-dialog.is-digit-game .chart3-table .chart3-full-indicator-cell.chart3-form-DM.is-hit {
  background: #d4e6dc !important;
  color: #365b60 !important;
}

.chart3-dialog.is-digit-game .chart3-table .chart3-full-indicator-cell.chart3-form-DM .chart3-indicator-ball {
  background: #c62f3d !important;
  color: #fff !important;
}

.material-push-table .traditional-draw .chart3-open-grid,
.material-span-table .traditional-draw .chart3-open-grid {
  gap: 4px;
}

.material-push-table .traditional-draw .chart3-open-digit,
.material-span-table .traditional-draw .chart3-open-digit {
  border: 1px solid #9eaaa5;
  border-radius: 50%;
  box-shadow: none;
}

.chart3-dialog.is-digit-game .chart3-open-digit.is-relation-consecutive:not(.is-repeat),
.chart3-dialog.is-digit-game .chart3-open-digit.is-relation-diagonal:not(.is-repeat),
.chart3-dialog.is-digit-game .chart3-open-digit.is-relation-drop:not(.is-repeat) {
  color: #fff !important;
}

/* 批175：桌面版图表功能弹窗第一行——彩种/视图tabs+全部按键 单行禁折行（用户裁定：必须一行固定） */
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-material-toolbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin !important;
}
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-material-toolbar > * {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-material-tabs,
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-inline-display-controls,
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-controls__row {
  flex-wrap: nowrap !important;
  display: flex !important;
  flex: 0 0 auto !important;
  overflow-x: hidden !important;
}
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-material-tab,
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-control-button,
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-export-button,
body:not(.mobile-app-body) #chartFunction3Dialog .chart3-select {
  font-size: 12px !important;
  padding: 3px 8px !important;
  white-space: nowrap !important;
  height: auto !important;
}
