/* Mobile v3 shell for indicator tool pages. Desktop behavior stays unchanged. */
.indicator-mobile-toolbar,
.indicator-filter-backdrop,
.indicator-filter-close,
.indicator-series-side-switch,
.indicator-series-mobile-help {
  display: none;
}

@media (max-width: 700px) {
  html,
  body.indicator-tool-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.indicator-tool-page main {
    padding: 12px 0 24px;
  }

  body.indicator-series .tool-seo-hero {
    width: auto;
    margin: 0 12px 12px;
    padding: 16px;
    border-radius: 16px;
  }

  body.indicator-series .tool-seo-hero__eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  body.indicator-series .tool-seo-hero h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
  }

  body.indicator-series .tool-seo-hero__lead {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.indicator-series .tool-seo-hero__tags,
  body.indicator-series .tool-seo-hero__actions {
    display: none;
  }

  body.indicator-tool-page .layout {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: block;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    overflow: visible;
  }

  body.indicator-tool-page .card,
  body.indicator-tool-page .statistics-cards-container,
  body.indicator-tool-page .series-main-content,
  body.indicator-tool-page .series-indicator-page {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.indicator-tool-page .indicator-mobile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(124, 159, 231, 0.18);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
  }

  .indicator-mobile-toolbar__meta {
    flex: 1 1 auto;
    min-width: 0;
  }

  .indicator-mobile-toolbar__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: rgba(121, 181, 255, 0.92);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .indicator-mobile-toolbar__title {
    display: block;
    color: #eef4ff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .indicator-mobile-toolbar__button {
    min-height: 44px;
    min-width: 96px;
    border: 0;
    border-radius: 10px;
    background: var(--accent-color);
    color: #fff;
    font: 800 13px/1 Roboto, "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(44, 100, 213, 0.25);
  }

  body.indicator-series .indicator-mobile-toolbar {
    flex-wrap: wrap;
  }

  body.indicator-series .indicator-series-mobile-help {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.indicator-series .indicator-series-mobile-help__button {
    min-height: 44px;
    border: 2px solid rgba(74, 163, 248, 0.78);
    border-radius: 10px;
    background: rgba(15, 35, 62, 0.72);
    color: rgba(238, 244, 255, 0.92);
    font: 700 13px/1 Roboto, "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
  }

  body.indicator-tool-page .indicator-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: none;
    background: rgba(2, 6, 16, 0.68);
    backdrop-filter: blur(8px);
  }

  body.indicator-tool-page.indicator-filters-open .indicator-filter-backdrop {
    display: block;
  }

  body.indicator-tool-page.indicator-filters-open {
    overflow: hidden;
  }

  body.indicator-tool-page #filters-container {
    position: fixed;
    --indicator-filter-top: 88px;
    --indicator-filter-bottom: 14px;
    top: calc(var(--indicator-filter-visual-offset-top, 0px) + var(--indicator-filter-top));
    right: 12px;
    bottom: auto;
    left: 12px;
    z-index: 10020;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: calc(100vh - var(--indicator-filter-top) - var(--indicator-filter-bottom)) !important;
    height: calc(var(--indicator-filter-visual-height, 100dvh) - var(--indicator-filter-top) - var(--indicator-filter-bottom)) !important;
    max-height: calc(100vh - var(--indicator-filter-top) - var(--indicator-filter-bottom)) !important;
    max-height: calc(var(--indicator-filter-visual-height, 100dvh) - var(--indicator-filter-top) - var(--indicator-filter-bottom)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 13px calc(34px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
    border: 1px solid rgba(124, 159, 231, 0.24);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
  }

  body.indicator-tool-page.indicator-filters-open #filters-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.indicator-tool-page #filters-container .indicator-filter-close {
    position: absolute;
    top: 15px;
    right: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
    font: 800 20px/1 Roboto, "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
  }

  body.indicator-tool-page #filters-container .filters-header {
    padding-right: 56px;
  }

  body.indicator-tool-page #filters-container .filters-header__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }

  body.indicator-tool-page #filters-container .filters-header__titlewrap {
    align-items: center;
    min-width: 0;
  }

  body.indicator-tool-page #filters-container .filters-header__toggles,
  body.indicator-tool-page #filters-container .sl-header-controls {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding-top: 18px;
    justify-content: flex-end;
  }

  body.indicator-tool-page #filters-container .filters-header__returns {
    max-width: none;
    flex-wrap: nowrap;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
  }

  body.indicator-line-strength #filters-container .filters-header__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 4px;
  }

  body.indicator-line-strength #filters-container .filters-header__title,
  body.indicator-game-count #filters-container .filters-header__title,
  body.indicator-traffic #filters-container .filters-header__title {
    margin: 0;
  }

  body.indicator-line-strength #filters-container #filters-help-btn,
  body.indicator-game-count #filters-container #filters-help-btn,
  body.indicator-traffic #filters-container #traffic-filters-help-btn {
    position: absolute;
    top: 15px;
    right: 65px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }

  body.indicator-line-strength #filters-container .filters-header__desc {
    margin-top: 2px;
  }

  body.indicator-line-strength #filters-container .sl-header-controls {
    width: 100%;
    padding-top: 0;
    justify-content: flex-start;
  }

  body.indicator-line-strength #filters-container .filters-header__returns {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  body.indicator-tool-page #filters-container .filters-header__desc {
    max-width: none;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 8px;
  }

  body.indicator-game-count #filters-container .filters-header__desc,
  body.indicator-traffic #filters-container .filters-header__desc {
    margin-top: 2px;
  }

  body.indicator-game-count #filters-container .filters-header__titlewrap,
  body.indicator-traffic #filters-container .filters-header__titlewrap {
    min-height: 30px;
    align-items: flex-start;
  }

  body.indicator-tool-page #filters-container .statistics-filter-options-container,
  body.indicator-tool-page #filters-container .series-filters,
  body.indicator-tool-page #filters-container .series-filters-row {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.indicator-tool-page #filters-container .statistics-filter-options-container {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  body.indicator-tool-page #filters-container .statistics-filter-option,
  body.indicator-tool-page #filters-container .series-field,
  body.indicator-tool-page #filters-container .series-field--outcomes {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  body.indicator-tool-page #filters-container .statistics-filter-option-label,
  body.indicator-tool-page #filters-container .series-label {
    width: auto;
    min-width: 0;
    color: rgba(203, 213, 225, 0.9);
    font-size: 12px;
    line-height: 1.2;
  }

  body.indicator-tool-page #filters-container .statistics-filter-option-input,
  body.indicator-tool-page #filters-container .select-wrapper,
  body.indicator-tool-page #filters-container .series-search,
  body.indicator-tool-page #filters-container .series-control,
  body.indicator-tool-page #filters-container .select-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.indicator-tool-page #filters-container .select-input,
  body.indicator-tool-page #filters-container .series-control,
  body.indicator-tool-page #filters-container .series-calendar .bmcal__toggle {
    height: 31px;
    min-height: 31px;
    border-radius: 8px;
    font-size: 13px;
  }

  body.indicator-tool-page #filters-container .select-dropdown {
    z-index: 10030;
    max-height: 220px;
  }

  body.indicator-tool-page #filters-container .range-separated {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 8px;
  }

  body.indicator-line-strength #filters-container .sl-range-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  body.indicator-tool-page #filters-container .range-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.indicator-tool-page #filters-container .statistics-buttons-row,
  body.indicator-tool-page #filters-container .series-buttons-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100% !important;
    max-width: none;
    margin: 6px 0 0 !important;
  }

  body.indicator-tool-page #filters-container .statistics-buttons-row > button,
  body.indicator-tool-page #filters-container .series-buttons-row > button {
    width: 100%;
    height: 36px;
  }

  body#f13.indicator-tool-page #filters-container .statistics-buttons-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 6px 0 0 !important;
    width: 100% !important;
    max-width: none !important;
    justify-content: stretch !important;
  }

  body#f13.indicator-tool-page #filters-container .statistics-buttons-row > .button-primary,
  body#f13.indicator-tool-page #filters-container .statistics-buttons-row > .button-secondary {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
  }

  body.indicator-tool-page #filters-container .statistics-selected-filters,
  body.indicator-tool-page #filters-container .series-selected-filters {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 11px;
    line-height: 1.32;
  }

  body.indicator-series .series-selected-filters__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.indicator-series .series-selected-filter-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  body.indicator-tool-page #filters-container .statistics-filter-option--selected,
  body.indicator-tool-page #filters-container #selected-filters-option,
  body.indicator-tool-page #filters-container .statistics-selected-filters-wrap,
  body.indicator-tool-page #filters-container .series-selected-filters-wrap {
    flex: 0 0 auto !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    overflow: visible;
    box-sizing: border-box;
  }

  body.indicator-tool-page #filters-container #selected-filters-option {
    margin-top: 6px;
  }

  body#f13.indicator-tool-page main > :is(#selected-filters-option, .indicator-selected-filters-summary) {
    display: block;
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto 0;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.55);
    overflow: hidden;
  }

  body#f13.indicator-tool-page main > :is(#selected-filters-option, .indicator-selected-filters-summary) #selectedFilters {
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(148, 163, 184, 0.95);
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body#f13.indicator-tool-page main > :is(#selected-filters-option, .indicator-selected-filters-summary) #selectedFilters .sf-content {
    color: inherit;
    font-size: 12.688px;
    line-height: 1.35;
    font-weight: 400;
  }

  body#f13.indicator-tool-page main > :is(#selected-filters-option, .indicator-selected-filters-summary) #selectedFilters .sf-title,
  body#f13.indicator-tool-page main > :is(#selected-filters-option, .indicator-selected-filters-summary) #selectedFilters .sf-val {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    margin: 0;
  }

  html[data-theme="light"] body#f13.indicator-tool-page main > :is(#selected-filters-option, .indicator-selected-filters-summary) {
    border-color: rgba(148, 163, 184, 0.28);
    background: #f8fbff;
  }

  html[data-theme="light"] body#f13.indicator-tool-page main > :is(#selected-filters-option, .indicator-selected-filters-summary) #selectedFilters {
    color: #64748b;
  }

  body.indicator-tool-page .statistics-cards-container,
  body.indicator-game-count #chart-bars-container,
  body.indicator-traffic #market-container {
    margin: 0;
    border-radius: 16px;
    gap: 12px;
    min-height: 0;
  }

  body.indicator-tool-page:not(.indicator-line-strength) .statistics-cards-container,
  body.indicator-game-count #chart-bars-container,
  body.indicator-traffic #market-container {
    padding: 12px;
  }

  body.indicator-tool-page .statistics-chart-header {
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }

  body.indicator-tool-page:not(.indicator-line-strength) .statistics-chart-header {
    padding: 0 0 12px !important;
  }

  body.indicator-tool-page .statistics-mode-buttons,
  body.indicator-tool-page .statistics-metric,
  body.indicator-traffic .statistics-traffic-indicator-sort-buttons {
    display: flex;
    width: 100%;
    gap: 8px !important;
    flex-wrap: wrap;
    align-items: center;
  }

  body.indicator-tool-page .statistics-mode-buttons > *,
  body.indicator-tool-page .statistics-mode-buttons > button,
  body.indicator-tool-page .statistics-metric > button,
  body.indicator-traffic .statistics-traffic-indicator-sort-buttons > button {
    flex: 1 1 0;
    min-width: 0;
  }

  body.indicator-line-strength .statistics-bookmaker-market-header-container .statistics-mode-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  body.indicator-line-strength .statistics-bookmaker-market-header-container .statistics-mode-buttons > .statistics-mode-group,
  body.indicator-line-strength .statistics-bookmaker-market-header-container .statistics-mode-buttons > .statistics-mode-group > button {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.indicator-line-strength .statistics-bookmaker-market-header-container .statistics-mode-buttons > .statistics-mode-group > button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 4px !important;
    line-height: 1.08;
    white-space: normal !important;
    text-align: center;
  }

  body.indicator-tool-page .statistics-info-btn,
  body.indicator-tool-page .sl-help-btn,
  body.indicator-tool-page .series-help-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 2px solid rgba(74, 163, 248, 0.78) !important;
    border-radius: 50% !important;
    background: rgba(15, 35, 62, 0.72) !important;
    color: rgba(238, 244, 255, 0.92) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    box-shadow: 0 0 0 1px rgba(74, 163, 248, 0.08), 0 8px 20px rgba(10, 18, 34, 0.24);
  }

  body.indicator-line-strength .sl-help-btn--card {
    top: 8px !important;
    right: 10px !important;
  }

  body.indicator-tool-page .button-primary,
  body.indicator-tool-page .button-secondary,
  body.indicator-tool-page .series-btn,
  body.indicator-tool-page .si-tab {
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  body.indicator-line-strength #diagram.statistics-bookmaker-market-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  body.indicator-line-strength #diagram .card {
    padding: 12px !important;
  }

  body.indicator-line-strength #chartContainerMarket,
  body.indicator-line-strength #chartContainerBookmaker {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center;
    justify-content: center;
    width: min(272px, calc(100vw - 60px)) !important;
    height: min(272px, calc(100vw - 60px)) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 auto;
  }

  body.indicator-line-strength #chartContainerMarket canvas,
  body.indicator-line-strength #chartContainerBookmaker canvas {
    display: block;
    margin: 0 auto;
  }

  body.indicator-line-strength .statistics-piechart-container {
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
  }

  body.indicator-line-strength .statistics-pie-legend {
    width: 100%;
    max-width: 100%;
    min-height: 76px;
    height: auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend {
    grid-template-columns: 10px minmax(46px, 60px) minmax(42px, 48px) minmax(30px, 42px) minmax(42px, 54px) minmax(46px, 1fr) !important;
    gap: 8px 5px !important;
    width: 100% !important;
    max-width: 100%;
    margin-top: 12px !important;
    font-size: 12px !important;
    line-height: 1.1;
    box-sizing: border-box;
  }

  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend > div {
    min-width: 0;
    font-size: 12px !important;
    line-height: 1.1;
  }

  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend > div:nth-child(9n+1) {
    width: 10px !important;
    height: 10px !important;
  }

  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend > div:nth-child(9n+2) {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend > div:nth-child(9n+5),
  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend > div:nth-child(9n+9) {
    display: none !important;
  }

  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend > div:nth-child(9n+7) {
    display: none !important;
  }

  body.indicator-line-strength .statistics-pie-legend .statistics-piechart-legend > div:nth-child(9n+8)::after {
    content: " \0438\0433\0440";
    font-size: 10px;
  }

  body.indicator-line-strength #table.statistics-bookmaker-market-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.indicator-line-strength #table #market-table-container,
  body.indicator-line-strength #table #bookmaker-table-container {
    position: relative;
    min-height: 156px;
  }

  body.indicator-line-strength #table .sl-help-btn--card {
    top: 12px !important;
    right: 12px !important;
  }

  body.indicator-line-strength #table .statistics-diagram-no-data {
    inset: 0;
    min-height: 156px;
    padding: 46px 18px 18px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.25;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.indicator-line-strength #table .statistics-diagram-no-data .no-data-text {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.indicator-line-strength #table .statistics-diagram-no-data .statistics-no-data-back {
    margin-top: 2px;
    min-height: 34px;
    padding: 0 18px;
    font-size: 13px;
  }

  body.indicator-line-strength #table .statistics-mode-buttons {
    display: grid;
    grid-template-columns: minmax(70px, 1.3fr) minmax(40px, 0.7fr) minmax(62px, 1fr) minmax(40px, 0.7fr);
    gap: 6px !important;
  }

  body.indicator-line-strength #table .statistics-category-percent-summary {
    flex: 0 0 calc(100% - 24px);
    width: calc(100% - 24px);
    margin-left: 8px;
  }

  body.indicator-line-strength #table .statistics-mode-buttons > button {
    width: 100% !important;
    min-width: 0;
    padding: 0 4px;
    font-size: 12px !important;
    line-height: 1.05;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    overflow: hidden;
    text-overflow: clip;
  }

  body.indicator-tool-page .statistics-table-container,
  body.indicator-tool-page .traffic-summary__content {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.indicator-tool-page .statistics-table-container table {
    min-width: 540px;
  }

  body.indicator-line-strength #table .statistics-table-container {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    overflow-y: visible;
  }

  body.indicator-line-strength #table .statistics-table-container table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
  }

  body.indicator-line-strength #table .statistics-table-container th,
  body.indicator-line-strength #table .statistics-table-container td {
    box-sizing: border-box;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 12px;
    line-height: 1.2;
  }

  body.indicator-line-strength #table .statistics-table-container th:first-child,
  body.indicator-line-strength #table .statistics-table-container td:first-child {
    width: 28px;
    padding-left: 2px;
    padding-right: 2px;
  }

  body.indicator-line-strength #table .statistics-table-container th:nth-child(2),
  body.indicator-line-strength #table .statistics-table-container td:nth-child(2) {
    width: auto;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
  }

  body.indicator-line-strength #table .statistics-table-container th:nth-child(3),
  body.indicator-line-strength #table .statistics-table-container td:nth-child(3) {
    width: 56px;
  }

  body.indicator-line-strength #table .statistics-table-container th:nth-child(4),
  body.indicator-line-strength #table .statistics-table-container td:nth-child(4) {
    width: 58px;
  }

  body.indicator-line-strength #table .statistics-table-container th:nth-child(5),
  body.indicator-line-strength #table .statistics-table-container td:nth-child(5) {
    width: 44px;
  }

  body.indicator-line-strength #table .statistics-table-container td:nth-child(2) > div {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap !important;
    overflow: hidden;
  }

  body.indicator-line-strength #table .statistics-table-name-link,
  body.indicator-line-strength #table .traffic-summary-table__name-leaf {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.indicator-line-strength #table .statistics-table-dates-btn {
    flex: 0 0 auto;
    font-size: 10px;
    white-space: nowrap;
  }

  body.indicator-game-count .statistics-game-count-chart-content {
    --statistics-chart-min-width: 100% !important;
    --statistics-day-col-min: 0px !important;
    padding: 30px 4px 112px;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body.indicator-game-count .statistics-game-count-chart-content .statistics-bars,
  body.indicator-game-count .statistics-game-count-chart-content .statistics-day-cards,
  body.indicator-game-count .statistics-game-count-chart-content .statistics-grid {
    width: auto !important;
    min-width: 0 !important;
  }

  body.indicator-game-count .statistics-game-count-chart-content .statistics-bars,
  body.indicator-game-count .statistics-game-count-chart-content .statistics-day-cards {
    grid-template-columns: repeat(var(--statistics-cols, 7), minmax(0, 1fr)) !important;
    gap: 3px;
  }

  body.indicator-game-count .statistics-bar {
    width: 12px !important;
  }

  body.indicator-game-count .statistics-bar-value,
  body.indicator-game-count .statistics-bar-label {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.indicator-game-count .statistics-bar-value {
    width: max-content;
    min-width: 28px;
    max-width: 42px;
    overflow: visible;
    text-overflow: clip;
  }

  body.indicator-game-count .statistics-day-cards {
    left: 4px;
    right: 4px;
    bottom: 6px;
    min-width: 0 !important;
    padding: 6px 3px;
  }

  body.indicator-game-count .statistics-day-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 70px;
    padding: 5px 2px;
    gap: 4px;
    font-size: 9px;
    overflow: hidden;
  }

  body.indicator-game-count .statistics-day-badge {
    width: 100%;
    margin: 0;
    padding: 3px 1px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.indicator-game-count .statistics-day-card > .statistics-card-line {
    width: 100%;
    padding: 0;
    justify-content: center;
  }

  body.indicator-game-count .statistics-day-card > .statistics-card-line ~ .statistics-card-line,
  body.indicator-game-count .statistics-day-card > .statistics-day-card-week-data {
    display: none;
  }

  body.indicator-game-count .statistics-day-card > .statistics-card-line .statistics-card-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.indicator-game-count .statistics-day-card > .statistics-card-line .statistics-card-value {
    min-width: 0;
    padding: 0;
    text-align: center;
    font-size: 10px;
    line-height: 1.1;
  }

  body.indicator-traffic .statistics-traffic-indicator-head {
    width: 100%;
    gap: 10px;
    white-space: normal;
  }

  body.indicator-traffic .statistics-traffic-indicator-head > span,
  body.indicator-traffic .statistics-traffic-indicator-sort-buttons {
    width: 100%;
  }

  body.indicator-traffic .statistics-traffic-indicator-sort-buttons h2 {
    flex: 0 0 100%;
    margin: 0 0 2px;
    font-size: 13px;
  }

  body.indicator-traffic .statistics-traffic-indicator-bar-row {
    grid-template-columns: 44px minmax(60px, 1fr) 56px 52px;
    gap: 6px;
    height: 28px;
    font-size: 12px;
  }

  body.indicator-traffic .statistics-traffic-indicator-bar-coef,
  body.indicator-traffic .statistics-traffic-indicator-bar-pct,
  body.indicator-traffic .statistics-traffic-indicator-bar-games {
    min-width: 0;
    padding: 2px 4px;
  }

  body.indicator-traffic .statistics-traffic-indicator-bars-wrap {
    max-height: min(560px, 68vh);
    padding: 8px 4px 4px;
  }

  body.indicator-traffic .traffic-summary__sort-buttons > button,
  body.indicator-game-count .traffic-summary__sort-buttons > button {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  body.indicator-game-count #gameCountSummaryContent,
  body.indicator-traffic #trafficSummaryContent {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body.indicator-game-count #gameCountSummaryTable,
  body.indicator-traffic #trafficSummaryTable {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto;
  }

  body.indicator-game-count #gameCountSummaryTable table,
  body.indicator-traffic #trafficSummaryTable table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  body.indicator-game-count #gameCountSummaryTable th,
  body.indicator-game-count #gameCountSummaryTable td,
  body.indicator-traffic #trafficSummaryTable th,
  body.indicator-traffic #trafficSummaryTable td {
    box-sizing: border-box;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.indicator-game-count #gameCountSummaryTable th:first-child,
  body.indicator-game-count #gameCountSummaryTable td:first-child,
  body.indicator-traffic #trafficSummaryTable th:first-child,
  body.indicator-traffic #trafficSummaryTable td:first-child {
    width: 26px !important;
    padding-left: 2px;
    padding-right: 2px;
  }

  body.indicator-game-count #gameCountSummaryTable th:nth-child(2),
  body.indicator-game-count #gameCountSummaryTable td:nth-child(2),
  body.indicator-traffic #trafficSummaryTable th:nth-child(2),
  body.indicator-traffic #trafficSummaryTable td:nth-child(2) {
    width: auto !important;
    min-width: 0 !important;
    padding-left: 4px;
    padding-right: 4px;
  }

  body.indicator-game-count #gameCountSummaryTable th:nth-child(3),
  body.indicator-game-count #gameCountSummaryTable td:nth-child(3) {
    width: 52px !important;
  }

  body.indicator-game-count #gameCountSummaryTable th:nth-child(4),
  body.indicator-game-count #gameCountSummaryTable td:nth-child(4) {
    width: 70px !important;
  }

  body.indicator-traffic #trafficSummaryTable th:nth-child(3),
  body.indicator-traffic #trafficSummaryTable td:nth-child(3) {
    width: 50px !important;
  }

  body.indicator-traffic #trafficSummaryTable th:nth-child(4),
  body.indicator-traffic #trafficSummaryTable td:nth-child(4) {
    width: 58px !important;
  }

  body.indicator-traffic #trafficSummaryTable th:nth-child(5),
  body.indicator-traffic #trafficSummaryTable td:nth-child(5) {
    width: 42px !important;
  }

  body.indicator-game-count #gameCountSummaryTable .statistics-table-name-link,
  body.indicator-game-count #gameCountSummaryTable .traffic-summary-table__name-leaf,
  body.indicator-traffic #trafficSummaryTable .statistics-table-name-link,
  body.indicator-traffic #trafficSummaryTable .traffic-summary-table__name-leaf {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }

  body.indicator-traffic #trafficSummaryTable td:nth-child(2) {
    overflow: hidden;
  }

  body.indicator-tool-page .statistics-diagram-no-data {
    min-height: 112px !important;
    padding: 18px 14px;
    color: #aebfd8;
    font-size: 16px;
    line-height: 1.35;
  }

  body.indicator-traffic .traffic-summary {
    min-height: 0;
    gap: 10px;
  }

  body.indicator-traffic .traffic-summary__category-summary {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
  }

  body.indicator-traffic .traffic-summary__category-summary:empty {
    display: none;
  }

  body.indicator-traffic #trafficSummaryEmpty {
    min-height: 112px !important;
    border: 1px solid rgba(124, 159, 231, 0.18);
    border-radius: 12px;
    background: rgba(8, 22, 56, 0.38);
  }

  body.indicator-game-count .gc-day-modal {
    padding: 10px;
  }

  body.indicator-game-count .gc-day-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    gap: 12px;
    padding: 16px;
  }

  body.indicator-game-count .gc-day-modal__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    line-height: 1;
  }

  body.indicator-game-count .gc-day-modal__title {
    margin-right: 46px;
    font-size: 18px;
  }

  body.indicator-game-count .gc-day-modal__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.indicator-game-count .gc-day-modal__stat {
    padding: 9px 5px;
    text-align: center;
  }

  body.indicator-game-count .gc-day-modal__stat-label {
    margin-bottom: 4px;
    font-size: 9px;
  }

  body.indicator-game-count .gc-day-modal__stat strong {
    font-size: 13px;
  }

  body.indicator-game-count .gc-day-modal__table-wrap {
    overflow-x: hidden;
    scrollbar-gutter: auto;
  }

  body.indicator-game-count .gc-day-modal__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  body.indicator-game-count .gc-day-modal__table th,
  body.indicator-game-count .gc-day-modal__table td {
    padding: 9px 4px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
  }

  body.indicator-game-count .gc-day-modal__table th:first-child,
  body.indicator-game-count .gc-day-modal__table td:first-child {
    width: 38%;
  }

  body.indicator-game-count .gc-day-modal__table th:nth-child(2),
  body.indicator-game-count .gc-day-modal__table td:nth-child(2) {
    width: 24%;
  }

  body.indicator-game-count .gc-day-modal__table th:nth-child(3),
  body.indicator-game-count .gc-day-modal__table td:nth-child(3) {
    width: 38%;
  }

  body.indicator-traffic .traffic-match-dates-overlay {
    padding: 10px !important;
  }

  body.indicator-traffic .traffic-match-dates-overlay .match-dates-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }

  body.indicator-traffic .traffic-match-dates-overlay .modal-title {
    padding: 16px 56px 10px 16px;
    font-size: 18px !important;
  }

  body.indicator-traffic .traffic-match-dates-overlay .modal-close-btn {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 24px !important;
  }

  body.indicator-traffic .traffic-match-dates-overlay .modal-content {
    max-height: calc(100dvh - 84px);
  }

  body.indicator-traffic .traffic-match-dates-overlay .match-dates-summary {
    gap: 6px 8px;
    padding: 0 16px 12px;
  }

  body.indicator-traffic .traffic-match-dates-overlay .match-dates-summary .summary-separator {
    display: none;
  }

  body.indicator-traffic .traffic-match-dates-overlay .match-row {
    grid-template-columns: 4px minmax(0, 1fr) auto;
    grid-template-areas:
      "strip date score"
      "strip info info";
    gap: 8px 10px;
    padding: 12px 12px 12px 0;
    align-items: start;
  }

  body.indicator-traffic .traffic-match-dates-overlay .status-strip {
    grid-area: strip;
  }

  body.indicator-traffic .traffic-match-dates-overlay .date-col {
    grid-area: date;
    min-width: 0;
    padding-left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  body.indicator-traffic .traffic-match-dates-overlay .info-col {
    grid-area: info;
  }

  body.indicator-traffic .traffic-match-dates-overlay .score-col {
    grid-area: score;
    min-width: 52px;
    padding-left: 0;
  }

  body.indicator-traffic .traffic-match-dates-overlay .match-archive-link {
    min-height: 36px;
    padding: 0 9px;
  }

  body.indicator-traffic .traffic-match-dates-overlay .teams-name {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.3;
  }

  body.indicator-traffic .traffic-match-dates-overlay .team-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.indicator-traffic .traffic-match-dates-overlay .match-odds-line {
    margin-left: 0 !important;
  }

  body.indicator-series .series-match-dates-overlay .modal-title {
    position: relative;
    z-index: 3;
    min-height: 64px;
    padding: 18px 64px 14px 16px !important;
    box-sizing: border-box;
    background: var(--card-color);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  body.indicator-series .series-match-dates-overlay .modal-close-btn {
    top: 10px !important;
    right: 10px !important;
    z-index: 4;
  }

  body.indicator-series .series-match-dates-overlay .match-row {
    grid-template-columns: 4px minmax(0, 1fr) auto;
    grid-template-areas:
      "strip date score"
      "strip info info";
    gap: 10px 12px;
    padding: 14px 12px 14px 0;
    align-items: start;
  }

  body.indicator-series .series-match-dates-overlay .status-strip {
    grid-area: strip;
  }

  body.indicator-series .series-match-dates-overlay .date-col {
    grid-area: date;
    min-width: 0;
    padding-left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  body.indicator-series .series-match-dates-overlay .info-col {
    grid-area: info;
    gap: 8px;
  }

  body.indicator-series .series-match-dates-overlay .score-col {
    grid-area: score;
    min-width: 52px;
    padding-left: 0;
  }

  body.indicator-series .series-match-dates-overlay .teams-name {
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.35;
  }

  body.indicator-series .series-match-dates-overlay .team-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.indicator-series .series-match-dates-overlay .match-odds-stack {
    gap: 10px;
    margin-top: 2px;
  }

  body.indicator-series .series-match-dates-overlay .match-odds-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
    width: 100%;
    margin-left: 0 !important;
    font-size: 12px;
    line-height: 1.35;
  }

  body.indicator-series .series-match-dates-overlay .match-odds-outcome {
    grid-column: 1 / -1;
    font-weight: 700;
  }

  body.indicator-series .series-match-dates-overlay .match-odds-open,
  body.indicator-series .series-match-dates-overlay .match-odds-close {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.indicator-series .series-match-dates-overlay .match-odds-sep {
    display: none;
  }

  body.indicator-series .series-indicator-page {
    display: block;
    padding: 0;
  }

  body.indicator-series .series-main-content {
    display: block;
    overflow: visible;
  }

  body.indicator-series .indicator-series-side-switch {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
  }

  body.indicator-series .indicator-series-side-switch button {
    flex: 1 1 0;
    height: 38px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #cbd5e1;
    font: 800 13px/1 Roboto, "Segoe UI", system-ui, sans-serif;
  }

  body.indicator-series .indicator-series-side-switch button.is-active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 22px rgba(44, 100, 213, 0.22);
  }

  body.indicator-series .series-tables {
    display: block;
    width: 100%;
  }

  body.indicator-series .series-table-card {
    width: 100%;
    margin: 0;
    border-radius: 16px;
  }

  body.indicator-series .series-table-card.is-series-mobile-hidden {
    display: none;
  }

  body.indicator-series .series-table-header {
    padding: 12px;
  }

  body.indicator-series .series-dot {
    display: none;
  }

  body.indicator-series .series-readable-help__label {
    display: inline;
  }

  body.indicator-series .series-readable-help {
    width: auto !important;
    min-width: 108px !important;
    max-width: none !important;
    padding: 0 12px !important;
    margin-left: 0;
    gap: 6px;
    border-radius: 999px !important;
    white-space: nowrap;
  }

  body.indicator-series #filters-container .filters-header__titlewrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.indicator-series .series-table-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  body.indicator-series .series-table-title {
    grid-column: 1 / -1;
  }

  body.indicator-series .series-stats-btn {
    grid-column: 1;
  }

  body.indicator-series .series-table-actions {
    grid-column: 2;
    gap: 7px;
  }

  body.indicator-series .series-total-pill {
    width: auto !important;
    min-width: 0;
    height: 34px !important;
    padding: 0 9px;
  }

  body.indicator-series .series-stats-btn {
    min-height: 44px;
    padding: 0 12px;
  }

  body.indicator-series .series-table-wrap {
    overflow: visible;
  }

  body.indicator-series .series-table,
  body.indicator-series .series-table tbody,
  body.indicator-series .series-table tr,
  body.indicator-series .series-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  body.indicator-series .series-table thead {
    display: none;
  }

  body.indicator-series .series-table tr.series-row {
    display: grid !important;
    width: calc(100% - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "team team"
      "outcome type"
      "len period"
      "final final";
    gap: 8px;
    margin: 10px;
    padding: 12px;
    border: 1px solid rgba(100, 116, 139, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.38);
  }

  body.indicator-series .series-row td {
    padding: 0;
    border: 0;
    min-width: 0;
  }

  body.indicator-series .series-row td:nth-child(1) {
    grid-area: team;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.18);
  }

  body.indicator-series .series-row td:nth-child(2) { grid-area: outcome; }
  body.indicator-series .series-row td:nth-child(3) { grid-area: type; }
  body.indicator-series .series-row td:nth-child(4) { grid-area: len; }
  body.indicator-series .series-row td:nth-child(5) { grid-area: period; }
  body.indicator-series .series-row td:nth-child(6) {
    grid-area: final;
    padding-top: 9px;
    border-top: 1px solid rgba(100, 116, 139, 0.18);
  }

  body.indicator-series .series-row td:nth-child(n+2):nth-child(-n+5) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
    min-height: 58px;
    padding: 8px;
    border: 1px solid rgba(100, 116, 139, 0.14);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.18);
    text-align: left;
  }

  body.indicator-series .series-mobile-field-label {
    display: block;
    color: rgba(148, 163, 184, 0.94);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
  }

  body.indicator-series .series-cell--result .series-type-badge {
    margin: 0;
  }

  body.indicator-series .series-type-badge--full {
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 32px;
    padding: 5px 8px;
  }

  body.indicator-series .series-type-badge--full .series-type-badge__short {
    display: none;
  }

  body.indicator-series .series-final-badge {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    gap: 6px;
    padding: 8px 10px;
    line-height: 1.3;
    text-align: left;
  }

  body.indicator-series .series-final-badge.has-score {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  body.indicator-series .series-final-badge__context {
    display: inline;
    color: currentColor;
    opacity: 0.78;
    font-size: 11px;
  }

  body.indicator-series .series-team-name {
    font-size: 15px;
    line-height: 1.2;
  }

  body.indicator-series .series-team-meta,
  body.indicator-series .series-period {
    font-size: 11px;
  }

  body.indicator-series .series-saved-strategies--standalone {
    margin: 0 0 12px;
  }
}

@media (max-width: 380px) {
  body.indicator-tool-page .layout {
    padding: 0 10px;
  }

  body.indicator-tool-page .indicator-mobile-toolbar {
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
  }

  body.indicator-tool-page #filters-container {
    left: 10px;
    right: 10px;
  }

  body.indicator-traffic .statistics-traffic-indicator-bar-row {
    grid-template-columns: 40px minmax(52px, 1fr) 52px 46px;
    gap: 5px;
  }
}
