body { margin:0; font-family:sans-serif; }

  nav {
    display: flex;
    align-items: center;
    background: #222;
    color: white;
    padding: 0 10px;
    position: relative;
  }

  nav .menu {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  .menu-item {
    padding: 10px 15px;
    white-space: nowrap;
    cursor: pointer;
  }

  .menu-item.hide { display: none !important; }
  .menu-item.show-always { flex-shrink: 0; }
  .menu-item.show-if-room { flex-shrink: 0; }

  #moreBtn {
    padding: 10px 15px;
    cursor: pointer;
    display: none;
    user-select: none;
  }

  /* Side panel (dropdown style under "More") */
  #sidePanel {
    position: absolute;
    right: 10px;
    top: 65px;
    background: #333;
    color: white;
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border-radius: 0 0 8px 8px;
    animation: fadeIn 0.2s ease-out;
  }

  #sidePanel .menu-item {
    border-top: 1px solid #444;
  }

  #sidePanel .menu-item:hover {
    background: #444;
  }

  @keyframes fadeIn {
    from {opacity:0; transform:translateY(-5px);}
    to {opacity:1; transform:translateY(0);}
  }