
  /* ===== Topbar: logo left, PDFowo centered, theme right ===== */
  .topbar .in {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    text-decoration: none;
  }

  .brand-logo .logo-switch {
    display: block;
    width: 49px;
    height: 40px;
    overflow: visible;
  }

  .brand-logo .logo-img {
    display: block;
    width: 44px;
    height: 44px;
    max-width: 44px;
    object-fit: contain;
  }

  .brand-logo .logo-light {
    display: none;
  }

  .brand-title {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    color: #f2f3f4;
    text-decoration: none;
    font-size: 1.22rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.035em;
    white-space: nowrap;
  }

  .brand-title:hover {
    color: #ffffff;
  }

  .topbar .theme-toggle {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }

  body.light-theme .brand-logo .logo-dark {
    display: none;
  }

  body.light-theme .brand-logo .logo-light {
    display: block;
  }

  body.light-theme .brand-title {
    color: #202226;
  }

  body.light-theme .brand-title:hover {
    color: #111214;
  }

  @media (max-width: 640px) {
    .brand-title {
      font-size: 1.08rem;
    }

    .brand-logo,
    .brand-logo .logo-switch,
    .brand-logo .logo-img {
      width: 42px;
      max-width: 42px;
      height: 42px;
    }
  }

  @media (max-width: 520px) {
    .brand-title {
      font-size: 1rem;
    }

    .brand-logo,
    .brand-logo .logo-switch,
    .brand-logo .logo-img {
      width: 40px;
      max-width: 40px;
      height: 40px;
    }

    .topbar .theme-toggle {
      padding: 7px 9px;
    }
  }
