@media (max-width: 767px), (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  body.mobile-axis-lock-enabled .mobile-table-scroller {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    touch-action: auto;
    scroll-snap-type: none;
  }

  body.mobile-axis-lock-enabled .mobile-table-scroller > .mobile-stock-table {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-axis-lock-shell {
    --axis-name-width: 86px;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-columns: var(--axis-name-width) minmax(0, 1fr);
    grid-template-rows: 44px minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    timeline-scope: --mobile-axis-x;
  }

  .mobile-axis-lock-shell::after {
    content: "";
    position: absolute;
    z-index: 4;
    top: 43px;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--mobile-line);
    pointer-events: none;
  }

  .mobile-axis-lock-corner {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    background: #fff;
  }

  .mobile-axis-lock-corner button {
    width: 100%;
    min-height: 44px;
    padding: 0 0 0 10px;
    border: 0;
    background: #fff;
    color: var(--mobile-muted);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
  }

  .mobile-axis-lock-corner button.is-cancel {
    width: auto;
    min-height: 32px;
    margin: 6px 0 6px 10px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--mobile-brand-soft);
    color: var(--mobile-brand);
    font-weight: 500;
  }

  .mobile-axis-lock-x {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    /* Keep the data grid on its real bounds so it cannot rubber-band away
       from the separately rendered header during native momentum scrolling. */
    overscroll-behavior-x: none;
    overscroll-behavior-inline: none;
    touch-action: auto;
    scrollbar-width: none;
    contain: layout paint;
    overflow-anchor: none;
    scroll-timeline-name: --mobile-axis-x;
    scroll-timeline-axis: inline;
  }

  .mobile-axis-lock-x::-webkit-scrollbar,
  .mobile-axis-lock-y::-webkit-scrollbar,
  .mobile-axis-lock-names::-webkit-scrollbar { display: none; }

  .mobile-axis-lock-header {
    min-width: 0;
    height: 44px;
    grid-column: 2;
    grid-row: 1;
    overflow-x: hidden;
    overflow-y: hidden;
    contain: layout paint;
  }

  .mobile-axis-lock-header > .mobile-axis-lock-table {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
  }

  .mobile-axis-lock-shell.axis-scroll-timeline .mobile-axis-lock-header > .mobile-axis-lock-table {
    animation-name: mobile-axis-header-follow;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --mobile-axis-x;
    animation-range: 0% 100%;
  }

  @keyframes mobile-axis-header-follow {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--axis-header-shift, 0px), 0, 0); }
  }

  .mobile-axis-lock-y {
    min-height: 0;
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: auto;
    scrollbar-width: none;
    contain: layout paint;
    overflow-anchor: none;
  }

  .mobile-axis-lock-body-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: var(--axis-name-width) minmax(0, 1fr);
    align-items: start;
    overflow: hidden;
  }

  .mobile-axis-lock-names {
    position: relative;
    z-index: 2;
    width: var(--axis-name-width);
    max-width: var(--axis-name-width);
    min-width: 0;
    grid-column: 1;
    overflow: hidden;
    touch-action: auto;
    background: #fff;
  }

  .mobile-axis-lock-body-grid > .mobile-axis-lock-x { grid-column: 2; }

  .mobile-axis-lock-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: var(--mobile-ink);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
  }

  .mobile-axis-lock-table th,
  .mobile-axis-lock-table td {
    box-sizing: border-box;
    height: 46px;
    padding: 0 6px;
    border-bottom: 1px solid #eef1f4;
    background: #fff;
    text-align: right;
    white-space: nowrap;
  }

  .mobile-axis-lock-table tbody tr,
  .mobile-axis-lock-name-table tbody tr { cursor: pointer; }

  .mobile-axis-lock-table th {
    height: 44px;
    color: var(--mobile-muted);
    font-size: 14px;
    font-weight: 500;
    border-bottom-color: var(--mobile-line);
  }

  .mobile-axis-lock-table th button {
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: inherit;
  }

  .mobile-axis-lock-table th[aria-sort="ascending"] button::after { content: " \2191"; }
  .mobile-axis-lock-table th[aria-sort="descending"] button::after { content: " \2193"; }
  .mobile-axis-lock-table .mobile-tech-heading,
  .mobile-axis-lock-table .mobile-tech-cell { text-align: left; }
  .mobile-axis-lock-table .tag-chip { font-size: 12px; }
  .mobile-axis-lock-table .up { color: var(--mobile-up) !important; }
  .mobile-axis-lock-table .down { color: var(--mobile-down) !important; }
  .mobile-axis-lock-table .neutral { color: var(--mobile-ink) !important; }
  .mobile-axis-lock-table .mobile-manage { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--mobile-brand); }

  .mobile-axis-lock-name-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 14px;
  }

  .mobile-axis-lock-name-table td {
    box-sizing: border-box;
    height: 46px;
    padding: 0 0 0 10px;
    border-bottom: 1px solid #eef1f4;
    background: #fff;
    white-space: nowrap;
  }

  .mobile-axis-lock-name-table a {
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--mobile-ink);
    font-weight: 650;
    text-decoration: none;
    text-overflow: ellipsis;
  }

  body.mobile-stock-management-enabled .mobile-axis-lock-table tbody tr,
  body.mobile-stock-management-enabled .mobile-axis-lock-name-table tbody tr {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .mobile-axis-lock-table tr.is-long-press td,
  .mobile-axis-lock-name-table tr.is-long-press td { background: var(--mobile-brand-soft); }

  body.mobile-axis-lock-enabled .mobile-add-stock {
    position: static;
    flex: 0 0 auto;
  }

  @media (max-width: 374px) {
    .mobile-axis-lock-shell { --axis-name-width: 82px; }
    .mobile-axis-lock-table th,
    .mobile-axis-lock-table td { padding-right: 5px; padding-left: 5px; }
  }
}
