/* モバイル専用ナビは、狭い画面でだけ表示する。 */
.mobile-nav {
  display: none;
}

/* iPhone Safari は16px未満のフォーム要素をフォーカス時に自動拡大するため、
   タッチ端末では入力文字を常に16px以上にしてレイアウトのズームを防ぐ。 */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .mobile-nav {
    position: fixed;
    z-index: 9;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(112, 182, 245, .44);
    border-radius: 15px;
    background: rgba(7, 14, 26, .9);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .55);
    backdrop-filter: blur(14px);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-width: 0;
    padding: 7px 3px;
    overflow: hidden;
    border-radius: 10px;
    color: #b7cde7;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav .mobile-refresh {
    border: 0;
    background: transparent;
    color: #b7cde7;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav .mobile-refresh:active {
    color: #fff;
    transform: rotate(-35deg);
  }

  .mobile-nav a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, rgba(35, 145, 239, .85), rgba(92, 101, 232, .72));
  }

  .trades-page {
    padding-bottom: 88px !important;
  }

  .tags-shell,
  .analysis-shell {
    padding-bottom: 88px !important;
  }
}
