html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .historical-omission-panel[hidden],
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .lotto-n-out-n-panel[hidden],
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .desktop-dan-search-host[hidden],
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .dan-custom-search-panel[hidden],
html body [data-mobile-app] .historical-omission-panel[hidden],
html body [data-mobile-app] .lotto-n-out-n-panel[hidden],
html body [data-mobile-app] .dan-custom-search-panel[hidden] {
  display: none !important;
}

html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .desktop-official-analysis-workspace[data-analysis-view="custom"] > .lotto-n-out-n-panel,
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .desktop-official-analysis-workspace[data-analysis-view="omission"] > .desktop-dan-search-host,
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .desktop-official-analysis-workspace[data-analysis-view="omission"] > .dan-custom-search-panel,
html body [data-mobile-app] .mobile-official-analysis-workspace[data-analysis-view="custom"] > .lotto-n-out-n-panel,
html body [data-mobile-app] .mobile-official-analysis-workspace[data-analysis-view="omission"] > .desktop-dan-search-host,
html body [data-mobile-app] .mobile-official-analysis-workspace[data-analysis-view="omission"] > .dan-custom-search-panel,
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .desktop-digit-analysis-workspace[data-desktop-analysis-view="custom"] > .historical-omission-panel,
html body [data-mobile-app] .calculator-detail[data-mobile-analysis-view="custom"] > .historical-omission-panel,
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool .desktop-digit-analysis-workspace[data-desktop-analysis-view="omission"] > .desktop-dan-search-host,
html body [data-mobile-app] .calculator-detail[data-mobile-analysis-view="omission"] > .dan-custom-search-panel {
  display: none !important;
}

@media (max-width: 760px) {
  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app]) .dan-custom-search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 34px !important;
    gap: 5px 6px !important;
  }

  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app]) .dan-custom-search-field {
    display: grid !important;
    grid-template-columns: 66px minmax(0, 1fr) !important;
    grid-template-rows: 34px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app]) .dan-custom-search-mode {
    grid-column: 1 / -1 !important;
  }

  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app]) .dan-custom-search-field > span {
    display: block !important;
    flex: none !important;
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    overflow: visible !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app]) .dan-custom-search-field > :is(input, select) {
    display: block !important;
    flex: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 32px !important;
    padding-inline: 6px !important;
    font-size: 14px !important;
  }

  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app]) .dan-custom-search-position-row {
    grid-column: 1 / -1 !important;
  }

  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app])
  .dan-custom-search-position-row .dan-custom-search-field {
    grid-template-columns: 18px minmax(0, 1fr) !important;
    gap: 2px !important;
  }

  html body :is(#indicatorDrawer#indicatorDrawer.is-realtime-number-tool, [data-mobile-app])
  .dan-custom-search-position-row .dan-custom-search-field > span {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    font-size: 10px !important;
  }
}

@media (min-width: 901px) {
  html body #indicatorDrawer#indicatorDrawer.is-digit-compact-workspace
  .desktop-digit-analysis-workspace .dan-custom-search-panel.is-digit-search > .dan-custom-search-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 34px) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 34px !important;
    gap: 5px 8px !important;
    height: 73px !important;
    min-height: 73px !important;
  }

  html body #indicatorDrawer#indicatorDrawer.is-digit-compact-workspace
  .desktop-digit-analysis-workspace .dan-custom-search-panel.is-digit-search
  > .dan-custom-search-fields > .dan-custom-search-field {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-rows: 34px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  html body #indicatorDrawer#indicatorDrawer.is-digit-compact-workspace
  .desktop-digit-analysis-workspace .dan-custom-search-panel.is-digit-search
  > .dan-custom-search-fields > .dan-custom-search-field > span {
    display: block !important;
    box-sizing: border-box !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  html body #indicatorDrawer#indicatorDrawer.is-digit-compact-workspace
  .desktop-digit-analysis-workspace .dan-custom-search-panel.is-digit-search
  > .dan-custom-search-fields > .dan-custom-search-field > :is(input, select) {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 32px !important;
  }

  html body #indicatorDrawer#indicatorDrawer.is-official-lottery-workspace
  #desktopUnifiedLotteryCalculator:is(
    [data-desktop-unified-calculator="ssq"],
    [data-desktop-unified-calculator="dlt"]
  ) .dan-custom-search-panel.is-official-search > .dan-custom-search-fields {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 34px) !important;
    grid-auto-rows: 34px !important;
    gap: 3px 8px !important;
    height: 71px !important;
    min-height: 71px !important;
  }

  html body #indicatorDrawer#indicatorDrawer.is-official-lottery-workspace
  #desktopUnifiedLotteryCalculator:is(
    [data-desktop-unified-calculator="ssq"],
    [data-desktop-unified-calculator="dlt"]
  ) .dan-custom-search-panel.is-official-search .dan-custom-search-field {
    height: 34px !important;
    min-height: 34px !important;
  }
}
