.category-rail { display: none; }

@media (max-width: 650px) {
  .account-button > [data-icon] { display: none; }
  .mobile-nav { backdrop-filter: none; }
  .mobile-nav button { position: relative; }
  .mobile-nav button[aria-current='page']::before { position: absolute; content: ''; }

  #modal .comment-thread { background: var(--white); }
  .comment-thread .modal-post-title { border: 1px solid var(--line); }
}

@media (max-width: 650px) and (min-height: 440px) {
  body:has(.layout.is-swipe-feed), .layout.is-swipe-feed { background: var(--white); }
  .layout.is-swipe-feed { max-width: none; }
  .is-swipe-feed .feed-viewport { padding-inline: 0; }
  .is-swipe-feed .post { border: 0; border-radius: 0; }
  .is-swipe-feed .post-head { padding-inline: 14px; }
  .is-swipe-feed .post-author { gap: 10px; }
  .is-swipe-feed .post-author .avatar { border: 1px solid #fff; box-shadow: 0 0 0 1px #e1e7df; }
  .is-swipe-feed .author-text strong { font-weight: 800; }
  .is-swipe-feed .author-text time { margin-top: 1px; }
  .is-swipe-feed .post-category { color: var(--muted); background: var(--paper); border-color: transparent; }
  .is-swipe-feed .post-category:hover { color: var(--accent); background: var(--accent-soft); }

  .is-swipe-feed .post-image { background: #edf0eb; }
  .is-swipe-feed .post-image .post-price { right: 14px; bottom: 12px; border-radius: 11px; }
  .is-swipe-feed .post-main { padding-inline: 14px; }
  .is-swipe-feed .post-main h2 { letter-spacing: -.035em; }
  .is-swipe-feed .voting { padding-inline: 14px; }
  .is-swipe-feed .vote-button { border-radius: 13px; }
  .is-swipe-feed .vote-icon { background: transparent; }
  .is-swipe-feed .vote-icon svg { width: 19px; height: 19px; }
  .is-swipe-feed .post-footer { padding-inline: 14px; border-top-color: var(--line); }
  .is-swipe-feed .comments-trigger { color: var(--ink); }
  .is-swipe-feed .comments-trigger svg { width: 21px; height: 21px; }
  .is-swipe-feed .next-trigger { color: var(--ink); }
  .is-swipe-feed .next-trigger svg { color: var(--accent); }
}

@media (min-width: 901px), (max-width: 650px) and (min-height: 690px) {
  .is-swipe-feed .category-rail {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  .category-rail::-webkit-scrollbar { display: none; }

  .rail-category {
    display: grid;
    justify-items: center;
    align-content: center;
    flex: 1 0 auto;
    border: 0;
    border-radius: 9px;
    background: transparent;
  }
  .rail-ring { position: relative; border-radius: 50%; isolation: isolate; }
  .rail-ring::before {
    position: absolute;
    z-index: -1;
    border: 2px solid var(--white);
    border-radius: inherit;
    content: '';
  }
  .rail-label { line-height: 1.25; white-space: nowrap; }
}
