@media (max-width: 760px) {
  [data-mobile-table] {
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #758ba1 #122130;
  }

  [data-table-overflow]::before {
    content: 'Гортайте таблицю вбік ↔';
    display: block;
    position: sticky;
    inset-inline-start: 0;
    width: fit-content;
    padding: 5px 8px;
    color: #b6c8d8;
    font-size: 11px;
    line-height: 1.35;
  }

  [data-mobile-table] > table :is(th, td) {
    padding: 8px 7px;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
  }

  [data-mobile-table] > table [data-sticky-driver] {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    white-space: normal;
    overflow-wrap: break-word;
    background-color: #11202e;
    box-shadow: 1px 0 #34485f;
  }

  [data-mobile-table] > table tr:nth-child(even) > [data-sticky-driver] {
    background-color: #162838;
  }

  [data-mobile-table] > table th[data-sticky-driver] {
    background-color: #172a3b;
  }

  [data-mobile-table] > table.steward-decisions-table {
    min-width: 660px;
  }

  [data-mobile-table] > table.steward-table .steward-text {
    white-space: normal;
  }

  .warmup-entry .warmup-livery-frame {
    zoom: 0.55;
  }

  .entry-list .entry-image img:not(.warmup-livery) {
    max-width: 125px;
    max-height: 64px;
    object-fit: contain;
  }
}

@media (max-width: 760px) {
  [data-mobile-table] > table:not(.steward-table, .tournament-elo-table) {
    width: max-content;
    min-width: 100%;
  }

  [data-mobile-table] > table [data-sticky-driver="with-position"] {
    inset-inline-start: 36px;
  }

  [data-mobile-table] > table [data-sticky-rank] {
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    box-sizing: border-box;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    padding-inline: 3px;
    text-align: center;
    background-color: #11202e;
  }

  [data-mobile-table] > table th[data-sticky-rank] {
    font-size: 10px;
    white-space: normal;
    overflow-wrap: break-word;
    background-color: #172a3b;
  }

  [data-mobile-table] > table tr:nth-child(even) > td[data-sticky-rank] {
    background-color: #162838;
  }

  [data-mobile-table] > table.archive-table th[data-sticky-rank] {
    font-size: 8px;
  }
}
