@media (max-width: 768px) {
  .layout {
    display: block;
  }

  .topbar nav {
    display: none;
  }

  .sidebar h2 {
    display: block;
    font-size: 1.1rem;
    margin: 3rem auto 1rem auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    padding-top: 50px;
    z-index: 999;
    background-color: #1b2b34;
    transform: translateX(-100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .content {
    padding: 1rem;
  }

  .topbar h1 {
    font-size: 1rem;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
  }

  .topbar-left h1 {
    margin-left: 0;
  }

  .qr-wrapper {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .qr-note {
    margin-left: 0;
  }

  .desktop-links {
    display: none;
  }

  .topbar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1rem;
    text-align: center;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
  }

  .menu-left {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-title {
    margin: 0 auto;
    text-align: center;
  }

  .site-title h1 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    text-align: center;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
  }

  .menu-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .site-title {
    margin: 0 auto;
    text-align: center;
    color: #fff;
    text-decoration: none;
  }

  .site-title h1 {
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-right {
    width: 100%;
    margin-top: 0.3rem;
    display: flex;
    justify-content: center;
    font-size: 0.9rem;
  }

}